FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
hqxvlc.c File Reference
#include "hqx.h"

Go to the source code of this file.

Macros

#define RPT_2(a, b, c)   { a, b, c }, { a, b, c }
 
#define RPT_4(a, b, c)   RPT_2( a, b, c), RPT_2( a, b, c)
 
#define RPT_8(a, b, c)   RPT_4( a, b, c), RPT_4( a, b, c)
 
#define RPT_16(a, b, c)   RPT_8( a, b, c), RPT_8( a, b, c)
 
#define RPT_32(a, b, c)   RPT_16( a, b, c), RPT_16( a, b, c)
 
#define RPT_64(a, b, c)   RPT_32( a, b, c), RPT_32( a, b, c)
 
#define RPT_128(a, b, c)   RPT_64( a, b, c), RPT_64( a, b, c)
 
#define RPT_256(a, b, c)   RPT_128(a, b, c), RPT_128(a, b, c)
 
#define RPT_512(a, b, c)   RPT_256(a, b, c), RPT_256(a, b, c)
 
#define RPT_1024(a, b, c)   RPT_512(a, b, c), RPT_512(a, b, c)
 
#define INIT_DC_TABLE(idx, name)
 

Functions

av_cold int ff_hqx_init_vlcs (HQXContext *ctx)
 

Variables

static const uint8_t cbp_vlc_bits [16]
 
static const uint8_t cbp_vlc_lens [16]
 
static const uint16_t dc9_vlc_bits [512]
 
static const uint8_t dc9_vlc_lens [512]
 
static const uint16_t dc10_vlc_bits [1024]
 
static const uint8_t dc10_vlc_lens [1024]
 
static const uint16_t dc11_vlc_bits [2048]
 
static const uint8_t dc11_vlc_lens [2048]
 
static const HQXLUT ac0_lut []
 
static const HQXLUT ac8_lut []
 
static const HQXLUT ac16_lut []
 
static const HQXLUT ac32_lut []
 
static const HQXLUT ac64_lut []
 
static const HQXLUT ac128_lut []
 
const HQXAC ff_hqx_ac [NUM_HQX_AC]
 

Macro Definition Documentation

#define RPT_2 (   a,
  b,
  c 
)    { a, b, c }, { a, b, c }

Definition at line 722 of file hqxvlc.c.

#define RPT_4 (   a,
  b,
  c 
)    RPT_2( a, b, c), RPT_2( a, b, c)

Definition at line 723 of file hqxvlc.c.

#define RPT_8 (   a,
  b,
  c 
)    RPT_4( a, b, c), RPT_4( a, b, c)

Definition at line 724 of file hqxvlc.c.

#define RPT_16 (   a,
  b,
  c 
)    RPT_8( a, b, c), RPT_8( a, b, c)

Definition at line 725 of file hqxvlc.c.

#define RPT_32 (   a,
  b,
  c 
)    RPT_16( a, b, c), RPT_16( a, b, c)

Definition at line 726 of file hqxvlc.c.

#define RPT_64 (   a,
  b,
  c 
)    RPT_32( a, b, c), RPT_32( a, b, c)

Definition at line 727 of file hqxvlc.c.

#define RPT_128 (   a,
  b,
  c 
)    RPT_64( a, b, c), RPT_64( a, b, c)

Definition at line 728 of file hqxvlc.c.

#define RPT_256 (   a,
  b,
  c 
)    RPT_128(a, b, c), RPT_128(a, b, c)

Definition at line 729 of file hqxvlc.c.

#define RPT_512 (   a,
  b,
  c 
)    RPT_256(a, b, c), RPT_256(a, b, c)

Definition at line 730 of file hqxvlc.c.

#define RPT_1024 (   a,
  b,
  c 
)    RPT_512(a, b, c), RPT_512(a, b, c)

Definition at line 731 of file hqxvlc.c.

#define INIT_DC_TABLE (   idx,
  name 
)
Value:
do { \
ret = init_vlc(&ctx->dc_vlc[idx], HQX_DC_VLC_BITS, \
FF_ARRAY_ELEMS(name ## _vlc_lens), \
name ## _vlc_lens, 1, 1, \
name ## _vlc_bits, 2, 2, 0); \
if (ret < 0) \
} while (0)
#define HQX_DC_VLC_BITS
Definition: hqx.h:80
#define FF_ARRAY_ELEMS(a)
if()
Definition: avfilter.c:975
return
ret
Definition: avfilter.c:974
#define init_vlc(vlc, nb_bits, nb_codes,bits, bits_wrap, bits_size,codes, codes_wrap, codes_size,flags)
Definition: get_bits.h:457
const char * name
Definition: opengl_enc.c:103

Definition at line 2141 of file hqxvlc.c.

Referenced by ff_hqx_init_vlcs().

Function Documentation

av_cold int ff_hqx_init_vlcs ( HQXContext ctx)

Definition at line 2151 of file hqxvlc.c.

Referenced by hqx_decode_init().

Variable Documentation

const uint8_t cbp_vlc_bits[16]
static
Initial value:
= {
0x04, 0x1C, 0x1D, 0x09, 0x1E, 0x0B, 0x1B, 0x08,
0x1F, 0x1A, 0x0C, 0x07, 0x0A, 0x06, 0x05, 0x00,
}

Definition at line 23 of file hqxvlc.c.

Referenced by ff_hqx_init_vlcs().

const uint8_t cbp_vlc_lens[16]
static
Initial value:
= {
4, 5, 5, 4, 5, 4, 5, 4, 5, 5, 4, 4, 4, 4, 4, 2,
}

Definition at line 28 of file hqxvlc.c.

Referenced by ff_hqx_init_vlcs().

const uint16_t dc9_vlc_bits[512]
static

Definition at line 32 of file hqxvlc.c.

const uint8_t dc9_vlc_lens[512]
static

Definition at line 99 of file hqxvlc.c.

const uint16_t dc10_vlc_bits[1024]
static

Definition at line 134 of file hqxvlc.c.

const uint8_t dc10_vlc_lens[1024]
static

Definition at line 265 of file hqxvlc.c.

const uint16_t dc11_vlc_bits[2048]
static

Definition at line 332 of file hqxvlc.c.

const uint8_t dc11_vlc_lens[2048]
static

Definition at line 591 of file hqxvlc.c.

const HQXLUT ac0_lut[]
static

Definition at line 733 of file hqxvlc.c.

const HQXLUT ac8_lut[]
static

Definition at line 1132 of file hqxvlc.c.

const HQXLUT ac16_lut[]
static

Definition at line 1580 of file hqxvlc.c.

const HQXLUT ac32_lut[]
static

Definition at line 1777 of file hqxvlc.c.

const HQXLUT ac64_lut[]
static

Definition at line 1925 of file hqxvlc.c.

const HQXLUT ac128_lut[]
static

Definition at line 2041 of file hqxvlc.c.

const HQXAC ff_hqx_ac[NUM_HQX_AC]
Initial value:
= {
{ 10, 5, ac0_lut },
{ 11, 6, ac8_lut },
{ 11, 6, ac16_lut },
{ 11, 6, ac32_lut },
{ 12, 5, ac64_lut },
{ 11, 6, ac128_lut },
}
static const HQXLUT ac16_lut[]
Definition: hqxvlc.c:1580
static const HQXLUT ac8_lut[]
Definition: hqxvlc.c:1132
static const HQXLUT ac64_lut[]
Definition: hqxvlc.c:1925
static const HQXLUT ac0_lut[]
Definition: hqxvlc.c:733
static const HQXLUT ac128_lut[]
Definition: hqxvlc.c:2041
static const HQXLUT ac32_lut[]
Definition: hqxvlc.c:1777

Definition at line 2132 of file hqxvlc.c.

Referenced by decode_block().