OLD | NEW |
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 #ifndef VP9_ENCODER_VP9_ENCODEMB_H_ | 11 #ifndef VP9_ENCODER_VP9_ENCODEMB_H_ |
12 #define VP9_ENCODER_VP9_ENCODEMB_H_ | 12 #define VP9_ENCODER_VP9_ENCODEMB_H_ |
13 | 13 |
14 #include "./vpx_config.h" | 14 #include "./vpx_config.h" |
15 #include "vp9/encoder/vp9_block.h" | 15 #include "vp9/encoder/vp9_block.h" |
16 | 16 |
17 #ifdef __cplusplus | 17 #ifdef __cplusplus |
18 extern "C" { | 18 extern "C" { |
19 #endif | 19 #endif |
20 | 20 |
| 21 struct encode_b_args { |
| 22 MACROBLOCK *x; |
| 23 struct optimize_ctx *ctx; |
| 24 int8_t *skip; |
| 25 }; |
21 void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize); | 26 void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize); |
22 void vp9_encode_sby_pass1(MACROBLOCK *x, BLOCK_SIZE bsize); | 27 void vp9_encode_sby_pass1(MACROBLOCK *x, BLOCK_SIZE bsize); |
23 void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, | 28 void vp9_xform_quant_fp(MACROBLOCK *x, int plane, int block, |
24 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); | 29 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); |
25 void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block, | 30 void vp9_xform_quant_dc(MACROBLOCK *x, int plane, int block, |
26 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); | 31 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); |
27 void vp9_xform_quant(MACROBLOCK *x, int plane, int block, | 32 void vp9_xform_quant(MACROBLOCK *x, int plane, int block, |
28 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); | 33 BLOCK_SIZE plane_bsize, TX_SIZE tx_size); |
29 | 34 |
30 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane); | 35 void vp9_subtract_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane); |
31 | 36 |
32 void vp9_encode_block_intra(MACROBLOCK *x, int plane, int block, | 37 void vp9_encode_block_intra(int plane, int block, BLOCK_SIZE plane_bsize, |
33 BLOCK_SIZE plane_bsize, TX_SIZE tx_size, | 38 TX_SIZE tx_size, void *arg); |
34 int8_t *skip); | |
35 | 39 |
36 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane); | 40 void vp9_encode_intra_block_plane(MACROBLOCK *x, BLOCK_SIZE bsize, int plane); |
37 | 41 |
38 #ifdef __cplusplus | 42 #ifdef __cplusplus |
39 } // extern "C" | 43 } // extern "C" |
40 #endif | 44 #endif |
41 | 45 |
42 #endif // VP9_ENCODER_VP9_ENCODEMB_H_ | 46 #endif // VP9_ENCODER_VP9_ENCODEMB_H_ |
OLD | NEW |