[FFmpeg-devel] [PATCH] avcodec: add Actimagine VX video decoder

Hendrik Leppkes h.leppkes at gmail.com
Tue Mar 16 00:34:37 EET 2021


On Mon, Mar 15, 2021 at 10:55 PM Florian Nouwt <fnouwt2 at gmail.com> wrote:
>
> Now that I think about it, it might not be possible to an accurate
> straightforward conversion to regular yuv because of the subsampling. The u
> and v cannot just linearly be scaled to line up with the required values
> for regular yuv. That would mean the output would have to be in rgb format.
> It wouldn't really be an issue, but not the most elegant solution. Wouldn't
> it be possible to support these alternative coefficients in libswscale or
> so? I suppose that would still give issues with applications that have
> their own conversion algorithms.
>

I don't think a single game codec warrants creating an entirely new
pixel format for, unless it has a concrete independent definition and
is used outside of this codec as well.
Otherwise, the conversion logic looks rather straight forward and
relatively cheap, and should probably just output RGB (either packed
or planar, whichever is easier). It does remind me a bit of YCgCo, but
with different  formulas unfortunately.

- Hendrik


More information about the ffmpeg-devel mailing list