summaryrefslogtreecommitdiff
path: root/libavcodec/vda_internal.h
diff options
context:
space:
mode:
authorSebastien Zwickert <dilaroga@gmail.com>2012-08-12 17:03:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-08-14 03:39:23 +0200
commit7f3dfd2010c6f92447e34ccbbb303b0fd18997ff (patch)
tree1d2c8bc2601c0706a81db69bf6e27b7307a1b526 /libavcodec/vda_internal.h
parent47682ddc227742e9f401d3f33c4c07789381798a (diff)
vda: support synchronous decoding.
Note that the symbols used to run the hardware decoder in asynchronous mode has been marked as deprecated and will be dropped at a future version dump. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vda_internal.h')
-rw-r--r--libavcodec/vda_internal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/vda_internal.h b/libavcodec/vda_internal.h
index df7305bfe6..55ef6e95b5 100644
--- a/libavcodec/vda_internal.h
+++ b/libavcodec/vda_internal.h
@@ -31,11 +31,15 @@
* @{
*/
+#if FF_API_VDA_ASYNC
/** Send frame data to the hardware decoder. */
int ff_vda_decoder_decode(struct vda_context *vda_ctx,
uint8_t *bitstream,
int bitstream_size,
int64_t frame_pts);
+#endif
+
+int ff_vda_sync_decode(struct vda_context *vda_ctx);
/* @} */