summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_internal.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-31 08:33:02 +0000
committerGwenole Beauchesne <gbeauchesne@splitted-desktop.com>2009-03-31 08:33:02 +0000
commita3d636aff9d18e66fa3e260f515f6e9dba25bf2f (patch)
tree446296943b297dc0480446b07bff58e83d2f50c1 /libavcodec/vaapi_internal.h
parentccc745cdf488ee0b999ea922c0cf09262f92ed4a (diff)
downloadffmpeg-a3d636aff9d18e66fa3e260f515f6e9dba25bf2f.tar.gz
Improve VA API buffers allocation logic. This also reduces struct vaapi_context
down to ~60 bytes vs. a few KBs before, and gets rid of explicit VA data types. Originally committed as revision 18256 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vaapi_internal.h')
-rw-r--r--libavcodec/vaapi_internal.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libavcodec/vaapi_internal.h b/libavcodec/vaapi_internal.h
index 345289086e..bfc0f80162 100644
--- a/libavcodec/vaapi_internal.h
+++ b/libavcodec/vaapi_internal.h
@@ -44,6 +44,15 @@ static inline VASurfaceID ff_vaapi_get_surface(Picture *pic)
/** Common AVHWAccel.end_frame() implementation */
int ff_vaapi_common_end_frame(MpegEncContext *s);
+/** Allocate a new picture parameter buffer */
+void *ff_vaapi_alloc_picture(struct vaapi_context *vactx, unsigned int size);
+
+/** Allocate a new IQ matrix buffer */
+void *ff_vaapi_alloc_iq_matrix(struct vaapi_context *vactx, unsigned int size);
+
+/** Allocate a new bit-plane buffer */
+uint8_t *ff_vaapi_alloc_bitplane(struct vaapi_context *vactx, uint32_t size);
+
/**
* Allocate a new slice descriptor for the input slice.
*