FreeRDP
TestPrimitivesYUV.c File Reference
#include <freerdp/config.h>
#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__
 
#define PADDING_FILL_VALUE   0x37
 

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, BOOL use444)
 
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 void * set_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

◆ PADDING_FILL_VALUE

#define PADDING_FILL_VALUE   0x37

◆ TAG

#define TAG   __FILE__

Function Documentation

◆ allocate_yuv420()

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:

◆ check_for_mismatches()

static BOOL check_for_mismatches ( const BYTE planeA,
const BYTE planeB,
UINT32  size 
)
static
Here is the caller graph for this function:

◆ check_padding()

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:

◆ check_yuv420()

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:

◆ compare_yuv420()

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:

◆ free_padding()

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:

◆ free_yuv420()

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:

◆ get_size()

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:

◆ set_padding()

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:

◆ similar()

static BOOL similar ( const BYTE src,
const BYTE dst,
size_t  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ similarRGB()

static BOOL similarRGB ( const BYTE src,
const BYTE dst,
size_t  size,
UINT32  format,
BOOL  use444 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestPrimitiveRgbToLumaChroma()

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:

◆ TestPrimitivesYUV()

int TestPrimitivesYUV ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ TestPrimitiveYUV()

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:

◆ TestPrimitiveYUVCombine()

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: