1. #ifndef _TABLES_H
  2. #define _TABLES_H
  3.  
  4. #include "types.h"
  5.  
  6. //zig-zag scan order table for 4x4 block
  7. extern const uint8 zigzag_4x4[16];
  8.  
  9. typedef struct
  10. {
  11.     uint32 len;
  12.     uint32 value;
  13. }bitTable;
  14.  
  15. typedef struct
  16. {
  17.     uint8 pos;
  18.     sint32 value;
  19. }valueTable;
  20.  
  21. float Qstep[52];
  22. uint32 MF[52][3];
  23. uint8 V[52][3];
  24.  
  25. bitTable *exp_table;
  26.  
  27. //Specification page 217-218
  28. //Book page 200
  29. extern const uint8 coded_block_pattern_inter[];
  30. extern const uint8 coded_block_pattern_intra[];
  31.  
  32. extern const bitTable total_zeros_4x4[16][16];
  33. extern const bitTable run_before_table[15][7];
  34. extern const bitTable coeff_token_tables[17][4][6];
  35.  
  36. #endif
  37.