[FFmpeg-devel] a64 encoder

Michael Niedermayer michaelni
Wed Jan 21 14:43:28 CET 2009


On Wed, Jan 21, 2009 at 11:36:16AM +0100, Bitbreaker/METALVOTZE wrote:
> > It looks like this encoder really need GRAY8 input, so I think it is 
> > better to let ffmpeg do the conversion.
> 
> I did so, but it turned out that when compiling with libswscale the 
> GRAY8 input i get is not stretched over the whole 8 bit, thus i get the 
> usual valuerange of 16..235 for luma. Whereas when i forgo on libswscale 
> i get luma stretched over the whole 8 bit range of 0..255. Would be nice 
> if i get the same data with both methods (no matter if stretched or 
> not), but how to achieve that?

what swscale does should be controlled by handle_jpeg(), should be trivial
to change to make it return full range gray.
Though i dont know which way is more correct or if we maybe should add
another grayscale pixfmt.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Republics decline into democracies and democracies degenerate into
despotisms. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090121/4da1d1d0/attachment.pgp>



More information about the ffmpeg-devel mailing list