• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 
12 #ifndef VP9_ENCODER_VP9_ENCODEFRAME_H_
13 #define VP9_ENCODER_VP9_ENCODEFRAME_H_
14 
15 #include "vpx/vpx_integer.h"
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 struct macroblock;
22 struct yv12_buffer_config;
23 struct VP9_COMP;
24 struct ThreadData;
25 
26 // Constants used in SOURCE_VAR_BASED_PARTITION
27 #define VAR_HIST_MAX_BG_VAR 1000
28 #define VAR_HIST_FACTOR 10
29 #define VAR_HIST_BINS (VAR_HIST_MAX_BG_VAR / VAR_HIST_FACTOR + 1)
30 #define VAR_HIST_LARGE_CUT_OFF 75
31 #define VAR_HIST_SMALL_CUT_OFF 45
32 
33 void vp9_setup_src_planes(struct macroblock *x,
34                           const struct yv12_buffer_config *src,
35                           int mi_row, int mi_col);
36 
37 void vp9_encode_frame(struct VP9_COMP *cpi);
38 
39 void vp9_init_tile_data(struct VP9_COMP *cpi);
40 void vp9_encode_tile(struct VP9_COMP *cpi, struct ThreadData *td,
41                      int tile_row, int tile_col);
42 
43 void vp9_set_variance_partition_thresholds(struct VP9_COMP *cpi, int q);
44 
45 #ifdef __cplusplus
46 }  // extern "C"
47 #endif
48 
49 #endif  // VP9_ENCODER_VP9_ENCODEFRAME_H_
50