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

Common integer functions. More...

Collaboration diagram for Integer operations:

Topics

 Bit operations
 Overflowing arithmetic

Macros

#define VLC_CLIP(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 )
Value:
__MIN(__MAX((v), (min)), (max))

Referenced by Control(), OSDWidget(), vlc_viewpoint_clip(), and vout_OSDEpgSlider().

Function Documentation

◆ clip_uint8_vlc()

uint8_t clip_uint8_vlc ( int32_t a)
inlinestatic

◆ GCD()

int64_t GCD ( int64_t a,
int64_t b )
inlinestatic

Greatest common divisor.

Referenced by LCM(), and vout_ParseCrop().

◆ vlc_align()

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