initial commit

This commit is contained in:
R-type
2015-12-14 14:00:35 +01:00
commit 5a96c0ca66
377 changed files with 149124 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
#ifndef COLOURS_PAL_H_
#define COLOURS_PAL_H_
#include "colours.h"
#include "colours_external.h"
/* PAL palette's current setup. */
extern Colours_setup_t COLOURS_PAL_setup;
/* External PAL palette. */
extern COLOURS_EXTERNAL_t COLOURS_PAL_external;
/* Updates the PAL palette - should be called after changing palette setup
or loading/unloading an external palette. */
void COLOURS_PAL_Update(int colourtable[256]);
/* Restores default values for PAL-specific colour controls.
Colours_PAL_Update should be called afterwards to apply changes. */
void COLOURS_PAL_RestoreDefaults(void);
/* Read/write to configuration file. */
int COLOURS_PAL_ReadConfig(char *option, char *ptr);
void COLOURS_PAL_WriteConfig(FILE *fp);
/* PAL Colours initialisation and processing of command-line arguments. */
int COLOURS_PAL_Initialise(int *argc, char *argv[]);
/* Function for getting the PAL-specific color preset. */
Colours_preset_t COLOURS_PAL_GetPreset(void);
/* Writes the PAL palette (generated or external) as {Y, even U, odd U,
even V, odd V} quintuples in YUV_TABLE. */
void COLOURS_PAL_GetYUV(double yuv_table[256*5]);
#endif /* COLOURS_PAL_H_ */