aq_complexity.h 1.16 KB
Newer Older
Jingning Han's avatar
Jingning Han committed
1
/*
2
 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Jingning Han's avatar
Jingning Han committed
3
 *
4 5 6 7 8 9
 * This source code is subject to the terms of the BSD 2 Clause License and
 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
 * was not distributed with this source code in the LICENSE file, you can
 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
 * Media Patent License 1.0 was not distributed with this source code in the
 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Jingning Han's avatar
Jingning Han committed
10 11
 */

12 13
#ifndef AV1_ENCODER_AQ_COMPLEXITY_H_
#define AV1_ENCODER_AQ_COMPLEXITY_H_
Jingning Han's avatar
Jingning Han committed
14 15 16 17 18

#ifdef __cplusplus
extern "C" {
#endif

19
#include "av1/common/enums.h"
Jingning Han's avatar
Jingning Han committed
20

21
struct AV1_COMP;
Jingning Han's avatar
Jingning Han committed
22 23 24
struct macroblock;

// Select a segment for the current Block.
25
void av1_caq_select_segment(const struct AV1_COMP *cpi, struct macroblock *,
26 27
                            BLOCK_SIZE bs, int mi_row, int mi_col,
                            int projected_rate);
Jingning Han's avatar
Jingning Han committed
28 29 30

// This function sets up a set of segments with delta Q values around
// the baseline frame quantizer.
31
void av1_setup_in_frame_q_adj(struct AV1_COMP *cpi);
Jingning Han's avatar
Jingning Han committed
32 33 34 35 36

#ifdef __cplusplus
}  // extern "C"
#endif

37
#endif  // AV1_ENCODER_AQ_COMPLEXITY_H_