Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Macros
bsdec-vlc.h File Reference
#include <stdint.h>
Include dependency graph for bsdec-vlc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BSDEC_VLC_MAXNZ   11
 
#define BSDEC_VLC_HALFWORD(e)   ((uint16_t)((e) & 0xffff))
 
#define BSDEC_VLC_SUFFIXBITS(e)   (((e) >> 16) & 0x1f)
 
#define BSDEC_VLC_KIND(e)   (((e) >> 21) & 3)
 
#define BSDEC_VLC_VALID(e)   ((e) & (1 << 23))
 
#define BSDEC_VLC_NORMAL   0
 
#define BSDEC_VLC_EOB   1
 
#define BSDEC_VLC_ESCAPE   2
 

Macro Definition Documentation

◆ BSDEC_VLC_EOB

#define BSDEC_VLC_EOB   1

◆ BSDEC_VLC_ESCAPE

#define BSDEC_VLC_ESCAPE   2

◆ BSDEC_VLC_HALFWORD

#define BSDEC_VLC_HALFWORD (   e)    ((uint16_t)((e) & 0xffff))

◆ BSDEC_VLC_KIND

#define BSDEC_VLC_KIND (   e)    (((e) >> 21) & 3)

◆ BSDEC_VLC_MAXNZ

#define BSDEC_VLC_MAXNZ   11

◆ BSDEC_VLC_NORMAL

#define BSDEC_VLC_NORMAL   0

◆ BSDEC_VLC_SUFFIXBITS

#define BSDEC_VLC_SUFFIXBITS (   e)    (((e) >> 16) & 0x1f)

◆ BSDEC_VLC_VALID

#define BSDEC_VLC_VALID (   e)    ((e) & (1 << 23))