From d0c8c380ecf3d9bb16621a4fb59ebbcde301002a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Mon, 20 Jul 2015 14:30:07 +0200 Subject: qsv: document AVQSVContext members --- libavcodec/qsv.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'libavcodec/qsv.h') diff --git a/libavcodec/qsv.h b/libavcodec/qsv.h index 6532594257..922b8582a4 100644 --- a/libavcodec/qsv.h +++ b/libavcodec/qsv.h @@ -23,10 +23,29 @@ #include +/** + * This struct is used for communicating QSV parameters between libavcodec and + * the caller. It is managed by the caller and must be assigned to + * AVCodecContext.hwaccel_context. + * - decoding: hwaccel_context must be set on return from the get_format() + * callback + * - encoding: hwaccel_context must be set before avcodec_open2() + */ typedef struct AVQSVContext { + /** + * If non-NULL, the session to use for encoding or decoding. + * Otherwise, libavcodec will try to create an internal session. + */ mfxSession session; + + /** + * The IO pattern to use. + */ int iopattern; + /** + * Extra buffers to pass to encoder or decoder initialization. + */ mfxExtBuffer **ext_buffers; int nb_ext_buffers; } AVQSVContext; -- cgit v1.2.3