From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1673B46C44 for ; Mon, 7 Aug 2023 15:17:36 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5F1AE68C5B0; Mon, 7 Aug 2023 18:17:33 +0300 (EEST) Received: from mail-oa1-f45.google.com (mail-oa1-f45.google.com [209.85.160.45]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 11D9168BAC3 for ; Mon, 7 Aug 2023 18:17:27 +0300 (EEST) Received: by mail-oa1-f45.google.com with SMTP id 586e51a60fabf-1bbb4bde76dso3434578fac.2 for ; Mon, 07 Aug 2023 08:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691421444; x=1692026244; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ASc8/sV9bYF9vBgMl9j4ZMWMFKEUV+s3SUAEXrht61o=; b=KLzzEqblQLvmM74xpSbMGv/DX0ZJGhMd+6czI7mU6OUR0MJNgVzBphjy9yykw9KGVY jHUZUVtXge3pV1I8tpxtMtUggKriONEVfjIokMqPp7Bu5z4tsSu6uL/YVvyhIMRXDo2u 9IShWVi03TdoaSb9Efeq5/R5PjUkBgefml6TN4lMEChaMNiXwGoKqtcLAXrFpm+VPSov yPjqOnNvaYfq1Btby6RoSBFHIS+3kF2hJtjD6HY8kZkpAsUGFOH6TuC20AfvIZR4MuQe SkJ1uPgLKeytni0zsuCRdrwmUwmU6jYs369Ho/NISj5dELm5yrMinC1O61PNYMjOGdFU 4ukw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691421444; x=1692026244; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ASc8/sV9bYF9vBgMl9j4ZMWMFKEUV+s3SUAEXrht61o=; b=FLfojl6Z9Ls8C6r2BEeGrID6Imm+uXvgyTjGrpFno1IqRWmX5nh7Rx2GysMR+H9KBo SMGSPbgYtSSeShRrmNKV7nQCL9/w8Jc2S2+wIkAM/OguhPkESjxvCvjCbsUe8fq15vwv MaAvWhd4Bvp5pT/vtGe7bewXUd/ab4H3hzFA2Iycz1gkncktsGdJeMZS0fmTAxR6e3h5 R2n/P1hZEATn/1p/D3O3Hj78bGkxtVobdWGPZh4SiO3zFv0qzie99++hd5EqtI8bkJ8x mjNI1KdoIw5hUobcAtYYoYuirEPxv0ncnYACWUplUMgx75oIhVFPKfrCwJtd0mi627Hm iXcw== X-Gm-Message-State: AOJu0YwxeCL202o73ysRCitgKjqCPjCpkDlgevJNaPu0Bnkyy0jFC6Ya tGdKSEV2oPZCNdUr113VXfDCnvE4O4Y= X-Google-Smtp-Source: AGHT+IHVcNlHj8WWjRnk84sC1fNQB1bhwFsI7GDdIQuE67u4+8tPovrr75eNOEDZg4YfnjPJGPpPCg== X-Received: by 2002:a05:6870:818a:b0:1bf:1a38:283b with SMTP id k10-20020a056870818a00b001bf1a38283bmr12349646oae.9.1691421444661; Mon, 07 Aug 2023 08:17:24 -0700 (PDT) Received: from [192.168.0.16] (host197.190-225-105.telecom.net.ar. [190.225.105.197]) by smtp.gmail.com with ESMTPSA id xv9-20020a05687121c900b0019e6b96f909sm4988252oab.22.2023.08.07.08.17.23 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 08:17:24 -0700 (PDT) Message-ID: Date: Mon, 7 Aug 2023 12:17:25 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Content-Language: en-US To: ffmpeg-devel@ffmpeg.org References: From: James Almer In-Reply-To: Subject: Re: [FFmpeg-devel] [PATCH 1/8] cbs_h266: fix inference for sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On 8/7/2023 11:55 AM, Nuo Mi wrote: > if sh_picture_header_in_slice_header_flag is true > sh_lmcs_used_flag and sh_explicit_scaling_list_used_flag are infered from ph > --- > libavcodec/cbs_h266_syntax_template.c | 24 ++++++++++++++---------- > 1 file changed, 14 insertions(+), 10 deletions(-) > > diff --git a/libavcodec/cbs_h266_syntax_template.c b/libavcodec/cbs_h266_syntax_template.c > index 98a8e033bf..857882655b 100644 > --- a/libavcodec/cbs_h266_syntax_template.c > +++ b/libavcodec/cbs_h266_syntax_template.c > @@ -3151,17 +3151,21 @@ static int FUNC(slice_header) (CodedBitstreamContext *ctx, RWContext *rw, > infer(sh_alf_enabled_flag, 0); > } > > - if (ph->ph_lmcs_enabled_flag && > - !current->sh_picture_header_in_slice_header_flag) > - flag(sh_lmcs_used_flag); > - else > - infer(sh_lmcs_used_flag, 0); > + if (current->sh_picture_header_in_slice_header_flag) { > + infer(sh_lmcs_used_flag, ph->ph_lmcs_enabled_flag); > + infer(sh_explicit_scaling_list_used_flag, > + ph->ph_explicit_scaling_list_enabled_flag); > + } else { > + if (ph->ph_lmcs_enabled_flag) > + flag(sh_lmcs_used_flag); > + else > + infer(sh_lmcs_used_flag, 0); > > - if (ph->ph_explicit_scaling_list_enabled_flag && > - !current->sh_picture_header_in_slice_header_flag) > - flag(sh_explicit_scaling_list_used_flag); > - else > - infer(sh_explicit_scaling_list_used_flag, 0); > + if (ph->ph_explicit_scaling_list_enabled_flag) > + flag(sh_explicit_scaling_list_used_flag); > + else > + infer(sh_explicit_scaling_list_used_flag, 0); > + } > > if (!pps->pps_rpl_info_in_ph_flag && > ((nal_unit_type != VVC_IDR_W_RADL && Do you know which samples from the conformance suite exercise this, and patches 2 and 3? _______________________________________________ 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".