FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
rnd_avg.h File Reference
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Macros

#define CALL_2X_PIXELS(a, b, n)
 
#define BYTE_VEC32(c)   ((c)*0x01010101UL)
 
#define BYTE_VEC64(c)   ((c)*0x0001000100010001UL)
 

Functions

static uint32_t rnd_avg32 (uint32_t a, uint32_t b)
 
static uint32_t no_rnd_avg32 (uint32_t a, uint32_t b)
 
static uint64_t rnd_avg64 (uint64_t a, uint64_t b)
 
static uint64_t no_rnd_avg64 (uint64_t a, uint64_t b)
 

Macro Definition Documentation

#define CALL_2X_PIXELS (   a,
  b,
  n 
)
Value:
static void a(uint8_t *block, const uint8_t *pixels, ptrdiff_t line_size, int h){\
b(block , pixels , line_size, h);\
b(block+n, pixels+n, line_size, h);\
}

Definition at line 28 of file rnd_avg.h.

#define BYTE_VEC32 (   c)    ((c)*0x01010101UL)

Definition at line 34 of file rnd_avg.h.

Referenced by no_rnd_avg32(), and rnd_avg32().

#define BYTE_VEC64 (   c)    ((c)*0x0001000100010001UL)

Definition at line 35 of file rnd_avg.h.

Referenced by no_rnd_avg64(), and rnd_avg64().

Function Documentation

static uint32_t rnd_avg32 ( uint32_t  a,
uint32_t  b 
)
inlinestatic

Definition at line 37 of file rnd_avg.h.

static uint32_t no_rnd_avg32 ( uint32_t  a,
uint32_t  b 
)
inlinestatic

Definition at line 42 of file rnd_avg.h.

Referenced by put_no_rnd_pixels_l2().

static uint64_t rnd_avg64 ( uint64_t  a,
uint64_t  b 
)
inlinestatic

Definition at line 47 of file rnd_avg.h.

static uint64_t no_rnd_avg64 ( uint64_t  a,
uint64_t  b 
)
inlinestatic

Definition at line 52 of file rnd_avg.h.