FFmpeg
Loading...
Searching...
No Matches
sw_yuv2rgb.c File Reference
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/imgutils.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/mem_internal.h"
#include "libavutil/pixdesc.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_LINE_SIZE   1920
 
#define SRC_STRIDE_PAD   32
 
#define NUM_LINES   4
 

Functions

static int cmp_off_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy)
 
static int cmp_555_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy, int is_be)
 
static int cmp_565_by_n (const uint8_t *ref, const uint8_t *test, size_t n, int accuracy, int is_be)
 
static void check_yuv2rgb (int src_pix_fmt)
 
void checkasm_check_sw_yuv2rgb (void)
 

Variables

static const int dst_fmts []
 

Macro Definition Documentation

◆ randomize_buffers

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

Definition at line 32 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ MAX_LINE_SIZE

#define MAX_LINE_SIZE   1920

◆ SRC_STRIDE_PAD

#define SRC_STRIDE_PAD   32

Referenced by check_yuv2rgb().

◆ NUM_LINES

#define NUM_LINES   4

Function Documentation

◆ 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 69 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ cmp_555_by_n()

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

Definition at line 78 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ cmp_565_by_n()

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

Definition at line 93 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().

◆ check_yuv2rgb()

static void check_yuv2rgb ( int src_pix_fmt)
static

Definition at line 108 of file sw_yuv2rgb.c.

◆ checkasm_check_sw_yuv2rgb()

void checkasm_check_sw_yuv2rgb ( void )

Definition at line 251 of file sw_yuv2rgb.c.

Variable Documentation

◆ dst_fmts

const int dst_fmts[]
static
Initial value:
= {
}
@ AV_PIX_FMT_RGB24
packed RGB 8:8:8, 24bpp, RGBRGB...
Definition pixfmt.h:75
@ AV_PIX_FMT_BGR565BE
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), big-endian
Definition pixfmt.h:117
@ AV_PIX_FMT_ARGB
packed ARGB 8:8:8:8, 32bpp, ARGBARGB...
Definition pixfmt.h:99
@ AV_PIX_FMT_RGB555BE
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), big-endian , X=unused/undefined
Definition pixfmt.h:114
@ AV_PIX_FMT_BGRA
packed BGRA 8:8:8:8, 32bpp, BGRABGRA...
Definition pixfmt.h:102
@ AV_PIX_FMT_ABGR
packed ABGR 8:8:8:8, 32bpp, ABGRABGR...
Definition pixfmt.h:101
@ AV_PIX_FMT_RGBA
packed RGBA 8:8:8:8, 32bpp, RGBARGBA...
Definition pixfmt.h:100
@ AV_PIX_FMT_RGB565LE
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), little-endian
Definition pixfmt.h:113
@ AV_PIX_FMT_RGB555LE
packed RGB 5:5:5, 16bpp, (msb)1X 5R 5G 5B(lsb), little-endian, X=unused/undefined
Definition pixfmt.h:115
@ AV_PIX_FMT_BGR555BE
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), big-endian , X=unused/undefined
Definition pixfmt.h:119
@ AV_PIX_FMT_RGB565BE
packed RGB 5:6:5, 16bpp, (msb) 5R 6G 5B(lsb), big-endian
Definition pixfmt.h:112
@ AV_PIX_FMT_BGR555LE
packed BGR 5:5:5, 16bpp, (msb)1X 5B 5G 5R(lsb), little-endian, X=unused/undefined
Definition pixfmt.h:120
@ AV_PIX_FMT_BGR24
packed RGB 8:8:8, 24bpp, BGRBGR...
Definition pixfmt.h:76
@ AV_PIX_FMT_GBRP
planar GBR 4:4:4 24bpp
Definition pixfmt.h:165
@ AV_PIX_FMT_BGR565LE
packed BGR 5:6:5, 16bpp, (msb) 5B 6G 5R(lsb), little-endian
Definition pixfmt.h:118

Definition at line 38 of file sw_yuv2rgb.c.

Referenced by check_yuv2rgb().