iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/decode.c
/* load_memory_jpg:
 *  Loads a JPG image from a memory buffer into a BITMAP.
 */
Loads a JPG image from a memory buffer into a BITMAP.
Loads a JPG image from a memory buffer into a BITMAP .
BITMAP *
load_memory_jpg_ex(void *buffer, int size, RGB *palette, void (*callback)(int progress))
{
	BITMAP *bmp;
	PALETTE pal;
	if (!palette)
		palette = pal;
	_jpeg_io.buffer = _jpeg_io.buffer_start = buffer;
	_jpeg_io.buffer_end = _jpeg_io.buffer_start + size;
	TRACE("Loading JPG from memory buffer at %p (size = %d)", buffer, size);
	bmp = do_decode(palette, callback);
	return bmp;
}
BITMAP * load_memory_jpg_ex ( void * buffer , int size , RGB * palette , void ( * callback ) ( int progress ) ) { BITMAP * bmp ; PALETTE pal ; if ( ! palette ) palette = pal ; _jpeg_io . buffer = _jpeg_io . buffer_start = buffer ; _jpeg_io . buffer_end = _jpeg_io . buffer_start + size ; TRACE ( " " , buffer , size ) ; bmp = do_decode ( palette , callback ) ; return bmp ; }
load_memory_jpg:
  Loads a JPG image from a memory buffer into a BITMAP.
load_memory_jpg : Loads a JPG image from a memory buffer into a BITMAP .