[FFmpeg-cvslog] Allow colour space autodetection when encoding ljpeg.

Carl Eugen Hoyos git at videolan.org
Mon Jun 4 20:04:35 CEST 2012


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Jun  4 20:01:39 2012 +0200| [0a3e15690fba3ee086b745a50c88cb05f1b5339f] | committer: Carl Eugen Hoyos

Allow colour space autodetection when encoding ljpeg.

This works as expected if the input stream is not yuv4xxp.

Reviewed-by: Paul B Mahol

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

 libavcodec/ljpegenc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index 733e5e9..07bab3d 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -218,5 +218,10 @@ AVCodec ff_ljpeg_encoder = { //FIXME avoid MPV_* lossless JPEG should not need t
     .init           = ff_MPV_encode_init,
     .encode2        = encode_picture_lossless,
     .close          = ff_MPV_encode_end,
+    .pix_fmts       = (const enum PixelFormat[]){
+        PIX_FMT_BGR24, PIX_FMT_BGRA, PIX_FMT_BGR0,
+        PIX_FMT_YUVJ420P, PIX_FMT_YUVJ444P, PIX_FMT_YUVJ422P,
+        PIX_FMT_YUV420P, PIX_FMT_YUV444P, PIX_FMT_YUV422P,
+        PIX_FMT_NONE},
     .long_name      = NULL_IF_CONFIG_SMALL("Lossless JPEG"),
 };



More information about the ffmpeg-cvslog mailing list