aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2024-10-09 23:12:05 +0200
committerNiklas Haas <git@haasn.dev>2024-10-23 23:01:09 +0200
commit3bf12beae9eea20b4b6270a9228c877223e81157 (patch)
treed8e35a4d15ceb6613343eca68286e38524d4615e
parentfbfea1c6445df9e72a0fd35639145a73f28e3240 (diff)
downloadffmpeg-3bf12beae9eea20b4b6270a9228c877223e81157.tar.gz
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 <git@haasn.dev>
-rw-r--r--libswscale/swscale.h34
1 files 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.
@@ -172,13 +187,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.
*
* @return zero or positive value on success, a negative value on
@@ -446,14 +454,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);
-
-/**
* @}
*/