Home
last modified time | relevance | path

Searched refs:hw_frames_ref (Results 1 – 4 of 4) sorted by relevance

/third_party/ffmpeg/doc/examples/
Dvaapi_encode.c46 AVBufferRef *hw_frames_ref; in set_hwframe_ctx() local
50 if (!(hw_frames_ref = av_hwframe_ctx_alloc(hw_device_ctx))) { in set_hwframe_ctx()
54 frames_ctx = (AVHWFramesContext *)(hw_frames_ref->data); in set_hwframe_ctx()
60 if ((err = av_hwframe_ctx_init(hw_frames_ref)) < 0) { in set_hwframe_ctx()
63 av_buffer_unref(&hw_frames_ref); in set_hwframe_ctx()
66 ctx->hw_frames_ctx = av_buffer_ref(hw_frames_ref); in set_hwframe_ctx()
70 av_buffer_unref(&hw_frames_ref); in set_hwframe_ctx()
/third_party/ffmpeg/libavcodec/
Dqsv.c440 AVBufferRef *hw_frames_ref = opaque; in mids_buf_free() local
441 av_buffer_unref(&hw_frames_ref); in mids_buf_free()
445 static AVBufferRef *qsv_create_mids(AVBufferRef *hw_frames_ref) in qsv_create_mids() argument
447 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ref->data; in qsv_create_mids()
455 hw_frames_ref1 = av_buffer_ref(hw_frames_ref); in qsv_create_mids()
476 mid->hw_frames_ref = hw_frames_ref1; in qsv_create_mids()
482 static int qsv_setup_mids(mfxFrameAllocResponse *resp, AVBufferRef *hw_frames_ref, in qsv_setup_mids() argument
485 AVHWFramesContext *frames_ctx = (AVHWFramesContext*)hw_frames_ref->data; in qsv_setup_mids()
502 resp->mids[resp->NumFrameActual] = (mfxMemId)av_buffer_ref(hw_frames_ref); in qsv_setup_mids()
618 AVHWFramesContext *hw_frames_ctx = (AVHWFramesContext*)qsv_mid->hw_frames_ref->data; in qsv_frame_lock()
[all …]
Dqsv_internal.h64 AVBufferRef *hw_frames_ref; member
Dqsvdec.c139 AVBufferRef *hw_frames_ref, AVBufferRef *hw_device_ref) in qsv_init_session() argument
151 } else if (hw_frames_ref) { in qsv_init_session()
158 q->frames_ctx.hw_frames_ctx = av_buffer_ref(hw_frames_ref); in qsv_init_session()