From 3bf12beae9eea20b4b6270a9228c877223e81157 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Wed, 9 Oct 2024 23:12:05 +0200 Subject: [PATCH] swscale: slightly reorder header 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 c9b93888f1..ef62c540a2 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); - /** * @} */