[FFmpeg-devel] FFV1 high bit depth RGB

Georg Lippitsch georg.lippitsch at gmx.at
Wed Jul 4 12:19:22 CEST 2012


Hi,

I'm trying to add high bit depth RGB encoding to FFV1.
Unfortunately, 16Bit doesn't seem to be as trivial as I hoped, since the  
JPEG200-RCT needs an additional bit of precision.

So as a first step, I added 10 bit support by adding a new 10 bit packed  
RGB colorspace, and rewriting encode_rgb() / decode_rgb() in ffv1 to  
support it. That works well, and encoding is proven to be lossless with 10  
bit RGB input.
Patches attached, any comments appreciated!

Especially, does any one have any ideas if there is a (more or less)  
simple solution for adding 16 bit RGB to FFV1?
If that is too hard to implement, do you think adding 10 and 12 bit  
colorspaces is feasible? Any other suggestions on how to support more than  
8bit properly?


Thanks,

Georg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-RGB-packed-30-bit-colorspace.patch
Type: text/x-patch
Size: 13269 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120704/df3b7f03/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Update-DPX-decoder-to-decode-into-30-bit-packed-colo.patch
Type: text/x-patch
Size: 1921 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120704/df3b7f03/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-ffv1-encode-decode-10-bit-RGB.patch
Type: text/x-patch
Size: 7746 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120704/df3b7f03/attachment-0002.bin>


More information about the ffmpeg-devel mailing list