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 ESMTPS id 791F04C3AA for ; Sat, 22 Feb 2025 07:52:13 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 5972368C636; Sat, 22 Feb 2025 09:52:09 +0200 (EET) Received: from mail-pj1-f50.google.com (mail-pj1-f50.google.com [209.85.216.50]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 7E26B68C4B3 for ; Sat, 22 Feb 2025 09:52:03 +0200 (EET) Received: by mail-pj1-f50.google.com with SMTP id 98e67ed59e1d1-2f9d3d0f55dso4477950a91.1 for ; Fri, 21 Feb 2025 23:52:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740210721; x=1740815521; 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=gPEHpbMyC6339YffjfUIzdxCUdowlQv6Ta/lwdDr3po=; b=FSkSFCK+d0U9EU00ZD9715LryB84eRLvTCZY8HrGYnQQ4BE7KFYl27kALufxnJds3j nuj2wwHKVejShjK6gf84jC3JAXfvch15pZn/pRqcFT1wTPzoWxRi+YXMNcR67P8LgFGN F2pLzD7z88Me3HZQh+l239UDLVmQBiWMQl+DnyFQVQnXm/ESTDSzfaupT524b7f5xZ0H Eyo5a9d2OPW1BZbtFXwos1jsf688wkYxL+5c/UpVV26zeBgLYfQWI3IIIKXuxdmhIeoo 6jvjyj/I6o8wOX5tBFNENzbsopMy9G8NR6MN+yXiz7rGDYWGXnXP3L+0yrsxApqwUo3z GlSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740210721; x=1740815521; 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=gPEHpbMyC6339YffjfUIzdxCUdowlQv6Ta/lwdDr3po=; b=rzKUtJAx8RokJiqmDZ7db3NujSDlAC69IoChMACSOF4/O/8T242bKnt/tiLgl0LmeQ 7eCAy4mVRaGWFMXVXP4HEApREzJUe4nQRvUL9Opr25zHNBKs17/irx+bYfveOWbAEiFe zqH1isFGD4RC7b8XTU1PQXBv4es3EU8Ez8i+TNY208Z1Tfce/h26miqsyRtrubScOuZo A7Yi3QeoGL+8Qf/ysPzBeXdjbdDz0nWI51Yn8HrxRfTKhEeidEJW6hoCRtEvxt5aj+P2 NZLX3/nAmTROHamGZ0qKN2Gx4uYsKFLoYLqE3XgfDqrrYXAT6gGdsWhllpH2ITNNA14A ji/A== X-Gm-Message-State: AOJu0YzYxxjIt1jUNSy4xt7McRl24c4TvNGhxvwd8IS89sy8b4tdqZvy +V1dRpB7DmxeZVPfVQ9vedguZGlw0sfsSfG/a5gOWYTdqz1D6MRruWHULYSeHC0= X-Gm-Gg: ASbGncvJPQ2PLAUdNoqlS5iVYGyuAD9luPim5M5I+HIGXlgPYHCrWY5bHAVwEA/L8H8 b2QxVMriGgDnJ6353lfxHxGlVfrYMXuinLxPVGcqDPp3hkMGB03C7LnW8cfyW0QQeiyHqjo69bB rM9CdgWQLWEQDc0x6IA62F4933SbTaDa9O6+H2fWH9/ENXp2ndRla5VNYQvXoFauqZ3ToTZe4cO AVOu0tYVsEyge+aTbqy4SVFTWie2Fa6sXi5kymjWTv6SUn9ylr27bRfAiJ/gmWotbHOMM9aLsmq alLTVO2kZH9fakv+F815/Q== X-Google-Smtp-Source: AGHT+IF0/6BXhJaKwnyBqVcdl5mnHINP3VjeFFz7uvdDFmAePcDYY/tdt//kMc1ctuu9p8VpX6i9xw== X-Received: by 2002:a17:90b:37c7:b0:2ee:5691:774e with SMTP id 98e67ed59e1d1-2fce77a6268mr10637080a91.2.1740210721316; Fri, 21 Feb 2025 23:52:01 -0800 (PST) Received: from localhost ([112.64.62.119]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d5349634sm145806785ad.31.2025.02.21.23.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Feb 2025 23:52:01 -0800 (PST) From: Nuo Mi To: ffmpeg-devel@ffmpeg.org Date: Sat, 22 Feb 2025 15:51:54 +0800 Message-Id: <20250222075155.504540-1-nuomi2021@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 1/2] lavc/vvc: Fix slice map construction for small subpics 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: Frank Plowman 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: From: Frank Plowman In the case pps_subpic_less_than_one_tile_slice is called, the subpicture is smaller than the tile and so there are multiple subpictures in the tile. Of course, then, not all the subpictures can start in the top-left corner as the code before the patch does. Patch fixes this, so each subpicture starts at the signalled location as is specified in section 6.5.1 of H.266(V3). Signed-off-by: Frank Plowman --- libavcodec/vvc/ps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libavcodec/vvc/ps.c b/libavcodec/vvc/ps.c index 5ae423a737..d8794277d2 100644 --- a/libavcodec/vvc/ps.c +++ b/libavcodec/vvc/ps.c @@ -453,8 +453,8 @@ static void subpic_tiles(int *tile_x, int *tile_y, int *tile_x_end, int *tile_y_ static void pps_subpic_less_than_one_tile_slice(VVCPPS *pps, const VVCSPS *sps, const int i, const int tx, const int ty, int *off) { pps->num_ctus_in_slice[i] = pps_add_ctus(pps, off, - pps->col_bd[tx], pps->row_bd[ty], - pps->r->col_width_val[tx], sps->r->sps_subpic_height_minus1[i] + 1); + sps->r->sps_subpic_ctu_top_left_x[i], sps->r->sps_subpic_ctu_top_left_y[i], + sps->r->sps_subpic_width_minus1[i] + 1, sps->r->sps_subpic_height_minus1[i] + 1); } static void pps_subpic_one_or_more_tiles_slice(VVCPPS *pps, const int tile_x, const int tile_y, const int x_end, const int y_end, const int i, int *off) -- 2.34.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".