FastLED 3.9.15
Loading...
Searching...
No Matches

◆ lzw_context_create()

lzw_result fl::third_party::lzw_context_create ( struct lzw_ctx ** ctx)

Create an LZW decompression context.

Parameters
[out]ctxReturns an LZW decompression context. Caller owned, free with lzw_context_destroy().
Returns
LZW_OK on success, or appropriate error code otherwise.

Definition at line 104 of file lzw.cpp.hpp.

105{
106 struct lzw_ctx *c = static_cast<struct lzw_ctx*>(fl::Malloc(sizeof(*c)));
107 if (c == nullptr) {
108 return LZW_NO_MEM;
109 }
110
111 *ctx = c;
112 return LZW_OK;
113}
@ LZW_OK
Success.
Definition lzw.h:34
@ LZW_NO_MEM
Error: Out of memory.
Definition lzw.h:36
LZW decompression context.
Definition lzw.cpp.hpp:72
void * Malloc(fl::size size)

References FL_NOEXCEPT, LZW_NO_MEM, LZW_OK, and fl::Malloc().

Referenced by nsgif_data_scan().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: