FFmpeg
Macros | Variables
hq_common.c File Reference
#include "hq_common.h"

Go to the source code of this file.

Macros

#define REPEAT(x)   x x
 
#define ELEM(_sym, _len)   {.sym = _sym << 4 | _sym, .len = _len },
 
#define LEN5(sym)   ELEM(sym, 5)
 
#define LEN4(sym)   REPEAT(ELEM(sym, 4))
 
#define LEN2(sym)   REPEAT(REPEAT(REPEAT(ELEM(sym, 2))))
 

Variables

const VLCElem ff_hq_cbp_vlc [1<< HQ_CBP_VLC_BITS]
 

Macro Definition Documentation

◆ REPEAT

#define REPEAT (   x)    x x

Definition at line 21 of file hq_common.c.

◆ ELEM

#define ELEM (   _sym,
  _len 
)    {.sym = _sym << 4 | _sym, .len = _len },

Definition at line 22 of file hq_common.c.

◆ LEN5

#define LEN5 (   sym)    ELEM(sym, 5)

Definition at line 23 of file hq_common.c.

◆ LEN4

#define LEN4 (   sym)    REPEAT(ELEM(sym, 4))

Definition at line 24 of file hq_common.c.

◆ LEN2

#define LEN2 (   sym)    REPEAT(REPEAT(REPEAT(ELEM(sym, 2))))

Definition at line 25 of file hq_common.c.

Variable Documentation

◆ ff_hq_cbp_vlc

const VLCElem ff_hq_cbp_vlc[1<< HQ_CBP_VLC_BITS]
Initial value:
= {
}

Definition at line 27 of file hq_common.c.

Referenced by hqa_decode_mb(), hqx_decode_422a(), and hqx_decode_444a().