Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: IndecisiveTurtle <geoster3d@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Cc: IndecisiveTurtle <geoster3d@gmail.com>
Subject: [FFmpeg-devel] [PATCH v4 2/4] libavcodec/vc2enc: Switch quant to int
Date: Sat, 17 May 2025 23:48:49 +0300
Message-ID: <20250517204907.482987-2-47210458+raphaelthegreat@users.noreply.github.com> (raw)
In-Reply-To: <20250517204907.482987-1-47210458+raphaelthegreat@users.noreply.github.com>

From: IndecisiveTurtle <geoster3d@gmail.com>

Prevents compiler from mistaking it as a string
Also makes passing it to the GPU in a buffer easier
---
 libavcodec/vc2enc_common.c | 2 +-
 libavcodec/vc2enc_common.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavcodec/vc2enc_common.c b/libavcodec/vc2enc_common.c
index bd27fd3c40..d4415674e7 100644
--- a/libavcodec/vc2enc_common.c
+++ b/libavcodec/vc2enc_common.c
@@ -304,7 +304,7 @@ static const uint8_t vc2_qm_flat_tab[][4] = {
     { 0,  0,  0,  0}
 };
 
-void ff_vc2_init_quant_matrix(VC2EncContext *s, uint8_t quant[MAX_DWT_LEVELS][4])
+void ff_vc2_init_quant_matrix(VC2EncContext *s, int quant[MAX_DWT_LEVELS][4])
 {
     int level, orientation;
 
diff --git a/libavcodec/vc2enc_common.h b/libavcodec/vc2enc_common.h
index 0466869943..159f72452e 100644
--- a/libavcodec/vc2enc_common.h
+++ b/libavcodec/vc2enc_common.h
@@ -108,7 +108,7 @@ typedef struct VC2EncContext {
     int profile;
 
     /* Quantization matrix */
-    uint8_t quant[MAX_DWT_LEVELS][4];
+    int quant[MAX_DWT_LEVELS][4];
     int custom_quant_matrix;
 
     /* Division LUT */
@@ -169,7 +169,7 @@ int ff_vc2_encode_init(AVCodecContext *avctx, int depth);
 
 int ff_vc2_frame_init_properties(AVCodecContext *avctx, VC2EncContext *s);
 
-void ff_vc2_init_quant_matrix(VC2EncContext *s, uint8_t quant[MAX_DWT_LEVELS][4]);
+void ff_vc2_init_quant_matrix(VC2EncContext *s, int quant[MAX_DWT_LEVELS][4]);
 
 void ff_vc2_encode_frame(VC2EncContext *s, void(*encode_slices)(VC2EncContext*));
 
-- 
2.49.0

_______________________________________________
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:[~2025-05-17 20:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-17 20:48 [FFmpeg-devel] [PATCH v4 1/4] libavcodec/vc2enc: Split out common functions between software and hardware encoders IndecisiveTurtle
2025-05-17 20:48 ` IndecisiveTurtle [this message]
2025-05-17 20:48 ` [FFmpeg-devel] [PATCH v4 3/4] libavcodec/vulkan: Add modifications to common shader for VC2 vulkan encoder IndecisiveTurtle
2025-05-19 16:46   ` Andreas Rheinhardt
2025-05-19 17:02     ` IndecisiveTurtle
2025-05-17 20:48 ` [FFmpeg-devel] [PATCH v4 4/4] lavc: implement a Vulkan-based VC-2 encoder Implements a Vulkan based dirac encoder. Supports Haar and Legall wavelets and should work with all wavelet depths IndecisiveTurtle
2025-05-17 20:50   ` IndecisiveTurtle
2025-05-19 17:09   ` Andreas Rheinhardt
2025-05-19 17:40     ` IndecisiveTurtle
2025-05-19 15:56 ` [FFmpeg-devel] [PATCH v4 1/4] libavcodec/vc2enc: Split out common functions between software and hardware encoders Andreas Rheinhardt

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=20250517204907.482987-2-47210458+raphaelthegreat@users.noreply.github.com \
    --to=geoster3d@gmail.com \
    --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