[FFmpeg-devel] [PATCH] Fix ljpegenc pix_fmt selection (original) (raw)

Michael Niedermayer michaelni
Wed Jan 5 05:36:28 CET 2011


On Tue, Jan 04, 2011 at 02:29:21PM -0500, Jason Garrett-Glaser wrote:

On Tue, Jan 4, 2011 at 2:13 PM, Michael Niedermayer wrote: > On Tue, Jan 04, 2011 at 02:00:43PM -0500, Jason Garrett-Glaser wrote: >> On Tue, Jan 4, 2011 at 1:21 PM, Jason Garrett-Glaser wrote: >> > On Tue, Jan 4, 2011 at 1:18 PM, Michael Niedermayer wrote: >> >> On Sun, Jan 02, 2011 at 12:58:30PM -0500, Jason Garrett-Glaser wrote: >> >>> Previously, if you didn't happen to select the right pixfmt via >> >>> pixfmt, ffmpeg would fail to convert to the pixel formats supported >> >>> by ljpeg. >> >>> >> >>> Jason >> >> >> >>> Index: libavcodec/ljpegenc.c >> >>> =================================================================== >> >>> --- libavcodec/ljpegenc.c ? ? (revision 26200) >> >>> +++ libavcodec/ljpegenc.c ? ? (working copy) >> >>> @@ -194,5 +194,6 @@ >> >>> ? ? ?MPVencodeinit, >> >>> ? ? ?encodepicturelossless, >> >>> ? ? ?MPVencodeend, >> >>> + ? ?.pixfmts= (const enum PixelFormat[]){PIXFMTYUVJ420P, PIXFMTYUVJ422P, PIXFMTBGRA, PIXFMTNONE}, >> >>> ? ? ?.longname = NULLIFCONFIGSMALL("Lossless JPEG"), >> >>> ?}; >> >> >> >> that seems not correct >> >> if i remove all the pix fmt tests yuv444p works too for example >> > >> > Yeah, but that should go in a separate patch. ?This patch is just to >> > fix the current situation: revising the pixfmt checks in mpegvideo is >> > an unrelated problem. >> > >> > Jason >> > >> >> I see you've fixed the yuv444p problem: my next issue I noticed is >> RGB32 vs BGRA. ?The ljpeg code checks for BGRA, but all the other code >> looks for RGB32. ?Which is it? > > without testing, it looks like bgra to me

Should all related code in mpegvideoenc.c be changed to an RGBA check then?

ill try to fix it

[...]

Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I have often repented speaking, but never of holding my tongue. -- Xenocrates -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20110105/284fd32b/attachment.pgp>



More information about the ffmpeg-devel mailing list