History

vdpau: deprecate VDPAU codec capability

Rémi Denis-Courmont committed 13 years ago

Commit 549294f1 parent a0ad5d04 files · +12 −2Browse files

Unified · Split

4 files
  1. doc/APIchanges +4 −0
  2. libavcodec/avcodec.h +2 −0
  3. libavcodec/vdpau.h +2 −1
  4. libavcodec/version.h +4 −1
doc/APIchanges+4−0
@@ -13,6 +13,10 @@ libavutil: 2012-10-22 · 12 unmodified lines
1313
1414 API changes, most recent first:
1515
16+2013-08-xx - xxxxxxx - lavc 55.12.0 - avcodec.h
17+ Deprecate the CODEC_CAP_HWACCEL_VDPAU codec capability. Use CODEC_CAP_HWACCEL
18+ and select the AV_PIX_FMT_VDPAU format with get_format() instead.
19+
1620 2013-08-xx - xxxxxxx - lavu 52.14.0 - pixfmt.h
1721 Deprecate AV_PIX_FMT_VDPAU_*. Use AV_PIX_FMT_VDPAU instead.
1822
libavcodec/avcodec.h+2−0
@@ -700,10 +700,12 @@ typedef struct RcOverride{ · 699 unmodified lines
700700 * This can be used to prevent truncation of the last audio samples.
701701 */
702702 #define CODEC_CAP_SMALL_LAST_FRAME 0x0040
703+#if FF_API_CAP_VDPAU
703704 /**
704705 * Codec can export data for HW decoding (VDPAU).
705706 */
706707 #define CODEC_CAP_HWACCEL_VDPAU 0x0080
708+#endif
707709 /**
708710 * Codec can output multiple frames per AVPacket
709711 * Normally demuxers return one frame at a time, demuxers which do not do
libavcodec/vdpau.h+2−1
@@ -113,7 +113,7 @@ typedef struct AVVDPAUContext { · 112 unmodified lines
113113 VdpBitstreamBuffer *bitstream_buffers;
114114 } AVVDPAUContext;
115115
116−
116+#if FF_API_CAP_VDPAU
117117 /** @brief The videoSurface is used for rendering. */
118118 #define FF_VDPAU_STATE_USED_FOR_RENDER 1
119119
@@ -145,6 +145,7 @@ struct vdpau_render_state { · 25 unmodified lines
145145 /** The user is responsible for freeing this buffer using av_freep(). */
146146 VdpBitstreamBuffer *bitstream_buffers;
147147 };
148+#endif
148149
149150 /* @}*/
150151
libavcodec/version.h+4−1
@@ -27,7 +27,7 @@ · 26 unmodified lines
2727 */
2828
2929 #define LIBAVCODEC_VERSION_MAJOR 55
30−#define LIBAVCODEC_VERSION_MINOR 11
30+#define LIBAVCODEC_VERSION_MINOR 12
3131 #define LIBAVCODEC_VERSION_MICRO 0
3232
3333 #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -64,5 +64,8 @@ · 30 unmodified lines
6464 #ifndef FF_API_LOWRES
6565 #define FF_API_LOWRES (LIBAVCODEC_VERSION_MAJOR < 56)
6666 #endif
67+#ifndef FF_API_CAP_VDPAU
68+#define FF_API_CAP_VDPAU (LIBAVCODEC_VERSION_MAJOR < 56)
69+#endif
6770
6871 #endif /* AVCODEC_VERSION_H */

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