From patchwork Sun Oct 20 20:05:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Niklas Haas X-Patchwork-Id: 52413 Delivered-To: ffmpegpatchwork2@gmail.com Received: by 2002:a05:612c:143:b0:48e:c0f8:d0de with SMTP id h3csp2241982vqi; Sun, 20 Oct 2024 13:19:10 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUsrvfFCigkFdepP6SysuFRSn1nJUHHx+wAqyYWKCbBgrL++UR/TK/3WCX2YTcS0LapOFYtcGi1z4ZyDPWgmsnW@gmail.com X-Google-Smtp-Source: AGHT+IGxqTKMQTlHrDDto44xJgNIBiCW9bXIqSI3Ed0QGF1BjjIdZZeESux29/soHmYI3pOlLyzi X-Received: by 2002:a17:907:60ca:b0:a9a:daa:ef3c with SMTP id a640c23a62f3a-a9a69a7b429mr1052069466b.14.1729455549785; Sun, 20 Oct 2024 13:19:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1729455549; cv=none; d=google.com; s=arc-20240605; b=iIHY8Lj454PlxCZZJpJ64/gW0411bxHPHtCi8WgDxPVYusWdsTBl1SPVjnAduBW1tY DKgCibBT0AcOkhPoIfUejPlvKni/4d3HHQyEqJDC9e6GzFUly8+W4aYrk+Rl6H9KTWik GVj9jzaHoymb60tjb5VFAnplpmDpRjiDsm01AzD9qLiPe13oKgSQN4AH122TGdlmb6Dw iY5w7QfKzyEWhAVytHICv8er5sYfdrQUp3JRxfqMamfreVJ4sUvsVLxtP4qTzYcFihAf CuSQKYhujCiin6iq1F6ONs/028NukyIGZH+YCG3bP8ndsOEroHpdgBDn2jfEFot5PYB+ A1ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:content-transfer-encoding:cc:reply-to :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:delivered-to; bh=x0LcrFiHEOXkJrA++dCyopeavdbElHmw1CJ+02VWYzc=; fh=xmAeKtysnShNOmkhiJmYkS30uw4Fu2hvBJ7qlIwukxQ=; b=TTBNm7QljWgmdsw79+1wNQuX9xtS6v5J7V1LLnsURv2b0QLLnCotHSm4f48hS2bpxE c2KTFuI9lZj/z9VXgKf0l9z+gyEhx6wczwkhI1HBdJint5UGQHX3uSJ857nblSOcSMwP qTzrlMNeEkeT4tVr2Gq3gvrrYDZJvJB2i75k4plBh1ePPuDn8jHEpDxu8cgtxKpyAJR4 Ju9dr1ZBjfHIKsrhdT7BFdj213eMneuODldfwlKnMWtl8G+pGvtU3jBx8ybAAV6O1Ht3 Bgj3y0BobY5vX1UN9uoefwJbzWqSmbvFOUgqVAlY3qOKbn/l3CJNnPK/9D/beYLqz2Ns 3KHg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=qLyQG7u5; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id a640c23a62f3a-a9a9129121fsi151992266b.17.2024.10.20.13.19.09; Sun, 20 Oct 2024 13:19:09 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@haasn.xyz header.s=mail header.b=qLyQG7u5; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 37A9168DC25; Sun, 20 Oct 2024 23:09:05 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from haasn.dev (haasn.dev [78.46.187.166]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2804668DA3F for ; Sun, 20 Oct 2024 23:08:55 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=haasn.xyz; s=mail; t=1729454934; bh=y2yM8lBsYwl+kLdrCEI6jpvQGLX9bAuFjSUOfqnSt5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qLyQG7u5LRWww3kml0VJjnPtpxvy9kBwgYXEKuFflfsdKzsWT0F7H94X3DlOGJ/ny /ETUl1m9PLm60PLIrksDuxY+G2ZmgUJ4AParzADCwVsAvslOqLJk32fARUzW2YjLxK r8ZUDBJvv6Vc+57dstmj6zP1VMjQW/nYZNs5Xguc= Received: from haasn.dev (unknown [10.30.0.2]) by haasn.dev (Postfix) with ESMTP id E14A64818D; Sun, 20 Oct 2024 22:08:54 +0200 (CEST) From: Niklas Haas To: ffmpeg-devel@ffmpeg.org Date: Sun, 20 Oct 2024 22:05:12 +0200 Message-ID: <20241020200851.1414766-4-ffmpeg@haasn.xyz> X-Mailer: git-send-email 2.46.1 In-Reply-To: <20241020200851.1414766-1-ffmpeg@haasn.xyz> References: <20241020200851.1414766-1-ffmpeg@haasn.xyz> MIME-Version: 1.0 Subject: [FFmpeg-devel] [PATCH v3 03/18] swscale: slightly reorder header 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 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" X-TUID: wAPP/36qv0d8 From: Niklas Haas I want to start grouping "legacy" functions which I tend to deprecate together, away from the new ones. Sponsored-by: Sovereign Tech Fund Signed-off-by: Niklas Haas --- libswscale/swscale.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 2604eb1624..b5dea09bef 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -41,6 +41,8 @@ #include "version.h" #endif +typedef struct SwsContext SwsContext; + /** * @defgroup libsws libswscale * Color conversion and scaling library. @@ -61,6 +63,21 @@ const char *swscale_configuration(void); */ const char *swscale_license(void); +/** + * Get the AVClass for swsContext. It can be used in combination with + * AV_OPT_SEARCH_FAKE_OBJ for examining options. + * + * @see av_opt_find(). + */ +const AVClass *sws_get_class(void); + +/** + * Allocate an empty SwsContext. This must be filled and passed to + * sws_init_context(). For filling see AVOptions, options.c and + * sws_setColorspaceDetails(). + */ +SwsContext *sws_alloc_context(void); + /* values for the flags, the stuff on the command line is different */ #define SWS_FAST_BILINEAR 1 #define SWS_BILINEAR 2 @@ -150,8 +167,6 @@ typedef struct SwsFilter { SwsVector *chrV; } SwsFilter; -typedef struct SwsContext SwsContext; - /** * Return a positive value if pix_fmt is a supported input format, 0 * otherwise. @@ -171,13 +186,6 @@ int sws_isSupportedOutput(enum AVPixelFormat pix_fmt); */ int sws_isSupportedEndiannessConversion(enum AVPixelFormat pix_fmt); -/** - * Allocate an empty SwsContext. This must be filled and passed to - * sws_init_context(). For filling see AVOptions, options.c and - * sws_setColorspaceDetails(). - */ -SwsContext *sws_alloc_context(void); - /** * Initialize the swscaler context sws_context. * @@ -445,14 +453,6 @@ void sws_convertPalette8ToPacked32(const uint8_t *src, uint8_t *dst, int num_pix */ void sws_convertPalette8ToPacked24(const uint8_t *src, uint8_t *dst, int num_pixels, const uint8_t *palette); -/** - * Get the AVClass for swsContext. It can be used in combination with - * AV_OPT_SEARCH_FAKE_OBJ for examining options. - * - * @see av_opt_find(). - */ -const AVClass *sws_get_class(void); - /** * @} */