Lines Matching refs:scd
90 CODE_STATIC_DATA scd; member
96 static int GetCode (gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlock…
375 GetCode_(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) in GetCode_() argument
381 scd->curbit = 0; in GetCode_()
382 scd->lastbit = 0; in GetCode_()
383 scd->last_byte = 0; in GetCode_()
384 scd->done = FALSE; in GetCode_()
388 if ( (scd->curbit + code_size) >= scd->lastbit) { in GetCode_()
389 if (scd->done) { in GetCode_()
390 if (scd->curbit >= scd->lastbit) { in GetCode_()
395 scd->buf[0] = scd->buf[scd->last_byte-2]; in GetCode_()
396 scd->buf[1] = scd->buf[scd->last_byte-1]; in GetCode_()
398 if ((count = GetDataBlock(fd, &scd->buf[2], ZeroDataBlockP)) <= 0) in GetCode_()
399 scd->done = TRUE; in GetCode_()
401 scd->last_byte = 2 + count; in GetCode_()
402 scd->curbit = (scd->curbit - scd->lastbit) + 16; in GetCode_()
403 scd->lastbit = (2+count)*8 ; in GetCode_()
406 if ((scd->curbit + code_size - 1) >= (CSD_BUF_SIZE * 8)) { in GetCode_()
410 for (i = scd->curbit, j = 0; j < code_size; ++i, ++j) { in GetCode_()
411 ret |= ((scd->buf[i / 8] & (1 << (i % 8))) != 0) << j; in GetCode_()
415 scd->curbit += code_size; in GetCode_()
420 GetCode(gdIOCtx *fd, CODE_STATIC_DATA *scd, int code_size, int flag, int *ZeroDataBlockP) in GetCode() argument
424 rv = GetCode_(fd, scd, code_size,flag, ZeroDataBlockP); in GetCode()
443 GetCode(fd, &sd->scd, 0, TRUE, ZeroDataBlockP); in LWZReadByte_()
461 GetCode(fd, &sd->scd, sd->code_size, FALSE, ZeroDataBlockP); in LWZReadByte_()
469 while ((code = GetCode(fd, &sd->scd, sd->code_size, FALSE, ZeroDataBlockP)) >= 0) { in LWZReadByte_()
482 GetCode(fd, &sd->scd, sd->code_size, FALSE, ZeroDataBlockP); in LWZReadByte_()