[FFmpeg-devel] Pixel format 12bit grayscale

Michael Niedermayer michaelni at gmx.at
Mon Apr 13 12:21:25 CEST 2015


On Mon, Apr 13, 2015 at 10:19:15AM +0000, Carl Eugen Hoyos wrote:
> Michael Niedermayer <michaelni <at> gmx.at> writes:
> 
> > On Mon, Apr 13, 2015 at 09:59:57AM +0000, Marco Porsch wrote:
> 
> > > Previously we had regular 16bit RAW that worked like a 
> > > charm as input to FFmpeg. The naïve approach of upscaling 
> > > the 12bit to 16bit destroys the compression efficiency of 
> > > course...
> > 
> > add a AV_PIX_FMT_GRAY12BE / AV_PIX_FMT_GRAY12LE similar to 
> > the existing planar 12 bit YUV formats, and add a decoder 
> > which decodes this odd packing above into it, then add 12bit 
> > gray support to FFVHUFF theres alreeadyy support for other 
> > 12bit planar formats in it
> 
> Whats wrong with using GRAY16 and setting bits_per_raw_sample?
> I believe ffv1 already supports reading bits_per_raw_sample, 
> ffvhuff could be patched and no additional colour space will 
> be needed. Or is there hardware or an external library that 
> supports GRAY12?

yes GRAY16 with bits_per_raw_sample can be used too

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150413/f94c3a91/attachment.asc>


More information about the ffmpeg-devel mailing list