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
1515
1616 API changes, most recent first:
1717
18+2013-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+
1822 2013-08-xx - xxxxxxx - lavc 55.16.0 - avcodec.h
1923 Extend AVPacket API with av_packet_unref, av_packet_ref,
2024 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
3838 * @{
3939 */
4040
41+AVVDPAUContext *av_alloc_vdpaucontext(void)
42+{
43+ return av_mallocz(sizeof(AVVDPAUContext));
44+}
45+
4146 int ff_vdpau_common_start_frame(Picture *pic,
4247 av_unused const uint8_t *buffer,
4348 av_unused uint32_t size)
libavcodec/vdpau.h+9−1
@@ -73,7 +73,8 @@ union AVVDPAUPictureInfo { · 72 unmodified lines
7373 /**
7474 * This structure is used to share data between the libavcodec library and
7575 * the client video application.
76− * The user shall zero-allocate the structure and make it available as
76+ * The user shall allocate the structure via the av_alloc_vdpau_hwaccel
77+ * function and make it available as
7778 * AVCodecContext.hwaccel_context. Members can be set by the user once
7879 * during initialization or through each AVCodecContext.get_buffer()
7980 * function call. In any case, they must be valid prior to calling
@@ -130,6 +131,13 @@ typedef struct AVVDPAUContext { · 50 unmodified lines
130131 #endif
131132 } AVVDPAUContext;
132133
134+/**
135+ * @brief allocation function for AVVDPAUContext
136+ *
137+ * Allows extending the struct without breaking API/ABI
138+ */
139+AVVDPAUContext *av_alloc_vdpaucontext(void);
140+
133141 #if FF_API_CAP_VDPAU
134142 /** @brief The videoSurface is used for rendering. */
135143 #define FF_VDPAU_STATE_USED_FOR_RENDER 1
libavcodec/version.h+1−1
@@ -29,7 +29,7 @@ · 28 unmodified lines
2929 #include "libavutil/avutil.h"
3030
3131 #define LIBAVCODEC_VERSION_MAJOR 55
32−#define LIBAVCODEC_VERSION_MINOR 25
32+#define LIBAVCODEC_VERSION_MINOR 26
3333 #define LIBAVCODEC_VERSION_MICRO 100
3434
3535 #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