Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: source/libvpx/vp9/decoder/vp9_dequantize.h

Issue 11974002: libvpx: Pull from upstream (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_decodframe.c ('k') | source/libvpx/vp9/decoder/vp9_dequantize.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 11
12 #ifndef VP9_DECODER_VP9_DEQUANTIZE_H_ 12 #ifndef VP9_DECODER_VP9_DEQUANTIZE_H_
13 #define VP9_DECODER_VP9_DEQUANTIZE_H_ 13 #define VP9_DECODER_VP9_DEQUANTIZE_H_
14 #include "vp9/common/vp9_blockd.h" 14 #include "vp9/common/vp9_blockd.h"
15 15
16 #if CONFIG_LOSSLESS 16 #if CONFIG_LOSSLESS
17 extern void vp9_dequant_idct_add_lossless_c(short *input, const short *dq, 17 extern void vp9_dequant_idct_add_lossless_c(int16_t *input, const int16_t *dq,
18 unsigned char *pred, 18 unsigned char *pred,
19 unsigned char *output, 19 unsigned char *output,
20 int pitch, int stride); 20 int pitch, int stride);
21 extern void vp9_dequant_dc_idct_add_lossless_c(short *input, const short *dq, 21 extern void vp9_dequant_dc_idct_add_lossless_c(int16_t *input, const int16_t *dq ,
22 unsigned char *pred, 22 unsigned char *pred,
23 unsigned char *output, 23 unsigned char *output,
24 int pitch, int stride, int dc); 24 int pitch, int stride, int dc);
25 extern void vp9_dequant_dc_idct_add_y_block_lossless_c(short *q, 25 extern void vp9_dequant_dc_idct_add_y_block_lossless_c(int16_t *q,
26 const short *dq, 26 const int16_t *dq,
27 unsigned char *pre, 27 unsigned char *pre,
28 unsigned char *dst, 28 unsigned char *dst,
29 int stride, 29 int stride,
30 unsigned short *eobs, 30 uint16_t *eobs,
31 const short *dc); 31 const int16_t *dc);
32 extern void vp9_dequant_idct_add_y_block_lossless_c(short *q, const short *dq, 32 extern void vp9_dequant_idct_add_y_block_lossless_c(int16_t *q, const int16_t *d q,
33 unsigned char *pre, 33 unsigned char *pre,
34 unsigned char *dst, 34 unsigned char *dst,
35 int stride, 35 int stride,
36 unsigned short *eobs); 36 uint16_t *eobs);
37 extern void vp9_dequant_idct_add_uv_block_lossless_c(short *q, const short *dq, 37 extern void vp9_dequant_idct_add_uv_block_lossless_c(int16_t *q, const int16_t * dq,
38 unsigned char *pre, 38 unsigned char *pre,
39 unsigned char *dst_u, 39 unsigned char *dst_u,
40 unsigned char *dst_v, 40 unsigned char *dst_v,
41 int stride, 41 int stride,
42 unsigned short *eobs); 42 uint16_t *eobs);
43 #endif 43 #endif
44 44
45 typedef void (*vp9_dequant_idct_add_fn_t)(short *input, const short *dq, 45 typedef void (*vp9_dequant_idct_add_fn_t)(int16_t *input, const int16_t *dq,
46 unsigned char *pred, unsigned char *output, int pitch, int stride); 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, 47 typedef void(*vp9_dequant_dc_idct_add_fn_t)(int16_t *input, const int16_t *dq,
48 unsigned char *pred, unsigned char *output, int pitch, int stride, int dc); 48 unsigned char *pred, unsigned char *output, int pitch, int stride, int dc);
49 49
50 typedef void(*vp9_dequant_dc_idct_add_y_block_fn_t)(short *q, const short *dq, 50 typedef void(*vp9_dequant_dc_idct_add_y_block_fn_t)(int16_t *q, const int16_t *d q,
51 unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs, 51 unsigned char *pre, unsigned char *dst, int stride, uint16_t *eobs,
52 const short *dc); 52 const int16_t *dc);
53 typedef void(*vp9_dequant_idct_add_y_block_fn_t)(short *q, const short *dq, 53 typedef void(*vp9_dequant_idct_add_y_block_fn_t)(int16_t *q, const int16_t *dq,
54 unsigned char *pre, unsigned char *dst, int stride, unsigned short *eobs); 54 unsigned char *pre, unsigned char *dst, int stride, uint16_t *eobs);
55 typedef void(*vp9_dequant_idct_add_uv_block_fn_t)(short *q, const short *dq, 55 typedef void(*vp9_dequant_idct_add_uv_block_fn_t)(int16_t *q, const int16_t *dq,
56 unsigned char *pre, unsigned char *dst_u, unsigned char *dst_v, int stride, 56 unsigned char *pre, unsigned char *dst_u, unsigned char *dst_v, int stride,
57 unsigned short *eobs); 57 uint16_t *eobs);
58 58
59 void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, short *input, const short *dq, 59 void vp9_ht_dequant_idct_add_c(TX_TYPE tx_type, int16_t *input, const int16_t *d q,
60 unsigned char *pred, unsigned char *dest, 60 unsigned char *pred, unsigned char *dest,
61 int pitch, int stride, uint16_t eobs); 61 int pitch, int stride, uint16_t eobs);
62 62
63 void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, short *input, 63 void vp9_ht_dequant_idct_add_8x8_c(TX_TYPE tx_type, int16_t *input,
64 const short *dq, unsigned char *pred, 64 const int16_t *dq, unsigned char *pred,
65 unsigned char *dest, int pitch, int stride, 65 unsigned char *dest, int pitch, int stride,
66 uint16_t eobs); 66 uint16_t eobs);
67 67
68 void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, short *input, 68 void vp9_ht_dequant_idct_add_16x16_c(TX_TYPE tx_type, int16_t *input,
69 const short *dq, unsigned char *pred, 69 const int16_t *dq, unsigned char *pred,
70 unsigned char *dest, 70 unsigned char *dest,
71 int pitch, int stride, uint16_t eobs); 71 int pitch, int stride, uint16_t eobs);
72 72
73 #if CONFIG_SUPERBLOCKS 73 void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(int16_t *q, const int16_t *dq ,
74 void vp9_dequant_dc_idct_add_y_block_8x8_inplace_c(short *q, const short *dq,
75 unsigned char *dst, 74 unsigned char *dst,
76 int stride, 75 int stride,
77 unsigned short *eobs, 76 uint16_t *eobs,
78 const short *dc, 77 const int16_t *dc,
79 MACROBLOCKD *xd); 78 MACROBLOCKD *xd);
80 79
81 void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(short *q, const short *dq, 80 void vp9_dequant_dc_idct_add_y_block_4x4_inplace_c(int16_t *q, const int16_t *dq ,
82 unsigned char *dst, 81 unsigned char *dst,
83 int stride, 82 int stride,
84 unsigned short *eobs, 83 uint16_t *eobs,
85 const short *dc, 84 const int16_t *dc,
86 MACROBLOCKD *xd); 85 MACROBLOCKD *xd);
87 86
88 void vp9_dequant_idct_add_uv_block_8x8_inplace_c(short *q, const short *dq, 87 void vp9_dequant_idct_add_uv_block_8x8_inplace_c(int16_t *q, const int16_t *dq,
89 unsigned char *dstu, 88 unsigned char *dstu,
90 unsigned char *dstv, 89 unsigned char *dstv,
91 int stride, 90 int stride,
92 unsigned short *eobs, 91 uint16_t *eobs,
93 MACROBLOCKD *xd); 92 MACROBLOCKD *xd);
94 93
95 void vp9_dequant_idct_add_uv_block_4x4_inplace_c(short *q, const short *dq, 94 void vp9_dequant_idct_add_uv_block_4x4_inplace_c(int16_t *q, const int16_t *dq,
96 unsigned char *dstu, 95 unsigned char *dstu,
97 unsigned char *dstv, 96 unsigned char *dstv,
98 int stride, 97 int stride,
99 unsigned short *eobs, 98 uint16_t *eobs,
100 MACROBLOCKD *xd); 99 MACROBLOCKD *xd);
101 #endif
102 100
103 #endif 101 #endif
OLDNEW
« no previous file with comments | « source/libvpx/vp9/decoder/vp9_decodframe.c ('k') | source/libvpx/vp9/decoder/vp9_dequantize.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698