Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals   Search  

jrevdct.c File Reference

#include <memory.h>
#include "all.h"
#include "ansi.h"
#include "dct.h"

Go to the source code of this file.


Defines

#define CONST_BITS   13
#define PASS1_BITS   1
#define ONE   ((int32) 1)
#define CONST_SCALE   (ONE << CONST_BITS)
#define FIX(x)   ((int32) ((x) * CONST_SCALE + 0.5))
#define DESCALE(x, n)   RIGHT_SHIFT((x) + (ONE << ((n)-1)), n)
#define MULTIPLY(var, const)   ((var) * (const))
#define FIX_0_211164243   1730
#define FIX_0_275899380   2260
#define FIX_0_298631336   2446
#define FIX_0_390180644   3196
#define FIX_0_509795579   4176
#define FIX_0_541196100   4433
#define FIX_0_601344887   4926
#define FIX_0_765366865   6270
#define FIX_0_785694958   6436
#define FIX_0_899976223   7373
#define FIX_1_061594337   8697
#define FIX_1_111140466   9102
#define FIX_1_175875602   9633
#define FIX_1_306562965   10703
#define FIX_1_387039845   11363
#define FIX_1_451774981   11893
#define FIX_1_501321110   12299
#define FIX_1_662939225   13623
#define FIX_1_847759065   15137
#define FIX_1_961570560   16069
#define FIX_2_053119869   16819
#define FIX_2_172734803   17799
#define FIX_2_562915447   20995
#define FIX_3_072711026   25172
#define PI   3.14159265358979323846

Functions

void reference_rev_dct _ANSI_ARGS_ ((int16 *block))
void init_idctref _ANSI_ARGS_ ((void))
void mpeg_jrevdct (data) DCTBLOCK data
void init_idctref ()
void reference_rev_dct (block) int16 *block

Variables

 Sorry
boolean pureDCT

Define Documentation

#define CONST_BITS   13
 

Definition at line 35 of file jrevdct.c.

#define CONST_SCALE   (ONE << CONST_BITS)
 

Definition at line 90 of file jrevdct.c.

#define DESCALE (  x,
n    )     RIGHT_SHIFT((x) + (ONE << ((n)-1)), n)
 

Definition at line 106 of file jrevdct.c.

#define FIX (  x    )     ((int32) ((x) * CONST_SCALE + 0.5))
 

Definition at line 99 of file jrevdct.c.

#define FIX_0_211164243   1730
 

Definition at line 137 of file jrevdct.c.

#define FIX_0_275899380   2260
 

Definition at line 138 of file jrevdct.c.

#define FIX_0_298631336   2446
 

Definition at line 139 of file jrevdct.c.

#define FIX_0_390180644   3196
 

Definition at line 140 of file jrevdct.c.

#define FIX_0_509795579   4176
 

Definition at line 141 of file jrevdct.c.

#define FIX_0_541196100   4433
 

Definition at line 142 of file jrevdct.c.

#define FIX_0_601344887   4926
 

Definition at line 143 of file jrevdct.c.

#define FIX_0_765366865   6270
 

Definition at line 144 of file jrevdct.c.

#define FIX_0_785694958   6436
 

Definition at line 145 of file jrevdct.c.

#define FIX_0_899976223   7373
 

Definition at line 146 of file jrevdct.c.

#define FIX_1_061594337   8697
 

Definition at line 147 of file jrevdct.c.

#define FIX_1_111140466   9102
 

Definition at line 148 of file jrevdct.c.

#define FIX_1_175875602   9633
 

Definition at line 149 of file jrevdct.c.

#define FIX_1_306562965   10703
 

Definition at line 150 of file jrevdct.c.

#define FIX_1_387039845   11363
 

Definition at line 151 of file jrevdct.c.

#define FIX_1_451774981   11893
 

Definition at line 152 of file jrevdct.c.

#define FIX_1_501321110   12299
 

Definition at line 153 of file jrevdct.c.

#define FIX_1_662939225   13623
 

Definition at line 154 of file jrevdct.c.

#define FIX_1_847759065   15137
 

Definition at line 155 of file jrevdct.c.

#define FIX_1_961570560   16069
 

Definition at line 156 of file jrevdct.c.

#define FIX_2_053119869   16819
 

Definition at line 157 of file jrevdct.c.

#define FIX_2_172734803   17799
 

Definition at line 158 of file jrevdct.c.

#define FIX_2_562915447   20995
 

Definition at line 159 of file jrevdct.c.

#define FIX_3_072711026   25172
 

Definition at line 160 of file jrevdct.c.

#define MULTIPLY (  var,
const    )     ((var) * (const))
 

Definition at line 129 of file jrevdct.c.

#define ONE   ((int32) 1)
 

Definition at line 88 of file jrevdct.c.

#define PASS1_BITS   1
 

Definition at line 85 of file jrevdct.c.

#define PI   3.14159265358979323846
 


Function Documentation

void init_idctref _ANSI_ARGS_ (  (void)    ) 
 

void mpeg_jrevdct_quick _ANSI_ARGS_ (  (int16 *block)    ) 
 

void init_idctref (    ) 
 

Definition at line 1231 of file jrevdct.c.

References freq, and scale.

Referenced by Tune_Init().

01232 {
01233   int freq, time;
01234   double scale;
01235 
01236   for (freq=0; freq < 8; freq++)
01237   {
01238     scale = (freq == 0) ? sqrt(0.125) : 0.5;
01239     for (time=0; time<8; time++)
01240       itrans_coef[freq][time] = scale*cos((PI/8.0)*freq*(time + 0.5));
01241   }
01242 }

void mpeg_jrevdct (  data    ) 
 

void reference_rev_dct (  block    ) 
 


Variable Documentation

boolean pureDCT
 

Definition at line 169 of file jrevdct.c.

Sorry
 

Definition at line 42 of file jrevdct.c.

 

Powered by Plone

This site conforms to the following standards: