Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Frank Plowman <post@frankplowman.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Frank Plowman <post@frankplowman.com>, James Almer <jamrial@gmail.com>
Subject: [FFmpeg-devel] [PATCH] lavc/vvc: Increase VVC_MAX_* definitions for level 6.3
Date: Sun, 25 Feb 2024 21:15:24 +0000
Message-ID: <20240225211524.31154-1-post@frankplowman.com> (raw)

Reported-by: James Almer <jamrial@gmail.com>
Signed-off-by: Frank Plowman <post@frankplowman.com>
---
 libavcodec/vvc.h | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/libavcodec/vvc.h b/libavcodec/vvc.h
index 7d165cdb86..c4cec1eb8f 100644
--- a/libavcodec/vvc.h
+++ b/libavcodec/vvc.h
@@ -123,25 +123,25 @@ enum {
     // 7.4.6.1: hrd_cpb_cnt_minus1 is in [0, 31].
     VVC_MAX_CPB_CNT = 32,
 
-    // A.4.1: the highest level allows a MaxLumaPs of 35 651 584.
-    VVC_MAX_LUMA_PS = 35651584,
+    // A.4.1: the highest level allows a MaxLumaPs of 80,216,064.
+    VVC_MAX_LUMA_PS = 80216064,
 
     // A.4.1: pic_width_in_luma_samples and pic_height_in_luma_samples are
     // constrained to be not greater than sqrt(MaxLumaPs * 8).  Hence height/
-    // width are bounded above by sqrt(8 * 35651584) = 16888.2 samples.
-    VVC_MAX_WIDTH  = 16888,
-    VVC_MAX_HEIGHT = 16888,
-
-    // A.4.1: table A.1 allows at most 440 tiles per au for any level.
-    VVC_MAX_TILES_PER_AU = 440,
-    // A.4.1: table A.1 did not define max tile rows.
-    // in worest a case, we can have 1x440 tiles picture.
+    // width are bounded above by sqrt(8 * 80216064) = 25332.4 samples.
+    VVC_MAX_WIDTH  = 25332,
+    VVC_MAX_HEIGHT = 25332,
+
+    // A.4.1: table A.2 allows at most 990 tiles per AU for any level.
+    VVC_MAX_TILES_PER_AU = 990,
+    // A.4.1: table A.2 did not define max tile rows.
+    // in worest a case, we can have 1x990 tiles picture.
     VVC_MAX_TILE_ROWS    = VVC_MAX_TILES_PER_AU,
-    // A.4.1: table A.1 allows at most 20 tile columns for any level.
-    VVC_MAX_TILE_COLUMNS = 20,
+    // A.4.1: table A.2 allows at most 30 tile columns for any level.
+    VVC_MAX_TILE_COLUMNS = 30,
 
-    // A.4.1 table A.1 allows at most 600 slice for any level.
-    VVC_MAX_SLICES = 600,
+    // A.4.1 table A.2 allows at most 1000 slices for any level.
+    VVC_MAX_SLICES = 1000,
 
     // 7.4.8: in the worst case (!pps_no_pic_partition_flag and
     // sps_entropy_coding_sync_enabled_flag are both true), entry points can be
-- 
2.43.2

_______________________________________________
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".

                 reply	other threads:[~2024-02-25 21:15 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20240225211524.31154-1-post@frankplowman.com \
    --to=post@frankplowman.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    --cc=jamrial@gmail.com \
    /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