gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-support/png2hicolorgb/src/hicolor/wu.h
1 #ifndef __WU_H__
2 #define __WU_H__
3
4
5 struct box
6 {
7 s32 r0; /* min value, exclusive */
8 s32 r1; /* max value, inclusive */
9 s32 g0;
10 s32 g1;
11 s32 b0;
12 s32 b1;
13 s32 vol;
14 };
15
16 #define BOX 33
17
18
19 void Hist3d(s32 *vwt,s32 *vmr,s32 *vmg,s32 *vmb, float *m_2);
20 void Momt3d(s32 *vwt, s32 *vmr, s32 *vmg, s32 *vmb, float *m_2);
21 s32 Vol(struct box * cube, s32 mmt[BOX][BOX][BOX]);
22 s32 Bottom(struct box * cube, u8 dir, s32 mmt[BOX][BOX][BOX]);
23 s32 Top(struct box * cube, u8 dir, s32 pos, s32 mmt[BOX][BOX][BOX]);
24 float Var(struct box * cube);
25 float Maximize(struct box *cube, u8 dir, s32 first, s32 last, s32 *cut, s32 whole_r, s32 whole_g, s32 whole_b, s32 whole_w);
26 s32 Cut(struct box * set1, struct box * set2);
27 void Mark(struct box *cube, s32 label, u8 *tag);
28 s32 wuReduce(u8 *RGBpic, s32 numcolors, s32 picsize);
29
30 #endif
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.