200Variable *
image_load(
Environment * _environment,
char * _filename,
char * _alias,
int _mode,
int _flags,
int _transparent_color,
int _background_color,
int _bank_expansion ) {
226 char *lookfor = _filename;
231 if ( strcmp(lookfor, first->
fileName ) == 0 ) {
244 if ( _transparent_color != -1 ) {
252 result =
image_converter( _environment, imageDescriptor->
data, imageDescriptor->
width, imageDescriptor->
height, imageDescriptor->
depth, 0, 0, 0, 0, _mode, _transparent_color, _flags );
340 if ( !
banks_store( _environment, result, _bank_expansion ) ) {
468 loaded->
next = first;
void const_define_numeric(Environment *_environment, char *_name, int _value)
Variable * variable_temporary(Environment *_environment, VariableType _type, char *_meaning)
Define a temporary variable.
Variable * image_converter(Environment *_environment, char *_data, int _width, int _height, int _depth, int _offset_x, int _offset_y, int _frame_width, int _frame_height, int _mode, int _transparent_color, int _flags)
int banks_store(Environment *_environment, Variable *_variable, int _resident)
ImageDescriptor * image_descriptor_create(Environment *_environment, char *_filename, int _flags)
Variable * image_load(Environment *_environment, char *_filename, char *_alias, int _mode, int _flags, int _transparent_color, int _background_color, int _bank_expansion)
Emit code for LOAD IMAGE(...).
MSC1Compressor * msc1_create(int _maximum_repeated_sequences)
void msc1_free(MSC1Compressor *_msc1)
MemoryBlock * msc1_uncompress(MSC1Compressor *_msc1, MemoryBlock *_input, int _size, int *_output_size)
MemoryBlock * msc1_compress(MSC1Compressor *_msc1, MemoryBlock *_input, int _size, int *_output_size)
unsigned char MemoryBlock
struct _MSC1Compressor MSC1Compressor
MemoryBlock * rle_compress(RLECompressor *_rle, MemoryBlock *_input, int _size, int *_output_size)
RLECompressor * rle_create()
MemoryBlock * rle_uncompress(RLECompressor *_rle, MemoryBlock *_input, int _size, int *_output_size)
void rle_free(RLECompressor *_rle)
struct _RLECompressor RLECompressor
int tenLinerRulesEnforced
struct _LoadedFile * next
unsigned char * valueBuffer
#define CRITICAL_10_LINE_RULES_ENFORCED(v)
struct _ImageDescriptor ImageDescriptor
#define UNIQUE_RESOURCE_ID
#define FLAG_TRANSPARENCY
struct _Variable Variable
Structure of a single variable.
struct _Environment Environment
Structure of compilation environment.
#define CRITICAL_EXPANSION_OUT_OF_MEMORY_LOADING(v)
#define CRITICAL_SANDBOX_ENFORCED(v)
struct _LoadedFile LoadedFile
#define CRITICAL_COMPRESSION_FAILED(v)