On Tue, 26 Jun 2012, Luca Barbato wrote:
On 06/26/2012 11:01 AM, Martin Storsjö wrote:
On Tue, 26 Jun 2012, Luca Barbato wrote:
On 06/25/2012 10:27 PM, Martin Storsjö wrote:
I guess it means that one needs it in order to use the dxva
acceleration, at least vlc seems to use that header in their dxva
integration. No clue about it any further than that.
hwaccel needs some cleanup...
I wouldn't argue with that, but I have a feeling that it's the hw
acceleration apis themselves (dxva etc, not the libavcodec hwaccel
framework) that are designed in a way that the caller needs to do
something with them that libavcodec doesn't know about, in order to be
used. That is, that this is an issue you might not get rid of just by
cleaning up the libavcodec hwaccel framework.
Actually currently all you need is to pass a context back and forth and
implement custom get_buffer and friends.
vda.h and dxva.h provide some sample implementation and some additional
fields for the context layout.
We could add an init/deinit pair just to abstract that part and
implement on our side the custom functions.
Right, that does sound like a good idea as a longer term solution.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel