From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v2 1/4] cbs_av1: Add tracing headers for metadata types
Date: Thu, 23 Feb 2023 10:14:51 -0300
Message-ID: <de246d3a-3bcc-3fd9-08fb-e8d3eba2d09a@gmail.com> (raw)
In-Reply-To: <20230124224623.1374077-1-sw@jkqxz.net>
On 1/24/2023 7:46 PM, Mark Thompson wrote:
> Make it a little easier to interpret metadata in trace output.
> ---
> libavcodec/cbs_av1_syntax_template.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/libavcodec/cbs_av1_syntax_template.c b/libavcodec/cbs_av1_syntax_template.c
> index e95925a493..817a0f8ae6 100644
> --- a/libavcodec/cbs_av1_syntax_template.c
> +++ b/libavcodec/cbs_av1_syntax_template.c
> @@ -1843,6 +1843,8 @@ static int FUNC(metadata_hdr_cll)(CodedBitstreamContext *ctx, RWContext *rw,
> {
> int err;
>
> + HEADER("HDR CLL Metadata");
> +
> fb(16, max_cll);
> fb(16, max_fall);
>
> @@ -1854,6 +1856,8 @@ static int FUNC(metadata_hdr_mdcv)(CodedBitstreamContext *ctx, RWContext *rw,
> {
> int err, i;
>
> + HEADER("HDR MDCV Metadata");
> +
> for (i = 0; i < 3; i++) {
> fbs(16, primary_chromaticity_x[i], 1, i);
> fbs(16, primary_chromaticity_y[i], 1, i);
> @@ -1920,6 +1924,8 @@ static int FUNC(metadata_scalability)(CodedBitstreamContext *ctx, RWContext *rw,
> {
> int err;
>
> + HEADER("Scalability Metadata");
> +
> fb(8, scalability_mode_idc);
>
> if (current->scalability_mode_idc == AV1_SCALABILITY_SS)
> @@ -1934,6 +1940,8 @@ static int FUNC(metadata_itut_t35)(CodedBitstreamContext *ctx, RWContext *rw,
> int err;
> size_t i;
>
> + HEADER("ITU-T T.35 Metadata");
> +
> fb(8, itu_t_t35_country_code);
> if (current->itu_t_t35_country_code == 0xff)
> fb(8, itu_t_t35_country_code_extension_byte);
> @@ -1961,6 +1969,8 @@ static int FUNC(metadata_timecode)(CodedBitstreamContext *ctx, RWContext *rw,
> {
> int err;
>
> + HEADER("Timecode Metadata");
> +
> fb(5, counting_type);
> flag(full_timestamp_flag);
> flag(discontinuity_flag);
Set LGTM.
_______________________________________________
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:[~2023-02-23 13:14 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-24 22:46 Mark Thompson
2023-01-24 22:46 ` [FFmpeg-devel] [PATCH v2 2/4] cbs_av1: Don't reject unknown metadata Mark Thompson
2023-01-24 22:46 ` [FFmpeg-devel] [PATCH v2 3/4] av1_parse: Remove unused getbits instance Mark Thompson
2023-01-24 22:46 ` [FFmpeg-devel] [PATCH v2 4/4] av1_parse: Don't reject zero-size padding OBUs Mark Thompson
2023-02-23 13:14 ` James Almer [this message]
2023-05-17 20:49 ` [FFmpeg-devel] [PATCH v2 1/4] cbs_av1: Add tracing headers for metadata types Mark Thompson
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=de246d3a-3bcc-3fd9-08fb-e8d3eba2d09a@gmail.com \
--to=jamrial@gmail.com \
--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