See thread: Subject: [libav-devel] [PATCH 1/3] avcodec: add metadata to AVFrame Date: Tue, 4 Oct 2011 00:19:51 +0200
Unified · Split
| @@ -15,6 +15,10 @@ libavutil: 2011-04-18 · 14 unmodified lines | ||
| 15 | 15 | |
| 16 | 16 | API changes, most recent first: |
| 17 | 17 | |
| 18 | +2012-07-14 - xxxxxxx - lavc 54.38.100 - avcodec.h | |
| 19 | + Add metadata to AVFrame, and the accessor functions | |
| 20 | + av_frame_get_metadata() and av_frame_set_metadata(). | |
| 21 | + | |
| 18 | 22 | 2012-07-10 - xxxxxxx - lavc 54.33.100 |
| 19 | 23 | Add av_fast_padded_mallocz(). |
| 20 | 24 | |
| @@ -1313,6 +1313,15 @@ typedef struct AVFrame { · 1312 unmodified lines | ||
| 1313 | 1313 | * - decoding: Read by user. |
| 1314 | 1314 | */ |
| 1315 | 1315 | int64_t pkt_duration; |
| 1316 | + | |
| 1317 | + /** | |
| 1318 | + * metadata. | |
| 1319 | + * Code outside libavcodec should access this field using: | |
| 1320 | + * av_frame_get_metadata(frame) | |
| 1321 | + * - encoding: Set by user. | |
| 1322 | + * - decoding: Set by libavcodec. | |
| 1323 | + */ | |
| 1324 | + AVDictionary *metadata; | |
| 1316 | 1325 | } AVFrame; |
| 1317 | 1326 | |
| 1318 | 1327 | /** |
| @@ -1325,11 +1334,13 @@ int64_t av_frame_get_pkt_duration (const AVFrame *frame); · 6 unmodified lines | ||
| 1325 | 1334 | int64_t av_frame_get_pkt_pos (const AVFrame *frame); |
| 1326 | 1335 | int64_t av_frame_get_channel_layout (const AVFrame *frame); |
| 1327 | 1336 | int av_frame_get_sample_rate (const AVFrame *frame); |
| 1337 | +AVDictionary *av_frame_get_metadata (const AVFrame *frame); | |
| 1328 | 1338 | void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val); |
| 1329 | 1339 | void av_frame_set_pkt_duration (AVFrame *frame, int64_t val); |
| 1330 | 1340 | void av_frame_set_pkt_pos (AVFrame *frame, int64_t val); |
| 1331 | 1341 | void av_frame_set_channel_layout (AVFrame *frame, int64_t val); |
| 1332 | 1342 | void av_frame_set_sample_rate (AVFrame *frame, int val); |
| 1343 | +void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); | |
| 1333 | 1344 | |
| 1334 | 1345 | struct AVCodecInternal; |
| 1335 | 1346 | |
| @@ -725,6 +725,7 @@ MAKE_ACCESSORS(AVFrame, frame, int64_t, pkt_duration) · 724 unmodified lines | ||
| 725 | 725 | MAKE_ACCESSORS(AVFrame, frame, int64_t, pkt_pos) |
| 726 | 726 | MAKE_ACCESSORS(AVFrame, frame, int64_t, channel_layout) |
| 727 | 727 | MAKE_ACCESSORS(AVFrame, frame, int, sample_rate) |
| 728 | +MAKE_ACCESSORS(AVFrame, frame, AVDictionary *, metadata) | |
| 728 | 729 | |
| 729 | 730 | MAKE_ACCESSORS(AVCodecContext, codec, AVRational, pkt_timebase) |
| 730 | 731 | |
| @@ -27,7 +27,7 @@ · 26 unmodified lines | ||
| 27 | 27 | */ |
| 28 | 28 | |
| 29 | 29 | #define LIBAVCODEC_VERSION_MAJOR 54 |
| 30 | −#define LIBAVCODEC_VERSION_MINOR 37 | |
| 30 | +#define LIBAVCODEC_VERSION_MINOR 38 | |
| 31 | 31 | #define LIBAVCODEC_VERSION_MICRO 100 |
| 32 | 32 | |
| 33 | 33 | #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ |