void(* lock)(void *lock_ctx)
enum AMF_SURFACE_FORMAT av_av_to_amf_format(enum AVPixelFormat fmt)
This struct is allocated as AVHWDeviceContext.hwctx.
AMF_MEMORY_TYPE memory_type
void(* unlock)(void *lock_ctx)
enum AVPixelFormat av_amf_to_av_format(enum AMF_SURFACE_FORMAT fmt)