hwcontext: Add frame context mapping for nontrivial contexts
authorMark Thompson <sw@jkqxz.net>
Sat, 4 Mar 2017 23:57:39 +0000 (23:57 +0000)
committerMark Thompson <sw@jkqxz.net>
Wed, 14 Jun 2017 21:27:07 +0000 (22:27 +0100)
commitec3dbeae8139a8bbd8b0fa4514a3cf349de7f335
treeceb18aebaecbd705dbed1beab13224c9974e37e4
parent045ff8d30a6942b72c8be064c3b8415b037dab02
hwcontext: Add frame context mapping for nontrivial contexts

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)
libavutil/hwcontext.c
libavutil/hwcontext_internal.h