Main Page | Namespace List | Compound List | File List | Compound Members | File Members

vld.cc File Reference

#include "vld.h"
#include <stdio.h>

Go to the source code of this file.

Defines

#define HUFF_EOB   0x00
#define HUFF_ZRL   0xF0
#define HUFF_ID(class, id)   (2*(class)+(id))
#define DC_CLASS   0
#define AC_CLASS   1
#define GLOB_SIZE   32
#define MAX_SIZE(group)   ((group)?384:64)
#define MAX_CELLS(group)   (MAX_SIZE(group) - GLOB_SIZE)
#define GOOD_NODE_FLAG   0x100
#define GOOD_LEAF_FLAG   0x200
#define BAD_LEAF_FLAG   0x300
#define SPECIAL_FLAG   0x000
#define HUFF_FLAG_MSK   0x300
#define HUFF_FLAG(c)   ((c) & HUFF_FLAG_MSK)
#define HUFF_VALUE(c)   ((unsigned char)( (c) & (~HUFF_FLAG_MSK) ))

Variables

unsigned int DC_Table0 [MAX_SIZE(DC_CLASS)]
unsigned int DC_Table1 [MAX_SIZE(DC_CLASS)]
unsigned int AC_Table0 [MAX_SIZE(AC_CLASS)]
unsigned int AC_Table1 [MAX_SIZE(AC_CLASS)]
unsigned int * HTable [4]


Define Documentation

#define AC_CLASS   1
 

Definition at line 24 of file vld.cc.

Referenced by VLD::main().

#define BAD_LEAF_FLAG   0x300
 

Definition at line 80 of file vld.cc.

Referenced by VLD::get_symbol(), and VLD::load_huff_tables().

#define DC_CLASS   0
 

Definition at line 23 of file vld.cc.

Referenced by VLD::main().

#define GLOB_SIZE   32
 

Definition at line 67 of file vld.cc.

#define GOOD_LEAF_FLAG   0x200
 

Definition at line 79 of file vld.cc.

Referenced by VLD::get_symbol(), and VLD::load_huff_tables().

#define GOOD_NODE_FLAG   0x100
 

Definition at line 78 of file vld.cc.

Referenced by VLD::get_symbol(), and VLD::load_huff_tables().

#define HUFF_EOB   0x00
 

Definition at line 18 of file vld.cc.

Referenced by VLD::main().

#define HUFF_FLAG  )     ((c) & HUFF_FLAG_MSK)
 

Definition at line 84 of file vld.cc.

Referenced by VLD::get_symbol().

#define HUFF_FLAG_MSK   0x300
 

Definition at line 82 of file vld.cc.

#define HUFF_ID class,
id   )     (2*(class)+(id))
 

Definition at line 21 of file vld.cc.

Referenced by VLD::load_huff_tables(), and VLD::main().

#define HUFF_VALUE  )     ((unsigned char)( (c) & (~HUFF_FLAG_MSK) ))
 

Definition at line 85 of file vld.cc.

Referenced by VLD::get_symbol().

#define HUFF_ZRL   0xF0
 

Definition at line 19 of file vld.cc.

Referenced by VLD::main().

#define MAX_CELLS group   )     (MAX_SIZE(group) - GLOB_SIZE)
 

Definition at line 72 of file vld.cc.

Referenced by VLD::load_huff_tables().

#define MAX_SIZE group   )     ((group)?384:64)
 

Definition at line 70 of file vld.cc.

Referenced by VLD::load_huff_tables().

#define SPECIAL_FLAG   0x000
 

Definition at line 81 of file vld.cc.

Referenced by VLD::get_symbol(), and VLD::load_huff_tables().


Variable Documentation

unsigned int AC_Table0[MAX_SIZE(AC_CLASS)] [static]
 

Definition at line 94 of file vld.cc.

unsigned int AC_Table1[MAX_SIZE(AC_CLASS)] [static]
 

Definition at line 94 of file vld.cc.

unsigned int DC_Table0[MAX_SIZE(DC_CLASS)] [static]
 

Definition at line 91 of file vld.cc.

unsigned int DC_Table1[MAX_SIZE(DC_CLASS)] [static]
 

Definition at line 91 of file vld.cc.

unsigned int* HTable[4] [static]
 

Initial value:

 {
    &DC_Table0[0], &DC_Table1[0],
    &AC_Table0[0], &AC_Table1[0]
}

Definition at line 97 of file vld.cc.

Referenced by VLD::get_symbol(), and VLD::load_huff_tables().


Generated on Wed Feb 15 14:52:45 2006 for jpegdec by doxygen 1.3.2