aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/qsvenc_hevc.c
diff options
context:
space:
mode:
authorWenbin Chen <wenbin.chen-at-intel.com@ffmpeg.org>2022-01-17 13:11:22 +0800
committerHaihao Xiang <haihao.xiang@intel.com>2022-01-21 12:56:30 +0800
commit1fe78f8419356fab4c0273bd78c0b376acdae52e (patch)
treec68ae4a97d57a06793ee080659a7cd89d36029dd /libavcodec/qsvenc_hevc.c
parent9d6cc6a5448c4464139c87ed05fb9a70ccbc7bac (diff)
downloadffmpeg-1fe78f8419356fab4c0273bd78c0b376acdae52e.tar.gz
libavcodec/qsvenc: Add transform skip to hevc_qsv
Add transform_skip option to hevc_qsv. By enabling this option, the transform_skip_enabled_flag in PPS will be set to 1. This option is supported on the platform equal or newer than ICL. Signed-off-by: Wenbin Chen <wenbin.chen@intel.com> Signed-off-by: Haihao Xiang <haihao.xiang@intel.com>
Diffstat (limited to 'libavcodec/qsvenc_hevc.c')
-rw-r--r--libavcodec/qsvenc_hevc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsvenc_hevc.c b/libavcodec/qsvenc_hevc.c
index 3309ad6a26..91a316f9c8 100644
--- a/libavcodec/qsvenc_hevc.c
+++ b/libavcodec/qsvenc_hevc.c
@@ -255,6 +255,9 @@ static const AVOption options[] = {
{ "recovery_point_sei", "Insert recovery point SEI messages", OFFSET(qsv.recovery_point_sei), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 1, VE },
{ "aud", "Insert the Access Unit Delimiter NAL", OFFSET(qsv.aud), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE},
{ "pic_timing_sei", "Insert picture timing SEI with pic_struct_syntax element", OFFSET(qsv.pic_timing_sei), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, VE },
+#if QSV_VERSION_ATLEAST(1, 26)
+ { "transform_skip", "Turn this option ON to enable transformskip", OFFSET(qsv.transform_skip), AV_OPT_TYPE_INT, { .i64 = -1}, -1, 1, VE},
+#endif
{ NULL },
};