Unified · Split
| @@ -15,6 +15,10 @@ libavutil: 2012-10-22 · 14 unmodified lines | |||
| 15 | 15 | ||
| 16 | API changes, most recent first: | 16 | API changes, most recent first: |
| 17 | 17 | ||
| 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 | |||
| 18 | 2013-08-xx - xxxxxxx - lavc 55.16.0 - avcodec.h | 22 | 2013-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. |
| @@ -38,6 +38,11 @@ · 37 unmodified lines | |||
| 38 | * @{ | 38 | * @{ |
| 39 | */ | 39 | */ |
| 40 | 40 | ||
| 41 | AVVDPAUContext *av_alloc_vdpaucontext(void) | ||
| 42 | { | ||
| 43 | return av_mallocz(sizeof(AVVDPAUContext)); | ||
| 44 | } | ||
| 45 | |||
| 41 | int ff_vdpau_common_start_frame(Picture *pic, | 46 | int 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) |
| @@ -73,7 +73,8 @@ union AVVDPAUPictureInfo { · 72 unmodified lines | |||
| 73 | /** | 73 | /** |
| 74 | * This structure is used to share data between the libavcodec library and | 74 | * 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 as | 76 | * 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 once | 78 | * 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 calling | 80 | * function call. In any case, they must be valid prior to calling |
| @@ -130,6 +131,13 @@ typedef struct AVVDPAUContext { · 50 unmodified lines | |||
| 130 | #endif | 131 | #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 | */ | ||
| 139 | AVVDPAUContext *av_alloc_vdpaucontext(void); | ||
| 140 | |||
| 133 | #if FF_API_CAP_VDPAU | 141 | #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 1 | 143 | #define FF_VDPAU_STATE_USED_FOR_RENDER 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 55 | 31 | #define LIBAVCODEC_VERSION_MAJOR 55 |
| 32 | #define LIBAVCODEC_VERSION_MINOR 25 | 32 | #define LIBAVCODEC_VERSION_MINOR 26 |
| 33 | #define LIBAVCODEC_VERSION_MICRO 100 | 33 | #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, \ |