diff mbox series

[FFmpeg-devel,v2,03/19] swscale: slightly reorder header

Message ID 20241014134354.180848-4-ffmpeg@haasn.xyz
State New
Headers show
Series swscale: major refactoring and new API | expand

Checks

Context Check Description
yinshiyou/configure_loongarch64 warning Failed to apply patch

Commit Message

Niklas Haas Oct. 14, 2024, 1:37 p.m. UTC
From: Niklas Haas <git@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@haasn.dev>
---
 libswscale/swscale.h | 34 +++++++++++++++++-----------------
 1 file changed, 17 insertions(+), 17 deletions(-)
diff mbox series

Patch

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);
-
 /**
  * @}
  */