vp9_dequantize.h 5.54 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 VP9_DECODER_VP9_DEQUANTIZE_H_
#define VP9_DECODER_VP9_DEQUANTIZE_H_
14
#include "vp9/common/vp9_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, const 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, const 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
26
extern void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q,
                                                       const short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
27
28
                                                       unsigned char *pre,
                                                       unsigned char *dst,
Yunqing Wang's avatar
Yunqing Wang committed
29
30
                                                       int stride,
                                                       unsigned short *eobs,
31
32
                                                       const short *dc);
extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, const short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
33
34
                                                    unsigned char *pre,
                                                    unsigned char *dst,
Yunqing Wang's avatar
Yunqing Wang committed
35
36
                                                    int stride,
                                                    unsigned short *eobs);
37
extern void vp9_dequant_idct_add_uv_block_lossless_c(short *q, const short *dq,
Scott LaVarnway's avatar
Scott LaVarnway committed
38
39
40
                                                     unsigned char *pre,
                                                     unsigned char *dst_u,
                                                     unsigned char *dst_v,
Yunqing Wang's avatar
Yunqing Wang committed
41
42
                                                     int stride,
                                                     unsigned short *eobs);
Scott LaVarnway's avatar
Scott LaVarnway committed
43
44
#endif

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

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

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

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

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

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

80
void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, const short *dq,
81
                                                   unsigned char *dst,
82
83
                                                   int stride,
                                                   unsigned short *eobs,
84
85
                                                   const short *dc,
                                                   MACROBLOCKD *xd);
86

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

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

John Koleszar's avatar
John Koleszar committed
102
#endif