[FFmpeg-devel] [PATCH] PhotoCD image decoder

Benjamin Larsson banan
Mon Jan 11 16:11:58 CET 2010

Kenneth Vermeirsch wrote:
> Hi all,
> this is a port of the libpcd PhotoCD image decoder 
> (http://linux.bytesex.org/fbida/libpcd.html 
> <http://linux.bytesex.org/fbida/libpcd.html>). Libpcd is GPL. The 
> author has agreed to me (by private email) to relicense his parts to 
> I'm still having trouble getting the colorspace conversion to RGB 
> right. The format uses a colorspace as described here: 
> http://www5.informatik.tu-muenchen.de/lehre/vorlesungen/graphik/info/csc/COL_34.htm 
> <http://www5.informatik.tu-muenchen.de/lehre/vorlesungen/graphik/info/csc/COL_34.htm> 
> Is there a way FFmpeg can do this conversion or will I have to do it 
> manually in the decoder?
> PhotoCD is a multiresolution format; users can set avctx->lowres to 1, 
> 2 or 3 to access the lower resolutions.
> Samples may be found at ftp://ftp.kodak.com/www/images/pcd/ 
> <ftp://ftp.kodak.com/www/images/pcd/>
> Best Regards,
> Kenneth Vermeirsch

Hi, to me it looks like there is a VLC table in the file. If so you 
should use the built-in VLC functionality of FFmpeg.

Regarding the colorspace try all the PIX_FMT's and see if that fixes it.

Benjamin Larsson

More information about the ffmpeg-devel mailing list