[FFmpeg-cvslog] r25066 - trunk/libavcodec/imgconvert.c
Måns Rullgård
mans
Fri Sep 10 23:39:05 CEST 2010
Reimar D?ffinger <Reimar.Doeffinger at gmx.de> writes:
> On Fri, Sep 10, 2010 at 07:36:22PM +0100, M?ns Rullg?rd wrote:
>> I fully agree. I am still waiting for someone to explain what this
>> palette is expected to contain, given that the format does not use
>> one.
>
> What's so hard to understand about that?
I just can't understand what one would possibly do with a palette for
a format that doesn't use one.
> Obviously every 8 bpp raw format can be represented as a paletted
> format. So in order that most applications (and libswscale) can
> treat them all the same way that's what FFmpeg does. So you can
> just consider all formats with PIX_FMT_PAL as PIX_FMT_PAL8 with
> additional promises at to what the palette locks like.
If you mean setting a completely useless 1-to-1 palette, that seems
like a waste of both memory and CPU cycles. Why the hell would anyone
want to do that? Sounds like just the kind of disgusting code one
might find in mplayer.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-cvslog
mailing list