diff options
author | Jerome Jiang <jianj@google.com> | 2023-05-08 19:47:30 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2023-05-08 19:47:30 +0000 |
commit | f5f3a6486200a76a1e22de5554ad0377237326fb (patch) | |
tree | 40f1886dd1f762f6387f5b0e857c66d2097bfd23 /vp9/vp9_cx_iface.c | |
parent | 7ab013f8a9aad0dd14e3070349329209a243ee86 (diff) | |
parent | 745c6392f795f43138cfca164b9e54ef895f87b9 (diff) | |
download | libvpx-f5f3a6486200a76a1e22de5554ad0377237326fb.tar.gz |
Merge "Add VpxTplGopStats" into main
Diffstat (limited to 'vp9/vp9_cx_iface.c')
-rw-r--r-- | vp9/vp9_cx_iface.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vp9/vp9_cx_iface.c b/vp9/vp9_cx_iface.c index 7150f7428..62128ff28 100644 --- a/vp9/vp9_cx_iface.c +++ b/vp9/vp9_cx_iface.c @@ -1789,16 +1789,16 @@ static vpx_codec_err_t ctrl_get_svc_ref_frame_config(vpx_codec_alg_priv_t *ctx, static vpx_codec_err_t ctrl_get_tpl_stats(vpx_codec_alg_priv_t *ctx, va_list args) { VP9_COMP *const cpi = ctx->cpi; - VpxTplFrameStats *data = va_arg(args, VpxTplFrameStats *); + VpxTplGopStats *data = va_arg(args, VpxTplGopStats *); + VpxTplFrameStats *frame_stats_list = cpi->tpl_gop_stats.frame_stats_list; int i; if (data == NULL) { return VPX_CODEC_INVALID_PARAM; } - for (i = 0; i < MAX_ARF_GOP_SIZE; i++) { - data[i].frame_width = cpi->tpl_frame_stats[i].frame_width; - data[i].frame_height = cpi->tpl_frame_stats[i].frame_height; - data[i].num_blocks = cpi->tpl_frame_stats[i].num_blocks; - data[i].block_stats_list = cpi->tpl_frame_stats[i].block_stats_list; + data->size = cpi->tpl_gop_stats.size; + + for (i = 0; i < data->size; i++) { + data->frame_stats_list[i] = frame_stats_list[i]; } return VPX_CODEC_OK; |