From: Mark Thompson <sw@jkqxz.net>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH 1/2] lavc/cbs_h265: Add sps_multilayer_extension support
Date: Mon, 27 Nov 2023 17:59:04 +0000
Message-ID: <9bbe0c2f-5784-46f7-8332-3a86a0b75963@jkqxz.net> (raw)
In-Reply-To: <20231117130322.3502477-1-mypopydev@gmail.com>
On 17/11/2023 13:03, Jun Zhao wrote:
> Add sps_multilayer_extensio support.
>
> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
> ---
> libavcodec/cbs_h265.h | 3 +++
> libavcodec/cbs_h265_syntax_template.c | 12 +++++++++++-
> 2 files changed, 14 insertions(+), 1 deletion(-)
>
> diff --git a/libavcodec/cbs_h265.h b/libavcodec/cbs_h265.h
> index 1b1195f198..15951269fd 100644
> --- a/libavcodec/cbs_h265.h
> +++ b/libavcodec/cbs_h265.h
> @@ -330,6 +330,9 @@ typedef struct H265RawSPS {
> uint8_t persistent_rice_adaptation_enabled_flag;
> uint8_t cabac_bypass_alignment_enabled_flag;
>
> + // Multilayer extension.
> + uint8_t inter_view_mv_vert_constraint_flag;
> +
> // Screen content coding extension.
> uint8_t sps_curr_pic_ref_enabled_flag;
> uint8_t palette_mode_enabled_flag;
> diff --git a/libavcodec/cbs_h265_syntax_template.c b/libavcodec/cbs_h265_syntax_template.c
> index 2d4b954718..1e3bc1acd8 100644
> --- a/libavcodec/cbs_h265_syntax_template.c
> +++ b/libavcodec/cbs_h265_syntax_template.c
> @@ -717,6 +717,16 @@ static int FUNC(sps_range_extension)(CodedBitstreamContext *ctx, RWContext *rw,
> return 0;
> }
>
> +static int FUNC(sps_multilayer_extension)(CodedBitstreamContext *ctx, RWContext *rw,
> + H265RawSPS *current)
> +{
> + int err;
> +
> + flag(inter_view_mv_vert_constraint_flag);
> +
> + return 0;
> +}
> +
> static int FUNC(sps_scc_extension)(CodedBitstreamContext *ctx, RWContext *rw,
> H265RawSPS *current)
> {
> @@ -952,7 +962,7 @@ static int FUNC(sps)(CodedBitstreamContext *ctx, RWContext *rw,
> if (current->sps_range_extension_flag)
> CHECK(FUNC(sps_range_extension)(ctx, rw, current));
> if (current->sps_multilayer_extension_flag)
> - return AVERROR_PATCHWELCOME;
> + CHECK(FUNC(sps_multilayer_extension)(ctx, rw, current));
> if (current->sps_3d_extension_flag)
> return AVERROR_PATCHWELCOME;
> if (current->sps_scc_extension_flag)
This doesn't seem like it it sufficient - when in multilayer the SPS format isn't the same (§F.7.3.2.2.1).
Alternatively: maybe this works for the first layer (haven't verified this but seems plausible), and therefore to work there only it would be sufficient to check if MultiLayerExtSpsFlag is true in an SPS and stop if it is?
(A sample suitable for using with fate would help.)
Thanks,
- Mark
_______________________________________________
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-11-27 17:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-17 13:03 Jun Zhao
2023-11-17 13:03 ` [FFmpeg-devel] [PATCH 2/2] lavc/cbs_h265: Add pps_multilayer_extension support Jun Zhao
2023-11-27 17:59 ` Mark Thompson [this message]
2023-11-28 2:33 ` [FFmpeg-devel] [PATCH 1/2] lavc/cbs_h265: Add sps_multilayer_extension support mypopy
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=9bbe0c2f-5784-46f7-8332-3a86a0b75963@jkqxz.net \
--to=sw@jkqxz.net \
--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