diff options
author | Yunqing Wang <yunqingwang@google.com> | 2016-07-01 17:58:02 -0700 |
---|---|---|
committer | Yunqing Wang <yunqingwang@google.com> | 2016-07-01 17:58:02 -0700 |
commit | 0a075cb39ca839d84d4806930f031342c4d8553d (patch) | |
tree | f92fd48b6124b3d4b14b1d09b973d5b72cfbd771 /vp9/vp9_dx_iface.c | |
parent | f5a15f270a99a03e1c92d8b002390a4d96b09014 (diff) | |
download | libvpx-0a075cb39ca839d84d4806930f031342c4d8553d.tar.gz |
Make set_reference control API work in VP9
Moved the API patch from NextGenv2. An example was included.
To try it, for example, run the following command:
$ examples/vpx_cx_set_ref vp9 352 288 in.yuv out.ivf 4 30
Change-Id: I4cf8f23b86d7ebd85ffd2630dcfbd799c0b88101
Diffstat (limited to 'vp9/vp9_dx_iface.c')
-rw-r--r-- | vp9/vp9_dx_iface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vp9/vp9_dx_iface.c b/vp9/vp9_dx_iface.c index 6531e2c61..08adea026 100644 --- a/vp9/vp9_dx_iface.c +++ b/vp9/vp9_dx_iface.c @@ -785,7 +785,8 @@ static vpx_codec_err_t ctrl_set_reference(vpx_codec_alg_priv_t *ctx, FrameWorkerData *const frame_worker_data = (FrameWorkerData *)worker->data1; image2yuvconfig(&frame->img, &sd); return vp9_set_reference_dec(&frame_worker_data->pbi->common, - (VP9_REFFRAME)frame->frame_type, &sd); + ref_frame_to_vp9_reframe(frame->frame_type), + &sd); } else { return VPX_CODEC_INVALID_PARAM; } |