Sensoray 614 Caption Overlay User Manual
Page 16

#define
G_CAPWIN_Y6STOP
0x2D
// Caption window #6 Y stop.
#define
G_CAPWIN_Y7STOP
0x2E
// Caption window #7 Y stop.
#define
G_CAPWIN_Y8STOP
0x2F
// Caption window #8 Y stop.
data is the position setting, which could be:
pos_x_start
2 ~ 718
pos_x_stop
2 ~ 720
pos_y_start
0 ~ 476(NTSC)/572(PAL)
pos_y_stop
0 ~ 480(NTSC)/576(PAL)
Caption/Overlay Scale Control
Caption/Overlay for each window/field are scalable. The following four scales are
available to be selected for each window/field:
00 –– x1 (horizontally and vertically)
01 –– x2 (horizontally and vertically)
10 –– x2 (vertically only)
11 –– x4 (horizontally and vertically)
The 614 uses one Scale Control register to control the scales for all 8
windows/fields. The register bit layout is shown in Section II above, with
Reg_Index=03h. By calling
fpga_reg_write ( board, address, data ),
to load
all scale settings. In the function, the arguments:
board is board instance;
address is the register index of the Scale Control register. It’s:
#define
G_CAPWIN_SCALE
0x30
// Caption/Overlay Scale Control Reg.
data is the formed scale data, consist of:
|W8S1|W8S0|W7S1|W7S0|W6S1|W6S0|W5S1|W5S0|W4S1|W4S0|W3S1|W3S0|W2S1|W2S0|W1S1|W1S0|
Caption Character Font or Overlay Bitmap Data Loading
In the 614 FPGA, there are four RAM blocks used for holding the caption
character fonts and/or overlay bitmap blocks. For the program to access them
and load the data, they are mapped to:
#define
G_CAPRAMCHAR_1
0x0000
// Caption character or overlay bitmap RAM
base address for char/bmblk 0-31 of the window-1&2.
#define
G_CAPRAMCHAR_2
0x0100
// Caption character or overlay bitmap RAM
base address for char/bmblk 32-63 of the window-1&2.
#define
G_CAPRAMCHAR_3
0x0400
// Caption character or overlay bitmap RAM
base address for char/bmblk 0-31 of the window-3&4.
#define
G_CAPRAMCHAR_4
0x0500
// Caption character or overlay bitmap RAM
base address for char/bmblk 32-63 of the window-3&4.
#define
G_CAPRAMCHAR_5
0x0800
// Caption character or overlay bitmap RAM
base address for char/bmblk 0-31 of the window-5&6.
#define
G_CAPRAMCHAR_6
0x0900
// Caption character or overlay bitmap RAM
base address for char/bmblk 32-63 of the window-5&6.
#define
G_CAPRAMCHAR_7
0x0C00
// Caption character or overlay bitmap RAM
base address for char/bmblk 0-31 of the window-7&8.
#define
G_CAPRAMCHAR_8
0x0D00
// Caption character or overlay bitmap RAM
base address for char/bmblk 32-63 of the window-7&8.
Within the #define’s,
G_CAPRAMCHAR_1
and
G_CAPRAMCHAR_2
are in one RAM block
(contiguously);
G_CAPRAMCHAR_3
and
G_CAPRAMCHAR_4
are in one RAM block
(contiguously);
G_CAPRAMCHAR_5
and
G_CAPRAMCHAR_5
are in one RAM block
(contiguously); and
G_CAPRAMCHAR_7
and
G_CAPRAMCHAR_8
are in another RAM block
(contiguously);