From dc923bc23b3efd949d0bf67ff1abdb95059e5843 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sun, 11 Oct 2015 22:02:26 +0200 Subject: qsvenc: add an API for allocating opaque surfaces --- libavcodec/qsvenc.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'libavcodec/qsvenc.h') diff --git a/libavcodec/qsvenc.h b/libavcodec/qsvenc.h index d240c7c7cb..fdfc18be67 100644 --- a/libavcodec/qsvenc.h +++ b/libavcodec/qsvenc.h @@ -49,7 +49,14 @@ typedef struct QSVEncContext { mfxFrameAllocRequest req; mfxExtCodingOption extco; - mfxExtBuffer *extparam_internal[1]; + + mfxExtOpaqueSurfaceAlloc opaque_alloc; + mfxFrameSurface1 **opaque_surfaces; + AVBufferRef *opaque_alloc_buf; + + mfxExtBuffer *extparam_internal[2]; + int nb_extparam_internal; + mfxExtBuffer **extparam; AVFifoBuffer *async_fifo; -- cgit v1.2.3