rnd_avg.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for rnd_avg.h:
This graph shows which files directly or indirectly include this file:

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 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().

#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);\
}
uint8_t
#define b
Definition: input.c:42

Definition at line 28 of file rnd_avg.h.

Function Documentation

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 no_rnd_avg64 ( uint64_t  a,
uint64_t  b 
)
inlinestatic

Definition at line 52 of file rnd_avg.h.

static uint32_t rnd_avg32 ( uint32_t  a,
uint32_t  b 
)
inlinestatic

Definition at line 37 of file rnd_avg.h.

static uint64_t rnd_avg64 ( uint64_t  a,
uint64_t  b 
)
inlinestatic

Definition at line 47 of file rnd_avg.h.