FreeRDP
TestPrimitivesAlphaComp.c File Reference
#include <freerdp/config.h>
#include <winpr/sysinfo.h>
#include "prim_test.h"

Macros

#define MAX_BLOCK_SIZE   256
 
#define SIZE_SQUARED   (MAX_BLOCK_SIZE * MAX_BLOCK_SIZE)
 
#define ALF(_c_)   (((_c_)&0xFF000000U) >> 24)
 
#define RED(_c_)   (((_c_)&0x00FF0000U) >> 16)
 
#define GRN(_c_)   (((_c_)&0x0000FF00U) >> 8)
 
#define BLU(_c_)   ((_c_)&0x000000FFU)
 
#define TOLERANCE   1
 
#define SRC1_WIDTH   6
 
#define SRC1_HEIGHT   6
 
#define SRC2_WIDTH   7
 
#define SRC2_HEIGHT   7
 
#define DST_WIDTH   9
 
#define DST_HEIGHT   9
 
#define TEST_WIDTH   4
 
#define TEST_HEIGHT   5
 

Functions

static const UINT32 * PIXEL (const BYTE *_addr_, UINT32 _bytes_, UINT32 _x_, UINT32 _y_)
 
static UINT32 alpha_add (UINT32 c1, UINT32 c2)
 
static UINT32 colordist (UINT32 c1, UINT32 c2)
 
static BOOL check (const BYTE *pSrc1, UINT32 src1Step, const BYTE *pSrc2, UINT32 src2Step, BYTE *pDst, UINT32 dstStep, UINT32 width, UINT32 height)
 
static BOOL test_alphaComp_func (void)
 
static int test_alphaComp_speed (void)
 
int TestPrimitivesAlphaComp (int argc, char *argv[])
 

Macro Definition Documentation

◆ ALF

#define ALF (   _c_)    (((_c_)&0xFF000000U) >> 24)

◆ BLU

#define BLU (   _c_)    ((_c_)&0x000000FFU)

◆ DST_HEIGHT

#define DST_HEIGHT   9

◆ DST_WIDTH

#define DST_WIDTH   9

◆ GRN

#define GRN (   _c_)    (((_c_)&0x0000FF00U) >> 8)

◆ MAX_BLOCK_SIZE

#define MAX_BLOCK_SIZE   256

◆ RED

#define RED (   _c_)    (((_c_)&0x00FF0000U) >> 16)

◆ SIZE_SQUARED

#define SIZE_SQUARED   (MAX_BLOCK_SIZE * MAX_BLOCK_SIZE)

◆ SRC1_HEIGHT

#define SRC1_HEIGHT   6

◆ SRC1_WIDTH

#define SRC1_WIDTH   6

◆ SRC2_HEIGHT

#define SRC2_HEIGHT   7

◆ SRC2_WIDTH

#define SRC2_WIDTH   7

◆ TEST_HEIGHT

#define TEST_HEIGHT   5

◆ TEST_WIDTH

#define TEST_WIDTH   4

◆ TOLERANCE

#define TOLERANCE   1

Function Documentation

◆ alpha_add()

static UINT32 alpha_add ( UINT32  c1,
UINT32  c2 
)
static
Here is the caller graph for this function:

◆ check()

static BOOL check ( const BYTE pSrc1,
UINT32  src1Step,
const BYTE pSrc2,
UINT32  src2Step,
BYTE pDst,
UINT32  dstStep,
UINT32  width,
UINT32  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ colordist()

static UINT32 colordist ( UINT32  c1,
UINT32  c2 
)
static
Here is the caller graph for this function:

◆ PIXEL()

static const UINT32* PIXEL ( const BYTE _addr_,
UINT32  _bytes_,
UINT32  _x_,
UINT32  _y_ 
)
inlinestatic
Here is the caller graph for this function:

◆ test_alphaComp_func()

static BOOL test_alphaComp_func ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_alphaComp_speed()

static int test_alphaComp_speed ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestPrimitivesAlphaComp()

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