summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-17 12:43:09 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-17 12:43:09 +0000
commit1aea701830442035f976a8d9adb198666a9f5df9 (patch)
tree97f32d1816384fe46acd2d5f44a486cb37086ae4
parentc4a3d032992ffea84c23921c3a90630304e8cae4 (diff)
Amend AVCodecContext with hwaccel_context (HW accelerator context).
This is needed for some HW accelerators that require a context that FFmpeg can't instantiate itself. e.g. display-dependent data from VA API and VDPAU. Originally committed as revision 18025 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/avcodec.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 10424384ea..3adc941ca8 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2340,6 +2340,18 @@ typedef struct AVCodecContext {
* Set to time_base ticks per frame. Default 1, e.g., H.264/MPEG-2 set it to 2.
*/
int ticks_per_frame;
+
+ /**
+ * Hardware accelerator context.
+ * For some hardware accelerators, a global context needs to be
+ * provided by the user. In that case, this holds display-dependent
+ * data FFmpeg cannot instantiate itself. Please refer to the
+ * FFmpeg HW accelerator documentation to know how to fill this
+ * is. e.g. for VA API, this is a struct vaapi_context.
+ * - encoding: unused
+ * - decoding: Set by user
+ */
+ void *hwaccel_context;
} AVCodecContext;
/**