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 "libavutil/pixdesc.h"
#include "libswscale/rgb2rgb.h"
#include "libswscale/swscale.h"
#include "libswscale/swscale_internal.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
 
#define  NUM_LINES   5
 
#define  MAX_LINE_SIZE   1920
 
#define  BUFSIZE   (NUM_LINES * MAX_LINE_SIZE)
 
#define  MAX_LINE_SIZE   1920
 
#define  INPUT_SIZE   512
 
#define  LARGEST_FILTER   16
 

Functions

static void  check_shuffle_bytes (void *func, const char *report)
 
static void  check_uyvy_to_422p (void)
 
static int  cmp_off_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy)
 
static void  check_rgb24toyv12 (SwsContext *sws)
 
static void  check_interleave_bytes (void)
 
static void  check_deinterleave_bytes (void)
 
static void  check_rgb_to_y (SwsContext *sws)
 
static void  check_rgb_to_uv (SwsContext *sws)
 
static void  check_rgba_to_a (SwsContext *sws)
 
static void  check_yuv2packed1 (void)
 
static void  check_yuv2packed2 (void)
 
static void  check_yuv2packedX (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 []
 
static const int  input_sizes [] = {8, 128, 1080, MAX_LINE_SIZE}
 
static enum AVPixelFormat  rgb_formats []
 
static const int  packed_rgb_fmts []
 

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 33 of file sw_rgb.c.

MAX_STRIDE

#define MAX_STRIDE   128

Definition at line 45 of file sw_rgb.c.

MAX_HEIGHT

#define MAX_HEIGHT   128

Definition at line 46 of file sw_rgb.c.

NUM_LINES

#define NUM_LINES   5

Definition at line 117 of file sw_rgb.c.

MAX_LINE_SIZE [1/2]

#define MAX_LINE_SIZE   1920

Definition at line 346 of file sw_rgb.c.

BUFSIZE

#define BUFSIZE   (NUM_LINES * MAX_LINE_SIZE)

Definition at line 119 of file sw_rgb.c.

MAX_LINE_SIZE [2/2]

#define MAX_LINE_SIZE   1920

Definition at line 346 of file sw_rgb.c.

INPUT_SIZE

#define INPUT_SIZE   512

Definition at line 535 of file sw_rgb.c.

LARGEST_FILTER

#define LARGEST_FILTER   16

Function Documentation

check_shuffle_bytes()

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

Definition at line 48 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 74 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

cmp_off_by_n()

static int cmp_off_by_n ( const uint8_t *  ref,
const uint8_t *  test,
size_t  n,
int  accuracy 
)
static

Definition at line 121 of file sw_rgb.c.

Referenced by check_rgb24toyv12().

check_rgb24toyv12()

static void check_rgb24toyv12 ( SwsContextsws )
static

Definition at line 130 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_interleave_bytes()

static void check_interleave_bytes ( void  )
static

Definition at line 204 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_deinterleave_bytes()

static void check_deinterleave_bytes ( void  )
static

Definition at line 272 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_rgb_to_y()

static void check_rgb_to_y ( SwsContextsws )
static

Definition at line 357 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_rgb_to_uv()

static void check_rgb_to_uv ( SwsContextsws )
static

Definition at line 402 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_rgba_to_a()

static void check_rgba_to_a ( SwsContextsws )
static

Definition at line 456 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_yuv2packed1()

static void check_yuv2packed1 ( void  )
static

Definition at line 537 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_yuv2packed2()

static void check_yuv2packed2 ( void  )
static

Definition at line 617 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

check_yuv2packedX()

static void check_yuv2packedX ( void  )
static

Definition at line 698 of file sw_rgb.c.

Referenced by checkasm_check_sw_rgb().

checkasm_check_sw_rgb()

void checkasm_check_sw_rgb ( void  )

Definition at line 804 of file sw_rgb.c.

Variable Documentation

width

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

Definition at line 40 of file sw_rgb.c.

Referenced by check_deinterleave_bytes(), check_rgb24toyv12(), check_rgb_to_uv(), check_rgb_to_y(), check_rgba_to_a(), check_shuffle_bytes(), and check_uyvy_to_422p().

w

uint8_t w

Definition at line 41 of file sw_rgb.c.

Referenced by check_deinterleave_bytes(), check_interleave_bytes(), check_rgb_to_uv(), check_rgb_to_y(), check_rgba_to_a(), and check_uyvy_to_422p().

h

uint8_t h

Definition at line 41 of file sw_rgb.c.

Referenced by check_deinterleave_bytes(), check_interleave_bytes(), and check_uyvy_to_422p().

s

uint8_t s

Definition at line 41 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().

input_sizes

const int input_sizes[] = {8, 128, 1080, MAX_LINE_SIZE}
static

Definition at line 347 of file sw_rgb.c.

Referenced by check_chrConvertRange(), check_draw_edges(), check_hscale(), check_input_planar_rgb_to_a(), check_input_planar_rgb_to_uv(), check_input_planar_rgb_to_y(), check_lumConvertRange(), check_output_yuv2gbrp(), check_rgb24toyv12(), check_rgb_to_uv(), check_rgb_to_y(), check_rgba_to_a(), check_semiplanar(), check_yuv2nv12cX(), check_yuv2rgb(), check_yuv2yuv1(), and check_yuv2yuvX().

rgb_formats

enum AVPixelFormat rgb_formats[]
static
Initial value:
= {
}

Definition at line 348 of file sw_rgb.c.

Referenced by check_rgb_to_uv(), check_rgb_to_y(), and check_rgba_to_a().

packed_rgb_fmts

const int packed_rgb_fmts[]
static

Definition at line 500 of file sw_rgb.c.

Referenced by check_yuv2packed1(), check_yuv2packed2(), and check_yuv2packedX().

AV_PIX_FMT_BGR24
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition: pixfmt.h:76
AV_PIX_FMT_BGRA
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition: pixfmt.h:102
rnd
#define rnd()
Definition: checkasm.h:190
AV_PIX_FMT_RGBA
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition: pixfmt.h:100
AV_PIX_FMT_ABGR
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition: pixfmt.h:101
AV_PIX_FMT_RGB24
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition: pixfmt.h:75
AV_WN32
#define AV_WN32(p, v)
Definition: intreadwrite.h:372
size
int size
Definition: twinvq_data.h:10344
AV_PIX_FMT_ARGB
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition: pixfmt.h:99

Generated on Thu Oct 16 2025 19:24:25 for FFmpeg by   doxygen 1.8.17

AltStyle によって変換されたページ (->オリジナル) /