FFmpeg
Macros | Functions | Variables
sw_rgb.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.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
 
#define MAX_HEIGHT   128
 

Functions

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

Variables

static const uint8_t width [] = {12, 16, 20, 32, 36, 128}
 
struct {
   uint8_t   w
 
   uint8_t   h
 
   uint8_t   s
 
planes []
 

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)

Definition at line 30 of file sw_rgb.c.

◆ MAX_STRIDE

#define MAX_STRIDE   128

Definition at line 42 of file sw_rgb.c.

◆ MAX_HEIGHT

#define MAX_HEIGHT   128

Definition at line 43 of file sw_rgb.c.

Function Documentation

◆ check_shuffle_bytes()

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

Definition at line 45 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

◆ check_uyvy_to_422p()

static void check_uyvy_to_422p ( void  )
static

Definition at line 71 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

◆ check_interleave_bytes()

static void check_interleave_bytes ( void  )
static

Definition at line 114 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

◆ checkasm_check_sw_rgb()

void checkasm_check_sw_rgb ( void  )

Definition at line 182 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(), and check_uyvy_to_422p().

◆ w

uint8_t w

Definition at line 38 of file sw_rgb.c.

Referenced by check_interleave_bytes(), and check_uyvy_to_422p().

◆ h

uint8_t h

Definition at line 38 of file sw_rgb.c.

Referenced by check_interleave_bytes(), and check_uyvy_to_422p().

◆ s

uint8_t s

Definition at line 38 of file sw_rgb.c.

Referenced by check_uyvy_to_422p().

◆ planes

const { ... } planes[]
Initial value:
= {
{12,16,12}, {16,16,16}, {20,23,25}, {32,18,48}, {8,128,16}, {128,128,128}
}

Referenced by check_uyvy_to_422p().

rnd
#define rnd()
Definition: checkasm.h:163
AV_WN32
#define AV_WN32(p, v)
Definition: intreadwrite.h:374
size
int size
Definition: twinvq_data.h:10344