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_RDOPT_H_ | 11 #ifndef VP9_ENCODER_VP9_RDOPT_H_ |
12 #define VP9_ENCODER_VP9_RDOPT_H_ | 12 #define VP9_ENCODER_VP9_RDOPT_H_ |
13 | 13 |
14 #include "vp9/common/vp9_blockd.h" | 14 #include "vp9/common/vp9_blockd.h" |
15 | 15 |
16 #include "vp9/encoder/vp9_block.h" | 16 #include "vp9/encoder/vp9_block.h" |
17 #include "vp9/encoder/vp9_context_tree.h" | 17 #include "vp9/encoder/vp9_context_tree.h" |
18 | 18 |
19 #ifdef __cplusplus | 19 #ifdef __cplusplus |
20 extern "C" { | 20 extern "C" { |
21 #endif | 21 #endif |
22 | 22 |
23 struct TileInfo; | 23 struct TileInfo; |
24 struct VP9_COMP; | 24 struct VP9_COMP; |
25 struct macroblock; | 25 struct macroblock; |
| 26 struct RD_COST; |
26 | 27 |
27 void vp9_rd_pick_intra_mode_sb(struct VP9_COMP *cpi, struct macroblock *x, | 28 void vp9_rd_pick_intra_mode_sb(struct VP9_COMP *cpi, struct macroblock *x, |
28 int *r, int64_t *d, BLOCK_SIZE bsize, | 29 struct RD_COST *rd_cost, BLOCK_SIZE bsize, |
29 PICK_MODE_CONTEXT *ctx, int64_t best_rd); | 30 PICK_MODE_CONTEXT *ctx, int64_t best_rd); |
30 | 31 |
31 int64_t vp9_rd_pick_inter_mode_sb(struct VP9_COMP *cpi, struct macroblock *x, | 32 void vp9_rd_pick_inter_mode_sb(struct VP9_COMP *cpi, struct macroblock *x, |
32 const struct TileInfo *const tile, | 33 const struct TileInfo *const tile, |
33 int mi_row, int mi_col, | 34 int mi_row, int mi_col, |
34 int *returnrate, | 35 struct RD_COST *rd_cost, |
35 int64_t *returndistortion, | 36 BLOCK_SIZE bsize, PICK_MODE_CONTEXT *ctx, |
36 BLOCK_SIZE bsize, | 37 int64_t best_rd_so_far); |
37 PICK_MODE_CONTEXT *ctx, | |
38 int64_t best_rd_so_far); | |
39 | 38 |
40 int64_t vp9_rd_pick_inter_mode_sb_seg_skip(struct VP9_COMP *cpi, | 39 void vp9_rd_pick_inter_mode_sb_seg_skip(struct VP9_COMP *cpi, |
41 struct macroblock *x, | 40 struct macroblock *x, |
42 int *returnrate, | 41 struct RD_COST *rd_cost, |
43 int64_t *returndistortion, | 42 BLOCK_SIZE bsize, |
44 BLOCK_SIZE bsize, | 43 PICK_MODE_CONTEXT *ctx, |
45 PICK_MODE_CONTEXT *ctx, | 44 int64_t best_rd_so_far); |
46 int64_t best_rd_so_far); | |
47 | 45 |
48 int64_t vp9_rd_pick_inter_mode_sub8x8(struct VP9_COMP *cpi, | 46 void vp9_rd_pick_inter_mode_sub8x8(struct VP9_COMP *cpi, |
49 struct macroblock *x, | 47 struct macroblock *x, |
50 const struct TileInfo *const tile, | 48 const struct TileInfo *const tile, |
51 int mi_row, int mi_col, | 49 int mi_row, int mi_col, |
52 int *returnrate, | 50 struct RD_COST *rd_cost, |
53 int64_t *returndistortion, | 51 BLOCK_SIZE bsize, PICK_MODE_CONTEXT *ctx, |
54 BLOCK_SIZE bsize, | 52 int64_t best_rd_so_far); |
55 PICK_MODE_CONTEXT *ctx, | |
56 int64_t best_rd_so_far); | |
57 | |
58 #ifdef __cplusplus | 53 #ifdef __cplusplus |
59 } // extern "C" | 54 } // extern "C" |
60 #endif | 55 #endif |
61 | 56 |
62 #endif // VP9_ENCODER_VP9_RDOPT_H_ | 57 #endif // VP9_ENCODER_VP9_RDOPT_H_ |
OLD | NEW |