FFmpeg
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 init_vlc(vlc, nb_bits, nb_codes,bits, bits_wrap, bits_size,codes, codes_wrap, codes_size,flags)
Definition: vlc.h:38
AVFormatContext * ctx
Definition: movenc.c:48
#define FF_ARRAY_ELEMS(a)
if(ret)
these buffered frames must be flushed immediately if a new input produces new the filter must not call request_frame to get more It must just process the frame or queue it The task of requesting more frames is left to the filter s request_frame method or the application If a filter has several the filter must be ready for frames arriving randomly on any input any filter with several inputs will most likely require some kind of queuing mechanism It is perfectly acceptable to have a limited queue and to drop frames when the inputs are too unbalanced request_frame For filters that do not use the this method is called when a frame is wanted on an output For a it should directly call filter_frame on the corresponding output For a if there are queued frames already one of these frames should be pushed If the filter should request a frame on one of its repeatedly until at least one frame has been pushed Return or at least make progress towards producing a it should return
const char * name
Definition: opengl_enc.c:102

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().