[FFmpeg-devel] Adding 10-bit depth YUV

Øyvind Kolås islewind
Sat May 12 13:42:20 CEST 2007

On 5/12/07, Michael Niedermayer <michaelni at gmx.at> wrote:
> > This registers a new named format, with a given model, and the
> > corresponding packing
> > of the named components, and their datatypes.
> and how much code is needed to do the actual generic slow conversion?
> and i mean in the lib not the application

Since the system is designed for dynamic extension of both data types,
(there is quite a few ways of encoding data to 8bit unsigned for
instance). Thus the reference conversion is a matter of unpacking and
converting to a common format and repackaging, all done using the
(floating point) reference conversions. Totally babl-fish-reference.c
is ~320 lines of code.

> also does it support formats like rgb 5:5:5 or NV12 (2 plane YUV)

The architecture is designed to support such formats, but since I've
never really needed things that esoteric, neither non 8bit wide data
types nor planar formats have been properly debugged.

Babl grew out of similar desires to what you desire and it might even
be a bit too flexible with regard to dynamic registration of new color
models/data types. But the rest of the structure when it comes to
describing formats etc is working very well.

/?yvind K.
?The future is already here. It's just not very evenly distributed?
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/

More information about the ffmpeg-devel mailing list