2
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4
* Use of this source code is governed by a BSD-style license
5
* that can be found in the LICENSE file in the root of the source
6
* tree. An additional intellectual property rights grant can be found
7
* in the file PATENTS. All contributing project authors may
8
* be found in the AUTHORS file in the root of the source tree.
11
#include "vpx_config.h"
13
#include "vpx_mem/vpx_mem.h"
15
void vp8_dequant_idct_add_c(short *input, short *dq,
16
unsigned char *dest, int stride);
17
void vp8_dc_only_idct_add_c(short input_dc, unsigned char * pred,
18
int pred_stride, unsigned char *dst_ptr,
21
void vp8_dequant_idct_add_y_block_c
23
unsigned char *dst, int stride, char *eobs)
27
for (i = 0; i < 4; i++)
29
for (j = 0; j < 4; j++)
32
vp8_dequant_idct_add_c (q, dq, dst, stride);
35
vp8_dc_only_idct_add_c (q[0]*dq[0], dst, stride, dst, stride);
36
vpx_memset(q, 0, 2 * sizeof(q[0]));
47
void vp8_dequant_idct_add_uv_block_c
49
unsigned char *dstu, unsigned char *dstv, int stride, char *eobs)
53
for (i = 0; i < 2; i++)
55
for (j = 0; j < 2; j++)
58
vp8_dequant_idct_add_c (q, dq, dstu, stride);
61
vp8_dc_only_idct_add_c (q[0]*dq[0], dstu, stride, dstu, stride);
62
vpx_memset(q, 0, 2 * sizeof(q[0]));
72
for (i = 0; i < 2; i++)
74
for (j = 0; j < 2; j++)
77
vp8_dequant_idct_add_c (q, dq, dstv, stride);
80
vp8_dc_only_idct_add_c (q[0]*dq[0], dstv, stride, dstv, stride);
81
vpx_memset(q, 0, 2 * sizeof(q[0]));