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 |
(...skipping 10 matching lines...) Expand all Loading... |
21 MV_REFERENCE_FRAME ref_frame; | 21 MV_REFERENCE_FRAME ref_frame; |
22 MV_REFERENCE_FRAME second_ref_frame; | 22 MV_REFERENCE_FRAME second_ref_frame; |
23 } MODE_DEFINITION; | 23 } MODE_DEFINITION; |
24 | 24 |
25 struct optimize_ctx { | 25 struct optimize_ctx { |
26 ENTROPY_CONTEXT ta[MAX_MB_PLANE][16]; | 26 ENTROPY_CONTEXT ta[MAX_MB_PLANE][16]; |
27 ENTROPY_CONTEXT tl[MAX_MB_PLANE][16]; | 27 ENTROPY_CONTEXT tl[MAX_MB_PLANE][16]; |
28 }; | 28 }; |
29 | 29 |
30 struct encode_b_args { | 30 struct encode_b_args { |
31 VP9_COMMON *cm; | |
32 MACROBLOCK *x; | 31 MACROBLOCK *x; |
33 struct optimize_ctx *ctx; | 32 struct optimize_ctx *ctx; |
34 }; | 33 }; |
35 | 34 |
36 void vp9_optimize_init(MACROBLOCKD *xd, BLOCK_SIZE_TYPE bsize, | 35 void vp9_encode_sb(MACROBLOCK *x, BLOCK_SIZE bsize); |
37 struct optimize_ctx *ctx); | 36 void vp9_encode_sby(MACROBLOCK *x, BLOCK_SIZE bsize); |
38 void vp9_optimize_b(int plane, int block, BLOCK_SIZE_TYPE bsize, | |
39 int ss_txfrm_size, VP9_COMMON *cm, MACROBLOCK *x, | |
40 struct optimize_ctx *ctx); | |
41 void vp9_optimize_sby(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | |
42 void vp9_optimize_sbuv(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | |
43 | 37 |
44 void vp9_encode_sb(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | 38 void vp9_xform_quant(int plane, int block, BLOCK_SIZE plane_bsize, |
45 void vp9_encode_sby(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | 39 TX_SIZE tx_size, void *arg); |
46 void vp9_encode_sbuv(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | |
47 | 40 |
48 void xform_quant(int plane, int block, BLOCK_SIZE_TYPE bsize, | 41 void vp9_subtract_sby(MACROBLOCK *x, BLOCK_SIZE bsize); |
49 int ss_txfrm_size, void *arg); | 42 void vp9_subtract_sbuv(MACROBLOCK *x, BLOCK_SIZE bsize); |
50 void vp9_xform_quant_sby(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | 43 void vp9_subtract_sb(MACROBLOCK *x, BLOCK_SIZE bsize); |
51 void vp9_xform_quant_sbuv(VP9_COMMON *cm, MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | |
52 | 44 |
53 void vp9_subtract_sby(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | 45 void vp9_encode_intra_block_y(MACROBLOCK *x, BLOCK_SIZE bsize); |
54 void vp9_subtract_sbuv(MACROBLOCK *x, BLOCK_SIZE_TYPE bsize); | 46 void vp9_encode_intra_block_uv(MACROBLOCK *x, BLOCK_SIZE bsize); |
55 void vp9_subtract_sb(MACROBLOCK *xd, BLOCK_SIZE_TYPE bsize); | 47 |
56 | 48 |
57 #endif // VP9_ENCODER_VP9_ENCODEMB_H_ | 49 #endif // VP9_ENCODER_VP9_ENCODEMB_H_ |
OLD | NEW |