diff options
author | Huang, Zhengxu <zhengxu.maxwell@gmail.com> | 2017-07-21 07:12:44 +0300 |
---|---|---|
committer | Maxym Dmytrychenko <maxim.d33@gmail.com> | 2017-07-25 14:27:43 +0300 |
commit | 2fd6e7d077f590e4d7195356f9baeb271f8b9ae2 (patch) | |
tree | cd33147b3b90fdcd1608233938507acb3da1cc63 /libavcodec/qsv.c | |
parent | 2b1324bd167553f49736e4eaa94f96da9982925e (diff) |
libavcodec/mjpeg_qsv: Add QSV MJPEG encoder
usage:
-hwaccel qsv -c:v h264_qsv -i in -c:v mjpeg_qsv -global_quality 80 -f
mjpeg out
Signed-off-by: ChaoX A Liu <chaox.a.liu@gmail.com>
Signed-off-by: Zhengxu Huang <zhengxu.maxwell@gmail.com>
Signed-off-by: Andrew Zhang <huazh407@gmail.com
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
Diffstat (limited to 'libavcodec/qsv.c')
-rw-r--r-- | libavcodec/qsv.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/qsv.c b/libavcodec/qsv.c index 30d612f0e1..a8ae65622c 100644 --- a/libavcodec/qsv.c +++ b/libavcodec/qsv.c @@ -20,6 +20,7 @@ #include <mfx/mfxvideo.h> #include <mfx/mfxplugin.h> +#include <mfx/mfxjpeg.h> #include <stdio.h> #include <string.h> @@ -56,6 +57,8 @@ int ff_qsv_codec_id_to_mfx(enum AVCodecID codec_id) case AV_CODEC_ID_VP8: return MFX_CODEC_VP8; #endif + case AV_CODEC_ID_MJPEG: + return MFX_CODEC_JPEG; default: break; } |