Cleanup: move PAL and RGB table
This commit is contained in:
parent
d67f084bf3
commit
c3470c6e6f
1 changed files with 57 additions and 57 deletions
114
source/NTSC.cpp
114
source/NTSC.cpp
|
@ -103,63 +103,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
http://www.kreativekorp.com/miscpages/a2info/munafo.shtml
|
|
||||||
|
|
||||||
"Primary" lo-res colors
|
|
||||||
Color GR Duty cycle Phase
|
|
||||||
======================================
|
|
||||||
Red COLOR=1 45 to 135 90
|
|
||||||
Dark-blue COLOR=2 315 to 45 0
|
|
||||||
Dark-green COLOR=4 225 to 315 270
|
|
||||||
Brown COLOR=8 135 to 225 180
|
|
||||||
*/
|
|
||||||
ColorSpace_PAL_t aPaletteYIQ[ 16 ] =
|
|
||||||
{ // Lo Hi Dh
|
|
||||||
{ 0, 0, 0 } // 0 0 Black
|
|
||||||
,{ 90, 60, 25 } // 1 1 Red
|
|
||||||
,{ 0, 60, 25 } // 2 8 Dark Blue
|
|
||||||
,{ 45,100, 50 } // 3 2 9 Purple
|
|
||||||
,{270, 60, 25 } // 4 Dark Green
|
|
||||||
,{ 0, 0, 50 } // 5 Grey
|
|
||||||
,{315,100, 50 } // 6 Medium Blue
|
|
||||||
,{ 0, 60, 75 } // 7 Light Blue
|
|
||||||
,{180, 60, 25 } // 8 Brown
|
|
||||||
,{135,100, 50 } // 9 Orange
|
|
||||||
,{ 0, 0, 50 } // 10
|
|
||||||
,{ 90, 60, 75 } // 11 Pink
|
|
||||||
,{225,100, 50 } // 12 Light Green
|
|
||||||
,{180, 60, 75 } // 13 Yellow
|
|
||||||
,{270, 60, 75} // 14 Aqua
|
|
||||||
,{ 0, 0,100 } // 15 White
|
|
||||||
};
|
|
||||||
|
|
||||||
// purple HCOLOR=2 45 100 50 255 68 253
|
|
||||||
// orange HCOLOR=5 135 100 50 255 106 60
|
|
||||||
// green HCOLOR=1 225 100 50 20 245 60
|
|
||||||
// blue HCOLOR=6 315 100 50 20 207 253
|
|
||||||
|
|
||||||
rgba_t aPaletteRGB[ 16 ] =
|
|
||||||
{
|
|
||||||
{ 0, 0, 0 } // 0
|
|
||||||
,{ 227, 30, 96 } // 1
|
|
||||||
,{ 96, 78, 189 } // 2
|
|
||||||
,{ 255, 68, 253 } // 3
|
|
||||||
,{ 0, 163, 96 } // 4
|
|
||||||
,{ 156, 156, 156 } // 5
|
|
||||||
,{ 20, 207, 253 } // 6
|
|
||||||
,{ 208, 195, 255 } // 7
|
|
||||||
,{ 96, 114, 3 } // 8
|
|
||||||
,{ 255, 106, 60 } // 9
|
|
||||||
,{ 156, 156, 156 } // 10
|
|
||||||
,{ 255, 160, 208 } // 11
|
|
||||||
,{ 20, 245, 60 } // 12
|
|
||||||
,{ 208, 221, 141 } // 13
|
|
||||||
,{ 114, 255, 208 } // 14
|
|
||||||
,{ 255, 255, 255 } // 15
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Globals (Public) ___________________________________________________
|
// Globals (Public) ___________________________________________________
|
||||||
uint16_t g_nVideoClockVert = 0; // 9-bit: VC VB VA V5 V4 V3 V2 V1 V0 = 0 .. 262
|
uint16_t g_nVideoClockVert = 0; // 9-bit: VC VB VA V5 V4 V3 V2 V1 V0 = 0 .. 262
|
||||||
|
@ -368,6 +311,63 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F}
|
0x0018,0x0019,0x001A,0x001B,0x001C,0x001D,0x001E,0x001F}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
http://www.kreativekorp.com/miscpages/a2info/munafo.shtml
|
||||||
|
|
||||||
|
"Primary" lo-res colors
|
||||||
|
Color GR Duty cycle Phase
|
||||||
|
======================================
|
||||||
|
Red COLOR=1 45 to 135 90
|
||||||
|
Dark-blue COLOR=2 315 to 45 0
|
||||||
|
Dark-green COLOR=4 225 to 315 270
|
||||||
|
Brown COLOR=8 135 to 225 180
|
||||||
|
*/
|
||||||
|
ColorSpace_PAL_t aPaletteYIQ[ 16 ] =
|
||||||
|
{ // Lo Hi Dh
|
||||||
|
{ 0, 0, 0 } // 0 0 Black
|
||||||
|
,{ 90, 60, 25 } // 1 1 Red
|
||||||
|
,{ 0, 60, 25 } // 2 8 Dark Blue
|
||||||
|
,{ 45,100, 50 } // 3 2 9 Purple
|
||||||
|
,{270, 60, 25 } // 4 Dark Green
|
||||||
|
,{ 0, 0, 50 } // 5 Grey
|
||||||
|
,{315,100, 50 } // 6 Medium Blue
|
||||||
|
,{ 0, 60, 75 } // 7 Light Blue
|
||||||
|
,{180, 60, 25 } // 8 Brown
|
||||||
|
,{135,100, 50 } // 9 Orange
|
||||||
|
,{ 0, 0, 50 } // 10
|
||||||
|
,{ 90, 60, 75 } // 11 Pink
|
||||||
|
,{225,100, 50 } // 12 Light Green
|
||||||
|
,{180, 60, 75 } // 13 Yellow
|
||||||
|
,{270, 60, 75} // 14 Aqua
|
||||||
|
,{ 0, 0,100 } // 15 White
|
||||||
|
};
|
||||||
|
|
||||||
|
// purple HCOLOR=2 45 100 50 255 68 253
|
||||||
|
// orange HCOLOR=5 135 100 50 255 106 60
|
||||||
|
// green HCOLOR=1 225 100 50 20 245 60
|
||||||
|
// blue HCOLOR=6 315 100 50 20 207 253
|
||||||
|
|
||||||
|
rgba_t aPaletteRGB[ 16 ] =
|
||||||
|
{
|
||||||
|
{ 0, 0, 0 } // 0
|
||||||
|
,{ 227, 30, 96 } // 1
|
||||||
|
,{ 96, 78, 189 } // 2
|
||||||
|
,{ 255, 68, 253 } // 3
|
||||||
|
,{ 0, 163, 96 } // 4
|
||||||
|
,{ 156, 156, 156 } // 5
|
||||||
|
,{ 20, 207, 253 } // 6
|
||||||
|
,{ 208, 195, 255 } // 7
|
||||||
|
,{ 96, 114, 3 } // 8
|
||||||
|
,{ 255, 106, 60 } // 9
|
||||||
|
,{ 156, 156, 156 } // 10
|
||||||
|
,{ 255, 160, 208 } // 11
|
||||||
|
,{ 20, 245, 60 } // 12
|
||||||
|
,{ 208, 221, 141 } // 13
|
||||||
|
,{ 114, 255, 208 } // 14
|
||||||
|
,{ 255, 255, 255 } // 15
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
static unsigned (*g_pHorzClockOffset)[VIDEO_SCANNER_MAX_HORZ] = 0;
|
static unsigned (*g_pHorzClockOffset)[VIDEO_SCANNER_MAX_HORZ] = 0;
|
||||||
|
|
||||||
static void (* g_pFunc_NTSCVideoUpdateText )(long) = 0; // NTSC_UpdateVideoText40;
|
static void (* g_pFunc_NTSCVideoUpdateText )(long) = 0; // NTSC_UpdateVideoText40;
|
||||||
|
|
Loading…
Add table
Reference in a new issue