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 D3B764B355 for ; Wed, 21 May 2025 12:48:47 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id DBCEB68D290; Wed, 21 May 2025 15:48:34 +0300 (EEST) Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id EFB0A68CB95 for ; Wed, 21 May 2025 15:48:26 +0300 (EEST) Received: from haasn.dev (unknown [10.30.1.1]) by haasn.dev (Postfix) with UTF8SMTP id BE1BB40BFD; Wed, 21 May 2025 14:48:26 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Wed, 21 May 2025 14:43:47 +0200 Message-ID: <20250521124824.49657-2-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250521124824.49657-1-ffmpeg@haasn.xyz> References: <20250521124824.49657-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v2 01/17] swscale/format: rename legacy format conversion table 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: Niklas Haas 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: Niklas Haas --- libswscale/format.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libswscale/format.c b/libswscale/format.c index e4c1348b90..b77081dd7a 100644 --- a/libswscale/format.c +++ b/libswscale/format.c @@ -24,14 +24,14 @@ #include "format.h" -typedef struct FormatEntry { +typedef struct LegacyFormatEntry { uint8_t is_supported_in :1; uint8_t is_supported_out :1; uint8_t is_supported_endianness :1; -} FormatEntry; +} LegacyFormatEntry; /* Format support table for legacy swscale */ -static const FormatEntry format_entries[] = { +static const LegacyFormatEntry legacy_format_entries[] = { [AV_PIX_FMT_YUV420P] = { 1, 1 }, [AV_PIX_FMT_YUYV422] = { 1, 1 }, [AV_PIX_FMT_RGB24] = { 1, 1 }, @@ -262,20 +262,20 @@ static const FormatEntry format_entries[] = { int sws_isSupportedInput(enum AVPixelFormat pix_fmt) { - return (unsigned)pix_fmt < FF_ARRAY_ELEMS(format_entries) ? - format_entries[pix_fmt].is_supported_in : 0; + return (unsigned)pix_fmt < FF_ARRAY_ELEMS(legacy_format_entries) ? + legacy_format_entries[pix_fmt].is_supported_in : 0; } int sws_isSupportedOutput(enum AVPixelFormat pix_fmt) { - return (unsigned)pix_fmt < FF_ARRAY_ELEMS(format_entries) ? - format_entries[pix_fmt].is_supported_out : 0; + return (unsigned)pix_fmt < FF_ARRAY_ELEMS(legacy_format_entries) ? + legacy_format_entries[pix_fmt].is_supported_out : 0; } int sws_isSupportedEndiannessConversion(enum AVPixelFormat pix_fmt) { - return (unsigned)pix_fmt < FF_ARRAY_ELEMS(format_entries) ? - format_entries[pix_fmt].is_supported_endianness : 0; + return (unsigned)pix_fmt < FF_ARRAY_ELEMS(legacy_format_entries) ? + legacy_format_entries[pix_fmt].is_supported_endianness : 0; } /** -- 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".