 |
MPLABĀ® Harmony Graphics Suite
|
44 #ifndef LE_IMAGEDECODER_RAW_H
45 #define LE_IMAGEDECODER_RAW_H
50 #define LE_IMAGEDECODER_RAW_MAX_STAGES 16
51 #define LE_IMAGEDECODER_BLOCK_READ_SIZE 4
53 #if LE_STREAMING_ENABLED == 1
54 #ifndef LE_ASSET_DECODER_CACHE_SIZE
55 #define LE_ASSET_DECODER_CACHE_SIZE 128
58 #if LE_ASSET_DECODER_USE_PIXEL_CACHE == 1
60 extern uint8_t leRawImageDecoderScratchBuffer[LE_ASSET_DECODER_CACHE_SIZE];
63 #if LE_ASSET_DECODER_USE_MASK_CACHE == 1
65 extern uint8_t leRawImageDecoderMaskScratchBuffer[LE_ASSET_DECODER_CACHE_SIZE];
68 #if LE_ASSET_DECODER_USE_PALETTE_CACHE == 1
70 extern uint8_t leRawImageDecoderPaletteScratchBuffer[LE_ASSET_DECODER_CACHE_SIZE];
73 #if LE_ASSET_DECODER_USE_BLEND_CACHE == 1
75 extern uint8_t leRawImageDecoderBlendBuffer[LE_ASSET_DECODER_CACHE_SIZE];
93 LE_RAW_MODE_RESIZEDRAW,
96 LE_RAW_MODE_ROTATEDRAW
125 uint32_t bufferIndex;
138 #if LE_STREAMING_ENABLED == 1
139 leStreamManager manager;
146 enum leRawDecoderMode mode;
167 uint32_t rowIterator;
168 uint32_t colIterator;
176 uint32_t globalAlpha;
183 leBool needToLookupMaskColor;
186 int32_t currentStage;
Defines common math functions for general use.
leResult
This enum represents function call results.
Definition: legato_common.h:134
This struct represents an image decoder.
Definition: legato_image.h:347
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:146
This struct represents a rectangle.
Definition: legato_common.h:405
Image functions and defintions.
Pixel Buffer functions and definitions.
Memory functions and definitions.
Definition: legato_imagedecoder_raw.h:137
Definition: legato_image.h:180
int32_t width
Definition: legato_common.h:382
uint32_t location
Definition: legato_stream.h:58
LIB_EXPORT leBool leRectIntersects(const leRect *l_rect, const leRect *r_rect)
Determines if two rectangles are intersecting.
Definition: legato_rect.c:51
virtual leResult _draw(const leString *_this, int32_t x, int32_t y, leHAlignment align, leColor clr, uint32_t a)
Draw.
#define LE_STREAM_LOCATION_ID_INTERNAL
leEventResult
Definition: legato_stream.h:67
leBool
This enum represents booleans.
Definition: legato_common.h:157
Defines a common header for all stream operations.
Defines wrapper for interfacing with Harmony GPU interface.
Definition: legato_imagedecoder_raw.h:122
Definition: legato_imagedecoder_raw.h:114
LIB_EXPORT leRect leRectClipAdj(const leRect *l_rect, const leRect *r_rect, leRect *adj)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:75
@ LE_FALSE
Definition: legato_common.h:158
leRect leRotatedRectBounds(leRect rect, int32_t ang)
Calculate bounding rectangle.
Definition: legato_math.c:475
leImageFilterMode
This enum represents image filter modes.
Definition: legato_image.h:109
LIB_EXPORT void leRectClip(const leRect *l_rect, const leRect *r_rect, leRect *result)
Clips a rectangle to the space of another rectangle.
Definition: legato_rect.c:122
LIB_EXPORT leResult lePixelBufferAreaFill_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y, uint32_t w, uint32_t h, leColor color)
Area fill no checking.
Definition: legato_pixelbuffer.c:395
@ LE_TRUE
Definition: legato_common.h:159
LIB_EXPORT leImage * leImage_Allocate(uint32_t width, uint32_t height, leColorMode mode)
Allocate an image buffer.
Definition: legato_image.c:79
int32_t height
Definition: legato_common.h:383
This structure represents a integer Cartesian point.
Definition: legato_common.h:357
Definition: legato_pixelbuffer.h:91