[FFmpeg-devel] Pixel format 12bit grayscale
nfxjfg at googlemail.com
Mon Apr 13 12:24:40 CEST 2015
On Mon, 13 Apr 2015 10:19:15 +0000 (UTC)
Carl Eugen Hoyos <cehoyos at ag.or.at> 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?
GRAY12 would be something different from GRAY16 with
bits_per_raw_sample set. The former sets MSBs to zero,
the latter zeros LSBs.
More information about the ffmpeg-devel