#include <ft2build.h>
Go to the source code of this file.
◆ FT_LZW_DEFAULT_STACK_SIZE
#define FT_LZW_DEFAULT_STACK_SIZE 64 |
◆ FT_LZW_IN_BUFF_SIZE
#define FT_LZW_IN_BUFF_SIZE 64 |
◆ LZW_BIT_MASK
◆ LZW_BLOCK_MASK
◆ LZW_CLEAR
◆ LZW_FIRST
◆ LZW_INIT_BITS
◆ LZW_MASK
◆ LZW_MAX_BITS
◆ FT_LzwPhase
◆ FT_LzwState
◆ FT_LzwStateRec
◆ FT_LzwPhase_
Enumerator |
---|
FT_LZW_PHASE_START | |
FT_LZW_PHASE_CODE | |
FT_LZW_PHASE_STACK | |
FT_LZW_PHASE_EOF | |
Definition at line 50 of file ftzopen.h.
51 {
56
enum FT_LzwPhase_ FT_LzwPhase
◆ ft_lzwstate_done()
Definition at line 228 of file ftzopen.c.
229 {
231
232
234
237
240
242 }
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
ft_lzwstate_reset(FT_LzwState state)
static char memory[1024 *256]
◆ ft_lzwstate_init()
Definition at line 208 of file ftzopen.c.
210 {
212
215
218 state->prefix_size = 0;
219
221 state->stack_size =
sizeof (
state->stack_0 );
222
224 }
◆ ft_lzwstate_io()
Definition at line 256 of file ftzopen.c.
259 {
261
265
266
269
270 switch (
state->phase )
271 {
273 {
276
277
278
282
286
289
293 in_code = 0;
294
297 :
state->max_free + 1;
298
300 if ( c < 0 || c > 255 )
302
304
307
310
312 }
313
314
316 {
319
320
321 NextCode:
325
327
329 {
330
332 state->buf_clear = 1;
333
334
335 old_code = 0;
336 old_char = 0;
337
338 goto NextCode;
339 }
340
342
344 {
345
347 {
348
351
354 }
355
356 while (
code >= 256U )
357 {
358 if ( !
state->prefix )
360
363 }
364 }
365
368
370 }
371
372
374 {
375 while (
state->stack_top > 0 )
376 {
378
381
384 }
385
386
388 {
392
394
397
398 state->free_ent += 1;
399 }
400
401 old_code = in_code;
402
404 goto NextCode;
405 }
406
407 default:
408 ;
409 }
410
412 state->old_code = old_code;
413 state->old_char = old_char;
414 state->in_code = in_code;
415
417
421 }
#define FT_ASSERT(condition)
FT_Stream_TryRead(FT_Stream stream, FT_Byte *buffer, FT_ULong count)
FT_Stream_Seek(FT_Stream stream, FT_ULong pos)
#define FTLZW_STACK_PUSH(c)
static int ft_lzwstate_prefix_grow(FT_LzwState state)
static FT_Int32 ft_lzwstate_get_code(FT_LzwState state)
static HANDLE PIO_APC_ROUTINE PVOID PIO_STATUS_BLOCK ULONG PVOID ULONG PVOID ULONG out_size
◆ ft_lzwstate_reset()