From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2 2/4] avcodec: add support for hevc ambient viewing environment SEI message
Date: Mon, 28 Mar 2022 16:30:49 +0200
Message-ID: <20220328143049.GF2829255@pb2> (raw)
In-Reply-To: <1648471271-22016-2-git-send-email-lance.lmwang@gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1198 bytes --]
On Mon, Mar 28, 2022 at 08:41:09PM +0800, lance.lmwang@gmail.com wrote:
> From: Limin Wang <lance.lmwang@gmail.com>
>
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
> libavcodec/hevc_sei.c | 19 +++++++++++++++++++
> libavcodec/hevc_sei.h | 8 ++++++++
> libavcodec/hevcdec.c | 10 ++++++++++
> tests/ref/fate/hevc-dv-rpu | 6 ++++++
> 4 files changed, 43 insertions(+)
>
> diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c
> index ec3036f..d94df4e 100644
> --- a/libavcodec/hevc_sei.c
> +++ b/libavcodec/hevc_sei.c
> @@ -497,6 +497,23 @@ static int decode_film_grain_characteristics(HEVCSEIFilmGrainCharacteristics *h,
> return 0;
> }
>
> +static int decode_ambient_viewing_env(HEVCSEIAmbientViewingEnvironment *s, GetBitContext *gb, int size)
> +{
> + if (size < 8)
> + return AVERROR_INVALIDDATA;
> +
> + s->ambient_illuminance = get_bits(gb, 32);
get_bits_long
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Its not that you shouldnt use gotos but rather that you should write
readable code and code with gotos often but not always is less readable
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2022-03-28 14:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-27 23:25 [FFmpeg-devel] [PATCH 1/4] avutil: add ambient viewing environment metadata side data lance.lmwang
2022-03-27 23:25 ` [FFmpeg-devel] [PATCH 2/4] avcodec: add support for hevc ambient viewing environment SEI message lance.lmwang
2022-03-27 23:25 ` [FFmpeg-devel] [PATCH 3/4] avfilter/vf_showinfo: add support for ambient viewing environment metadata lance.lmwang
2022-03-27 23:25 ` [FFmpeg-devel] [PATCH 4/4] fftools/ffprobe: " lance.lmwang
2022-03-27 23:30 ` [FFmpeg-devel] [PATCH 1/4] avutil: add ambient viewing environment metadata side data James Almer
2022-03-28 1:28 ` lance.lmwang
2022-03-28 12:41 ` [FFmpeg-devel] [PATCH v2 " lance.lmwang
2022-03-28 12:41 ` [FFmpeg-devel] [PATCH v2 2/4] avcodec: add support for hevc ambient viewing environment SEI message lance.lmwang
2022-03-28 14:30 ` Michael Niedermayer [this message]
2022-03-28 23:09 ` lance.lmwang
2022-03-28 12:41 ` [FFmpeg-devel] [PATCH v2 3/4] avfilter/vf_showinfo: add support for ambient viewing environment metadata lance.lmwang
2022-03-28 12:41 ` [FFmpeg-devel] [PATCH v2 4/4] fftools/ffprobe: " lance.lmwang
2022-04-05 6:40 ` [FFmpeg-devel] [PATCH v2 1/4] avutil: add ambient viewing environment metadata side data lance.lmwang
2022-04-05 9:13 ` Anton Khirnov
2022-04-05 9:24 ` lance.lmwang
2022-04-05 13:47 ` [FFmpeg-devel] [PATCH v3 1/5] " lance.lmwang
2022-04-05 13:47 ` [FFmpeg-devel] [PATCH v3 2/5] avcodec: add support for hevc ambient viewing environment SEI message lance.lmwang
2022-04-05 13:47 ` [FFmpeg-devel] [PATCH v3 3/5] avfilter/vf_showinfo: add support for ambient viewing environment metadata lance.lmwang
2022-04-05 13:47 ` [FFmpeg-devel] [PATCH v3 4/5] fftools/ffprobe: " lance.lmwang
2022-04-05 13:47 ` [FFmpeg-devel] [PATCH v3 5/5] avfilter/vf_showinfo: fix unknown side data type for DOVI_RPU_BUFFER lance.lmwang
2022-04-05 15:32 ` [FFmpeg-devel] [PATCH v3 1/5] avutil: add ambient viewing environment metadata side data Andreas Rheinhardt
2022-04-05 19:00 ` Lynne
2022-04-05 19:13 ` Anton Khirnov
2022-04-05 19:42 ` Andreas Rheinhardt
2022-04-05 23:11 ` lance.lmwang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220328143049.GF2829255@pb2 \
--to=michael@niedermayer.cc \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git