PNGデコード
[詳解]
#include "file.h"
#include "pngdec.h"
#include "str.h"
#include "memory.h"
#include "graphics.h"
#include "png.h"
#include "dtprintf.h"
[ソースコード]
|
typedef struct my_png_file_ | my_png_file |
|
|
static void | png_fileread_func (png_structp png_sp, png_bytep buf, png_size_t size) |
|
int | get_png_file_info (int fd, short *png_width, short *png_height) |
|
static void | png_dataread_func (png_structp png_ptr, png_bytep buf, png_size_t size) |
|
int | get_png_data_info (unsigned char *data, short *png_width, short *png_height) |
|
int | decode_png (void *image) |
|
void | dispose_png_info (void) |
|
|
static png_structp | png_ptr = 0 |
|
static png_infop | info_ptr = 0 |
|
static my_png_file | png_file |
|
static struct my_png_data | png_data |
|
PNGデコード
libpng を使用 http://www.libpng.org/
- 日付
- 2018.01.03
- 著者
- Takashi SHUDO
pngdec.c に定義があります。