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 6127247CD9 for ; Fri, 17 Nov 2023 13:03:35 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 637DA68CD00; Fri, 17 Nov 2023 15:03:34 +0200 (EET) Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 539F668C778 for ; Fri, 17 Nov 2023 15:03:27 +0200 (EET) Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-40859dee28cso16148265e9.0 for ; Fri, 17 Nov 2023 05:03:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700226206; x=1700831006; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=K6uTupceGFohu8hMAC4V2ePF54PjJU1OUnqasjJbRPs=; b=e2Nw0k/15ZtFryuQITQujN4qu/N/CM7h4IeVIH7XNFKid0ZlOFQQCM31rG140XNE2B 47xllBv6nbKauR2Nng/hZg8Uh7CPyegEKDcHHliZSFiUGQD1NP8ICoVTuTGtIFa5gejN u6d3+t2JHUi6Y/DFpV3dAsdYTVy/D7tPRNKUF213mQSJ9RXrz05/lxoWVazr1uHTYJoB 8DNUlvIdPD08Fwb8CJKRbjhI1oCLJTRyj9SRa1DdhlRiCTbgFcB6NJUEsJawuOE9L2Ee qPkWOEFgWqqjaPVpFPj0D6hOYkDYkwAuqRSJ4JudYpe0BgT47hb7NMXIE+uOQySJXmwq qoFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700226206; x=1700831006; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=K6uTupceGFohu8hMAC4V2ePF54PjJU1OUnqasjJbRPs=; b=ndqOKqQh4jD3fmM6pjwfwVBTFYjRDIIYD8S+oKzYQg7kJ24+u2+zLHRoqX0k0/LtJk w4Mrvl50Ra1+Rnf8Eon3SKOuoLDtba4chwgLXKeAi2JvJBGP6IyYHzXB6B6uHmFuG+qi oaNfPs9ZEaA7lObxHzMjO/XVTvTNi+jbj6CMpSK4jRO2uOWPccYMoqwyP3XiQXd+oOoq MoC2Rw/fk36n71/hfUvc/5MVlSon80S2yyhRRFzpct/t4Re6YHM7cI4zNBiqJbIr59/N OaQUpPcSUdXXNP+Hb3WaasvAktuIfT2N8d9VZbr/Ns20KLkVDULUNF9ryV5322kvs6lM iBPg== X-Gm-Message-State: AOJu0YyM/RTFxJatFgn5fo8g+MzE5B/M1Ke8de+AfeKoaVD+/7yGQ5+k QDNbE1F70sOChAfqeopb+iyMrn/Qth79kMtB X-Google-Smtp-Source: AGHT+IEdLcbFYQAM4N3W+eOx2tOdIox7AJ9v0JFSOk/ySWrkUMR3L9QnqIr6bg5GfhZGkTBwxxW4Yw== X-Received: by 2002:a05:600c:3143:b0:3fb:feb0:6f40 with SMTP id h3-20020a05600c314300b003fbfeb06f40mr16007010wmo.11.1700226205954; Fri, 17 Nov 2023 05:03:25 -0800 (PST) Received: from localhost.localdomain ([49.51.162.193]) by smtp.gmail.com with ESMTPSA id d34-20020a05600c4c2200b0040a48430837sm6919203wmp.13.2023.11.17.05.03.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:03:25 -0800 (PST) From: Jun Zhao To: ffmpeg-devel@ffmpeg.org Date: Fri, 17 Nov 2023 21:03:21 +0800 Message-Id: <20231117130322.3502477-1-mypopydev@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH 1/2] lavc/cbs_h265: Add sps_multilayer_extension support 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 Cc: Jun Zhao , Jun Zhao Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: Add sps_multilayer_extensio support. Signed-off-by: Jun Zhao --- 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) -- 2.25.1 _______________________________________________ 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".