[tag]
; tag section
; 0  target architecture (8112 | 8116) is known
; 1  target camera ( generic | tucpro | lqcpro | proex | vesta ) is known
; 2  Macro file Title (the shorter the better)
; 3  Macro file author
; 4  Macro file Version (is a text only)
; 5  Macro file date  (is a text only)
;
0 ='8112
1 ='vesta
2 ='Easy RAW Mod
3 ='E.Bonduelle & All
4 ='V 1.4
5 ='20040415

; SAA8112 Macro description
; The first character after the = sign is ignored
; to allow leading spaces
;
; Contributors:
;  bm98astro, Etienne Bonduelle, Gilles Clement, Christian Buil, Francis Adelving... and a lot of people of TWIRG  !!!
;  A big Thank's too for the idea of "OPTIMIZED COLOR (NON RAW)" to Jean-Baptist Butet ;o)
;
; Ok for RECENT Vesta's 675, 680 and 690 :o)
;
; ATTENTION
;  NO TABS, ONLY SPACES
;
[known]
; each entry of the macros section must be listed here
; don't break the numbering sequence as the rest will get lost
; content sequence does not matter (NO spaces in names)
1 ='M_Set_RAW_B/W_CCD
2 ='M_Set_RAW_COLOR_CCD
3 ='M_Set_OPT_COLOR_CCD
4 ='M_Restore_Origin_RGB
5 ='M_Restore_Old_RGB


; a macro description provide it like 
;
;lineNr='register=[0xnn | bcccccccc] (n= hex char;  c= 0|1|? which means leave it alone)
;  the hex notation allows only absolute setting
;  where the binary allows to change only certain bits
;
;  like the example below 
;  entry 0 is the macro name shown in the GUI
;  line numbers must be acending without a gap

[M_Set_RAW_B/W_CCD]
-1='-2052714893
0 ='Set B/W RAW Mode AND Special Factory Settings (for B/W CCDs)
1 ='0x0E0=0x00  (Noise Reduction to Zero)
2 ='0x0E1=0xC3  (Set auto mode off, Fixed White/Bal...)
3 ='0x0E3=0xDA  (Shutter speed at 1/7th sec)
4 ='0x0E4=0x6F  (Gain about 65%)
5 ='0x0E6=0x80  (Red bal 50%)
6 ='0x0E7=0x40  (Blue bal 25%)
7 ='0x0EA=0x00  (Sharpness to Zero)
8 ='0x0ED=0xF0  (Luminosity about 40%)
9 ='0x0EE=0xF0  (Gamma to 0%)
10 ='0x100=0x42  (RAW Mode)
11 ='0x10E=0x80  (PreMatrix 1 Std)
12 ='0x10F=0x80  (PreMatrix 2 Std Red)
13 ='0x110=0x80  (PreMatrix 3 Std)
14 ='0x111=0x80  (PreMatrix 4 Std Green)
15 ='0x113=0x00  (Matrix 1x1 to 0)
16 ='0x114=0x10  (Matrix 1x2 to 1)
17 ='0x115=0x00  (Matrix 1x3 to 0)
18 ='0x116=0x00  (Matrix 2x1 to 0)
19 ='0x117=0x10  (Matrix 2x2 to 1)
20 ='0x118=0x00  (Matrix 2x3 to 0)
21 ='0x119=0x00  (Matrix 3x1 to 0)
22 ='0x11A=0x10  (Matrix 3x2 to 1)
23 ='0x11B=0x00  (Matrix 3x3 to 0)
24 ='0x11E=0x80  (PreMatrix 5 Std)
25 ='0x11F=0x80  (PreMatrix 6 Std Green)
26 ='0x120=0x80  (PreMatrix 7 Std)
27 ='0x121=0x80  (PreMatrix 8 Std Blue)
28 ='0x122=0x00  (Red Offset to Zero)
29 ='0x123=0x00  (Green Offset to Zero)
30 ='0x124=0x00  (Blue Offset to Zero)
31 ='0x131=0x66  (VC_CNTRL std)
32 ='0x133=0xCC  (HCGAIN std) (Zero ==> Blocked Zero Sharpness)
33 ='0x135=0x20  (CONGAIN std)
34 ='0x138=0xB0  (YGAIN std)

[M_Set_RAW_COLOR_CCD]
-1=' 1232554837
0 ='Set COLOR RAW Mode AND Special Factory Settings (for COLOR CCDs)
1 ='0x0E0=0x00  (Noise Reduction to Zero)
2 ='0x0E1=0xC3  (Set auto mode off, Fixed White/Bal...)
3 ='0x0E3=0xDA  (Shutter speed at 1/7th sec)
4 ='0x0E4=0x6F  (Gain about 65%)
5 ='0x0E6=0x80  (Red bal 50%)
6 ='0x0E7=0x40  (Blue bal 25%)
7 ='0x0EA=0x00  (Sharpness to Zero)
8 ='0x0ED=0xF0  (Luminosity to 40%)
9 ='0x0EE=0xF0  (Gamma to 0%)
10 ='0x100=b?????01?  (RAW Mode)
11 ='0x113=0x00  (Matrix 1x1 to 0)
12 ='0x114=0x10  (Matrix 1x2 to 1)
13 ='0x115=0x00  (Matrix 1x3 to 0)
14 ='0x116=0x00  (Matrix 2x1 to 0)
15 ='0x117=0x10  (Matrix 2x2 to 1)
16 ='0x118=0x00  (Matrix 2x3 to 0)
17 ='0x119=0x00  (Matrix 3x1 to 0)
18 ='0x11A=0x10  (Matrix 3x2 to 1)
19 ='0x11B=0x00  (Matrix 3x3 to 0)
20 ='0x122=0x00  (Red Offset to Zero)
21 ='0x123=0x00  (Green Offset to Zero)
22 ='0x124=0x00  (Blue Offset to Zero)
23 ='0x131=0x66  (VC_CNTRL std)
24 ='0x133=0x00  (HCGAIN to Zero) (Zero ==> Blocked Zero Sharpness)
25 ='0x135=0x20  (CONGAIN std)
26 ='0x138=0xB0  (YGAIN std)

[M_Set_OPT_COLOR_CCD]
-1=' 2040485198
0 ='Set OPTIMIZED COLOR (NON RAW) Mode AND Special Factory Settings
1 ='0x0E0=0x00  (Noise Reduction to Zero)
2 ='0x0E1=0xC3  (Set auto mode off, Fixed White/Bal...)
3 ='0x0E3=0xDA  (Shutter speed at 1/7th sec)
4 ='0x0E4=0x6F  (Gain about 65%)
5 ='0x0E6=0x60  (Red bal 40%)
6 ='0x0E7=0x30  (Blue bal 20%)
7 ='0x0EA=0x00  (Sharpness to Zero)
8 ='0x0ED=0xF0  (Luminosity to 40%)
9 ='0x0EE=0xF0  (Gamma to 0%)
10 ='0x100=b?????11?  (RGB Mode)
11 ='0x122=0x00  (Red Offset to Zero)
12 ='0x123=0x00  (Green Offset to Zero)
13 ='0x124=0x00  (Blue Offset to Zero)
14 ='0x131=0x66  (VC_CNTRL std)
15 ='0x133=0x00  (HCGAIN to Zero) (Zero ==> Blocked Zero Sharpness)
16 ='0x135=0x20  (CONGAIN std)
17 ='0x138=0xB0  (YGAIN std)

[M_Restore_Origin_RGB]
-1=' 300600221
0 ='Restore Original Datas and Factory Settings (for RECENT Vesta's)
1 ='0x0E0=0x01  (Noise Reduction to Max)
2 ='0x0E1=0x24  (Set auto mode ON, Auto White bal, Color mode...)
3 ='0x0E3=0x05  (Shutter speed auto)
4 ='0x0E4=0x0B  (Gain about 11%)
5 ='0x0E6=0x60  (Red bal 40%)
6 ='0x0E7=0x60  (Blue bal 40%)
7 ='0x0EA=0x20  (Sharpness to 32/64)
8 ='0x0ED=0x00  (Luminosity to 50%)
9 ='0x0EE=0x00  (Gamma to 50%)
10 ='0x100=0x46  CONTROL_O RGB separator
11 ='0x10E=0x80  PRE_MAT_K1
12 ='0x10F=0x57  PRE_MAT_K2
13 ='0x110=0x80  PRE_MAT_K3
14 ='0x111=0x80  PRE_MAT_K4
15 ='0x113=0x18  P11 (red for red)
16 ='0x114=0x03  P12 (green for red)
17 ='0x115=0xFE  P13 (blue for red)
18 ='0x116=0xFC  P21 (red for green)
19 ='0x117=0x10  P22 (green for green)
20 ='0x118=0xFE  P23 (blue for green)
21 ='0x119=0xFE  P31 (red for blue)
22 ='0x11A=0xF3  P32 (green for blue)
23 ='0x11B=0x2E  P33 (blue for blue)
24 ='0x11E=0x80  PRE_MAT_K5
25 ='0x11F=0x80  PRE_MAT_K6
26 ='0x120=0x80  PRE_MAT_K7
27 ='0x121=0x9D  PRE_MAT_K8
28 ='0x122=0xF8  BLACK_LEVEL_R
29 ='0x123=0xF8  BLACK_LEVEL_G
30 ='0x124=0xF8  BLACK_LEVEL_B
31 ='0x131=0x66  VC_CNTRL
32 ='0x133=0xCC  HCGAIN
33 ='0x135=0x20  CONGAIN 
34 ='0x138=0xB0  YGAIN

[M_Restore_Old_RGB]
-1=' 1925572770
0 ='Restore Old Datas and Factory Settings (for OLD Vesta's)
1 ='0x0E0=0x01  (Noise Reduction to Max)
2 ='0x0E1=0x24  (Set auto mode ON, Auto White bal, Color mode...)
3 ='0x0E3=0x05  (Shutter speed auto)
4 ='0x0E4=0x0B  (Gain about 11%)
5 ='0x0E6=0x60  (Red bal 40%)
6 ='0x0E7=0x60  (Blue bal 40%)
7 ='0x0EA=0x20  (Sharpness to 32/64)
8 ='0x0ED=0x00  (Luminosity to 50%)
9 ='0x0EE=0x00  (Gamma to 50%)
10 ='0x100=0x4E  CONTROL_O RGB separator
11 ='0x10E=0xC0  PRE_MAT_K1
12 ='0x10F=0xC0  PRE_MAT_K2
13 ='0x110=0xC0  PRE_MAT_K3
14 ='0x111=0xD7  PRE_MAT_K4
15 ='0x113=0x18  P11 (red for red)
16 ='0x114=0x03  P12 (green for red)
17 ='0x115=0xFE  P13 (blue for red)
18 ='0x116=0xFC  P21 (red for green)
19 ='0x117=0x10  P22 (green for green)
20 ='0x118=0xFE  P23 (blue for green)
21 ='0x119=0xFE  P31 (red for blue)
22 ='0x11A=0xF3  P32 (green for blue)
23 ='0x11B=0x2E  P33 (blue for blue)
24 ='0x11E=0xC0  PRE_MAT_K5
25 ='0x11F=0x5A  PRE_MAT_K6
26 ='0x120=0xC0  PRE_MAT_K7
27 ='0x121=0xC0  PRE_MAT_K8
28 ='0x122=0xF8  BLACK_LEVEL_R
29 ='0x123=0xF8  BLACK_LEVEL_G
30 ='0x124=0xF8  BLACK_LEVEL_B
31 ='0x131=0x66  VC_CNTRL
32 ='0x133=0xCC  HCGAIN
33 ='0x135=0x20  CONGAIN 
34 ='0x138=0xB0  YGAIN

