dequantize.h 5.19 KB
Newer Older
John Koleszar's avatar
John Koleszar committed
1
/*
2
 *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
John Koleszar's avatar
John Koleszar committed
3
 *
4
 *  Use of this source code is governed by a BSD-style license
5 6
 *  that can be found in the LICENSE file in the root of the source
 *  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.
John Koleszar's avatar
John Koleszar committed
9 10 11 12 13
 */


#ifndef DEQUANTIZE_H
#define DEQUANTIZE_H
14
#include "vp9/common/blockd.h"
John Koleszar's avatar
John Koleszar committed
15

Scott LaVarnway's avatar
Scott LaVarnway committed
16
#if CONFIG_LOSSLESS
17
extern void vp9_dequant_idct_add_lossless_c(short *input, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
18 19 20
                                            unsigned char *pred,
                                            unsigned char *output,
                                            int pitch, int stride);
21
extern void vp9_dequant_dc_idct_add_lossless_c(short *input, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
22 23 24
                                               unsigned char *pred,
                                               unsigned char *output,
                                               int pitch, int stride, int dc);
25
extern void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
26 27
                                                       unsigned char *pre,
                                                       unsigned char *dst,
Yunqing Wang's avatar
Yunqing Wang committed
28 29
                                                       int stride,
                                                       unsigned short *eobs,
Scott LaVarnway's avatar
Scott LaVarnway committed
30
                                                       short *dc);
31
extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
32 33
                                                    unsigned char *pre,
                                                    unsigned char *dst,
Yunqing Wang's avatar
Yunqing Wang committed
34 35
                                                    int stride,
                                                    unsigned short *eobs);
36
extern void vp9_dequant_idct_add_uv_block_lossless_c(short *q, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
37 38 39
                                                     unsigned char *pre,
                                                     unsigned char *dst_u,
                                                     unsigned char *dst_v,
Yunqing Wang's avatar
Yunqing Wang committed
40 41
                                                     int stride,
                                                     unsigned short *eobs);
Scott LaVarnway's avatar
Scott LaVarnway committed
42 43
#endif

44
typedef void (*vp9_dequant_idct_add_fn_t)(short *input, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
45
    unsigned char *pred, unsigned char *output, int pitch, int stride);
46
typedef void(*vp9_dequant_dc_idct_add_fn_t)(short *input, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
47 48
    unsigned char *pred, unsigned char *output, int pitch, int stride, int dc);

49
typedef void(*vp9_dequant_dc_idct_add_y_block_fn_t)(short *q, short *dq,
Yunqing Wang's avatar
Yunqing Wang committed
50 51
    unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs,
    short *dc);
52
typedef void(*vp9_dequant_idct_add_y_block_fn_t)(short *q, short *dq,
Yunqing Wang's avatar
Yunqing Wang committed
53
    unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs);
54
typedef void(*vp9_dequant_idct_add_uv_block_fn_t)(short *q, short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
55
    unsigned char *pre, unsigned char *dst_u, unsigned char *dst_v, int stride,
Yunqing Wang's avatar
Yunqing Wang committed
56
    unsigned short *eobs);
Scott LaVarnway's avatar
Scott LaVarnway committed
57

58
void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, short *input, short *dq,
Jingning Han's avatar
Jingning Han committed
59 60 61
                                    unsigned char *pred, unsigned char *dest,
                                    int pitch, int stride);

62
void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, short *dq,
Christian Duvivier's avatar
Christian Duvivier committed
63 64 65
                                   unsigned char *pred, unsigned char *dest,
                                   int pitch, int stride);

66
void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input, short *dq,
67 68 69
                                     unsigned char *pred, unsigned char *dest,
                                     int pitch, int stride);

Ronald S. Bultje's avatar
Ronald S. Bultje committed
70
#if CONFIG_SUPERBLOCKS
71
void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, short *dq,
Ronald S. Bultje's avatar
Ronald S. Bultje committed
72
                                                   unsigned char *dst,
Yunqing Wang's avatar
Yunqing Wang committed
73 74
                                                   int stride,
                                                   unsigned short *eobs,
Ronald S. Bultje's avatar
Ronald S. Bultje committed
75
                                                   short *dc, MACROBLOCKD *xd);
76 77 78

void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, short *dq,
                                                   unsigned char *dst,
79 80
                                                   int stride,
                                                   unsigned short *eobs,
81 82
                                                   short *dc, MACROBLOCKD *xd);

83
void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, short *dq,
Ronald S. Bultje's avatar
Ronald S. Bultje committed
84 85
                                                 unsigned char *dstu,
                                                 unsigned char *dstv,
Yunqing Wang's avatar
Yunqing Wang committed
86 87
                                                 int stride,
                                                 unsigned short *eobs,
Ronald S. Bultje's avatar
Ronald S. Bultje committed
88
                                                 MACROBLOCKD *xd);
89 90 91 92

void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, short *dq,
                                                 unsigned char *dstu,
                                                 unsigned char *dstv,
93 94
                                                 int stride,
                                                 unsigned short *eobs,
95
                                                 MACROBLOCKD *xd);
Ronald S. Bultje's avatar
Ronald S. Bultje committed
96
#endif
Christian Duvivier's avatar
Christian Duvivier committed
97

John Koleszar's avatar
John Koleszar committed
98
#endif