]> git.sesse.net Git - ffmpeg/commit
lavc/qsvdec: Add GPU-accelerated memory copy support
authorLinjie Fu <linjie.fu@intel.com>
Tue, 8 Oct 2019 13:41:02 +0000 (21:41 +0800)
committerZhong Li <zhong.li@intel.com>
Wed, 9 Oct 2019 03:27:34 +0000 (11:27 +0800)
commit5345965b3f088ad5acd5151bec421c97470675a4
tree55e28c563f3f87cf4627ded67ec89f34a50f5e97
parent949a1b3e2f75338e17e446e97105e06ad6b4012a
lavc/qsvdec: Add GPU-accelerated memory copy support

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.h264 -f null -
or:
ffmpeg -c:v h264_qsv -gpu_copy on -i input.h264 -f null -

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: ChaoX A Liu <chaox.a.liu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
libavcodec/qsv.c
libavcodec/qsv_internal.h
libavcodec/qsvdec.c
libavcodec/qsvdec.h
libavcodec/qsvdec_h2645.c
libavcodec/qsvdec_other.c
libavcodec/qsvenc.c