Rev 1676 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1676 | tullio | 1 | %---------------------------------------------------------------------------- |
2 | \chapter{The Snapshot Library} |
||
3 | %---------------------------------------------------------------------------- |
||
4 | |||
5 | The library allow applications to save up to 16 screen snapshot to file. Before |
||
6 | the grabbing is necessary to allocate the memory for a snapshot slot and files |
||
7 | can be created only at the end of execution when the system return in real mode. |
||
8 | |||
9 | \vspace{7mm} |
||
10 | |||
11 | \begin{intest} |
||
12 | SNAPSHOT\_GETSLOT \index{snapshot\_getslot()} |
||
13 | \end{intest} |
||
14 | |||
15 | \begin{description} |
||
16 | \item [\textbf{void {*}snapshot\_getslot(int nbuff, int wx, int wy, int byesperpixel); }] |
||
17 | \item [\textbf{Description:}] This function allocate the memory for a snapshot of given |
||
18 | dimensions. The \texttt{nbuff} parameter indicate which slot must be allocated. |
||
19 | \texttt{wx} and \texttt{wy} are width and height of the screen resolution while |
||
20 | \texttt{bytesperpixel} is the depth of the screen. |
||
21 | \end{description} |
||
22 | |||
23 | \begin{intest} |
||
24 | SNAPSHOT\_FREESLOT\index{snapshot\_freeslot()} |
||
25 | \end{intest} |
||
26 | |||
27 | \begin{description} |
||
28 | \item [\textbf{void snapshot\_freeslot(int nbuff) }] |
||
29 | \item [\textbf{Description:}] This function free the memory reserved for the slot |
||
30 | indicated by the \texttt{nbuff} parameter. |
||
31 | \end{description} |
||
32 | |||
33 | \begin{intest} |
||
34 | SNAPSHOT\_GRAB\index{snapshot\_grab()} |
||
35 | \end{intest} |
||
36 | |||
37 | \begin{description} |
||
38 | \item [\textbf{void snapshot\_grab(int nbuff) }] |
||
39 | \item [\textbf{Description:}] This function get a snap of the video memory and copy it |
||
40 | inside the slot specified by the \texttt{nbuff} parameter. |
||
41 | \end{description} |
||
42 | |||
43 | \begin{intest} |
||
44 | SNAPSHOT\_SAVEPGM\index{snapshot\_savepgm()} |
||
45 | \end{intest} |
||
46 | |||
47 | \begin{description} |
||
48 | \item [\textbf{int snapshot\_savepgm(int nbuff, char {*}fname) }] |
||
49 | \item [\textbf{Description:}] This function save the screen snapshot saved inside the |
||
50 | nbuff slot to a PGM greyscale file. The filename passed to the function using |
||
51 | the fname parameter. |
||
52 | \end{description} |
||
53 | |||
54 | \begin{intest} |
||
55 | SNAPSHOT\_SAVEPPM\index{snapshot\_saveppm()} |
||
56 | \end{intest} |
||
57 | |||
58 | \begin{description} |
||
59 | \item [\textbf{int snapshot\_saveppm(int nbuff, char {*}fname) }] |
||
60 | \item [\textbf{Description:}] This function save the screen snapshot saved inside the |
||
61 | nbuff slot to a PPM color file. The filename passed to the function using the |
||
62 | fname parameter. |
||
63 | \end{description} |
||
64 |