From b746d3a22e32284381798df65d46c6f8e11c6565 Mon Sep 17 00:00:00 2001 From: Matthew Wilkes Date: Thu, 30 May 2024 18:07:56 +0100 Subject: [PATCH] Load ctx image options --- components/ctx/ctx.c | 2 +- components/ctx/ctx_config.h | 26 +++++++++++++++++++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/components/ctx/ctx.c b/components/ctx/ctx.c index 3fd0fc0..56d8a15 100644 --- a/components/ctx/ctx.c +++ b/components/ctx/ctx.c @@ -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 diff --git a/components/ctx/ctx_config.h b/components/ctx/ctx_config.h index 12aaccc..6da8716 100644 --- a/components/ctx/ctx_config.h +++ b/components/ctx/ctx_config.h @@ -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