hwcontext: Add frame context mapping for nontrivial contexts

Multimedia / FFmpeg - Mark Thompson [jkqxz.net] - 14 June 2017 17:27 EDT

Some frames contexts are not usable without additional format-specific state in hwctx. This change adds new functions frames_derive_from and frames_derive_to to initialise this state appropriately when deriving a frames context which will require it to be set.

(cherry picked from commit 27978155bc661eec9f22bcf82c9cfc099cff4365)

ec3dbea hwcontext: Add frame context mapping for nontrivial contexts
libavutil/hwcontext.c | 9 ++++++++-
libavutil/hwcontext_internal.h | 5 +++++
2 files changed, 13 insertions(+), 1 deletion(-)

  • Share