| 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 | 11 |
| 12 #ifndef VP9_ENCODER_VP9_ENCODEFRAME_H_ | 12 #ifndef VP9_ENCODER_VP9_ENCODEFRAME_H_ |
| 13 #define VP9_ENCODER_VP9_ENCODEFRAME_H_ | 13 #define VP9_ENCODER_VP9_ENCODEFRAME_H_ |
| 14 | 14 |
| 15 #ifdef __cplusplus | 15 #ifdef __cplusplus |
| 16 extern "C" { | 16 extern "C" { |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 struct macroblock; | 19 struct macroblock; |
| 20 struct yv12_buffer_config; | 20 struct yv12_buffer_config; |
| 21 struct VP9_COMP; | 21 struct VP9_COMP; |
| 22 struct ThreadData; |
| 22 | 23 |
| 23 // Constants used in SOURCE_VAR_BASED_PARTITION | 24 // Constants used in SOURCE_VAR_BASED_PARTITION |
| 24 #define VAR_HIST_MAX_BG_VAR 1000 | 25 #define VAR_HIST_MAX_BG_VAR 1000 |
| 25 #define VAR_HIST_FACTOR 10 | 26 #define VAR_HIST_FACTOR 10 |
| 26 #define VAR_HIST_BINS (VAR_HIST_MAX_BG_VAR / VAR_HIST_FACTOR + 1) | 27 #define VAR_HIST_BINS (VAR_HIST_MAX_BG_VAR / VAR_HIST_FACTOR + 1) |
| 27 #define VAR_HIST_LARGE_CUT_OFF 75 | 28 #define VAR_HIST_LARGE_CUT_OFF 75 |
| 28 #define VAR_HIST_SMALL_CUT_OFF 45 | 29 #define VAR_HIST_SMALL_CUT_OFF 45 |
| 29 | 30 |
| 30 void vp9_setup_src_planes(struct macroblock *x, | 31 void vp9_setup_src_planes(struct macroblock *x, |
| 31 const struct yv12_buffer_config *src, | 32 const struct yv12_buffer_config *src, |
| 32 int mi_row, int mi_col); | 33 int mi_row, int mi_col); |
| 33 | 34 |
| 34 void vp9_encode_frame(struct VP9_COMP *cpi); | 35 void vp9_encode_frame(struct VP9_COMP *cpi); |
| 35 | 36 |
| 37 void vp9_init_tile_data(struct VP9_COMP *cpi); |
| 38 void vp9_encode_tile(struct VP9_COMP *cpi, struct ThreadData *td, |
| 39 int tile_row, int tile_col); |
| 40 |
| 36 #ifdef __cplusplus | 41 #ifdef __cplusplus |
| 37 } // extern "C" | 42 } // extern "C" |
| 38 #endif | 43 #endif |
| 39 | 44 |
| 40 #endif // VP9_ENCODER_VP9_ENCODEFRAME_H_ | 45 #endif // VP9_ENCODER_VP9_ENCODEFRAME_H_ |
| OLD | NEW |