From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 7798B4D940 for ; Mon, 2 Jun 2025 19:14:09 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 8A1B368DF6F; Mon, 2 Jun 2025 22:13:36 +0300 (EEST) Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.41]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 60A3F68DF67 for ; Mon, 2 Jun 2025 22:13:35 +0300 (EEST) Received: by mail-lf1-f41.google.com with SMTP id 2adb3069b0e04-5532f6d184eso6040708e87.0 for ; Mon, 02 Jun 2025 12:13:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748891614; x=1749496414; darn=ffmpeg.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2WRKQ1FVSJwxuTh0URFCO8xHvDVmMUCCbA8jvqNoWDI=; b=Ee+NeNeANP+O9oS6j6xIpElkjHxmUXhjuzfIplj4PXbGMlM1gZq52G3ZLPc+78+be9 6JsiFssPLPQnCqN2ZLKryNmfq6TYu0ZLaW7dAEuKQr0X0ZPBGj5CD5LAezwhLT8AKDDx fENrlTwvQMl8n6LhCx8WpRuZ/4l/vHkl/LrNLJSDtN0+gOkIAgwllMR/MqQqEEuzKcOx 3nk1ey8hjFmQk84NUmis+RY/CRjdO2IwravD/y5PNrwUFSsxhJvIPPA+rKF83gD49oFV i19tVaa8A3j+DQNWZjbu7hG9pMe+VsljOl9HL055OK37V+wZJGBPjlotBnuQCiQ+gUKJ flCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748891614; x=1749496414; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2WRKQ1FVSJwxuTh0URFCO8xHvDVmMUCCbA8jvqNoWDI=; b=Ee07MdE/s/KFwtZnZHkqVb0HXQ+fMceBSY36AP2RQxMduL75Emq9qahjXm9tesWxip XjQdIVtHpcRlbPkeChY2b4h+SeJx1UDzPSVXp7JYsAgoK6LBk3hisphWBMBZPqFV05j8 tjBu5gHV8JPku5r5Oy1rtqZqfRggTQIWVdGCUd5Q1GLTMr8bLOnBiX2FBTHZI1sFyt8A 6tO+ETeZTP1uD36BgbFeNG65CtgP9JGzYUG3CFfOyrx5t9bIGqle1hhi0jyi46f+FHiy YXBY4HrLrORr59MoIqFUnSjY4ozgkuDn65gumL1ffv910U1NGOY0sbUdMKXDS7YVkDa0 2DfQ== X-Gm-Message-State: AOJu0YxSp3qYRRdGzEWKysCWx3Cm2/QRXaevJY8A1EQ0CzgRztsvxjyM 05wGoNDqm0d4L1ShpribBEuRTSKrg0kSmkC7iQN661UDLZQ94n5Ck4xTAUtR/w== X-Gm-Gg: ASbGncuR+Jq9W6Q9eJfdK2Q6BV/1Gw8CQBP9diGPQyJb1MnaKyf/4p8+zBmz3s2ViBC 2A5zfqsmTMXqEAZqw9aC+4N/6htbzjYSoUKUTfp4ZrltrhsTH2nyuAP/mmjAq5KWc1VG3d+XxTo lqsndIxingLFArNAlQQNeIQYQmJyT+x4InfbjvVNHwB0JozWl7u9Qf69Q5Chr2joVZLvnLe5o4G 7tO9GG+4TsHEDTIDp0BBMs62XLK9LIgx00q+3LfYIyU5vCtCDCTR7Tkm+hXlbJcZ4hPsPCzzief RnAjaA6gSzd+8z8WMzpw3L+xRoJZ0VZwCyzE/i3u2KvH/NPIbw0/ccOTWdotO3dA+4JXE3a/3Iq FXOT8tNd1CTjd5IcQF60E99ly5xvwLnHy8AQ5AMwmEA== X-Google-Smtp-Source: AGHT+IG3S4PxucvERSdH0z7Yh4lmKxIbpQ2X5xXqHCfARiJHlHGZadZVzpxus/07Bbl5K4zbCS0zpw== X-Received: by 2002:a17:907:d19:b0:ad5:5893:501c with SMTP id a640c23a62f3a-adb323051f0mr1298417966b.41.1748891603217; Mon, 02 Jun 2025 12:13:23 -0700 (PDT) Received: from localhost.localdomain ([2a02:586:492f:c100:6ad2:ae5e:29f0:f110]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ada6ad39434sm844000466b.141.2025.06.02.12.13.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jun 2025 12:13:22 -0700 (PDT) From: IndecisiveTurtle X-Google-Original-From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> To: ffmpeg-devel@ffmpeg.org Date: Mon, 2 Jun 2025 22:12:49 +0300 Message-ID: <20250602191313.906527-2-47210458+raphaelthegreat@users.noreply.github.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250602191313.906527-1-47210458+raphaelthegreat@users.noreply.github.com> References: <20250602191313.906527-1-47210458+raphaelthegreat@users.noreply.github.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v6 2/4] libavcodec/vc2enc: Switch quant to int 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: IndecisiveTurtle 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: IndecisiveTurtle 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 56a6e99c58..deb3ff7042 100644 --- a/libavcodec/vc2enc_common.c +++ b/libavcodec/vc2enc_common.c @@ -308,7 +308,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 5e3da5743b..4bb960509a 100644 --- a/libavcodec/vc2enc_common.h +++ b/libavcodec/vc2enc_common.h @@ -94,7 +94,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 */ @@ -160,7 +160,7 @@ void ff_vc2_write_frame_header(VC2EncContext *s); void ff_vc2_write_sequence_end(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".