[XviD-devel] FDCT constants

lakshmikanth r r_lakshmikanth at yahoo.com
Mon Nov 29 07:46:52 CET 2004


HI,

I am a new to the field of MPEG4 encodeing and I was
going through your xvid reference code and in specfic
DCT calculation. The following line of code is found
in dct.c
"
#define FIX_0_298631336  ((int)  2446)	/*
FIX(0.298631336) */
#define FIX_0_390180644  ((int)  3196)	/*
FIX(0.390180644) */
#define FIX_0_541196100  ((int)  4433)	/*
FIX(0.541196100) */
#define FIX_0_765366865  ((int)  6270)	/*
FIX(0.765366865) */
#define FIX_0_899976223  ((int)  7373)	/*
FIX(0.899976223) */
#define FIX_1_175875602  ((int)  9633)	/*
FIX(1.175875602) */
#define FIX_1_501321110  ((int) 12299)	/*
FIX(1.501321110) */
#define FIX_1_847759065  ((int) 15137)	/*
FIX(1.847759065) */
#define FIX_1_961570560  ((int) 16069)	/*
FIX(1.961570560) */
#define FIX_2_053119869  ((int) 16819)	/*
FIX(2.053119869) */
#define FIX_2_562915447  ((int) 20995)	/*
FIX(2.562915447) */
#define FIX_3_072711026  ((int) 25172)	/*
FIX(3.072711026) */
"
Can any one of explain what is calculation to arrive
at the following constants,
(0.298631336), 
(0.390180644), 
(0.541196100), 
(0.765366865), 
(0.899976223), 
(1.175875602), 
(1.501321110), 
(1.847759065), 
(1.961570560), 
(2.053119869), 
(2.562915447), 
(3.072711026), 
"

Awaiting your response,

With regards,
R.Lakshmikanth



		
__________________________________ 
Do you Yahoo!? 
Meet the all-new My Yahoo! - Try it today! 
http://my.yahoo.com 
 



More information about the XviD-devel mailing list