[FFmpeg-devel] [PATCH 1/3 v2] avutil: Add GOP timecode frame side data
Michael Niedermayer
michael at niedermayer.cc
Sun Jan 31 21:02:43 CET 2016
On Sun, Jan 31, 2016 at 02:36:18PM +0000, Derek Buitenhuis wrote:
> Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
> ---
> doc/APIchanges | 3 +++
> libavutil/frame.c | 1 +
> libavutil/frame.h | 7 ++++++-
> libavutil/version.h | 4 ++--
> 4 files changed, 12 insertions(+), 3 deletions(-)
>
> diff --git a/doc/APIchanges b/doc/APIchanges
> index 15aefb5..45ccf13 100644
> --- a/doc/APIchanges
> +++ b/doc/APIchanges
> @@ -15,6 +15,9 @@ libavutil: 2015-08-28
>
> API changes, most recent first:
>
> +2016-01-31 - xxxxxxx - lavu 55.17.100
> + Add AV_FRAME_DATA_GOP_TIMECODE for exporting MPEG1/2 GOP timecodes.
> +
> 2016-01-01 - xxxxxxx - lavc 57.21.100 / 57.12.0 - avcodec.h
> Add AVCodecDescriptor.profiles and avcodec_profile_name().
>
> diff --git a/libavutil/frame.c b/libavutil/frame.c
> index 9f9c720..c33e462 100644
> --- a/libavutil/frame.c
> +++ b/libavutil/frame.c
> @@ -733,6 +733,7 @@ const char *av_frame_side_data_name(enum AVFrameSideDataType type)
> case AV_FRAME_DATA_SKIP_SAMPLES: return "Skip samples";
> case AV_FRAME_DATA_AUDIO_SERVICE_TYPE: return "Audio service type";
> case AV_FRAME_DATA_MASTERING_DISPLAY_METADATA: return "Mastering display metadata";
> + case AV_FRAME_DATA_GOP_TIMECODE: return "GOP timecode";
> }
> return NULL;
> }
> diff --git a/libavutil/frame.h b/libavutil/frame.h
> index 406c8b5..e07922d 100644
> --- a/libavutil/frame.h
> +++ b/libavutil/frame.h
> @@ -116,7 +116,12 @@ enum AVFrameSideDataType {
> * an AVMasteringDisplayMetadata type and contains information about the
> * mastering display color volume.
> */
> - AV_FRAME_DATA_MASTERING_DISPLAY_METADATA
> + AV_FRAME_DATA_MASTERING_DISPLAY_METADATA,
> + /**
> + * The GOP timecode in 25 bit timecode format. Data format is 64-bit integer.
> + * This is set on the first frame of a GOP.
whats the first frame of a gop ?
for example there may be B frames prior to an I frame in display
order
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Into a blind darkness they enter who follow after the Ignorance,
they as if into a greater darkness enter who devote themselves
to the Knowledge alone. -- Isha Upanishad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20160131/b9f58516/attachment.sig>
More information about the ffmpeg-devel
mailing list