ref: e6208a95073f12f035fb554c1bd3e6a32a92f877
dir: /vp9/encoder/vp9_ext_ratectrl.h/
/* * Copyright (c) 2020 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef VPX_VP9_ENCODER_VP9_EXT_RATECTRL_H_ #define VPX_VP9_ENCODER_VP9_EXT_RATECTRL_H_ #include "vpx/vpx_ext_ratectrl.h" #include "vp9/encoder/vp9_firstpass.h" typedef struct EXT_RATECTRL { int ready; vpx_rc_model_t model; vpx_rc_funcs_t funcs; vpx_rc_config_t ratectrl_config; vpx_rc_firstpass_stats_t rc_firstpass_stats; } EXT_RATECTRL; void vp9_extrc_init(EXT_RATECTRL *ext_ratectrl); void vp9_extrc_create(vpx_rc_funcs_t funcs, vpx_rc_config_t ratectrl_config, EXT_RATECTRL *ext_ratectrl); void vp9_extrc_delete(EXT_RATECTRL *ext_ratectrl); void vp9_extrc_send_firstpass_stats(const FIRST_PASS_INFO *first_pass_info, EXT_RATECTRL *ext_ratectrl); #endif // VPX_VP9_ENCODER_VP9_EXT_RATECTRL_H_