search for: last_nybbl

Displaying 2 results from an estimated 2 matches for "last_nybbl".

Did you mean: last_nybble
2015 Aug 22
0
[PATCH 2/2] core/graphics: fix lss16 parsing
...55. Signed-off-by: Chas Williams <3chas3 at gmail.com> <<<< I think this change is also already included in the patch quoted previously by Ady http://www.syslinux.org/archives/2015-July/023835.html -static inline char getnybble(void) +static inline char getnybble(uint8_t* last_nybble) { - char data = getc(fd); - if (data & 0x10) { - data &= 0x0F; - return data; - } + char data; + + if (*last_nybble & 0x10) + { + *last_nybble &= 0x0F; + return...
2015 Aug 21
2
[PATCH 2/2] core/graphics: fix lss16 parsing
getnybble() needs to return four bits at a time from every byte. During rle decode, rows are rounded to an integer number of bytes. The rle length needs to be able to hold values > 255. Signed-off-by: Chas Williams <3chas3 at gmail.com> --- core/graphics.c | 35 +++++++++++++++++++++-------------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/core/graphics.c