FreeRDP
TestPrimitivesAlphaComp.c File Reference
#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 UINT32PIXEL (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

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

Function Documentation

static UINT32 alpha_add ( UINT32  c1,
UINT32  c2 
)
static

Here is the caller graph for this function:

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:

static UINT32 colordist ( UINT32  c1,
UINT32  c2 
)
static

Here is the caller graph for this function:

static const UINT32* PIXEL ( const BYTE _addr_,
UINT32  _bytes_,
UINT32  _x_,
UINT32  _y_ 
)
inlinestatic

Here is the caller graph for this function:

static BOOL test_alphaComp_func ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_alphaComp_speed ( void  )
static

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function: