[FFmpeg-devel] [PATCH] Adding frame side data about green metadata

Michael Niedermayer michael at niedermayer.cc
Wed Dec 23 14:49:11 CET 2015


On Wed, Dec 23, 2015 at 12:43:48PM +0000, Nicolas Derouineau wrote:
> > Sorry if I missed something:
> > What is green metadata?
> 
> Greenmetadata is a set of metrics specified in ISO/IEC 23001-11.
> 
> They are used to predict the decoding complexity (in terms of cycles) of AVC frames. It is useful to perform DVFS (ie: CPU frequency scaling) in order to reduce decoder power consumption.
> 
> By the way, I'm not sure the patch was correctly attached. I'm trying one more time to attach it.
[...]

> index e69de29..7b383e7 100644
> --- a/libavutil/greenmetadata.h
> +++ b/libavutil/greenmetadata.h
> @@ -0,0 +1,38 @@
> +/*
> + * Copyright (c) 2015 Nicolas DEROUINEAU <nicolas.derouineau at vitec.com>
> + *
> + * This file is part of FFmpeg.
> + *
> + * FFmpeg is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public
> + * License as published by the Free Software Foundation; either
> + * version 2.1 of the License, or (at your option) any later version.
> + *
> + * FFmpeg is distributed in the hope that it will be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with FFmpeg; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +
> +#ifndef AVUTIL_GREENMD_H
> +#define AVUTIL_GREENMD_H
> +
> +#include <stdint.h>

> +#include <libavcodec/h264.h>

libavutil should not include stuff from libavcodec
also it would be "libavcodec/h264.h" not <libavcodec/h264.h>


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Breaking DRM is a little like attempting to break through a door even
though the window is wide open and the only thing in the house is a bunch
of things you dont want and which you would get tomorrow for free anyway
-------------- 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/20151223/2fb1ee18/attachment.sig>


More information about the ffmpeg-devel mailing list