Lines Matching refs:hw_frames_ctx
182 av_buffer_unref(&q->frames_ctx.hw_frames_ctx);
184 q->frames_ctx.hw_frames_ctx = av_buffer_ref(hw_frames_ref);
185 if (!q->frames_ctx.hw_frames_ctx)
193 av_buffer_unref(&q->frames_ctx.hw_frames_ctx);
269 if (avctx->hw_device_ctx && !avctx->hw_frames_ctx && ret == AV_PIX_FMT_QSV) {
273 avctx->hw_frames_ctx = av_hwframe_ctx_alloc(avctx->hw_device_ctx);
275 if (!avctx->hw_frames_ctx) {
280 hwframes_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
289 ret = av_hwframe_ctx_init(avctx->hw_frames_ctx);
293 av_buffer_unref(&avctx->hw_frames_ctx);
298 if (avctx->hw_frames_ctx) {
299 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
316 ret = qsv_init_session(avctx, q, session, avctx->hw_frames_ctx, avctx->hw_device_ctx);
350 if (!avctx->hw_frames_ctx)
770 av_buffer_unref(&q->frames_ctx.hw_frames_ctx);