Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.6.0/src/extra/libs/png/
Dlodepng.c411 static void LodePNGBitWriter_init(LodePNGBitWriter* writer, ucvector* data) { in LodePNGBitWriter_init() argument
412 writer->data = data; in LodePNGBitWriter_init()
413 writer->bp = 0; in LodePNGBitWriter_init()
417 #define WRITEBIT(writer, bit){\ argument
419 if(((writer->bp) & 7u) == 0) {\
420 if(!ucvector_resize(writer->data, writer->data->size + 1)) return;\
421 writer->data->data[writer->data->size - 1] = 0;\
423 (writer->data->data[writer->data->size - 1]) |= (bit << ((writer->bp) & 7u));\
424 ++writer->bp;\
428 static void writeBits(LodePNGBitWriter* writer, unsigned value, size_t nbits) { in writeBits() argument
[all …]