godot/thirdparty/libtheora/huffman.h

/********************************************************************
 *                                                                  *
 * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE.   *
 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS     *
 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING.       *
 *                                                                  *
 * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2009                *
 * by the Xiph.Org Foundation and contributors http://www.xiph.org/ *
 *                                                                  *
 ********************************************************************

  function:
    last mod: $Id$

 ********************************************************************/

#if !defined(_huffman_H)
#define _huffman_H
# include "theora/codec.h"
# include "ocintrin.h"

/*The range of valid quantized DCT coefficient values.
  VP3 used 511 in the encoder, but the bitstream is capable of 580.*/
#define OC_DCT_VAL_RANGE

#define OC_NDCT_TOKEN_BITS

#define OC_DCT_EOB1_TOKEN
#define OC_DCT_EOB2_TOKEN
#define OC_DCT_EOB3_TOKEN
#define OC_DCT_REPEAT_RUN0_TOKEN
#define OC_DCT_REPEAT_RUN1_TOKEN
#define OC_DCT_REPEAT_RUN2_TOKEN
#define OC_DCT_REPEAT_RUN3_TOKEN

#define OC_DCT_SHORT_ZRL_TOKEN
#define OC_DCT_ZRL_TOKEN

#define OC_ONE_TOKEN
#define OC_MINUS_ONE_TOKEN
#define OC_TWO_TOKEN
#define OC_MINUS_TWO_TOKEN

#define OC_DCT_VAL_CAT2
#define OC_DCT_VAL_CAT3
#define OC_DCT_VAL_CAT4
#define OC_DCT_VAL_CAT5
#define OC_DCT_VAL_CAT6
#define OC_DCT_VAL_CAT7
#define OC_DCT_VAL_CAT8

#define OC_DCT_RUN_CAT1A
#define OC_DCT_RUN_CAT1B
#define OC_DCT_RUN_CAT1C
#define OC_DCT_RUN_CAT2A
#define OC_DCT_RUN_CAT2B

#define OC_NDCT_EOB_TOKEN_MAX
#define OC_NDCT_ZRL_TOKEN_MAX
#define OC_NDCT_VAL_MAX
#define OC_NDCT_VAL_CAT1_MAX
#define OC_NDCT_VAL_CAT2_MAX
#define OC_NDCT_VAL_CAT2_SIZE
#define OC_NDCT_RUN_MAX
#define OC_NDCT_RUN_CAT1A_MAX

extern const unsigned char OC_DCT_TOKEN_EXTRA_BITS[TH_NDCT_TOKENS];

#endif