diff options
author | Thomas Kühnel <kuehnelth@googlemail.com> | 2011-09-26 22:26:13 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-07-14 13:00:18 +0200 |
commit | f49ec1b40406b4ccc51578f2f11131ceb3eb838c (patch) | |
tree | 21c072dd3d9869eaadd3ff2350412599f7de946d /libavcodec/avcodec.h | |
parent | 2090e40410693ce30ed2080f2cea2f4ccfb9ac94 (diff) | |
download | ffmpeg-f49ec1b40406b4ccc51578f2f11131ceb3eb838c.tar.gz |
lavc: add metadata to AVFrame
See thread:
Subject: [libav-devel] [PATCH 1/3] avcodec: add metadata to AVFrame
Date: Tue, 4 Oct 2011 00:19:51 +0200
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index c007175ef1..26b732f828 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -1313,6 +1313,15 @@ typedef struct AVFrame { * - decoding: Read by user. */ int64_t pkt_duration; + + /** + * metadata. + * Code outside libavcodec should access this field using: + * av_frame_get_metadata(frame) + * - encoding: Set by user. + * - decoding: Set by libavcodec. + */ + AVDictionary *metadata; } AVFrame; /** @@ -1325,11 +1334,13 @@ int64_t av_frame_get_pkt_duration (const AVFrame *frame); int64_t av_frame_get_pkt_pos (const AVFrame *frame); int64_t av_frame_get_channel_layout (const AVFrame *frame); int av_frame_get_sample_rate (const AVFrame *frame); +AVDictionary *av_frame_get_metadata (const AVFrame *frame); void av_frame_set_best_effort_timestamp(AVFrame *frame, int64_t val); void av_frame_set_pkt_duration (AVFrame *frame, int64_t val); void av_frame_set_pkt_pos (AVFrame *frame, int64_t val); void av_frame_set_channel_layout (AVFrame *frame, int64_t val); void av_frame_set_sample_rate (AVFrame *frame, int val); +void av_frame_set_metadata (AVFrame *frame, AVDictionary *val); struct AVCodecInternal; |