Documentation of the footprint #defines
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
diff --git a/src/SDL_internal.h b/src/SDL_internal.h
index 55602ef..4ce31ad 100644
--- a/src/SDL_internal.h
+++ b/src/SDL_internal.h
@@ -52,15 +52,47 @@
#include "SDL_config.h"
/* A few #defines to reduce SDL2 footprint.
- Only applied when library is statically linked */
+ Only effective when library is statically linked.
+ You have to manually edit this file. */
+
+/* Optimized functions from 'SDL_blit_0.c'
+ - blit with source BitsPerPixel < 8, palette */
#define SDL_HAVE_BLIT_0 1
+
+/* Optimized functions from 'SDL_blit_1.c'
+ - blit with source BytesPerPixel == 1, palette */
#define SDL_HAVE_BLIT_1 1
+
+/* Optimized functions from 'SDL_blit_A.c'
+ - blit with 'SDL_BLENDMODE_BLEND' blending mode */
#define SDL_HAVE_BLIT_A 1
+
+/* Optimized functions from 'SDL_blit_N.c'
+ - blit with COLORKEY mode, or nothing */
#define SDL_HAVE_BLIT_N 1
+
+/* Optimized functions from 'SDL_blit_N.c'
+ - RGB565 conversion with Lookup tables */
#define SDL_HAVE_BLIT_N_RGB565 1
+
+/* Optimized functions from 'SDL_blit_AUTO.c'
+ - blit with modulate color, modulate alpha, any blending mode
+ - scaling or not */
#define SDL_HAVE_BLIT_AUTO 1
+
+/* Run-Length-Encoding
+ - SDL_SetColorKey() called with SDL_RLEACCEL flag */
#define SDL_HAVE_RLE 1
+
+/* Software SDL_Renderer
+ - creation of software renderer
+ - *not* general blitting functions
+ - {blend,draw}{fillrect,line,point} internal functions */
#define SDL_VIDEO_RENDER_SW 1
+
+/* YUV formats
+ - handling of YUV surfaces
+ - blitting and conversion functions */
#define SDL_HAVE_YUV 1
#endif /* SDL_internal_h_ */