FreeRDP
TestFreeRDPCodecRemoteFX.c File Reference
#include <winpr/crt.h>
#include <winpr/print.h>
#include <freerdp/freerdp.h>
#include <freerdp/codec/rfx.h>

Macros

#define IMG_WIDTH   64
 
#define IMG_HEIGHT   64
 
#define FORMAT_SIZE   4
 
#define FORMAT   PIXEL_FORMAT_XRGB32
 

Functions

static INLINE size_t fuzzyCompare (BYTE b1, BYTE b2)
 
static BOOL fuzzyCompareImage (const UINT32 *crefImage, const BYTE *img, size_t npixels)
 
int TestFreeRDPCodecRemoteFX (int argc, char *argv[])
 

Variables

static BYTE encodeHeaderSample []
 
static BYTE encodeDataSample []
 
static UINT32 srefImage []
 

Macro Definition Documentation

◆ FORMAT

#define FORMAT   PIXEL_FORMAT_XRGB32

◆ FORMAT_SIZE

#define FORMAT_SIZE   4

◆ IMG_HEIGHT

#define IMG_HEIGHT   64

◆ IMG_WIDTH

#define IMG_WIDTH   64

Function Documentation

◆ fuzzyCompare()

static INLINE size_t fuzzyCompare ( BYTE  b1,
BYTE  b2 
)
static
Here is the caller graph for this function:

◆ fuzzyCompareImage()

static BOOL fuzzyCompareImage ( const UINT32 *  crefImage,
const BYTE img,
size_t  npixels 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestFreeRDPCodecRemoteFX()

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

Variable Documentation

◆ encodeDataSample

BYTE encodeDataSample[]
static

◆ encodeHeaderSample

BYTE encodeHeaderSample[]
static
Initial value:
= {
0xc0, 0xcc, 0x0c, 0x00, 0x00, 0x00, 0xca, 0xac, 0xcc, 0xca, 0x00, 0x01, 0xc3, 0xcc, 0x0d, 0x00,
0x00, 0x00, 0x01, 0xff, 0x00, 0x40, 0x00, 0x28, 0xa8, 0xc1, 0xcc, 0x0a, 0x00, 0x00, 0x00, 0x01,
0x01, 0x00, 0x01, 0xc2, 0xcc, 0x0c, 0x00, 0x00, 0x00, 0x01, 0x00, 0x40, 0x00, 0x40, 0x00
}

◆ srefImage

UINT32 srefImage[]
static