GrafX2 2.9.3227
The ultimate 256-color painting program
|
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <math.h>
#include "struct.h"
#include "oldies.h"
#include "global.h"
#include "errors.h"
#include "io.h"
#include "misc.h"
#include "palette.h"
#include "pages.h"
#include "windows.h"
#include "layers.h"
#include "graph.h"
#include "bitcount.h"
#include "loadsavefuncs.h"
Functions | |
const char * | Constraint_mode_label (enum IMAGE_MODES mode) |
identifier for each Image mode More... | |
int | Constraint_mode_from_label (const char *label) |
Search constraint mode for a label. More... | |
int | C64_FLI (T_IO_Context *context, byte *bitmap, byte *screen_ram, byte *color_ram, byte *background) |
Save a 3 layer picture to C64 FLI format. More... | |
int | C64_pixels_to_FLI (byte *bitmap, byte *screen_ram, byte *color_ram, byte *background, const byte *pixels, long pitch, int errmode) |
Convert a (1 layer) picture to C64 FLI format. More... | |
void | C64_set_palette (T_Components *palette) |
Set the 16 colors Commodore 64 palette. More... | |
void | ZX_Spectrum_set_palette (T_Components *palette) |
Set the 16 colors ZX Spectrum palette. More... | |
void | CPC_set_HW_palette (T_Components *palette) |
Set 32 color HW Amstrad CPC palette. More... | |
int | CPC_compare_colors (T_Components *col1, T_Components *col2) |
compare two RGB colors More... | |
int | CPC_is_CPC_old_color (T_Components *col) |
Check if the color is likely to be a CPC RGB tri level color. More... | |
void | CPC_set_default_BASIC_palette (T_Components *palette) |
Set 16 color default Amstrad CPC BASIC palette. More... | |
byte | CPC_Firmware_to_Hardware_color (byte fw_color) |
Convert CPC firmware color to hardware color (Gate Array) More... | |
int | CPC_check_AMSDOS (FILE *file, word *loading_address, word *exec_address, unsigned long *file_length) |
Check AMSDOS header. More... | |
int | CPC_write_AMSDOS_header (FILE *file, const char *filename, const char *ext, byte type, word load_address, word exec_address, word file_length) |
Write AMSDOS header. More... | |
int | DECB_Check_binary_file (FILE *f) |
Check if the file is in the DECB Binary format. More... | |
int | MOTO_Check_binary_file (FILE *f) |
Checks if the file is a Thomson binary file (SAVEM/LOADM format) More... | |
int | DECB_BIN_Add_Chunk (FILE *f, word size, word address, const byte *data) |
Add a chunk to a DECB binary file. More... | |
int | DECB_BIN_Add_End (FILE *f, word address) |
Add a chunk to a DECB binary file. More... | |
word | MOTO_gamma_correct_RGB_to_MOTO (const T_Components *color) |
Convert a RGB value to Thomson BGR value with gamma correction. More... | |
void | MOTO_gamma_correct_MOTO_to_RGB (T_Components *color, word bgr) |
Convert a Thomson BGR value to RGB values with gamma correction. More... | |
void | MOTO_set_MO5_palette (T_Components *palette) |
Set MO5 Palette. More... | |
void | MOTO_set_TO7_palette (T_Components *palette) |
Set TO7/70 Palette. More... | |
void | HGR_set_palette (T_Components *palette) |
Set the 6 color Apple II HGR palette. More... | |
void | DHGR_set_palette (T_Components *palette) |
Set the 16 color Apple II DHGR palette. More... | |
void | MSX_set_palette (T_Components *palette) |
Set the 15 color MSX palette. More... | |
Variables | |
struct { | |
enum IMAGE_MODES mode | |
const char * label | |
} | image_modes_labels [] |
static const T_Components | CPC_Hw_Palette [] |
static const byte | CPC_Firmware_Colors [] |
The CPC firmware palette is ordered by luminosity see http://www.cpcwiki.eu/index.php/CPC_Palette. More... | |
const char * Constraint_mode_label | ( | enum IMAGE_MODES | mode | ) |
identifier for each Image mode
References image_modes_labels, mode, and NULL.
Referenced by Save_GIF().
int Constraint_mode_from_label | ( | const char * | label | ) |
Search constraint mode for a label.
References image_modes_labels, and label.
Referenced by Load_GIF().
void MSX_set_palette | ( | T_Components * | palette | ) |
Set the 15 color MSX palette.
References T_Components::B, T_Components::G, and T_Components::R.
Referenced by Button_Constraint_menu(), and Load_MSX().
enum IMAGE_MODES mode |
Referenced by Best_video_mode(), Button_Anim_time(), Button_Colorize_display_selection(), Button_Constraint_menu(), Check_block_constraints(), Constraint_mode_label(), Display_shade_mode(), Layers_max(), Load_2GS(), Load_GPX(), Load_INI(), Load_MOTO(), Load_PPH(), Load_SCR(), Load_TIFF_Sub(), Menu_tag_colors(), Mode_label(), Print_RGB_or_HSL(), raw2crtc(), Save_MOTO(), Save_MOTO_window(), Set_all_video_modes(), Set_image_mode(), Set_video_mode(), Shade_list_to_lookup_tables(), and Test_SCR().
const char* label |
const struct { ... } image_modes_labels[] |
Referenced by Constraint_mode_from_label(), and Constraint_mode_label().
|
static |
Referenced by CPC_set_default_BASIC_palette(), and CPC_set_HW_palette().
|
static |
The CPC firmware palette is ordered by luminosity see http://www.cpcwiki.eu/index.php/CPC_Palette.
Referenced by CPC_Firmware_to_Hardware_color().