[FFmpeg-devel] [PATCH v3 03/18] swscale: slightly reorder header
Niklas Haas
ffmpeg at haasn.xyz
Sun Oct 20 23:05:12 EEST 2024
From: Niklas Haas <git at haasn.dev>
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 <git at haasn.dev>
---
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);
-
/**
* @}
*/
--
2.46.1
More information about the ffmpeg-devel
mailing list