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 <winpr/file.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 void * test_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 (const char *path, const 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 size_t test_memcmp_count (const BYTE *mem1, const BYTE *mem2, size_t 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)
 
static BOOL diff (BYTE a, BYTE b)
 
static BOOL colordiff (UINT32 format, UINT32 a, UINT32 b)
 
static BOOL test_encode_decode (const char *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

◆ colordiff()

static BOOL colordiff ( UINT32  format,
UINT32  a,
UINT32  b 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ diff()

static BOOL diff ( BYTE  a,
BYTE  b 
)
static
Here is the caller graph for this function:

◆ sample_file_free()

static void sample_file_free ( EGFX_SAMPLE_FILE *  file)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_encode_decode()

static BOOL test_encode_decode ( const char *  path)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_fill_image_alpha_channel()

static void test_fill_image_alpha_channel ( BYTE data,
int  width,
int  height,
BYTE  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_image_fill()

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:

◆ test_image_fill_quarter()

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:

◆ test_image_fill_unused_quarters()

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:

◆ test_image_memset32()

static void* test_image_memset32 ( UINT32 *  ptr,
UINT32  fill,
size_t  length 
)
static
Here is the caller graph for this function:

◆ test_memcmp_count()

static size_t test_memcmp_count ( const BYTE mem1,
const BYTE mem2,
size_t  size,
int  margin 
)
static
Here is the caller graph for this function:

◆ test_progressive_decode()

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:

◆ test_progressive_load_bitmap()

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:

◆ test_progressive_load_bitmaps()

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:

◆ test_progressive_load_file()

static BYTE* test_progressive_load_file ( const char *  path,
const char *  file,
size_t *  size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_progressive_load_files()

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:

◆ test_progressive_ms_sample()

static int test_progressive_ms_sample ( char *  ms_sample_path)
static
Here is the call graph for this function:

◆ TestFreeRDPCodecProgressive()

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

Variable Documentation

◆ g_DstData

BYTE* g_DstData = NULL
static

◆ g_DstStep

int g_DstStep = 0
static

◆ g_Height

int g_Height = 0
static

◆ g_Width

int g_Width = 0
static