FFmpeg  4.0
Macros | Functions | Variables
sw_rgb.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem.h"
#include "libswscale/rgb2rgb.h"
#include "checkasm.h"

Go to the source code of this file.

Macros

#define randomize_buffers(buf, size)
 
#define MAX_STRIDE   128
 

Functions

static void check_shuffle_bytes (void *func, const char *report)
 
void checkasm_check_sw_rgb (void)
 

Variables

static const uint8_t width [] = {12, 16, 20, 32, 36, 128}
 

Macro Definition Documentation

◆ randomize_buffers

#define randomize_buffers (   buf,
  size 
)
Value:
do { \
int j; \
for (j = 0; j < size; j+=4) \
AV_WN32(buf + j, rnd()); \
} while (0)
int size
void * buf
Definition: avisynth_c.h:690
#define AV_WN32(p, v)
Definition: intreadwrite.h:376
#define rnd()
Definition: checkasm.h:100

Definition at line 30 of file sw_rgb.c.

Referenced by check_shuffle_bytes().

◆ MAX_STRIDE

#define MAX_STRIDE   128

Definition at line 39 of file sw_rgb.c.

Referenced by check_shuffle_bytes().

Function Documentation

◆ check_shuffle_bytes()

static void check_shuffle_bytes ( void func,
const char *  report 
)
static

Definition at line 41 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

◆ checkasm_check_sw_rgb()

void checkasm_check_sw_rgb ( void  )

Definition at line 67 of file sw_rgb.c.

Variable Documentation

◆ width

const uint8_t width[] = {12, 16, 20, 32, 36, 128}
static

Definition at line 37 of file sw_rgb.c.

Referenced by check_shuffle_bytes().