Manual Inspecta Software
Manual Inspecta Software
Manual Inspecta Software
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
2.4.5.12 linadrs3 ()<br />
<strong>Software</strong><br />
example: mapping a 512x512 pixel window 1024x1024 display<br />
makes:<br />
width=height=1024; multx=multy=2; pitch=512<br />
destination: ram=1:VRAM; 2:OVLY<br />
Description: linadrs3 enables the direct access to video RAM of the S3 VGA controller.<br />
linadrs3 () maps the physical video RAM address to the actual data-segment and<br />
provides a linear address to have access to it.<br />
linadrs3() must be called before using mvfg_dmawin.<br />
2.4.5.13 mvfg_dmawin (x, y, width, height, pointer, pitch, color)<br />
Description: mvfg_dmawin write video data direct to the RAM of the S3-VGA controller. It is<br />
the fastest way of writing images to screen.<br />
The direct access of the VGA RAM must be opened by a previously called<br />
linadrs3 (). Overlays are destroyed.<br />
Parameters: x, y: UL corner of window in graphics display memory<br />
width: width of window [pixel] in dest device<br />
height: height of window [lines] in dest device<br />
ptr: UL corner of CPU image memory window to transfer<br />
pitch: ptr memory address offset between lines<br />
color=0 -> 8-Bit grey scale<br />
color=1 -> 3/3/2 r/g/b color mode,<br />
ptr to other color planes is ptr+[pel_frm]<br />
color=2 -> r/g/b 24 bit color mode<br />
ptr to other color planes is ptr+[pel_frm]<br />
color=3 -> r=g=b grey mode<br />
INSPECTA <strong>Software</strong> Rev. 1.47 Page 54