VLC 4.0.0-dev
Loading...
Searching...
No Matches

Common integer functions. More...

Collaboration diagram for Integer operations:

Modules

 Bit operations
 
 Overflowing arithmetic
 

Macros

#define VLC_CLIP(v, min, max)   __MIN(__MAX((v), (min)), (max))
 

Functions

static size_t vlc_align (size_t v, size_t align)
 Make integer v a multiple of align.
 
static int64_t GCD (int64_t a, int64_t b)
 Greatest common divisor.
 
static uint8_t clip_uint8_vlc (int32_t a)
 

Detailed Description

Common integer functions.

Macro Definition Documentation

◆ VLC_CLIP

#define VLC_CLIP (   v,
  min,
  max 
)    __MIN(__MAX((v), (min)), (max))

Function Documentation

◆ clip_uint8_vlc()

static uint8_t clip_uint8_vlc ( int32_t  a)
inlinestatic

◆ GCD()

static int64_t GCD ( int64_t  a,
int64_t  b 
)
inlinestatic

Greatest common divisor.

Referenced by LCM(), and vout_ParseCrop().

◆ vlc_align()

static size_t vlc_align ( size_t  v,
size_t  align 
)
inlinestatic

Make integer v a multiple of align.

Note
align must be a power of 2