1 /********************************************************************
3 * THIS FILE IS PART OF THE OggTheora SOFTWARE CODEC SOURCE CODE. *
4 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS *
5 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE *
6 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. *
8 * THE Theora SOURCE CODE IS COPYRIGHT (C) 2002-2007 *
9 * by the Xiph.Org Foundation http://www.xiph.org/ *
11 ********************************************************************
14 last mod: $Id: quant.h 14059 2007-10-28 23:43:27Z xiphmont $
16 ********************************************************************/
18 #if !defined(_quant_H)
20 # include "theora/codec.h"
21 # include "ocintrin.h"
23 typedef ogg_uint16_t oc_quant_table
[64];
24 typedef oc_quant_table oc_quant_tables
[64];
28 /*Maximum scaled quantizer value.*/
29 #define OC_QUANT_MAX (1024<<2)
33 /*Minimum scaled DC coefficient frame quantizer value for intra and inter
35 extern unsigned OC_DC_QUANT_MIN
[2];
36 /*Minimum scaled AC coefficient frame quantizer value for intra and inter
38 extern unsigned OC_AC_QUANT_MIN
[2];
42 void oc_dequant_tables_init(oc_quant_table
*_dequant
[2][3],
44 const th_quant_info
*_qinfo
);