Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 1 | /* |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 3 | * |
Yaowu Xu | 2ab7ff0 | 2016-09-02 12:04:54 -0700 | [diff] [blame] | 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. |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 10 | */ |
| 11 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 12 | #ifndef AOM_AV1_ENCODER_ENCODEFRAME_H_ |
| 13 | #define AOM_AV1_ENCODER_ENCODEFRAME_H_ |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 14 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 15 | #include "aom/aom_integer.h" |
Angie Chiang | b14b73f | 2017-04-13 16:26:00 -0700 | [diff] [blame] | 16 | #include "av1/common/blockd.h" |
| 17 | #include "av1/common/enums.h" |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 18 | |
Remya | 1a090d5 | 2020-05-04 11:52:10 +0530 | [diff] [blame] | 19 | #include "av1/encoder/global_motion.h" |
| 20 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 21 | #ifdef __cplusplus |
| 22 | extern "C" { |
| 23 | #endif |
| 24 | |
Debargha Mukherjee | 4fef7a5 | 2019-04-04 01:02:06 -0700 | [diff] [blame] | 25 | #define DELTA_Q_PERCEPTUAL_MODULATION \ |
| 26 | 1 // 0: variance based |
| 27 | // 1: wavelet AC energy based |
Yue Chen | 2dbdbc9 | 2018-05-24 09:54:01 -0700 | [diff] [blame] | 28 | |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 29 | struct macroblock; |
| 30 | struct yv12_buffer_config; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 31 | struct AV1_COMP; |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 32 | struct ThreadData; |
| 33 | |
Marco Paniconi | 60e4e24 | 2022-07-24 23:32:02 -0700 | [diff] [blame] | 34 | void av1_init_rtc_counters(struct macroblock *const x); |
| 35 | |
| 36 | void av1_accumulate_rtc_counters(struct AV1_COMP *cpi, |
| 37 | const struct macroblock *const x); |
| 38 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 39 | void av1_setup_src_planes(struct macroblock *x, |
| 40 | const struct yv12_buffer_config *src, int mi_row, |
Ravi Chaudhary | 5396fc8 | 2018-10-24 12:47:25 +0530 | [diff] [blame] | 41 | int mi_col, const int num_planes, BLOCK_SIZE bsize); |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 42 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 43 | void av1_encode_frame(struct AV1_COMP *cpi); |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 44 | |
Ravi Chaudhary | a497eb4 | 2018-09-07 12:38:08 +0530 | [diff] [blame] | 45 | void av1_alloc_tile_data(struct AV1_COMP *cpi); |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 46 | void av1_init_tile_data(struct AV1_COMP *cpi); |
| 47 | void av1_encode_tile(struct AV1_COMP *cpi, struct ThreadData *td, int tile_row, |
| 48 | int tile_col); |
Ravi Chaudhary | a497eb4 | 2018-09-07 12:38:08 +0530 | [diff] [blame] | 49 | void av1_encode_sb_row(struct AV1_COMP *cpi, struct ThreadData *td, |
| 50 | int tile_row, int tile_col, int mi_row); |
Yaowu Xu | c27fc14 | 2016-08-22 16:08:15 -0700 | [diff] [blame] | 51 | #ifdef __cplusplus |
| 52 | } // extern "C" |
| 53 | #endif |
| 54 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 55 | #endif // AOM_AV1_ENCODER_ENCODEFRAME_H_ |