126 width =
cinfo.output_width;
127 height =
cinfo.output_height;
129 if(
Scr->d_depth == 16) {
135 else if(
Scr->d_depth == 24 ||
Scr->d_depth == 32) {
159 while(
cinfo.output_scanline <
cinfo.output_height) {
173 if((width > (
Scr->rootw / 2)) || (height > (
Scr->rooth / 2))) {
177 x = (
Scr->rootw - width) / 2;
178 y = (
Scr->rooth - height) / 2;
187 image->
width = width;
Image * get_image_anim_cp(const char *name, ColorPair cp, Image *(*imgloader)(const char *, ColorPair))
char * ExpandPixmapPath(const char *name)
static uint16_t * buffer_16bpp
Image * GetJpegImage(const char *name)
static void jpeg_error_exit(j_common_ptr cinfo)
static Image * LoadJpegImage(const char *name)
static void convert_for_32(int w, int x, int y, int r, int g, int b)
static uint32_t * buffer_32bpp
static Image * LoadJpegImageCp(const char *name, ColorPair cp)
static void convert_for_16(int w, int x, int y, int r, int g, int b)
struct jpeg_error * jerr_ptr
struct jpeg_error_mgr pub