vdpau: Add an allocation function for AVVDPAUContext.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
d87f9da53c
commit
af05edc658
@ -15,6 +15,10 @@ libavutil: 2012-10-22
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2013-08-xx - xxxxxxx - lavc 55.26.100 - vdpau.h
|
||||||
|
Add allocation function for AVVDPAUContext, allowing
|
||||||
|
to extend it in the future without breaking ABI/API.
|
||||||
|
|
||||||
2013-08-xx - xxxxxxx - lavc 55.16.0 - avcodec.h
|
2013-08-xx - xxxxxxx - lavc 55.16.0 - avcodec.h
|
||||||
Extend AVPacket API with av_packet_unref, av_packet_ref,
|
Extend AVPacket API with av_packet_unref, av_packet_ref,
|
||||||
av_packet_move_ref, av_packet_copy_props, av_packet_free_side_data.
|
av_packet_move_ref, av_packet_copy_props, av_packet_free_side_data.
|
||||||
|
@ -38,6 +38,11 @@
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
AVVDPAUContext *av_alloc_vdpaucontext(void)
|
||||||
|
{
|
||||||
|
return av_mallocz(sizeof(AVVDPAUContext));
|
||||||
|
}
|
||||||
|
|
||||||
int ff_vdpau_common_start_frame(Picture *pic,
|
int ff_vdpau_common_start_frame(Picture *pic,
|
||||||
av_unused const uint8_t *buffer,
|
av_unused const uint8_t *buffer,
|
||||||
av_unused uint32_t size)
|
av_unused uint32_t size)
|
||||||
|
@ -73,7 +73,8 @@ union AVVDPAUPictureInfo {
|
|||||||
/**
|
/**
|
||||||
* This structure is used to share data between the libavcodec library and
|
* This structure is used to share data between the libavcodec library and
|
||||||
* the client video application.
|
* the client video application.
|
||||||
* The user shall zero-allocate the structure and make it available as
|
* The user shall allocate the structure via the av_alloc_vdpau_hwaccel
|
||||||
|
* function and make it available as
|
||||||
* AVCodecContext.hwaccel_context. Members can be set by the user once
|
* AVCodecContext.hwaccel_context. Members can be set by the user once
|
||||||
* during initialization or through each AVCodecContext.get_buffer()
|
* during initialization or through each AVCodecContext.get_buffer()
|
||||||
* function call. In any case, they must be valid prior to calling
|
* function call. In any case, they must be valid prior to calling
|
||||||
@ -130,6 +131,13 @@ typedef struct AVVDPAUContext {
|
|||||||
#endif
|
#endif
|
||||||
} AVVDPAUContext;
|
} AVVDPAUContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief allocation function for AVVDPAUContext
|
||||||
|
*
|
||||||
|
* Allows extending the struct without breaking API/ABI
|
||||||
|
*/
|
||||||
|
AVVDPAUContext *av_alloc_vdpaucontext(void);
|
||||||
|
|
||||||
#if FF_API_CAP_VDPAU
|
#if FF_API_CAP_VDPAU
|
||||||
/** @brief The videoSurface is used for rendering. */
|
/** @brief The videoSurface is used for rendering. */
|
||||||
#define FF_VDPAU_STATE_USED_FOR_RENDER 1
|
#define FF_VDPAU_STATE_USED_FOR_RENDER 1
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
#include "libavutil/avutil.h"
|
#include "libavutil/avutil.h"
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_MAJOR 55
|
#define LIBAVCODEC_VERSION_MAJOR 55
|
||||||
#define LIBAVCODEC_VERSION_MINOR 25
|
#define LIBAVCODEC_VERSION_MINOR 26
|
||||||
#define LIBAVCODEC_VERSION_MICRO 100
|
#define LIBAVCODEC_VERSION_MICRO 100
|
||||||
|
|
||||||
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user