diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-29 14:14:10 +0200 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-09-29 14:14:10 +0200 |
commit | 029aa8ff140784405533cd4be5051f8733dc5acb (patch) | |
tree | 7cac30671ed43eb075066e578fd399fd7f9e7a26 | |
parent | 66682145216f6476426360bdb04cbc6e0e4adbb4 (diff) | |
parent | d0c8c380ecf3d9bb16621a4fb59ebbcde301002a (diff) | |
download | ffmpeg-029aa8ff140784405533cd4be5051f8733dc5acb.tar.gz |
Merge commit 'd0c8c380ecf3d9bb16621a4fb59ebbcde301002a'
* commit 'd0c8c380ecf3d9bb16621a4fb59ebbcde301002a':
qsv: document AVQSVContext members
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
-rw-r--r-- | libavcodec/qsv.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libavcodec/qsv.h b/libavcodec/qsv.h index e7487c88ea..6049629cc9 100644 --- a/libavcodec/qsv.h +++ b/libavcodec/qsv.h @@ -23,10 +23,29 @@ #include <mfx/mfxvideo.h> +/** + * 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; |