Re: [FFmpeg-devel] [PATCH, v3] lavc/qsvdec: Add GPU-accelerated memory copy support

2019-09-29 Thread Li, Zhong
> +static int ff_qsv_get_continuous_buffer(AVCodecContext *avctx, AVFrame > +*frame, AVBufferPool *pool) { > +int ret = 0; > + > +ff_decode_frame_props(avctx, frame); > + > +frame->width = avctx->width; > +frame->height = avctx->height; > +frame->linesize[0] = FFALIGN

[FFmpeg-devel] [PATCH, v3] lavc/qsvdec: Add GPU-accelerated memory copy support

2019-09-29 Thread Linjie Fu
GPU copy enables or disables GPU accelerated copying between video and system memory. This may lead to a notable performance improvement. Memory must be sequent and aligned with 128x64. CMD: ffmpeg -init_hw_device qsv=hw -filter_hw_device hw -c:v h264_qsv -gpu_copy on -i input.