1 /* 2 * Copyright (c) 2016, Alliance for Open Media. All rights reserved 3 * 4 * This source code is subject to the terms of the BSD 2 Clause License and 5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License 6 * was not distributed with this source code in the LICENSE file, you can 7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open 8 * Media Patent License 1.0 was not distributed with this source code in the 9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent. 10 */ 11 12 #ifndef AOM_AV1_ENCODER_ENCODEFRAME_H_ 13 #define AOM_AV1_ENCODER_ENCODEFRAME_H_ 14 15 #include "aom/aom_integer.h" 16 #include "av1/common/blockd.h" 17 #include "av1/common/enums.h" 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 #define DELTA_Q_PERCEPTUAL_MODULATION \ 24 1 // 0: variance based 25 // 1: wavelet AC energy based 26 27 struct macroblock; 28 struct yv12_buffer_config; 29 struct AV1_COMP; 30 struct ThreadData; 31 32 void av1_setup_src_planes(struct macroblock *x, 33 const struct yv12_buffer_config *src, int mi_row, 34 int mi_col, const int num_planes, BLOCK_SIZE bsize); 35 36 void av1_encode_frame(struct AV1_COMP *cpi); 37 38 void av1_alloc_tile_data(struct AV1_COMP *cpi); 39 void av1_init_tile_data(struct AV1_COMP *cpi); 40 void av1_encode_tile(struct AV1_COMP *cpi, struct ThreadData *td, int tile_row, 41 int tile_col); 42 void av1_encode_sb_row(struct AV1_COMP *cpi, struct ThreadData *td, 43 int tile_row, int tile_col, int mi_row); 44 45 #ifdef __cplusplus 46 } // extern "C" 47 #endif 48 49 #endif // AOM_AV1_ENCODER_ENCODEFRAME_H_ 50