227 lines
9.2 KiB
HTML
227 lines
9.2 KiB
HTML
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type"
|
|
content="text/html; charset=iso-8859-1">
|
|
<meta name="GENERATOR" content="Microsoft FrontPage Express 2.0">
|
|
<title>Documentation VISION (LDV) : Notions essentielles</title>
|
|
</head>
|
|
|
|
<body background="images/conc2.gif" bgcolor="#FFFFFF">
|
|
<div align="center"><center>
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td align="center" width="17%"><a href="intro.htm"><img
|
|
src="images/cprev.jpg" alt="Chapitre précédent"
|
|
border="0" hspace="2" width="46" height="26"></a><a
|
|
href="index.htm"><img src="images/csom.jpg"
|
|
alt="Retour au sommaire" border="0" hspace="2" width="26"
|
|
height="26"></a><a href="descrip.htm"><img
|
|
src="images/csuiv.jpg" alt="Chapitre suivant" border="0"
|
|
hspace="2" width="43" height="26"></a></td>
|
|
<td align="center" valign="top" rowspan="2" width="8%"><p
|
|
align="center"><img src="images/icoprinc.gif" width="59"
|
|
height="71"></p>
|
|
</td>
|
|
<td width="33%"><p align="center"><font color="#0000FF"
|
|
size="5"><strong>Documentation </strong><em><strong>VISION
|
|
(LDV)</strong></em></font></p>
|
|
</td>
|
|
<td align="center" valign="top" rowspan="2" width="8%"><p
|
|
align="center"><img src="images/icointro.gif" width="59"
|
|
height="71"></p>
|
|
</td>
|
|
<td valign="top" width="17%"><p align="left">Dernière
|
|
mise à jour : <!--webbot bot="Timestamp" startspan
|
|
s-type="EDITED" s-format="%d/%m/%y" -->01/10/00<!--webbot
|
|
bot="Timestamp" i-checksum="12214" endspan --></p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="17%"><p align="center"><a
|
|
href="..\..\download/dvldv.zip">Télécharger la doc</a></p>
|
|
</td>
|
|
<td width="33%"><p align="center"><font size="4"><strong>2.
|
|
NOTIONS ESSENTIELLES</strong></font></p>
|
|
</td>
|
|
<td align="center" width="17%"> <!--webbot
|
|
bot="HTMLMarkup" startspan --><A HREF="http://www.estat.com/getstats?serial=1390118421">
|
|
<IMG SRC="http://perso.estat.com/cgi-bin/perso/1390118421?page=DocVisionLDV"
|
|
BORDER=0></A>
|
|
<!--webbot
|
|
bot="HTMLMarkup" endspan --></td>
|
|
</tr>
|
|
</table>
|
|
</center></div>
|
|
|
|
<hr>
|
|
|
|
<p><a name="formats d'images"></a><font size="4"><strong>2.1 Les
|
|
formats d'images</strong></font></p>
|
|
|
|
<p>Je ne peux pas içi expliquer le codage bit à bit des pixels
|
|
d'une image. En gros, pour les nombres de plans jusqu'à 8, un
|
|
pixel est associé à un index de couleur dans une palette.Cet
|
|
index pointe donc sur la vraie couleur du pixel. A partir de 15
|
|
plans, on est en True Color, c'est à dire que chaque pixel est
|
|
associé à sa valeur de couleur (donc sur 15, 16, 24 ou 32
|
|
bits). Autant en True Color, on s'en sort assez bien, autant en
|
|
mode palette (bit-plan), cela devient rapidement complexe car
|
|
chaque pixel voit un des bits de son index codé sur un mot 16
|
|
bits. Il faudrait donc rechercher ce bit, rassembler les mêmes
|
|
bits d'un pixel pour reconsitituer son index, etc... Cela devient
|
|
rapidement lassant et pour aller vite, cela nécessite des
|
|
optimisations en assembleur. Heureusement, <em><strong>VISION</strong></em>
|
|
propose des fonctions vous simplifiant le travail avec <a
|
|
href="vapi/index.htm#Présentation">VAPI</a>.</p>
|
|
|
|
<p>Les LDV de <em><strong>VISION</strong></em> peuvent au choix
|
|
travailler dans un des 3 formats suivants (notez bien que votre
|
|
LDV n'a aucun intérêt à gérer les 3 formats, <em><strong>VISION</strong></em>
|
|
lui passera le format qu'il souhaite):</p>
|
|
|
|
<ul>
|
|
<li>Format Standard</li>
|
|
<li>Format ATARI</li>
|
|
<li>Format Spécifique</li>
|
|
</ul>
|
|
|
|
<p>Ce petit tableau précise ces différents formats (R = Rouge,
|
|
V = Vert, B = Bleu):</p>
|
|
<div align="center"><center>
|
|
|
|
<table border="2" width="100%">
|
|
<tr>
|
|
<td align="center" width="15%"><strong>Format</strong></td>
|
|
<td align="center" width="10%"><strong>Nombre de bits /
|
|
pixel</strong></td>
|
|
<td align="center" width="75%"><strong>Description</strong></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="15%">Standard</td>
|
|
<td align="center" width="10%">1, 2, 4, 8</td>
|
|
<td width="75%">Format standard défini par ATARI. Les
|
|
plans de pixels (16 pixels) sont mis les uns à la suite
|
|
des autres. En True-Color, ce format existe peut être
|
|
mais j'aime autant pas le savoir !</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="15%">ATARI</td>
|
|
<td align="center" width="10%">1, 2, 4, 8</td>
|
|
<td width="75%">Format bit-plan ATARI. Très classique,
|
|
c'est le format des modes ST-Basse, ST-Moyenne et
|
|
ST-Haute, puis par extension, le format des modes
|
|
bit-plan du Falcon. Contrairement au mode Standard, les
|
|
plans sont entrelacés (Plan0 - Plan1 - Plan2 - Plan 3,
|
|
par exemple pour 16 couleurs (4 bits, soit 4 plans))</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="15%"> </td>
|
|
<td align="center" width="10%">16</td>
|
|
<td width="75%">Mode True Color du FALCON. Chaque pixel
|
|
est codé sur un mot 16 bits de la façon suivante:<br>
|
|
RRRRRVVVVV0BBBBB<br>
|
|
15 --> 0 Bit #<br>
|
|
En fait le codage effectif est sur 15 ou 16 pixels. Le
|
|
niveau de vert peut être codé sur 6 bits (65K) au lieu
|
|
de 5 (32K).</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="15%"> </td>
|
|
<td align="center" width="10%">24</td>
|
|
<td width="75%">Dommage que <em><strong>VISION</strong></em>
|
|
ne le gère pas !</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="15%"> </td>
|
|
<td align="center" width="10%">32</td>
|
|
<td width="75%">RVB0, R, V, B = composante rouge,verte ou
|
|
bleue sur 8 bits (0...255)</td>
|
|
</tr>
|
|
<tr>
|
|
<td align="center" width="15%">Spécifique</td>
|
|
<td align="center" width="10%">1, 2, 4, 8, 16, 24, 32</td>
|
|
<td width="75%">Spécifique à la carte graphique. Aucune
|
|
hypothèse sur le codage des bits d'un pixel ne peut
|
|
être faite.</td>
|
|
</tr>
|
|
</table>
|
|
</center></div>
|
|
|
|
<p>Privilégiez au maximum le format spécifique car c'est le
|
|
plus économe en mémoire. Si votre LDV ne doit manipuler que des
|
|
lignes et des colonnes, vous n'avez pas à vous soucier du codage
|
|
interne des pixels, les fonctions VDI vro_... s'en chargent.</p>
|
|
|
|
<p>Si vous devez manipuler des pixels, je vous conseille
|
|
d'utiliser le format ATARI car <em><strong>VISION</strong></em>
|
|
vous permet de récupérer facilement les index au travers de <a
|
|
href="vapi/index.htm#Présentation">VAPI</a>.</p>
|
|
|
|
<p>Le format standard ne sert pas à grand chose, si ce n'est en
|
|
interne à <em><strong>VISION</strong></em> pour afficher les
|
|
images correctement. Donc, à moins que vous n'ayez développé
|
|
des routines équivalentes à celles proposées dans <a
|
|
href="vapi/index.htm#Présentation">VAPI</a>, je vous
|
|
déconseille l'utilisation de ce format.</p>
|
|
|
|
<p> </p>
|
|
|
|
<p><a name="prog"></a><font size="4"><strong>2.2 Programmation</strong></font></p>
|
|
|
|
<p>Vous devez savoir programmer en C ! Les LDV ne dépendent pas
|
|
à priori du compilateur (j'ai fait au mieux mais comme je
|
|
n'utilise que Pure C, je ne peux pas être catégorique).</p>
|
|
|
|
<p>Vous devez être à l'aise en C et ne pas être effrayé par
|
|
la manipulation des pointeurs sur les structures et fonctions.</p>
|
|
|
|
<p>Si vous connaisez les LDG, ce sera utile mais pas obligatoire,
|
|
le squelette de LDV les cachent assez bien.</p>
|
|
|
|
<hr>
|
|
<div align="center"><center>
|
|
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td align="center" width="17%"><a href="intro.htm"><img
|
|
src="images/cprev.jpg" alt="Chapitre précédent"
|
|
border="0" hspace="2" width="46" height="26"></a><a
|
|
href="index.htm"><img src="images/csom.jpg"
|
|
alt="Retour au sommaire" border="0" hspace="2" width="26"
|
|
height="26"></a><a href="descrip.htm"><img
|
|
src="images/csuiv.jpg" alt="Chapitre suivant" border="0"
|
|
hspace="2" width="43" height="26"></a></td>
|
|
<td align="center" valign="top" rowspan="2" width="8%"><p
|
|
align="center"><img src="images/icoprinc.gif" width="59"
|
|
height="71"></p>
|
|
</td>
|
|
<td width="33%"><p align="center"><font color="#0000FF"
|
|
size="5"><strong>Documentation </strong><em><strong>VISION
|
|
(LDV)</strong></em></font></p>
|
|
</td>
|
|
<td align="center" valign="top" rowspan="2" width="8%"><p
|
|
align="center"><img src="images/icointro.gif" width="59"
|
|
height="71"></p>
|
|
</td>
|
|
<td valign="top" width="17%"><p align="left">Dernière
|
|
mise à jour : <!--webbot bot="Timestamp" startspan
|
|
s-type="EDITED" s-format="%d/%m/%y" -->01/10/00<!--webbot
|
|
bot="Timestamp" i-checksum="12214" endspan --></p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="17%"><p align="center"><a
|
|
href="..\..\download/dvldv.zip">Télécharger la doc</a></p>
|
|
</td>
|
|
<td width="33%"><p align="center"><font size="4"><strong>2.
|
|
NOTIONS ESSENTIELLES</strong></font></p>
|
|
</td>
|
|
<td valign="top" width="17%"> </td>
|
|
</tr>
|
|
</table>
|
|
</center></div>
|
|
</body>
|
|
</html>
|