Lines Matching refs:dst
152 static int vp9_frame_ref(AVCodecContext *avctx, VP9Frame *dst, VP9Frame *src)
156 ret = ff_thread_ref_frame(&dst->tf, &src->tf);
160 dst->extradata = av_buffer_ref(src->extradata);
161 if (!dst->extradata)
164 dst->segmentation_map = src->segmentation_map;
165 dst->mv = src->mv;
166 dst->uses_2pass = src->uses_2pass;
169 dst->hwaccel_priv_buf = av_buffer_ref(src->hwaccel_priv_buf);
170 if (!dst->hwaccel_priv_buf)
172 dst->hwaccel_picture_private = dst->hwaccel_priv_buf->data;
178 vp9_frame_unref(avctx, dst);
1823 static int vp9_decode_update_thread_context(AVCodecContext *dst, const AVCodecContext *src)
1826 VP9Context *s = dst->priv_data, *ssrc = src->priv_data;
1830 vp9_frame_unref(dst, &s->s.frames[i]);
1832 if ((ret = vp9_frame_ref(dst, &s->s.frames[i], &ssrc->s.frames[i])) < 0)
1838 ff_thread_release_ext_buffer(dst, &s->s.refs[i]);