[FFmpeg-devel] [PATCH 1/2] avcodec: add photocd decoder

Paul B Mahol onemda at gmail.com
Sat Dec 22 10:53:16 EET 2018

On 12/21/18, Steinar H. Gunderson <steinar+ffmpeg at gunderson.no> wrote:
> On Fri, Dec 21, 2018 at 05:07:45PM +0100, Paul B Mahol wrote:
>> The colors that PhotoCD uses predates color space definitions.
> Really? It looks fairly well-defined to me, though esoteric
> (the gamma ramp is basically like sRGB but with a much bigger constant,
> and the 8-bit Y'CbCr scaling seems unusual):
>   https://en.wikipedia.org/wiki/Photo_CD#Encoding
> FFmpeg doesn't have a good understanding of gamma (it rarely actually
> converts between different gamma ramps), but that's not a problem with
> PhotoCD per se. I can't find a good reason why FFmpeg could not be
> extended with conversions from the PhotoCD color space to sRGB, at least
> not if clipping out-of-gamut colors is acceptable.

I'm all ears.

More information about the ffmpeg-devel mailing list