History

vdpau: Add an allocation function for AVVDPAUContext.

Reimar Döffinger committed 13 years ago

Commit af05edc1 parent d87f9da4 files · +19 −2Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavcodec/vdpau.c +5 −0
  3. libavcodec/vdpau.h +9 −1
  4. libavcodec/version.h +1 −1
doc/APIchanges+4−0
@@ -15,6 +15,10 @@ libavutil: 2012-10-22 · 14 unmodified lines
15 15
16API changes, most recent first:16API changes, most recent first:
17 17
182013-08-xx - xxxxxxx - lavc 55.26.100 - vdpau.h
19 Add allocation function for AVVDPAUContext, allowing
20 to extend it in the future without breaking ABI/API.
21
182013-08-xx - xxxxxxx - lavc 55.16.0 - avcodec.h222013-08-xx - xxxxxxx - lavc 55.16.0 - avcodec.h
19 Extend AVPacket API with av_packet_unref, av_packet_ref,23 Extend AVPacket API with av_packet_unref, av_packet_ref,
20 av_packet_move_ref, av_packet_copy_props, av_packet_free_side_data.24 av_packet_move_ref, av_packet_copy_props, av_packet_free_side_data.
libavcodec/vdpau.c+5−0
@@ -38,6 +38,11 @@ · 37 unmodified lines
38 * @{38 * @{
39 */39 */
40 40
41AVVDPAUContext *av_alloc_vdpaucontext(void)
42{
43 return av_mallocz(sizeof(AVVDPAUContext));
44}
45
41int ff_vdpau_common_start_frame(Picture *pic,46int ff_vdpau_common_start_frame(Picture *pic,
42 av_unused const uint8_t *buffer,47 av_unused const uint8_t *buffer,
43 av_unused uint32_t size)48 av_unused uint32_t size)
libavcodec/vdpau.h+9−1
@@ -73,7 +73,8 @@ union AVVDPAUPictureInfo { · 72 unmodified lines
73/**73/**
74 * This structure is used to share data between the libavcodec library and74 * This structure is used to share data between the libavcodec library and
75 * the client video application.75 * the client video application.
76 * The user shall zero-allocate the structure and make it available as76 * The user shall allocate the structure via the av_alloc_vdpau_hwaccel
77 * function and make it available as
77 * AVCodecContext.hwaccel_context. Members can be set by the user once78 * AVCodecContext.hwaccel_context. Members can be set by the user once
78 * during initialization or through each AVCodecContext.get_buffer()79 * during initialization or through each AVCodecContext.get_buffer()
79 * function call. In any case, they must be valid prior to calling80 * function call. In any case, they must be valid prior to calling
@@ -130,6 +131,13 @@ typedef struct AVVDPAUContext { · 50 unmodified lines
130#endif131#endif
131} AVVDPAUContext;132} AVVDPAUContext;
132 133
134/**
135 * @brief allocation function for AVVDPAUContext
136 *
137 * Allows extending the struct without breaking API/ABI
138 */
139AVVDPAUContext *av_alloc_vdpaucontext(void);
140
133#if FF_API_CAP_VDPAU141#if FF_API_CAP_VDPAU
134/** @brief The videoSurface is used for rendering. */142/** @brief The videoSurface is used for rendering. */
135#define FF_VDPAU_STATE_USED_FOR_RENDER 1143#define FF_VDPAU_STATE_USED_FOR_RENDER 1
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
29#include "libavutil/avutil.h"29#include "libavutil/avutil.h"
30 30
31#define LIBAVCODEC_VERSION_MAJOR 5531#define LIBAVCODEC_VERSION_MAJOR 55
32#define LIBAVCODEC_VERSION_MINOR 2532#define LIBAVCODEC_VERSION_MINOR 26
33#define LIBAVCODEC_VERSION_MICRO 10033#define LIBAVCODEC_VERSION_MICRO 100
34 34
35#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \35#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t