FreeRDP
TestFreeRDPCodecProgressive.c File Reference
#include <winpr/wtypes.h>
#include <winpr/crt.h>
#include <winpr/path.h>
#include <winpr/image.h>
#include <winpr/print.h>
#include <winpr/wlog.h>
#include <winpr/sysinfo.h>
#include <freerdp/codec/region.h>
#include <freerdp/codec/progressive.h>
#include "../progressive.h"

Functions

static void sample_file_free (EGFX_SAMPLE_FILE *file)
 
static void test_fill_image_alpha_channel (BYTE *data, int width, int height, BYTE value)
 
static voidtest_image_memset32 (UINT32 *ptr, UINT32 fill, size_t length)
 
static int test_image_fill (BYTE *pDstData, int nDstStep, int nXDst, int nYDst, int nWidth, int nHeight, UINT32 color)
 
static int test_image_fill_quarter (BYTE *pDstData, int nDstStep, int nWidth, int nHeight, UINT32 color, int quarter)
 
static int test_image_fill_unused_quarters (BYTE *pDstData, int nDstStep, int nWidth, int nHeight, UINT32 color, int quarter)
 
static BYTEtest_progressive_load_file (char *path, char *file, size_t *size)
 
static int test_progressive_load_files (char *ms_sample_path, EGFX_SAMPLE_FILE files[3][4][4])
 
static BYTEtest_progressive_load_bitmap (char *path, char *file, size_t *size, int quarter)
 
static int test_progressive_load_bitmaps (char *ms_sample_path, EGFX_SAMPLE_FILE bitmaps[3][4][4])
 
static int test_memcmp_count (const BYTE *mem1, const BYTE *mem2, int size, int margin)
 
static int test_progressive_decode (PROGRESSIVE_CONTEXT *progressive, EGFX_SAMPLE_FILE files[4], EGFX_SAMPLE_FILE bitmaps[4], int quarter, int count)
 
static int test_progressive_ms_sample (char *ms_sample_path)
 
int TestFreeRDPCodecProgressive (int argc, char *argv[])
 

Variables

static int g_Width = 0
 
static int g_Height = 0
 
static int g_DstStep = 0
 
static BYTEg_DstData = NULL
 

Function Documentation

static void sample_file_free ( EGFX_SAMPLE_FILE *  file)
static

Here is the caller graph for this function:

static void test_fill_image_alpha_channel ( BYTE data,
int  width,
int  height,
BYTE  value 
)
static

Here is the caller graph for this function:

static int test_image_fill ( BYTE pDstData,
int  nDstStep,
int  nXDst,
int  nYDst,
int  nWidth,
int  nHeight,
UINT32  color 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_image_fill_quarter ( BYTE pDstData,
int  nDstStep,
int  nWidth,
int  nHeight,
UINT32  color,
int  quarter 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_image_fill_unused_quarters ( BYTE pDstData,
int  nDstStep,
int  nWidth,
int  nHeight,
UINT32  color,
int  quarter 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void* test_image_memset32 ( UINT32 ptr,
UINT32  fill,
size_t  length 
)
static

Here is the caller graph for this function:

static int test_memcmp_count ( const BYTE mem1,
const BYTE mem2,
int  size,
int  margin 
)
static

Here is the caller graph for this function:

static int test_progressive_decode ( PROGRESSIVE_CONTEXT *  progressive,
EGFX_SAMPLE_FILE  files[4],
EGFX_SAMPLE_FILE  bitmaps[4],
int  quarter,
int  count 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BYTE* test_progressive_load_bitmap ( char *  path,
char *  file,
size_t *  size,
int  quarter 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_progressive_load_bitmaps ( char *  ms_sample_path,
EGFX_SAMPLE_FILE  bitmaps[3][4][4] 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static BYTE* test_progressive_load_file ( char *  path,
char *  file,
size_t *  size 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_progressive_load_files ( char *  ms_sample_path,
EGFX_SAMPLE_FILE  files[3][4][4] 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static int test_progressive_ms_sample ( char *  ms_sample_path)
static

Here is the call graph for this function:

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

BYTE* g_DstData = NULL
static
int g_DstStep = 0
static
int g_Height = 0
static
int g_Width = 0
static