[FFmpeg-devel] [PATCH 3/6] Add AV_PIX_FMT_NV12T.

Alexis Ballier aballier at gentoo.org
Fri Nov 21 10:23:59 CET 2014


On Fri, 21 Nov 2014 10:02:36 +0100
Jean-Baptiste Kempf <jb at videolan.org> wrote:

> On 21 Nov, Alexis Ballier wrote :
> > > > How do you put this in an AVFrame then ?
> > > 
> > > Preferably not at all. Is there a need to? Only the end result
> > > (nv12 I suppose) needs to be in an AVFrame.
> > 
> > It can be done but is ugly IMHO:
> > 
> > - I was under the impression that lavc decoder convention was to
> >   output non processed formats and let the application handle (or
> > not) the conversions
> 
> Sure, but this is when you can actually process them in applications,
> like planar audio. No a hardware-specific format that noone can play
> except with a special library.

I think it's safe to assume that if you have a SOC with a HW dec that
outputs only this insane and uncommon format, the SOC also has a HW
filter that can convert it. I've not played with it, but you can also
have a look at s5p-tv driver that is a V4L2 outdev which accepts
NV12MT. So you can even play it.

> > > So this is a
> > > decoder. Why can't the decoder take care of this conversion too?
> > 
> > See above.
> 
> Sorry, but that's far from clear.

What is not ? The important part was the one you cut :)

Alexis.


More information about the ffmpeg-devel mailing list