FreeRDP
TestFreeRDPCodecPlanar.c File Reference
#include <math.h>
#include <winpr/crt.h>
#include <winpr/print.h>
#include <freerdp/freerdp.h>
#include <freerdp/codec/color.h>
#include <freerdp/codec/bitmap.h>
#include <freerdp/codec/planar.h>

Functions

static BOOL CompareBitmap (const BYTE *srcA, UINT32 srcAFormat, const BYTE *srcB, UINT32 srcBFormat, UINT32 width, UINT32 height)
 
static BOOL RunTestPlanar (BITMAP_PLANAR_CONTEXT *planar, const BYTE *srcBitmap, const UINT32 srcFormat, const UINT32 dstFormat, const UINT32 width, const UINT32 height)
 
static BOOL RunTestPlanarSingleColor (BITMAP_PLANAR_CONTEXT *planar, const UINT32 srcFormat, const UINT32 dstFormat)
 
static BOOL TestPlanar (const UINT32 format)
 
int TestFreeRDPCodecPlanar (int argc, char *argv[])
 

Variables

static const BYTE TEST_RLE_BITMAP_EXPERIMENTAL_01 [16384]
 
static const BYTE TEST_RLE_BITMAP_EXPERIMENTAL_02 [16384]
 
static const BYTE TEST_RLE_BITMAP_EXPERIMENTAL_03 [16384]
 
BYTE TEST_RLE_BITMAP_EXPERIMENTAL_03_RLE [11160]
 
BYTE TEST_64X64_RED_PLANE [4096]
 
BYTE TEST_64X64_RED_PLANE_RLE [3739]
 
BYTE TEST_64X64_GREEN_PLANE [4096]
 
BYTE TEST_64X64_GREEN_PLANE_RLE [3696]
 
BYTE TEST_64X64_BLUE_PLANE [4096]
 
BYTE TEST_64X64_BLUE_PLANE_RLE [3724]
 
static const BYTE TEST_RLE_UNCOMPRESSED_BITMAP_16BPP [2048]
 
static const UINT32 colorFormatList []
 
static const UINT32 colorFormatCount
 

Function Documentation

static BOOL CompareBitmap ( const BYTE srcA,
UINT32  srcAFormat,
const BYTE srcB,
UINT32  srcBFormat,
UINT32  width,
UINT32  height 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL RunTestPlanar ( BITMAP_PLANAR_CONTEXT *  planar,
const BYTE srcBitmap,
const UINT32  srcFormat,
const UINT32  dstFormat,
const UINT32  width,
const UINT32  height 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL RunTestPlanarSingleColor ( BITMAP_PLANAR_CONTEXT *  planar,
const UINT32  srcFormat,
const UINT32  dstFormat 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

static BOOL TestPlanar ( const UINT32  format)
static

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const UINT32 colorFormatCount
static
Initial value:
= sizeof(colorFormatList) / sizeof(
static const UINT32 colorFormatList[]
Definition: TestFreeRDPCodecPlanar.c:2798
const UINT32 colorFormatList[]
static
Initial value:
=
{
}
#define PIXEL_FORMAT_RGB15
Definition: color.h:79
#define PIXEL_FORMAT_BGRX32
Definition: color.h:67
#define PIXEL_FORMAT_ARGB32
Definition: color.h:62
#define PIXEL_FORMAT_XBGR32
Definition: color.h:65
#define PIXEL_FORMAT_RGBX32
Definition: color.h:69
#define PIXEL_FORMAT_XRGB32
Definition: color.h:63
#define PIXEL_FORMAT_BGR15
Definition: color.h:81
#define PIXEL_FORMAT_BGR24
Definition: color.h:73
#define PIXEL_FORMAT_BGR16
Definition: color.h:77
#define PIXEL_FORMAT_RGB24
Definition: color.h:72
#define PIXEL_FORMAT_RGB16
Definition: color.h:76
#define PIXEL_FORMAT_ABGR32
Definition: color.h:64
BYTE TEST_64X64_BLUE_PLANE[4096]
BYTE TEST_64X64_BLUE_PLANE_RLE[3724]
BYTE TEST_64X64_GREEN_PLANE[4096]
BYTE TEST_64X64_GREEN_PLANE_RLE[3696]
BYTE TEST_64X64_RED_PLANE[4096]
BYTE TEST_64X64_RED_PLANE_RLE[3739]
const BYTE TEST_RLE_BITMAP_EXPERIMENTAL_01[16384]
static

Experimental Case 01: 64x64 (32bpp)

const BYTE TEST_RLE_BITMAP_EXPERIMENTAL_02[16384]
static

Experimental Case 02: 64x64 (32bpp)

const BYTE TEST_RLE_BITMAP_EXPERIMENTAL_03[16384]
static

Experimental Case 03: 64x64 (32bpp)

BYTE TEST_RLE_BITMAP_EXPERIMENTAL_03_RLE[11160]
const BYTE TEST_RLE_UNCOMPRESSED_BITMAP_16BPP[2048]
static

[MS-RDPEGDI] Test Bitmap 32x32 (16bpp)