[FFmpeg-cvslog] lavc/qsvenc_jpeg: set a default quality

Zhong Li git at videolan.org
Wed Feb 20 18:58:27 EET 2019


ffmpeg | branch: master | Zhong Li <zhong.li at intel.com> | Thu Oct 11 17:26:13 2018 +0800| [1ff6cb2ca6652e7d2a929afd33d8ed6268c45568] | committer: Luca Barbato

lavc/qsvenc_jpeg: set a default quality

Keep alignment with vaapi mjpeg encoder.

Signed-off-by: Zhong Li <zhong.li at intel.com>
Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1ff6cb2ca6652e7d2a929afd33d8ed6268c45568
---

 libavcodec/qsvenc_jpeg.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/libavcodec/qsvenc_jpeg.c b/libavcodec/qsvenc_jpeg.c
index 7465bb917f..bbfd00975a 100644
--- a/libavcodec/qsvenc_jpeg.c
+++ b/libavcodec/qsvenc_jpeg.c
@@ -75,6 +75,11 @@ static const AVClass class = {
     .version    = LIBAVUTIL_VERSION_INT,
 };
 
+static const AVCodecDefault qsv_enc_defaults[] = {
+    { "global_quality",  "80" },
+    { NULL },
+};
+
 AVCodec ff_mjpeg_qsv_encoder = {
     .name           = "mjpeg_qsv",
     .long_name      = NULL_IF_CONFIG_SMALL("MJPEG (Intel Quick Sync Video acceleration)"),
@@ -89,5 +94,6 @@ AVCodec ff_mjpeg_qsv_encoder = {
                                                     AV_PIX_FMT_QSV,
                                                     AV_PIX_FMT_NONE },
     .priv_class     = &class,
+    .defaults       = qsv_enc_defaults,
     .wrapper_name   = "qsv",
 };



More information about the ffmpeg-cvslog mailing list