Quoting Rémi Denis-Courmont (2014-12-18 23:33:45)
> Le jeudi 18 décembre 2014, 22:55:06 Anton Khirnov a écrit :
> > Overall I'm not entirely happy with the API creep, but as I cannot
> > suggest any better way, I'm mostly fine with this set.
> 
> There are three other ways I can suggest.
> 
> The first one is to use different pixel formats, and I only mention it for 
> the 
> sake of completeness because nobody likes that idea except me.
> 
> Another option is for the application to call avcodec_default_get_format(), 
> match the unaccelerated pixel format to a hardware surface chroma type and to 
> the size requirements. That is a little bit uglier in my opinion, and means 
> more per-application copycat code.
> 

Why would you have to call avcodec_default_get_format()? You could just
look at the last offered pixel format (the only non-hwaccel one).

Speaking of which, why is avcodec_default_get_format even public right
now?

-- 
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to