From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <ffmpeg-devel-bounces@ffmpeg.org> Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id 57F574F1ED for <ffmpegdev@gitmailbox.com>; Sat, 17 May 2025 20:49:40 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id ECE9A68D8EF; Sat, 17 May 2025 23:49:23 +0300 (EEST) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 0492368D8C1 for <ffmpeg-devel@ffmpeg.org>; Sat, 17 May 2025 23:49:16 +0300 (EEST) Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-601968db16bso2050111a12.3 for <ffmpeg-devel@ffmpeg.org>; Sat, 17 May 2025 13:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1747514955; x=1748119755; 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=nsOcbHZgmGqJ8IZh/yGwxKbHXfX2H6Axd80kKhmq+WQ=; b=CyusSjthENI6P4ryfy0XhZKiIyHsvwNacSrm2mrZb43Hyz/o/0XFopa2VgJXzNb+H2 DnNlDFQEUQ/7CKoAO9J0oxMdlCMKN1gfhWCllGOKCqo9c92U8vXqcAcPx8xKQgdecBCs a+HjQ4WCi1GtL44etjed2bww21J3jVypNzHuOxIGNULEcFwQMFAwkG6RnZ+6o60grNB5 xARrsxAyDBVi7eFGoRsY97OjXuWMiP0KAuLbzYu+1CdHS1ci6vqIb5S1sijqhmxHnnGw TChp2ngqMgIKGU8CYCbx3LtFy8YbYiCmkLRoiKMVEf4nkzKkLSTS4b9F2tKScc61EAuU sGbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747514955; x=1748119755; 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=nsOcbHZgmGqJ8IZh/yGwxKbHXfX2H6Axd80kKhmq+WQ=; b=iMQeW3sl1T5DBVcjprLjiXQz1mMsBwPPpqQDd3+IBSVxoalN0WvbBAAvhKAOy1vGl9 RheLjky8E5ezI0oUOMan/UNpJQyaHei4n6qXaKep1rLwTwqduvlzym/6kADs5jq1aJS9 j/qG4u5iEuJYT/BZF7PAkVeaN8OOj4K3Pg15U715i76ZO4VR/j9kVKiogwmFtAVTK8gY uUvoAUe78/JQTk+1HGQeG7ptdn5CGaX9kT9jTYwGnlofe8uvdQ11ASULTNeksA6nxH2r X0DT0drD2N7+MSTOqrITGLXETOILTmqZo2R8HqRSVT6ywQdIZD2qrbHqsTwg0vttnKuj IC5w== X-Gm-Message-State: AOJu0Yxn3FTQbSjjyfaJ85LphxzC+S64XRsE38a/oIuaa1ugMUWwgI9h LQLq/ldvgH5mIwpApZWWQPn6yaplr3ftlVK9YKES74O3WeAgrOvmM8EZQODnbQ== X-Gm-Gg: ASbGncsdqxYjDaODXoZ31xBLWUSIjV1o1dAsriX4PPezQMkRamNtHcF3PXygxoDWiEk 9y4bI+AaUzLBkSVE+Z2cIpaT638tKiEwn1Q5hz633iehWop9N/rRxnV/6AKtVKzvdv0FavOvhwH iBX3StXiw9xw1pVpE2JaO1k1VAp5D2UY7gMki1zSISflfZ6skCwj1Wqw9EI86PdLefnSZbdajLA Y/RzZQeYwbFq/4v0dVhWQfyo84/K2tftO0X/LjsTsw0gOaKWV6iH4bp3ZIeaTguRpGTLHftrUw0 D7RrNwcSqeHHTKc6jEYEShECWQlhuF20040+JOt+67w+aoPFJJL3v3jsSjwVOgAIxiC02ZjjrbK 6JH3eXS47rigSskvGFaH2hFps86DSBKw= X-Google-Smtp-Source: AGHT+IFO+Cvr0gDGxEe8hKHbP0vWQolwyj5vIYLymDlBips3cr5BzWetqJprz7oRuo6pEDgKuCirkQ== X-Received: by 2002:a05:6402:26d5:b0:601:a681:4d58 with SMTP id 4fb4d7f45d1cf-601a6814ec8mr2237184a12.31.1747514954497; Sat, 17 May 2025 13:49:14 -0700 (PDT) Received: from localhost.localdomain ([2a02:586:492f:c100:6ad2:ae5e:29f0:f110]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6005a6e6366sm3274064a12.44.2025.05.17.13.49.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 May 2025 13:49:13 -0700 (PDT) From: IndecisiveTurtle <geoster3d@gmail.com> X-Google-Original-From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> To: ffmpeg-devel@ffmpeg.org Date: Sat, 17 May 2025 23:48:49 +0300 Message-ID: <20250517204907.482987-2-47210458+raphaelthegreat@users.noreply.github.com> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250517204907.482987-1-47210458+raphaelthegreat@users.noreply.github.com> References: <20250517204907.482987-1-47210458+raphaelthegreat@users.noreply.github.com> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v4 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 <ffmpeg-devel.ffmpeg.org> List-Unsubscribe: <https://ffmpeg.org/mailman/options/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=unsubscribe> List-Archive: <https://ffmpeg.org/pipermail/ffmpeg-devel> List-Post: <mailto:ffmpeg-devel@ffmpeg.org> List-Help: <mailto:ffmpeg-devel-request@ffmpeg.org?subject=help> List-Subscribe: <https://ffmpeg.org/mailman/listinfo/ffmpeg-devel>, <mailto:ffmpeg-devel-request@ffmpeg.org?subject=subscribe> Reply-To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Cc: IndecisiveTurtle <geoster3d@gmail.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" <ffmpeg-devel-bounces@ffmpeg.org> Archived-At: <https://master.gitmailbox.com/ffmpegdev/20250517204907.482987-2-47210458+raphaelthegreat@users.noreply.github.com/> List-Archive: <https://master.gitmailbox.com/ffmpegdev/> List-Post: <mailto:ffmpegdev@gitmailbox.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".