diff options
author | Linjie Fu <linjie.fu@intel.com> | 2018-11-29 14:14:22 +0800 |
---|---|---|
committer | Zhong Li <zhong.li@intel.com> | 2019-01-10 21:48:07 +0800 |
commit | e92ce340e63058de32aec733b59fe2b196bed214 (patch) | |
tree | 86ffad65395fede6550521ab6ccd39a50be60ddb /libavcodec/qsvenc.h | |
parent | ed3b64402ef770097f81e4f1e17f1fca253159aa (diff) | |
download | ffmpeg-e92ce340e63058de32aec733b59fe2b196bed214.tar.gz |
lavc/qsvenc: add VDENC support for H264
Add VDENC(lowpower mode) support for QSV H264
It's an experimental function(like lowpower in vaapi) with
some limitations:
- CBR/VBR require HuC which should be explicitly loaded via i915
module parameter(i915.enable_guc=2 for linux kernel version >= 4.16)
Use option "-low_power 1" to enable VDENC.
Add in dump_video_param() to show the status of VDENC in runtime log.
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
Diffstat (limited to 'libavcodec/qsvenc.h')
-rw-r--r-- | libavcodec/qsvenc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h index 4316a101ca..47a70a4898 100644 --- a/libavcodec/qsvenc.h +++ b/libavcodec/qsvenc.h @@ -44,6 +44,7 @@ #define QSV_HAVE_LA QSV_VERSION_ATLEAST(1, 7) #define QSV_HAVE_LA_DS QSV_VERSION_ATLEAST(1, 8) #define QSV_HAVE_LA_HRD QSV_VERSION_ATLEAST(1, 11) +#define QSV_HAVE_VDENC QSV_VERSION_ATLEAST(1, 15) #if defined(_WIN32) || defined(__CYGWIN__) #define QSV_HAVE_AVBR QSV_VERSION_ATLEAST(1, 3) @@ -163,6 +164,7 @@ typedef struct QSVEncContext { int recovery_point_sei; int repeat_pps; + int low_power; int a53_cc; |