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

Side by Side Diff: source/libvpx/vp9/encoder/vp9_quantize.h

Issue 996503002: libvpx: Pull from upstream (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_pickmode.c ('k') | source/libvpx/vp9/encoder/vp9_quantize.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
(...skipping 19 matching lines...) Expand all
30 DECLARE_ALIGNED(16, int16_t, uv_quant_fp[QINDEX_RANGE][8]); 30 DECLARE_ALIGNED(16, int16_t, uv_quant_fp[QINDEX_RANGE][8]);
31 DECLARE_ALIGNED(16, int16_t, y_round_fp[QINDEX_RANGE][8]); 31 DECLARE_ALIGNED(16, int16_t, y_round_fp[QINDEX_RANGE][8]);
32 DECLARE_ALIGNED(16, int16_t, uv_round_fp[QINDEX_RANGE][8]); 32 DECLARE_ALIGNED(16, int16_t, uv_round_fp[QINDEX_RANGE][8]);
33 33
34 DECLARE_ALIGNED(16, int16_t, uv_quant[QINDEX_RANGE][8]); 34 DECLARE_ALIGNED(16, int16_t, uv_quant[QINDEX_RANGE][8]);
35 DECLARE_ALIGNED(16, int16_t, uv_quant_shift[QINDEX_RANGE][8]); 35 DECLARE_ALIGNED(16, int16_t, uv_quant_shift[QINDEX_RANGE][8]);
36 DECLARE_ALIGNED(16, int16_t, uv_zbin[QINDEX_RANGE][8]); 36 DECLARE_ALIGNED(16, int16_t, uv_zbin[QINDEX_RANGE][8]);
37 DECLARE_ALIGNED(16, int16_t, uv_round[QINDEX_RANGE][8]); 37 DECLARE_ALIGNED(16, int16_t, uv_round[QINDEX_RANGE][8]);
38 } QUANTS; 38 } QUANTS;
39 39
40 void vp9_quantize_dc(const tran_low_t *coeff_ptr, int skip_block, 40 void vp9_quantize_dc(const tran_low_t *coeff_ptr,
41 int n_coeffs, int skip_block,
41 const int16_t *round_ptr, const int16_t quant_ptr, 42 const int16_t *round_ptr, const int16_t quant_ptr,
42 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, 43 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
43 const int16_t dequant_ptr, uint16_t *eob_ptr); 44 const int16_t dequant_ptr, uint16_t *eob_ptr);
44 void vp9_quantize_dc_32x32(const tran_low_t *coeff_ptr, int skip_block, 45 void vp9_quantize_dc_32x32(const tran_low_t *coeff_ptr, int skip_block,
45 const int16_t *round_ptr, const int16_t quant_ptr, 46 const int16_t *round_ptr, const int16_t quant_ptr,
46 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, 47 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
47 const int16_t dequant_ptr, uint16_t *eob_ptr); 48 const int16_t dequant_ptr, uint16_t *eob_ptr);
48 void vp9_regular_quantize_b_4x4(MACROBLOCK *x, int plane, int block, 49 void vp9_regular_quantize_b_4x4(MACROBLOCK *x, int plane, int block,
49 const int16_t *scan, const int16_t *iscan); 50 const int16_t *scan, const int16_t *iscan);
50 51
51 #if CONFIG_VP9_HIGHBITDEPTH 52 #if CONFIG_VP9_HIGHBITDEPTH
52 void vp9_highbd_quantize_dc(const tran_low_t *coeff_ptr, int skip_block, 53 void vp9_highbd_quantize_dc(const tran_low_t *coeff_ptr,
54 int n_coeffs, int skip_block,
53 const int16_t *round_ptr, const int16_t quant_ptr, 55 const int16_t *round_ptr, const int16_t quant_ptr,
54 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr, 56 tran_low_t *qcoeff_ptr, tran_low_t *dqcoeff_ptr,
55 const int16_t dequant_ptr, uint16_t *eob_ptr); 57 const int16_t dequant_ptr, uint16_t *eob_ptr);
56 void vp9_highbd_quantize_dc_32x32(const tran_low_t *coeff_ptr, 58 void vp9_highbd_quantize_dc_32x32(const tran_low_t *coeff_ptr,
57 int skip_block, 59 int skip_block,
58 const int16_t *round_ptr, 60 const int16_t *round_ptr,
59 const int16_t quant_ptr, 61 const int16_t quant_ptr,
60 tran_low_t *qcoeff_ptr, 62 tran_low_t *qcoeff_ptr,
61 tran_low_t *dqcoeff_ptr, 63 tran_low_t *dqcoeff_ptr,
62 const int16_t dequant_ptr, 64 const int16_t dequant_ptr,
(...skipping 13 matching lines...) Expand all
76 78
77 int vp9_quantizer_to_qindex(int quantizer); 79 int vp9_quantizer_to_qindex(int quantizer);
78 80
79 int vp9_qindex_to_quantizer(int qindex); 81 int vp9_qindex_to_quantizer(int qindex);
80 82
81 #ifdef __cplusplus 83 #ifdef __cplusplus
82 } // extern "C" 84 } // extern "C"
83 #endif 85 #endif
84 86
85 #endif // VP9_ENCODER_VP9_QUANTIZE_H_ 87 #endif // VP9_ENCODER_VP9_QUANTIZE_H_
OLDNEW
« no previous file with comments | « source/libvpx/vp9/encoder/vp9_pickmode.c ('k') | source/libvpx/vp9/encoder/vp9_quantize.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698