1 /* 2 * Copyright (c) 2019, 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_TUNE_VMAF_H_ 13 #define AOM_AV1_ENCODER_TUNE_VMAF_H_ 14 15 #include "aom_scale/yv12config.h" 16 #include "av1/encoder/encoder.h" 17 18 void av1_vmaf_blk_preprocessing(AV1_COMP *cpi, YV12_BUFFER_CONFIG *source); 19 20 void av1_vmaf_frame_preprocessing(AV1_COMP *cpi, YV12_BUFFER_CONFIG *source); 21 22 void av1_set_mb_vmaf_rdmult_scaling(AV1_COMP *cpi); 23 24 void av1_set_vmaf_rdmult(const AV1_COMP *cpi, MACROBLOCK *x, BLOCK_SIZE bsize, 25 int mi_row, int mi_col, int *rdmult); 26 27 int av1_get_vmaf_base_qindex(const AV1_COMP *cpi, int current_qindex); 28 29 void av1_update_vmaf_curve(AV1_COMP *cpi, YV12_BUFFER_CONFIG *source, 30 YV12_BUFFER_CONFIG *recon); 31 32 #endif // AOM_AV1_ENCODER_TUNE_VMAF_H_ 33