Searched refs:hw_frame (Results 1 – 3 of 3) sorted by relevance
106 AVFrame *sw_frame = NULL, *hw_frame = NULL; in main() local182 if (!(hw_frame = av_frame_alloc())) { in main()186 if ((err = av_hwframe_get_buffer(avctx->hw_frames_ctx, hw_frame, 0)) < 0) { in main()190 if (!hw_frame->hw_frames_ctx) { in main()194 if ((err = av_hwframe_transfer_data(hw_frame, sw_frame, 0)) < 0) { in main()200 if ((err = (encode_write(avctx, hw_frame, fout))) < 0) { in main()204 av_frame_free(&hw_frame); in main()219 av_frame_free(&hw_frame); in main()
632 qsv_mid->hw_frame = av_frame_alloc(); in qsv_frame_lock()633 if (!qsv_mid->hw_frame) in qsv_frame_lock()636 qsv_mid->hw_frame->data[3] = (uint8_t*)&qsv_mid->surf; in qsv_frame_lock()637 qsv_mid->hw_frame->format = AV_PIX_FMT_QSV; in qsv_frame_lock()640 qsv_mid->hw_frame->buf[0] = av_buffer_alloc(1); in qsv_frame_lock()641 if (!qsv_mid->hw_frame->buf[0]) in qsv_frame_lock()644 qsv_mid->hw_frame->width = hw_frames_ctx->width; in qsv_frame_lock()645 qsv_mid->hw_frame->height = hw_frames_ctx->height; in qsv_frame_lock()647 qsv_mid->hw_frame->hw_frames_ctx = av_buffer_ref(qsv_mid->hw_frames_ref); in qsv_frame_lock()648 if (!qsv_mid->hw_frame->hw_frames_ctx) in qsv_frame_lock()[all …]
68 AVFrame *hw_frame; member