Home
last modified time | relevance | path

Searched refs:T_Components (Results 1 – 24 of 24) sorted by relevance

/dports/graphics/grafx2/grafx2/src/
H A Doldies.h82 void C64_set_palette(T_Components * palette);
97 void ZX_Spectrum_set_palette(T_Components * palette);
112 void CPC_set_HW_palette(T_Components * palette);
117 int CPC_is_CPC_old_color(T_Components * col);
124 void CPC_set_default_BASIC_palette(T_Components * palette);
135 int CPC_compare_colors(T_Components * col1, T_Components * col2);
275 void MOTO_set_MO5_palette(T_Components * palette);
282 void MOTO_set_TO7_palette(T_Components * palette);
295 void HGR_set_palette(T_Components * palette);
300 void DHGR_set_palette(T_Components * palette);
[all …]
H A Doldies.c610 void C64_set_palette(T_Components * palette) in C64_set_palette()
660 static const T_Components CPC_Hw_Palette[] = {
713 int CPC_compare_colors(T_Components * col1, T_Components * col2) in CPC_compare_colors()
725 int CPC_is_CPC_old_color(T_Components * col) in CPC_is_CPC_old_color()
759 sizeof(T_Components)); in CPC_set_default_BASIC_palette()
1024 void HGR_set_palette(T_Components * palette) in HGR_set_palette()
1026 static const T_Components hgr_palette[] = { in HGR_set_palette()
1039 void DHGR_set_palette(T_Components * palette) in DHGR_set_palette()
1042 static const T_Components dhgr_palette[] = { in DHGR_set_palette()
1069 void MSX_set_palette(T_Components * palette) in MSX_set_palette()
[all …]
H A Dop_c.h36 typedef T_Components * T_Bitmap24B;
166 long Perceptual_lightness(T_Components *color);
202 void CS_Generate_color_table_and_palette(T_Cluster_set * cs,CT_Tree* tc,T_Components * palette, T_O…
213 int Convert_24b_bitmap_to_256(T_Bitmap256 dest,T_Bitmap24B source,int width,int height,T_Components
H A Dpalette.h57 void Set_clipboard_colors(int nb_colors, T_Components *colors);
66 const T_Components * Favorite_GUI_color(byte color_index);
H A Difformat.c184 T_Components Palette[1];
314 const T_Components * palette; in Draw_IFF_line_HAM()
661 T_Components palette[16]; in RAST_chunk_decode()
682 new_pal = malloc(sizeof(T_IFF_PCHG_Palette) + sizeof(T_Components) * 16); in RAST_chunk_decode()
688 memcpy(new_pal->Palette, palette, sizeof(T_Components) * 16); in RAST_chunk_decode()
704 prev_pal = malloc(sizeof(T_IFF_PCHG_Palette) + sizeof(T_Components) * 16); in RAST_chunk_decode()
710 memcpy(prev_pal->Palette, context->Palette, sizeof(T_Components) * 16); in RAST_chunk_decode()
721 static void IFF_Set_EHB_Palette(T_Components * palette) in IFF_Set_EHB_Palette()
1634 memcpy(prev_pal->Palette, palette, nb_colors*sizeof(T_Components)); in Load_IFF()
1647 memcpy(new_pal->Palette, palette, nb_colors*sizeof(T_Components)); in Load_IFF()
[all …]
H A Dstruct.h86 } __attribute__((__packed__)) T_Components, T_Palette[256] ; ///< A complete 256-entry RGB palette … typedef
94 } T_Components, T_Palette[256] ; ///< A complete 256-entry RGB palette (768 bytes). typedef
345 T_Components Fav_menu_colors[4]; ///< Favorite colors to use for the menu.
H A Dpalette.c247 T_Components * backup_palette;
248 T_Components * temp_palette;
249 T_Components * working_palette;
421 T_Components temp_palette[256]; in Swap()
521 T_Components rgb[4]; in Set_nice_menu_colors()
560 const T_Components * target_rgb; in Set_nice_menu_colors()
1152 backup_palette =(T_Components *)malloc(sizeof(T_Palette)); in Button_Palette()
1153 temp_palette=(T_Components *)malloc(sizeof(T_Palette)); in Button_Palette()
3116 const T_Components * Favorite_GUI_color(byte color_index) in Favorite_GUI_color()
3118 static const T_Components cpc_colors[4] = { in Favorite_GUI_color()
[all …]
H A Dscreen.h55 int GFX2_SetPalette(const T_Components * colors, int firstcolor, int ncolors);
H A Dop_c.c46 …itmap_to_256_fast(T_Bitmap256 dest,T_Bitmap24B source,int width,int height,T_Components * palette);
187 long Perceptual_lightness(T_Components *color) in Perceptual_lightness()
1014 void CS_Generate_color_table_and_palette(T_Cluster_set * cs,CT_Tree* tc,T_Components * palette, T_O… in CS_Generate_color_table_and_palette()
1152 T_Components * palette, int r, int g, int b) in Optimize_palette()
1241 …yd_Steinberg(T_Bitmap256 dest,T_Bitmap24B source,int width,int height,T_Components * palette,CT_Tr… in Convert_24b_bitmap_to_256_Floyd_Steinberg()
1336 T_Bitmap24B source, int width, int height, T_Components * palette, in Convert_24b_bitmap_to_256_nearest_neighbor()
1374 …o_256_Without_Loss(T_Bitmap256 dest,T_Bitmap24B source,int width,int height,T_Components * palette) in Try_Convert_to_256_Without_Loss()
1434 int Convert_24b_bitmap_to_256(T_Bitmap256 dest,T_Bitmap24B source,int width,int height,T_Components in Convert_24b_bitmap_to_256()
1483 …bitmap_to_256_fast(T_Bitmap256 dest,T_Bitmap24B source,int width,int height,T_Components * palette) in Convert_24b_bitmap_to_256_fast()
H A Dfileformats.c383 static const T_Components amigaOS1x_pal[] = { in Load_INFO()
390 static const T_Components amigaOS2x_pal[] = { in Load_INFO()
512 T_Components * palette; in Load_INFO()
530 palette = (T_Components *)Decode_NewIcons(p, 8, &palette_len); in Load_INFO()
557 if (0 == memcmp(context->Palette + j, palette + i, sizeof(T_Components))) in Load_INFO()
564 … memcpy(context->Palette + palette_color_count, palette + i, sizeof(T_Components)); in Load_INFO()
591 T_Components * palette; in Load_INFO()
593 palette = (T_Components *)Decode_NewIcons(p, 8, &palette_len); in Load_INFO()
615 if (0 == memcmp(context->Palette + j, palette + i, sizeof(T_Components))) in Load_INFO()
1890 static void Set_CGA_Color(int i, T_Components * comp) in Set_CGA_Color()
[all …]
H A Dloadsave.h96 T_Components *Buffer_image_24b;
H A Dx11screen.c241 int GFX2_SetPalette(const T_Components * colors, int firstcolor, int ncolors) in GFX2_SetPalette()
244 memcpy(screen->palette + firstcolor, colors, ncolors * sizeof(T_Components)); in GFX2_SetPalette()
H A Dmisc.h46 const T_Components * Get_current_palette(void);
H A Dwindows.h42 void Compute_optimal_menu_colors(const T_Components * palette);
H A Dwindows.c3391 static int Diff(const T_Components * palette, int i, int j) { in Diff()
3399 static void compute_xor_table(const T_Components * palette) in compute_xor_table()
3452 static int Same_color(const T_Components * palette, byte c1, byte c2) in Same_color()
3461 static void Remap_menu_sprites(const T_Components * palette);
3463 void Compute_optimal_menu_colors(const T_Components * palette) in Compute_optimal_menu_colors()
3474 const T_Components cpc_colors[4] = { in Compute_optimal_menu_colors()
3693 static void Remap_menu_sprites(const T_Components * palette) in Remap_menu_sprites()
H A Dbuttons_effects.c792 memset(Main.palette + 64, 0, sizeof(T_Components) * (256 - 64)); in Button_Constraint_menu()
799 memset(Main.palette + 32, 0, sizeof(T_Components) * (256 - 32)); in Button_Constraint_menu()
902 memcpy(Main.palette + 252 + i, Favorite_GUI_color(i), sizeof(T_Components)); in Button_Constraint_menu()
H A Dloadsave.c548 (T_Components *)GFX2_malloc(width*height*sizeof(T_Components)); in Pre_load()
759 T_Components gui_color; in Load_image()
H A Dwin32screen.c667 int GFX2_SetPalette(const T_Components * colors, int firstcolor, int ncolors) in GFX2_SetPalette()
H A Dstformats.c153 static void PI1_decode_palette(const byte * src, T_Components * palette) in PI1_decode_palette()
181 void PI1_code_palette(const T_Components * palette, byte * dest) in PI1_code_palette()
H A Dsdlscreen.c472 int GFX2_SetPalette(const T_Components * colors, int firstcolor, int ncolors) in GFX2_SetPalette()
H A Dmisc.c159 const T_Components * Get_current_palette(void) in Get_current_palette()
H A Dmain.c573 CT_ASSERT(sizeof(T_Components)==3);
H A Dcpcformats.c2097 static const T_Components CPCPAL[27] = in Load_PPH()
H A Dbuttons.c1681 sizeof(T_Components)); in Copy_some_colors()