FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
mpc7data.h File Reference
#include <stdint.h>

Go to the source code of this file.

Macros

#define MPC7_SCFI_SIZE   4
 
#define MPC7_SCFI_BITS   3
 
#define MPC7_DSCF_SIZE   16
 
#define MPC7_DSCF_BITS   6
 
#define MPC7_HDR_SIZE   10
 
#define MPC7_HDR_BITS   9
 
#define MPC7_QUANT_VLC_TABLES   7
 

Variables

static const int8_t mpc7_idx30 [] = { -1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1}
 
static const int8_t mpc7_idx31 [] = { -1,-1,-1, 0, 0, 0, 1, 1, 1,-1,-1,-1, 0, 0, 0, 1, 1, 1,-1,-1,-1, 0, 0, 0, 1, 1, 1}
 
static const int8_t mpc7_idx32 [] = { -1,-1,-1,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1}
 
static const int8_t mpc7_idx50 [] = { -2,-1, 0, 1, 2,-2,-1, 0, 1, 2,-2,-1, 0, 1, 2,-2,-1, 0, 1, 2,-2,-1, 0, 1, 2}
 
static const int8_t mpc7_idx51 [] = { -2,-2,-2,-2,-2,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2}
 
static const uint8_t mpc7_scfi [MPC7_SCFI_SIZE *2]
 
static const uint8_t mpc7_dscf [MPC7_DSCF_SIZE *2]
 
static const uint8_t mpc7_hdr [MPC7_HDR_SIZE *2]
 
static const uint8_t mpc7_quant_vlc_sizes [MPC7_QUANT_VLC_TABLES *2]
 
static const uint8_t mpc7_quant_vlc_off [MPC7_QUANT_VLC_TABLES]
 
static const uint16_t mpc7_quant_vlc [MPC7_QUANT_VLC_TABLES][2][64 *2]
 

Macro Definition Documentation

#define MPC7_SCFI_SIZE   4

Definition at line 33 of file mpc7data.h.

Referenced by mpc7_decode_init().

#define MPC7_SCFI_BITS   3

Definition at line 34 of file mpc7data.h.

Referenced by mpc7_decode_frame(), and mpc7_decode_init().

#define MPC7_DSCF_SIZE   16

Definition at line 39 of file mpc7data.h.

Referenced by mpc7_decode_init().

#define MPC7_DSCF_BITS   6

Definition at line 40 of file mpc7data.h.

Referenced by get_scale_idx(), and mpc7_decode_init().

#define MPC7_HDR_SIZE   10

Definition at line 46 of file mpc7data.h.

Referenced by mpc7_decode_init().

#define MPC7_HDR_BITS   9

Definition at line 47 of file mpc7data.h.

Referenced by mpc7_decode_frame(), and mpc7_decode_init().

#define MPC7_QUANT_VLC_TABLES   7

Definition at line 53 of file mpc7data.h.

Referenced by mpc7_decode_init().

Variable Documentation

const int8_t mpc7_idx30[] = { -1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1,-1, 0, 1}
static

Definition at line 27 of file mpc7data.h.

Referenced by idx_to_quant().

const int8_t mpc7_idx31[] = { -1,-1,-1, 0, 0, 0, 1, 1, 1,-1,-1,-1, 0, 0, 0, 1, 1, 1,-1,-1,-1, 0, 0, 0, 1, 1, 1}
static

Definition at line 28 of file mpc7data.h.

Referenced by idx_to_quant().

const int8_t mpc7_idx32[] = { -1,-1,-1,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1}
static

Definition at line 29 of file mpc7data.h.

Referenced by idx_to_quant().

const int8_t mpc7_idx50[] = { -2,-1, 0, 1, 2,-2,-1, 0, 1, 2,-2,-1, 0, 1, 2,-2,-1, 0, 1, 2,-2,-1, 0, 1, 2}
static

Definition at line 30 of file mpc7data.h.

Referenced by idx_to_quant().

const int8_t mpc7_idx51[] = { -2,-2,-2,-2,-2,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2}
static

Definition at line 31 of file mpc7data.h.

Referenced by idx_to_quant().

const uint8_t mpc7_scfi[MPC7_SCFI_SIZE *2]
static
Initial value:
= {
0x2, 3, 0x1, 1, 0x3, 3, 0x0, 2
}

Definition at line 35 of file mpc7data.h.

Referenced by mpc7_decode_init().

const uint8_t mpc7_dscf[MPC7_DSCF_SIZE *2]
static
Initial value:
= {
0x20, 6, 0x04, 5, 0x11, 5, 0x1E, 5, 0x0D, 4, 0x00, 3, 0x03, 3, 0x09, 4,
0x05, 3, 0x02, 3, 0x0E, 4, 0x03, 4, 0x1F, 5, 0x05, 5, 0x21, 6, 0x0C, 4
}

Definition at line 41 of file mpc7data.h.

Referenced by mpc7_decode_init().

const uint8_t mpc7_hdr[MPC7_HDR_SIZE *2]
static
Initial value:
= {
0x5C, 8, 0x2F, 7, 0x0A, 5, 0x04, 4, 0x00, 2,
0x01, 1, 0x03, 3, 0x16, 6, 0xBB, 9, 0xBA, 9
}

Definition at line 48 of file mpc7data.h.

Referenced by mpc7_decode_init().

const uint8_t mpc7_quant_vlc_sizes[MPC7_QUANT_VLC_TABLES *2]
static
Initial value:
= {
27, 25, 7, 9, 15, 31, 63
}

Definition at line 54 of file mpc7data.h.

Referenced by mpc7_decode_init().

const uint8_t mpc7_quant_vlc_off[MPC7_QUANT_VLC_TABLES]
static
Initial value:
= {
0, 0, 3, 4, 7, 15, 31
}

Definition at line 58 of file mpc7data.h.

Referenced by idx_to_quant().

const uint16_t mpc7_quant_vlc[MPC7_QUANT_VLC_TABLES][2][64 *2]
static

Definition at line 62 of file mpc7data.h.

Referenced by mpc7_decode_init().