iOS/buildlibs/armv7/allegro-4.4.2/addons/jpgalleg/src/init.c
/* load_datafile_jpg:
 *  Hook function for loading a JPEG object from a datafile. Returns the
 *  decoded JPG into a BITMAP or NULL on error.
 */
Hook function for loading a JPEG object from a datafile. Returns the
decoded JPG into a BITMAP or NULL on error.
Hook function for loading a JPEG object from a datafile . Returns the decoded JPG into a BITMAP or NULL on error .
static void *
load_datafile_jpg(PACKFILE *f, long size)
{
	BITMAP *bmp;
	char *buffer;
	buffer = (char *)malloc(size);
	if (!buffer)
		return NULL;
	pack_fread(buffer, size, f);
	bmp = load_memory_jpg(buffer, size, NULL);
	free(buffer);
	return (void *)bmp;
}
static void * load_datafile_jpg ( PACKFILE * f , long size ) { BITMAP * bmp ; char * buffer ; buffer = ( char * ) malloc ( size ) ; if ( ! buffer ) return NULL ; pack_fread ( buffer , size , f ) ; bmp = load_memory_jpg ( buffer , size , NULL ) ; free ( buffer ) ; return ( void * ) bmp ; }
load_datafile_jpg:
  Hook function for loading a JPEG object from a datafile.
load_datafile_jpg : Hook function for loading a JPEG object from a datafile .