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 | |
12 #ifndef VP9_ENCODER_VP9_ENCODEMB_H_ | 11 #ifndef VP9_ENCODER_VP9_ENCODEMB_H_ |
13 #define VP9_ENCODER_VP9_ENCODEMB_H_ | 12 #define VP9_ENCODER_VP9_ENCODEMB_H_ |
14 | 13 |
15 #include "vpx_ports/config.h" | 14 #include "./vpx_config.h" |
16 #include "vp9/encoder/vp9_block.h" | 15 #include "vp9/encoder/vp9_block.h" |
17 | 16 |
18 typedef struct { | 17 typedef struct { |
19 MB_PREDICTION_MODE mode; | 18 MB_PREDICTION_MODE mode; |
20 MV_REFERENCE_FRAME ref_frame; | 19 MV_REFERENCE_FRAME ref_frame; |
21 MV_REFERENCE_FRAME second_ref_frame; | 20 MV_REFERENCE_FRAME second_ref_frame; |
22 #if CONFIG_PRED_FILTER | |
23 int pred_filter_flag; | |
24 #endif | |
25 } MODE_DEFINITION; | 21 } MODE_DEFINITION; |
26 | 22 |
27 | 23 |
28 #include "vp9/encoder/vp9_onyx_int.h" | 24 #include "vp9/encoder/vp9_onyx_int.h" |
29 struct VP9_ENCODER_RTCD; | 25 struct VP9_ENCODER_RTCD; |
30 void vp9_encode_inter16x16(MACROBLOCK *x); | 26 void vp9_encode_inter16x16(MACROBLOCK *x); |
31 | 27 |
32 void vp9_transform_mbuv_4x4(MACROBLOCK *x); | 28 void vp9_transform_mbuv_4x4(MACROBLOCK *x); |
33 void vp9_transform_mby_4x4(MACROBLOCK *x); | 29 void vp9_transform_mby_4x4(MACROBLOCK *x); |
34 | 30 |
35 void vp9_optimize_mby_4x4(MACROBLOCK *x); | 31 void vp9_optimize_mby_4x4(MACROBLOCK *x); |
36 void vp9_optimize_mbuv_4x4(MACROBLOCK *x); | 32 void vp9_optimize_mbuv_4x4(MACROBLOCK *x); |
37 void vp9_encode_inter16x16y(MACROBLOCK *x); | 33 void vp9_encode_inter16x16y(MACROBLOCK *x); |
38 | 34 |
39 void vp9_transform_mb_8x8(MACROBLOCK *mb); | 35 void vp9_transform_mb_8x8(MACROBLOCK *mb); |
40 void vp9_transform_mby_8x8(MACROBLOCK *x); | 36 void vp9_transform_mby_8x8(MACROBLOCK *x); |
41 void vp9_transform_mbuv_8x8(MACROBLOCK *x); | 37 void vp9_transform_mbuv_8x8(MACROBLOCK *x); |
42 void vp9_build_dcblock_8x8(MACROBLOCK *b); | 38 void vp9_build_dcblock_8x8(MACROBLOCK *b); |
43 void vp9_optimize_mby_8x8(MACROBLOCK *x); | 39 void vp9_optimize_mby_8x8(MACROBLOCK *x); |
44 void vp9_optimize_mbuv_8x8(MACROBLOCK *x); | 40 void vp9_optimize_mbuv_8x8(MACROBLOCK *x); |
45 | 41 |
46 void vp9_transform_mb_16x16(MACROBLOCK *mb); | 42 void vp9_transform_mb_16x16(MACROBLOCK *mb); |
47 void vp9_transform_mby_16x16(MACROBLOCK *x); | 43 void vp9_transform_mby_16x16(MACROBLOCK *x); |
48 void vp9_optimize_mby_16x16(MACROBLOCK *x); | 44 void vp9_optimize_mby_16x16(MACROBLOCK *x); |
49 | 45 |
| 46 void vp9_transform_sby_32x32(MACROBLOCK *x); |
| 47 void vp9_transform_sbuv_16x16(MACROBLOCK *x); |
| 48 |
50 void vp9_fidct_mb(MACROBLOCK *x); | 49 void vp9_fidct_mb(MACROBLOCK *x); |
51 | 50 |
52 void vp9_subtract_4b_c(BLOCK *be, BLOCKD *bd, int pitch); | 51 void vp9_subtract_4b_c(BLOCK *be, BLOCKD *bd, int pitch); |
53 | 52 |
54 #if CONFIG_SUPERBLOCKS | 53 void vp9_subtract_mbuv_s_c(int16_t *diff, const uint8_t *usrc, |
55 void vp9_subtract_mbuv_s_c(short *diff, const unsigned char *usrc, | 54 const uint8_t *vsrc, int src_stride, |
56 const unsigned char *vsrc, int src_stride, | 55 const uint8_t *upred, |
57 const unsigned char *upred, | 56 const uint8_t *vpred, int dst_stride); |
58 const unsigned char *vpred, int dst_stride); | 57 void vp9_subtract_mby_s_c(int16_t *diff, const uint8_t *src, |
59 void vp9_subtract_mby_s_c(short *diff, const unsigned char *src, | 58 int src_stride, const uint8_t *pred, |
60 int src_stride, const unsigned char *pred, | |
61 int dst_stride); | 59 int dst_stride); |
62 #endif | 60 void vp9_subtract_sby_s_c(int16_t *diff, const uint8_t *src, int src_stride, |
| 61 const uint8_t *pred, int dst_stride); |
| 62 void vp9_subtract_sbuv_s_c(int16_t *diff, const uint8_t *usrc, |
| 63 const uint8_t *vsrc, int src_stride, |
| 64 const uint8_t *upred, |
| 65 const uint8_t *vpred, int dst_stride); |
63 | 66 |
64 #endif | 67 #endif // VP9_ENCODER_VP9_ENCODEMB_H_ |
OLD | NEW |