FreeRDP
include/winpr/image.h File Reference
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
This graph shows which files directly or indirectly include this file:

Data Structures

struct  WINPR_BITMAP_FILE_HEADER
 
struct  WINPR_BITMAP_INFO_HEADER
 
struct  WINPR_BITMAP_CORE_HEADER
 
struct  wImage
 

Macros

#define WINPR_IMAGE_BITMAP   0
 
#define WINPR_IMAGE_PNG   1
 
#define WINPR_IMAGE_JPEG   2
 
#define WINPR_IMAGE_WEBP   3
 
#define WINPR_IMAGE_BMP_HEADER_LEN   54
 

Enumerations

enum  wImageFlags { WINPR_IMAGE_CMP_NO_FLAGS = 0 , WINPR_IMAGE_CMP_IGNORE_DEPTH = 1 , WINPR_IMAGE_CMP_IGNORE_ALPHA = 2 , WINPR_IMAGE_CMP_FUZZY = 4 }
 

Functions

WINPR_API int winpr_bitmap_write (const char *filename, const BYTE *data, size_t width, size_t height, size_t bpp)
 
WINPR_API int winpr_bitmap_write_ex (const char *filename, const BYTE *data, size_t stride, size_t width, size_t height, size_t bpp)
 
WINPR_API BYTEwinpr_bitmap_construct_header (size_t width, size_t height, size_t bpp)
 
WINPR_API int winpr_image_write (wImage *image, const char *filename)
 
WINPR_API int winpr_image_write_ex (wImage *image, UINT32 format, const char *filename)
 
WINPR_API int winpr_image_read (wImage *image, const char *filename)
 
WINPR_API void * winpr_image_write_buffer (wImage *image, UINT32 format, size_t *size)
 
WINPR_API int winpr_image_read_buffer (wImage *image, const BYTE *buffer, size_t size)
 
WINPR_API void winpr_image_free (wImage *image, BOOL bFreeBuffer)
 
WINPR_API wImagewinpr_image_new (void)
 
WINPR_API BOOL winpr_image_format_is_supported (UINT32 format)
 
WINPR_API const char * winpr_image_format_extension (UINT32 format)
 
WINPR_API const char * winpr_image_format_mime (UINT32 format)
 
WINPR_API BOOL winpr_image_equal (const wImage *imageA, const wImage *imageB, UINT32 flags)
 

Macro Definition Documentation

◆ WINPR_IMAGE_BITMAP

#define WINPR_IMAGE_BITMAP   0

◆ WINPR_IMAGE_BMP_HEADER_LEN

#define WINPR_IMAGE_BMP_HEADER_LEN   54

◆ WINPR_IMAGE_JPEG

#define WINPR_IMAGE_JPEG   2

◆ WINPR_IMAGE_PNG

#define WINPR_IMAGE_PNG   1

◆ WINPR_IMAGE_WEBP

#define WINPR_IMAGE_WEBP   3

Enumeration Type Documentation

◆ wImageFlags

Enumerator
WINPR_IMAGE_CMP_NO_FLAGS 
WINPR_IMAGE_CMP_IGNORE_DEPTH 
WINPR_IMAGE_CMP_IGNORE_ALPHA 
WINPR_IMAGE_CMP_FUZZY 

Function Documentation

◆ winpr_bitmap_construct_header()

WINPR_API BYTE* winpr_bitmap_construct_header ( size_t  width,
size_t  height,
size_t  bpp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_bitmap_write()

WINPR_API int winpr_bitmap_write ( const char *  filename,
const BYTE data,
size_t  width,
size_t  height,
size_t  bpp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_bitmap_write_ex()

WINPR_API int winpr_bitmap_write_ex ( const char *  filename,
const BYTE data,
size_t  stride,
size_t  width,
size_t  height,
size_t  bpp 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_equal()

WINPR_API BOOL winpr_image_equal ( const wImage imageA,
const wImage imageB,
UINT32  flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_format_extension()

WINPR_API const char* winpr_image_format_extension ( UINT32  format)
Here is the caller graph for this function:

◆ winpr_image_format_is_supported()

WINPR_API BOOL winpr_image_format_is_supported ( UINT32  format)
Here is the caller graph for this function:

◆ winpr_image_format_mime()

WINPR_API const char* winpr_image_format_mime ( UINT32  format)

◆ winpr_image_free()

WINPR_API void winpr_image_free ( wImage image,
BOOL  bFreeBuffer 
)
Here is the caller graph for this function:

◆ winpr_image_new()

WINPR_API wImage* winpr_image_new ( void  )
Here is the caller graph for this function:

◆ winpr_image_read()

WINPR_API int winpr_image_read ( wImage image,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_read_buffer()

WINPR_API int winpr_image_read_buffer ( wImage image,
const BYTE buffer,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_write()

WINPR_API int winpr_image_write ( wImage image,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_write_buffer()

WINPR_API void* winpr_image_write_buffer ( wImage image,
UINT32  format,
size_t *  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ winpr_image_write_ex()

WINPR_API int winpr_image_write_ex ( wImage image,
UINT32  format,
const char *  filename 
)
Here is the call graph for this function:
Here is the caller graph for this function: