World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
PCX.h
См. документацию.
1 #pragma once
2 
3 #include <cstdint>
4 
5 namespace PCX {
6 bool IsValid(const void *pcx_data);
7 void GetSize(const void *pcx_data, unsigned int *width, unsigned int *height);
8 bool Decode(const void *pcx_data, uint16_t *pOutPixels, unsigned int *width,
9  unsigned int *height);
10 void Encode16(const void *picture_data, unsigned int width, unsigned int height,
11  void *pcx_data, int max_buff_size, unsigned int *packed_size);
12 void Encode32(const void *picture_data, unsigned int width, unsigned int height,
13  void *pcx_data, int max_buff_size, unsigned int *packed_size);
14 } // namespace PCX
uint16_t
unsigned __int16 uint16_t
Definition: SDL_config.h:37
PCX::Encode16
void Encode16(const void *picture_data, unsigned int width, unsigned int height, void *pcx_data, int max_buff_size, unsigned int *packed_size)
Definition: PCX.cpp:297
height
EGLSurface EGLint EGLint EGLint EGLint height
Definition: SDL_egl.h:1596
PCX::Decode
bool Decode(const void *pcx_data, uint16_t *pOutPixels, unsigned int *width, unsigned int *height)
Definition: PCX.cpp:41
PCX::Encode32
void Encode32(const void *picture_data, unsigned int width, unsigned int height, void *pcx_data, int max_buff_size, unsigned int *packed_size)
Definition: PCX.cpp:305
PCX
Definition: PCX.h:5
width
EGLSurface EGLint EGLint EGLint width
Definition: SDL_egl.h:1596
PCX::IsValid
bool IsValid(const void *pcx_data)
Definition: PCX.cpp:30
PCX::GetSize
void GetSize(const void *pcx_data, unsigned int *width, unsigned int *height)
Definition: PCX.cpp:35