gem5  v20.1.0.0
Classes | Macros | Typedefs | Functions | Variables
global.h File Reference
#include <stdio.h>

Go to the source code of this file.

Classes

struct  HUFFMTBL_ENTRY
 
struct  Block
 
struct  Compressed
 
struct  Matrix64x12
 
struct  Coeff8
 
struct  Coeff8x8
 

Macros

#define MAXBUFLEN   64
 
#define c1d4   362L
 
#define c1d8   473L
 
#define c3d8   196L
 
#define c1d16   502L
 
#define c3d16   426L
 
#define c5d16   284L
 
#define c7d16   100L
 
#define MSCALE(expr)   (COEFF)((expr)>>9)
 

Typedefs

typedef unsigned char BYTE
 
typedef unsigned short WORD
 
typedef unsigned long DWORD
 
typedef BYTE BLOCK[8][8]
 
typedef BYTE COMPRESSED[MAXBUFLEN]
 
typedef WORD MATRIX64x12[64]
 
typedef short COEFF
 

Functions

void sc_trace (sc_trace_file *, const Coeff8x8 &, const std::string &)
 

Variables

static const unsigned char coeff_quant [8][8]
 
static const HUFFMTBL_ENTRY huffm_dc [12]
 
static const HUFFMTBL_ENTRY huffm_ac [256]
 

Macro Definition Documentation

◆ c1d16

#define c1d16   502L

Definition at line 51 of file global.h.

◆ c1d4

#define c1d4   362L

Definition at line 48 of file global.h.

◆ c1d8

#define c1d8   473L

Definition at line 49 of file global.h.

◆ c3d16

#define c3d16   426L

Definition at line 52 of file global.h.

◆ c3d8

#define c3d8   196L

Definition at line 50 of file global.h.

◆ c5d16

#define c5d16   284L

Definition at line 53 of file global.h.

◆ c7d16

#define c7d16   100L

Definition at line 54 of file global.h.

◆ MAXBUFLEN

#define MAXBUFLEN   64

Definition at line 45 of file global.h.

◆ MSCALE

#define MSCALE (   expr)    (COEFF)((expr)>>9)

Definition at line 57 of file global.h.

Typedef Documentation

◆ BLOCK

typedef BYTE BLOCK[8][8]

Definition at line 63 of file global.h.

◆ BYTE

typedef unsigned char BYTE

Definition at line 59 of file global.h.

◆ COEFF

typedef short COEFF

Definition at line 68 of file global.h.

◆ COMPRESSED

typedef BYTE COMPRESSED[MAXBUFLEN]

Definition at line 64 of file global.h.

◆ DWORD

typedef unsigned long DWORD

Definition at line 61 of file global.h.

◆ MATRIX64x12

typedef WORD MATRIX64x12[64]

Definition at line 65 of file global.h.

◆ WORD

typedef unsigned short WORD

Definition at line 60 of file global.h.

Function Documentation

◆ sc_trace()

void sc_trace ( sc_trace_file *  ,
const Coeff8x8 ,
const std::string &   
)
inline

Definition at line 142 of file global.h.

Variable Documentation

◆ coeff_quant

const unsigned char coeff_quant[8][8]
static
Initial value:
= {
{ 16, 11, 10, 16, 24, 40, 51, 61},
{ 12, 12, 14, 19, 26, 58, 60, 55},
{ 14, 13, 16, 24, 40, 57, 69, 56},
{ 14, 17, 22, 29, 51, 87, 80, 82},
{ 18, 22, 37, 56, 68, 109, 103, 77},
{ 24, 35, 55, 64, 81, 104, 113, 92},
{ 99, 64, 78, 87, 103, 121, 120, 101},
{ 72, 92, 95, 98, 112, 100, 103, 99}
}

Definition at line 149 of file global.h.

◆ huffm_ac

const HUFFMTBL_ENTRY huffm_ac[256]
static

Definition at line 170 of file global.h.

◆ huffm_dc

const HUFFMTBL_ENTRY huffm_dc[12]
static
Initial value:
= {
{ 2, 0X0000 }, { 3, 0X0002 }, { 3, 0X0003 }, { 3, 0X0004 },
{ 3, 0X0005 }, { 3, 0X0006 }, { 4, 0X000E }, { 5, 0X001E },
{ 6, 0X003E }, { 7, 0X007E }, { 8, 0X00FE }, { 9, 0X01FE }
}

Definition at line 162 of file global.h.


Generated on Wed Sep 30 2020 14:02:19 for gem5 by doxygen 1.8.17