FreeRDP
TestPrimitivesYUV.c File Reference
#include <math.h>
#include "prim_test.h"
#include <winpr/wlog.h>
#include <winpr/crypto.h>
#include <freerdp/primitives.h>
#include <freerdp/utils/profiler.h>

Macros

#define TAG   __FILE__
 

Functions

static BOOL similar (const BYTE *src, const BYTE *dst, size_t size)
 
static BOOL similarRGB (const BYTE *src, const BYTE *dst, size_t size, UINT32 format)
 
static void get_size (BOOL large, UINT32 *width, UINT32 *height)
 
static BOOL check_padding (const BYTE *psrc, size_t size, size_t padding, const char *buffer)
 
static voidset_padding (size_t size, size_t padding)
 
static void free_padding (void *src, size_t padding)
 
static BOOL TestPrimitiveYUVCombine (primitives_t *prims, prim_size_t roi)
 
static BOOL TestPrimitiveYUV (primitives_t *prims, prim_size_t roi, BOOL use444)
 
static BOOL allocate_yuv420 (BYTE **planes, UINT32 width, UINT32 height, UINT32 padding)
 
static void free_yuv420 (BYTE **planes, UINT32 padding)
 
static BOOL check_yuv420 (BYTE **planes, UINT32 width, UINT32 height, UINT32 padding)
 
static BOOL check_for_mismatches (const BYTE *planeA, const BYTE *planeB, UINT32 size)
 
static BOOL compare_yuv420 (BYTE **planesA, BYTE **planesB, UINT32 width, UINT32 height, UINT32 padding)
 
static BOOL TestPrimitiveRgbToLumaChroma (primitives_t *prims, prim_size_t roi, UINT32 version)
 
int TestPrimitivesYUV (int argc, char *argv[])
 

Macro Definition Documentation

#define TAG   __FILE__

Function Documentation

static BOOL allocate_yuv420 ( BYTE **  planes,
UINT32  width,
UINT32  height,
UINT32  padding 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL check_for_mismatches ( const BYTE planeA,
const BYTE planeB,
UINT32  size 
)
static

Here is the caller graph for this function:

static BOOL check_padding ( const BYTE psrc,
size_t  size,
size_t  padding,
const char *  buffer 
)
static

Here is the caller graph for this function:

static BOOL check_yuv420 ( BYTE **  planes,
UINT32  width,
UINT32  height,
UINT32  padding 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL compare_yuv420 ( BYTE **  planesA,
BYTE **  planesB,
UINT32  width,
UINT32  height,
UINT32  padding 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void free_padding ( void src,
size_t  padding 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void free_yuv420 ( BYTE **  planes,
UINT32  padding 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void get_size ( BOOL  large,
UINT32 width,
UINT32 height 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void* set_padding ( size_t  size,
size_t  padding 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL similar ( const BYTE src,
const BYTE dst,
size_t  size 
)
static

Here is the caller graph for this function:

static BOOL similarRGB ( const BYTE src,
const BYTE dst,
size_t  size,
UINT32  format 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL TestPrimitiveRgbToLumaChroma ( primitives_t prims,
prim_size_t  roi,
UINT32  version 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

int TestPrimitivesYUV ( int  argc,
char *  argv[] 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL TestPrimitiveYUV ( primitives_t prims,
prim_size_t  roi,
BOOL  use444 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL TestPrimitiveYUVCombine ( primitives_t prims,
prim_size_t  roi 
)
static

Here is the call graph for this function:

Here is the caller graph for this function: