1 /*
2  *  Copyright (c) 2014 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 #ifndef VPX_VP9_ENCODER_VP9_AQ_COMPLEXITY_H_
12 #define VPX_VP9_ENCODER_VP9_AQ_COMPLEXITY_H_
13 
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17 
18 #include "vp9/common/vp9_enums.h"
19 
20 struct VP9_COMP;
21 struct macroblock;
22 
23 // Select a segment for the current Block.
24 void vp9_caq_select_segment(struct VP9_COMP *cpi, struct macroblock *,
25                             BLOCK_SIZE bs, int mi_row, int mi_col,
26                             int projected_rate);
27 
28 // This function sets up a set of segments with delta Q values around
29 // the baseline frame quantizer.
30 void vp9_setup_in_frame_q_adj(struct VP9_COMP *cpi);
31 
32 #ifdef __cplusplus
33 }  // extern "C"
34 #endif
35 
36 #endif  // VPX_VP9_ENCODER_VP9_AQ_COMPLEXITY_H_
37