vpx_codec_err_t vp9_extrc_init(EXT_RATECTRL *ext_ratectrl) {
if (ext_ratectrl == NULL) {
- return VPX_CODEC_ERROR;
+ return VPX_CODEC_INVALID_PARAM;
}
vp9_zero(*ext_ratectrl);
return VPX_CODEC_OK;
vpx_rc_status_t rc_status;
vpx_rc_firstpass_stats_t *rc_firstpass_stats;
if (ext_ratectrl == NULL) {
- return VPX_CODEC_ERROR;
+ return VPX_CODEC_INVALID_PARAM;
}
vp9_extrc_delete(ext_ratectrl);
ext_ratectrl->funcs = funcs;
vpx_codec_err_t vp9_extrc_delete(EXT_RATECTRL *ext_ratectrl) {
if (ext_ratectrl == NULL) {
- return VPX_CODEC_ERROR;
+ return VPX_CODEC_INVALID_PARAM;
}
if (ext_ratectrl->ready) {
vpx_rc_status_t rc_status =
vpx_codec_err_t vp9_extrc_send_firstpass_stats(
EXT_RATECTRL *ext_ratectrl, const FIRST_PASS_INFO *first_pass_info) {
if (ext_ratectrl == NULL) {
- return VPX_CODEC_ERROR;
+ return VPX_CODEC_INVALID_PARAM;
}
if (ext_ratectrl->ready) {
vpx_rc_status_t rc_status;
RefCntBuffer *ref_frame_bufs[MAX_INTER_REF_FRAMES], int ref_frame_flags,
vpx_rc_encodeframe_decision_t *encode_frame_decision) {
if (ext_ratectrl == NULL) {
- return VPX_CODEC_ERROR;
+ return VPX_CODEC_INVALID_PARAM;
}
if (ext_ratectrl->ready) {
vpx_rc_status_t rc_status;
const YV12_BUFFER_CONFIG *coded_frame, uint32_t bit_depth,
uint32_t input_bit_depth) {
if (ext_ratectrl == NULL) {
- return VPX_CODEC_ERROR;
+ return VPX_CODEC_INVALID_PARAM;
}
if (ext_ratectrl->ready) {
PSNR_STATS psnr;