#include <config.h>
#include <stdio.h>
#include <setjmp.h>
#include <string.h>
#include <stdlib.h>
#include <jpeglib.h>
#include "simage_jpeg_reader.icc"
#include "simage_jpeg_writer.icc"
|
static unsigned char * | copyScanline (unsigned char *currPtr, unsigned char *from, int cnt) |
|
static void | my_error_exit (j_common_ptr cinfo) |
|
int | simage_jpeg_error (char *buffer, int buflen) |
|
int | simage_jpeg_identify (const char *ptr, const unsigned char *header, int headerlen) |
|
unsigned char * | simage_jpeg_load (const char *filename, int *width_ret, int *height_ret, int *numComponents_ret) |
|
int | simage_jpeg_save (const char *filename, const unsigned char *bytes, int width, int height, int numcomponents) |
|
◆ ERR_JPEGLIB
◆ ERR_JPEGLIB_WRITE
#define ERR_JPEGLIB_WRITE 5 |
◆ ERR_MEM
◆ ERR_NO_ERROR
◆ ERR_OPEN
◆ ERR_OPEN_WRITE
◆ my_error_ptr
◆ copyScanline()
static unsigned char * copyScanline |
( |
unsigned char * | currPtr, |
|
|
unsigned char * | from, |
|
|
int | cnt ) |
|
static |
◆ my_error_exit()
static void my_error_exit |
( |
j_common_ptr | cinfo | ) |
|
|
static |
◆ simage_jpeg_error()
int simage_jpeg_error |
( |
char * | buffer, |
|
|
int | buflen ) |
◆ simage_jpeg_identify()
int simage_jpeg_identify |
( |
const char * | ptr, |
|
|
const unsigned char * | header, |
|
|
int | headerlen ) |
◆ simage_jpeg_load()
unsigned char * simage_jpeg_load |
( |
const char * | filename, |
|
|
int * | width_ret, |
|
|
int * | height_ret, |
|
|
int * | numComponents_ret ) |
◆ simage_jpeg_save()
int simage_jpeg_save |
( |
const char * | filename, |
|
|
const unsigned char * | bytes, |
|
|
int | width, |
|
|
int | height, |
|
|
int | numcomponents ) |
◆ jpegerror