[FFmpeg-devel] Pixel format 12bit grayscale
Carl Eugen Hoyos
cehoyos at ag.or.at
Mon Apr 13 12:19:15 CEST 2015
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?
Carl Eugen
More information about the ffmpeg-devel
mailing list