hvirtual/quicktime/revdct.c File Reference

#include "sizes.h"

Include dependency graph for revdct.c:

Go to the source code of this file.

Defines

#define SHIFT_TEMPS
#define RIGHT_SHIFT(x, shft)   ((x) >> (shft))
#define MAXJSAMPLE   255
#define RANGE_MASK   (MAXJSAMPLE * 4 + 3)
#define CONST_SCALE   (ONE << CONST_BITS)
#define ONE   ((long)1)
#define CONST_BITS   13
#define PASS1_BITS   2
#define DCTSIZE1   8
#define DCTSIZE2   64
#define MULTIPLY(var, const)   ((var) * (const))
#define FIX(x)   ((long)((x) * CONST_SCALE + 0.5))
#define DESCALE(x, n)   RIGHT_SHIFT((x) + (ONE << ((n) - 1)), n)

Functions

int quicktime_rev_dct (int16_t *data, unsigned char *outptr, unsigned char *rnglimit)


Define Documentation

#define CONST_BITS   13

Definition at line 18 of file revdct.c.

#define CONST_SCALE   (ONE << CONST_BITS)

Definition at line 16 of file revdct.c.

#define DCTSIZE1   8

Definition at line 20 of file revdct.c.

#define DCTSIZE2   64

Definition at line 21 of file revdct.c.

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

Definition at line 24 of file revdct.c.

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

Definition at line 23 of file revdct.c.

#define MAXJSAMPLE   255

Definition at line 14 of file revdct.c.

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

Definition at line 22 of file revdct.c.

#define ONE   ((long)1)

Definition at line 17 of file revdct.c.

#define PASS1_BITS   2

Definition at line 19 of file revdct.c.

#define RANGE_MASK   (MAXJSAMPLE * 4 + 3)

Definition at line 15 of file revdct.c.

#define RIGHT_SHIFT ( x,
shft   )     ((x) >> (shft))

Definition at line 11 of file revdct.c.

#define SHIFT_TEMPS

Definition at line 10 of file revdct.c.


Function Documentation

int quicktime_rev_dct ( int16_t *  data,
unsigned char *  outptr,
unsigned char *  rnglimit 
)

Definition at line 26 of file revdct.c.

References CONST_BITS, DCTSIZE1, DESCALE, FIX, MULTIPLY, PASS1_BITS, RANGE_MASK, and SHIFT_TEMPS.

Referenced by quicktime_fastjpg_huffparse().


Generated on Mon Apr 28 14:08:14 2008 for Cinelerra by  doxygen 1.5.5