diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 13:29:00 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-01-14 13:29:00 +0100 |
commit | 8ee7b3881bfe96981de28d6eedaf1dcb59fe3215 (patch) | |
tree | 33a4bbe392eba0869b79b69c97ca8226fa2b6b00 /libavcodec/vdpau_internal.h | |
parent | a601eb9543ecab09aa69a6673e553318daf7ea57 (diff) | |
parent | 44e065d56c87d6a9d0effccec5f31517f72924ec (diff) | |
download | ffmpeg-8ee7b3881bfe96981de28d6eedaf1dcb59fe3215.tar.gz |
Merge commit '44e065d56c87d6a9d0effccec5f31517f72924ec'
* commit '44e065d56c87d6a9d0effccec5f31517f72924ec':
vdpau: Add context and common helpers for hwaccel support
Conflicts:
Changelog
doc/APIchanges
libavcodec/vdpau.h
libavcodec/version.h
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vdpau_internal.h')
-rw-r--r-- | libavcodec/vdpau_internal.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/vdpau_internal.h b/libavcodec/vdpau_internal.h index 0a8d0b6b55..f50ae77016 100644 --- a/libavcodec/vdpau_internal.h +++ b/libavcodec/vdpau_internal.h @@ -27,6 +27,20 @@ #include <stdint.h> #include "mpegvideo.h" +/** Extract VdpVideoSurface from a Picture */ +static inline uintptr_t ff_vdpau_get_surface_id(Picture *pic) +{ + return (uintptr_t)pic->f.data[3]; +} + +int ff_vdpau_common_start_frame(AVCodecContext *avctx, + av_unused const uint8_t *buffer, + av_unused uint32_t size); +int ff_vdpau_common_end_frame(AVCodecContext *avctx); +int ff_vdpau_add_buffer(AVCodecContext *avctx, + const uint8_t *buf, uint32_t buf_size); + + void ff_vdpau_add_data_chunk(MpegEncContext *s, const uint8_t *buf, int buf_size); |