Skip to content

Commit

Permalink
Load ctx image options
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewWilkes committed May 30, 2024
1 parent cce085c commit b746d3a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion components/ctx/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

#define FLOW3R_CTX_FLAVOUR_SMOL 1

#ifdef CONFIG_FLOW3R_CTX_FLAVOUR_FULL

#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"

#ifdef CONFIG_FLOW3R_CTX_FLAVOUR_FULL
#endif

#define CTX_IMPLEMENTATION
Expand Down
26 changes: 19 additions & 7 deletions components/ctx/ctx_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,25 @@
#define STBI_ONLY_JPEG

#else
#define CTX_ENABLE_CLIP 0
#define CTX_FRAGMENT_SPECIALIZE 0
#define CTX_FAST_FILL_RECT 0
#define CTX_BLENDING_AND_COMPOSITING 0
#define CTX_INLINED_GRADIENTS 0
#define CTX_FORMATTER 0
#define CTX_PARSER 0
#define CTX_COMPOSITE_O3 1
#define CTX_RASTERIZER_O2 0
#define CTX_GSTATE_PROTECT 1
#define CTX_FORCE_INLINES 1
#define CTX_FRAGMENT_SPECIALIZE 1
#define CTX_ENABLE_YUV420 1
#define CTX_ENABLE_RGBA8 1
#define CTX_ENABLE_RGB332 1
#define CTX_ENABLE_RGB8 1
#define CTX_ENABLE_GRAY8 1
#define CTX_ENABLE_GRAYA8 1
#define CTX_ENABLE_GRAY1 1
#define CTX_ENABLE_GRAY2 1
#define CTX_ENABLE_GRAY4 1
#define CTX_STB_IMAGE 1
#define STBI_ONLY_PNG
#define STBI_ONLY_GIF
#define STBI_ONLY_JPEG

#endif


Expand Down

0 comments on commit b746d3a

Please sign in to comment.