[FFmpeg-devel] the proper way to handle a special colorspace?

Paul B Mahol onemda at gmail.com
Sun Feb 10 20:34:42 CET 2013

On 2/10/13, u-bo1b at 0w.se <u-bo1b at 0w.se> wrote:
> On Sun, Feb 10, 2013 at 06:34:53PM +0000, Paul B Mahol wrote:
>> On 2/10/13, compn <tempn at twmi.rr.com> wrote:
>> > i think hes asking if it should be a new colorspace in swscale, or
>> > added into the cinepak decoder/encoder common code.
>> >
>> > by your answer i think it has to be a new swscale colorspace?
>> Please leave libswscale alone.
> As much as I can see codecs declare which pixel formats they support
> and it looks like ffmpeg can "automagically" convert between different
> formats when necessary.
> Of course I would like to reuse (and if necessary extend) the existing
> infrastructure as much as possible, instead of doing the conversion
> inside the encoder and decoder.
> The colorspace does not seem to be used by other codecs but why not
> support it properly? It may happen to be useful (e.g. on slow hardware
> which of course nobody cares nowadays about but you never know).
> Is it a wrong intention, or otherwise what and where should be changed?

Colorspaces in libswscale are known standard ones, and not codec
specific playground.

Codec specific stuff should be part of codec itself.

> Rl
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

More information about the ffmpeg-devel mailing list