On Tue,  5 Sep 2017 23:59:30 +0100
Mark Thompson <[email protected]> wrote:

> ---
> Saves the VA config, the frame pool, and the VA context (in that order).  The 
> device reference is held so that freeing the persistent data is possible (the 
> transient context is already gone when it happens).
> 
> 
>  libavcodec/vaapi_decode.c | 241 
> +++++++++++++++++++++++++++++++++-------------
>  libavcodec/vaapi_decode.h |  18 ++++
>  2 files changed, 192 insertions(+), 67 deletions(-)
> 

Doesn't this also discard the frames context if the decoder context
changes? That seems unnecessary. Can't it just reuse the frames context
whenever the frames parameters are the same?

Also, it would be possible to implement frames context reuse without
having to change each hwaccel implementation.

Can the API user manually stop a reuse in certain cases?
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to