~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to doc/aktion/index.docbook

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" ?>
 
2
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1-Based Variant V1.0//EN"
 
3
 "dtd/kdex.dtd" [
 
4
  <!ENTITY kappname "&aktion;">
 
5
  <!ENTITY % English "INCLUDE" > <!-- change language only here -->
 
6
  <!ENTITY % addindex "IGNORE">
 
7
]>
 
8
 
 
9
<book lang="&language;">
 
10
 
 
11
<bookinfo>
 
12
<title>The &aktion; Handbook</title>
 
13
 
 
14
<authorgroup>
 
15
<author>
 
16
<firstname>Chris</firstname>
 
17
<othername>D.</othername>
 
18
<surname>Corbettis</surname>
 
19
<affiliation>
 
20
<address><email>chris@corbettis.fsnet.co.uk</email></address>
 
21
</affiliation>
 
22
</author>
 
23
 
 
24
<othercredit role="developer">
 
25
<firstname>Guillermo</firstname>
 
26
<othername>P.</othername>
 
27
<surname>Marotte</surname>
 
28
<affiliation><address><email>g-marotte@usa.net</email></address>
 
29
</affiliation>
 
30
<contrib>Developer</contrib>
 
31
</othercredit>
 
32
 
 
33
<othercredit role="reviewer">
 
34
<firstname>Lauri</firstname>
 
35
<surname>Watts</surname>
 
36
<affiliation>
 
37
<address><email>lauri@kde.org</email></address>
 
38
</affiliation>
 
39
<contrib>Reviewer</contrib>
 
40
</othercredit>
 
41
 
 
42
<!-- TRANS:ROLES_OF_TRANSLATORS -->
 
43
</authorgroup>
 
44
 
 
45
<copyright>
 
46
<year>2000</year>
 
47
<holder>Chris D. Corbettis</holder>
 
48
</copyright>
 
49
 
 
50
<legalnotice>&FDLNotice;</legalnotice>
 
51
 
 
52
<date>16/12/2000</date>
 
53
<releaseinfo>1.00.00</releaseinfo>
 
54
 
 
55
<abstract>
 
56
<para>&aktion; is a video player</para>
 
57
</abstract>
 
58
 
 
59
<keywordset>
 
60
<keyword>KDE</keyword>
 
61
<keyword>aKtion</keyword>
 
62
<keyword>kdemultimedia</keyword>
 
63
<keyword>mpeg</keyword>
 
64
<keyword>avi</keyword>
 
65
<keyword>QuickTime</keyword>
 
66
<keyword>gif</keyword>
 
67
<keyword>xanim</keyword>
 
68
</keywordset>
 
69
 
 
70
</bookinfo>
 
71
 
 
72
<chapter id="introduction">
 
73
<title>Introduction</title>
 
74
 
 
75
<para>&aktion; is a video player front end for
 
76
<application>Xanim</application>. It supports numerous video codecs
 
77
found on the Internet, including mpeg1, QuickTime and animated gif.
 
78
Please report any problems or feature requests to the &kde; mailing
 
79
lists.</para>
 
80
 
 
81
</chapter>
 
82
 
 
83
<chapter id="using-kapp">
 
84
<title>Using &aktion;</title>
 
85
 
 
86
<screenshot>
 
87
<screeninfo>Here's a screenshot of &aktion;</screeninfo>
 
88
        <mediaobject>
 
89
          <imageobject>
 
90
            <imagedata fileref="aktion.png" format="PNG"/>
 
91
          </imageobject>
 
92
                  <textobject>
 
93
            <phrase>Screenshot</phrase>
 
94
          </textobject>
 
95
        </mediaobject>
 
96
</screenshot>
 
97
 
 
98
<para>Basic use of &aktion; is very simple.
 
99
<mousebutton>Right</mousebutton> click in the main window or select the
 
100
<guiicon>open</guiicon> icon in the toolbar, choose the movie you wish
 
101
to watch, and press the <guibutton>OK</guibutton> button.</para>
 
102
 
 
103
<sect1 id="context-menu">
 
104
<title>The Context Menu</title>
 
105
 
 
106
<para>The Context menu is accessed by clicking the
 
107
<mousebutton>right</mousebutton> mouse button over the playback window.
 
108
It is used to quickly change the playback size, open video files and
 
109
access the video file information dialog.</para> 
 
110
 
 
111
<para>The Context menu is described further in
 
112
<xref linkend="video-context-menu"/>.</para>
 
113
 
 
114
</sect1>
 
115
 
 
116
<sect1 id="aktion-fullscreen">
 
117
<title>Full Screen &aktion;</title>
 
118
 
 
119
<para>It is possible to watch video playback in full-screen.
 
120
<mousebutton>Right</mousebutton> click anywhere in &aktion; and choose
 
121
<guimenuitem>Full Screen</guimenuitem>. To exit,
 
122
<mousebutton>left</mousebutton> or <mousebutton>right</mousebutton>
 
123
click on the screen. You may need to enable this feature if it does not
 
124
currently work.</para>
 
125
 
 
126
<para>If possible, use the XFree86 VidMode and DGA extensions.  These
 
127
extensions allow the application to automatically change the screen
 
128
resolution to better fit the size of the video.  Traditionally a video
 
129
of, say, 320x200 would be scaled up on a 800x600 display. This scaling
 
130
requires extra work and the result is not appealing at all.  In the
 
131
setup dialog there are two check boxes of interest:</para>
 
132
 
 
133
<variablelist>
 
134
<varlistentry>
 
135
<term><guilabel>Use XFree86-VidModeExtensions (if available)</guilabel></term>
 
136
<listitem><para><action>enable full screen mode</action></para></listitem>
 
137
</varlistentry>
 
138
<varlistentry>
 
139
<term><guilabel>Grab the mouse</guilabel></term>
 
140
<listitem><para>&aktion;<action> takes control of the mouse in full screen
 
141
mode</action></para></listitem>
 
142
</varlistentry>
 
143
</variablelist>
 
144
 
 
145
</sect1>
 
146
</chapter>
 
147
 
 
148
<chapter id="commands">
 
149
<title>Command Reference</title>
 
150
 
 
151
<sect1 id="video-context-menu">
 
152
<title>The Video Context Menu</title>
 
153
 
 
154
<para>The Video Context Menu can be reached by <mousebutton>right</mousebutton>
 
155
clicking inside the video window while a movie is loaded.  </para>
 
156
 
 
157
<variablelist>
 
158
<varlistentry>
 
159
<term><guimenuitem>Video Information</guimenuitem></term>
 
160
<listitem><para>Displays a popup with information about the currently loaded
 
161
movie, including the number of frames, the type of encoding, and its original
 
162
pixel size.</para></listitem>
 
163
</varlistentry>
 
164
 
 
165
<varlistentry>
 
166
<term><guimenuitem>Open File</guimenuitem></term>
 
167
<listitem><para>Opens a standard &kde; <quote>open file</quote> dialog
 
168
box, with predefined filters for the file formats supported by
 
169
&aktion;.</para></listitem> 
 
170
</varlistentry>
 
171
 
 
172
<varlistentry>
 
173
<term><guimenuitem>Setup</guimenuitem></term>
 
174
<listitem><para>Opens the <guilabel>Setup</guilabel> dialog, where you can
 
175
configure &aktion;'s behavior.</para></listitem>
 
176
</varlistentry>
 
177
 
 
178
<varlistentry>
 
179
<term><guimenuitem>Original Size</guimenuitem></term>
 
180
<listitem><para>Resizes the &aktion; window to the original size of the movie.
 
181
This obviously has no effect unless you've already resized the movie at some
 
182
point.</para></listitem>
 
183
</varlistentry>
 
184
 
 
185
<varlistentry>
 
186
<term><guimenuitem>Half Size</guimenuitem></term>
 
187
<listitem><para>Resizes the &aktion; window to half the original size of the
 
188
movie.</para></listitem>
 
189
</varlistentry>
 
190
 
 
191
<varlistentry>
 
192
<term><guimenuitem>Double Size</guimenuitem></term>
 
193
<listitem><para>Resizes the &aktion; window to double the original size of the
 
194
movie.</para></listitem>
 
195
</varlistentry>
 
196
 
 
197
<varlistentry>
 
198
<term><guimenuitem>Maximized</guimenuitem></term>
 
199
<listitem><para>Resizes the &aktion; window to the maximum size possible
 
200
to fit on your screen. The movie will maintain its own aspect ratio
 
201
(that is, the relationship between its height and width) rather than
 
202
distorting to fit your screen.  A tall thin movie will still be a tall
 
203
thin movie, but now maximized so that the largest dimension matches your
 
204
screens largest dimension, with the exception of permanent screen
 
205
features such as the &kicker; panel.</para></listitem>
 
206
</varlistentry>
 
207
 
 
208
<varlistentry>
 
209
<term><guimenuitem>Full Screen</guimenuitem></term>
 
210
<listitem><para>Lets &aktion; take over your screen.</para>
 
211
<para>Much more information is available in <xref
 
212
linkend="aktion-fullscreen"/></para></listitem>
 
213
</varlistentry>
 
214
</variablelist>
 
215
 
 
216
</sect1>
 
217
 
 
218
<sect1 id="toolbar">
 
219
<title>The Toolbar</title>
 
220
 
 
221
<screenshot>
 
222
<screeninfo>The &aktion; toolbar</screeninfo>
 
223
        <mediaobject>
 
224
          <imageobject>
 
225
            <imagedata fileref="aktiontoolbar.png" format="PNG"/>
 
226
          </imageobject>
 
227
                  <textobject>
 
228
            <phrase>Toolbars</phrase>
 
229
          </textobject>
 
230
        </mediaobject>
 
231
</screenshot>
 
232
                               
 
233
<para>The toolbar is displayed along the bottom edge of the &aktion;
 
234
window. It contains icons as follows:</para>
 
235
 
 
236
<variablelist>
 
237
<varlistentry>
 
238
<term><guiicon>Open</guiicon></term>
 
239
<listitem><para>Opens a standard &kde; <quote>open file</quote> dialog
 
240
box, with predefined filters for the file formats supported by
 
241
&aktion;.</para></listitem>
 
242
</varlistentry>
 
243
 
 
244
<varlistentry>
 
245
<term><guiicon>Play</guiicon></term>
 
246
<listitem><para>Start playing the movie.</para></listitem>
 
247
</varlistentry>
 
248
 
 
249
<varlistentry>
 
250
<term><guiicon>Stop</guiicon></term>
 
251
<listitem><para>Stop playing the movie.</para></listitem>
 
252
</varlistentry>
 
253
 
 
254
<varlistentry>
 
255
<term><guiicon>Rewind</guiicon></term>
 
256
<listitem><para>Rewind the movie.</para></listitem>
 
257
</varlistentry>
 
258
 
 
259
<varlistentry>
 
260
<term><guiicon>Fast Forward</guiicon></term>
 
261
<listitem><para>Fast Forward the movie.</para></listitem>
 
262
</varlistentry>
 
263
 
 
264
<varlistentry>
 
265
<term><guiicon>Setup</guiicon></term>
 
266
<listitem><para>Opens the <link linkend="aktion-setup">Setup</link>
 
267
dialog.</para></listitem>
 
268
</varlistentry>
 
269
 
 
270
<varlistentry>
 
271
<term><guiicon>Help</guiicon></term>
 
272
<listitem><para>Opens the &aktion; help page (this document).</para></listitem>
 
273
</varlistentry>
 
274
</variablelist>
 
275
 
 
276
<para>Just above the toolbar, on the right of the &aktion; window, is a
 
277
volume slider.  This can be used to adjust the volume of the movie, from
 
278
lower (to the left) to higher (to the right).</para>
 
279
 
 
280
</sect1>
 
281
 
 
282
<sect1 id="aktion-setup">
 
283
<title>The &aktion; Setup dialog</title>
 
284
 
 
285
<para>The Setup dialog contains five main tabs:</para>
 
286
 
 
287
<itemizedlist>
 
288
<listitem><para><link
 
289
linkend="setup-audio"><guilabel>Audio</guilabel></link></para></listitem>
 
290
<listitem><para><link 
 
291
linkend="setup-color"><guilabel>Color</guilabel></link></para></listitem>
 
292
<listitem><para><link 
 
293
linkend="setup-scaling"><guilabel>Scaling</guilabel></link></para></listitem>
 
294
<listitem><para><link 
 
295
linkend="setup-capture"><guilabel>Capture</guilabel></link></para></listitem>
 
296
<listitem><para><link 
 
297
linkend="setup-others"><guilabel>Others</guilabel></link></para></listitem>
 
298
</itemizedlist>
 
299
 
 
300
<para>The dialog also contains standard <guibutton>OK</guibutton> and
 
301
<guibutton>Cancel</guibutton> buttons.  Click <guibutton>OK</guibutton>
 
302
to close the dialog and save all your changes, and click
 
303
<guibutton>Cancel</guibutton> to close the dialog and discard all your
 
304
changes.</para>
 
305
 
 
306
<sect2 id="setup-audio">
 
307
<title>Setup <guilabel>Audio</guilabel></title>
 
308
 
 
309
<para>This tab contains options relating to audio during movies.</para>
 
310
 
 
311
<variablelist>
 
312
<varlistentry>
 
313
<term><guilabel>Audio enable</guilabel></term>
 
314
<listitem><para>Enables audio. If this is unchecked, there will be no sound
 
315
during movies.</para></listitem>
 
316
</varlistentry>
 
317
 
 
318
<varlistentry>
 
319
<term><guilabel>Skip frames for audio sync</guilabel></term>
 
320
<listitem><para>Checking this allows &aktion; to skip over occasional video
 
321
frames, in order to keep the video and audio synchronised.  Enable this if you
 
322
have a slower machine and find that the video and audio are running at
 
323
different speeds - often the audio track will finish while the video track is
 
324
only part way through.  There will be a loss of video quality if this is
 
325
selected, but it will range from imperceptible to almost unwatchable, based
 
326
mostly on the speed of your machine and how much memory it
 
327
has.</para></listitem>
 
328
</varlistentry>
 
329
 
 
330
<varlistentry>
 
331
<term><guilabel>Show volume slider</guilabel></term>
 
332
<listitem><para>Enable or disable display of the volume slider, above
 
333
and to the right of the toolbar.  This is enabled by default.</para></listitem>
 
334
</varlistentry>
 
335
 
 
336
<varlistentry>
 
337
<term><guilabel>Initial volume (0-100)</guilabel></term>
 
338
<listitem><para>Sets the volume at the start of a movie.  Changes made
 
339
on the volume slider will be relative to this level. You may use the
 
340
spinners to change the value, or type directly in the box.</para></listitem>
 
341
</varlistentry>
 
342
</variablelist>
 
343
 
 
344
</sect2>
 
345
 
 
346
<sect2 id="setup-color">
 
347
<title>Setup <guilabel>Color</guilabel></title>
 
348
 
 
349
<para>This tab provides options to configure &aktion;'s use of color
 
350
during movies.</para>
 
351
 
 
352
<variablelist>
 
353
<varlistentry>
 
354
<term><guilabel>Color mapping (non TrueColor displays)</guilabel></term>
 
355
<listitem><para>This section applies only to displays of less than
 
356
TrueColor (16 bit)  If you have problems with colors appearing strangely, try
 
357
 these options.</para>
 
358
 
 
359
<variablelist>
 
360
<varlistentry>
 
361
<term><guilabel>TrueColor to 322 (static color)</guilabel></term>
 
362
<listitem><para>If selected, &aktion; will convert movies to the
 
363
Static322 color map before displaying them.</para></listitem>
 
364
</varlistentry>
 
365
 
 
366
<varlistentry>
 
367
<term><guilabel>Color lookup table</guilabel></term>
 
368
<listitem><para>If this item is selected, &aktion; will create a palette
 
369
to use as a lookup table.  You can select how many frames to look ahead
 
370
to create the table, but the higher the number you select, the more
 
371
intense the memory use will be. The default is 5</para></listitem>
 
372
</varlistentry>
 
373
 
 
374
<varlistentry>
 
375
<term><guilabel>TrueColor to grayscale</guilabel></term>
 
376
<listitem><para>&aktion; will convert the movie to grayscale if this
 
377
item is selected.</para></listitem>
 
378
</varlistentry>
 
379
 
 
380
<varlistentry>
 
381
<term><guilabel>None</guilabel></term>
 
382
<listitem><para>The default is <guilabel>None</guilabel> - &aktion; will
 
383
not perform any color mapping.  You should only try the other options if
 
384
you have trouble with colors during movie playback.</para></listitem>
 
385
</varlistentry>
 
386
</variablelist>
 
387
</listitem>
 
388
</varlistentry>
 
389
 
 
390
<varlistentry>
 
391
<term><guilabel>Gamma of display</guilabel>:</term>
 
392
<listitem><para>Set gamma of display. Gamma values greater than 1.0
 
393
typically brighten the animation.</para></listitem>
 
394
</varlistentry>
 
395
</variablelist>
 
396
 
 
397
</sect2>
 
398
 
 
399
<sect2 id="setup-scaling">
 
400
<title>Setup <guilabel>Scaling</guilabel></title>
 
401
 
 
402
<para>This tab contains items relating to the display size of the
 
403
movie.</para>
 
404
 
 
405
<variablelist>
 
406
<varlistentry>
 
407
<term><guilabel>Display scale</guilabel></term>
 
408
<listitem><para>Sets the size of the movie, in relation to its original
 
409
size</para> <para>You may choose from any of the following values</para>
 
410
<simplelist>
 
411
<member>Original size</member>
 
412
<member>Half size</member>
 
413
<member>Double size</member>
 
414
<member>Maximised</member>
 
415
<member>Full Screen</member>
 
416
</simplelist>
 
417
</listitem>
 
418
</varlistentry>
 
419
<varlistentry>
 
420
<term><guilabel>Full screen</guilabel></term>
 
421
<listitem><para>Further options relating to using &aktion; in full screen
 
422
mode.</para>
 
423
<variablelist>
 
424
<varlistentry>
 
425
<term><guilabel>Use XFree86-VidModeExtensions (if available)</guilabel></term>
 
426
<listitem><para>Enables full screen mode. Explained further in the
 
427
section on <link linkend="aktion-fullscreen">Using &aktion;
 
428
fullscreen</link></para></listitem>
 
429
</varlistentry>
 
430
<varlistentry>
 
431
<term><guilabel>Grab the mouse</guilabel></term>
 
432
<listitem><para>Takes control of the mouse while in full screen
 
433
mode.</para></listitem>
 
434
</varlistentry>
 
435
</variablelist>
 
436
</listitem>
 
437
</varlistentry>
 
438
</variablelist>
 
439
 
 
440
</sect2>
 
441
 
 
442
<sect2 id="setup-capture">
 
443
<title>Setup <guilabel>Capture</guilabel></title>
 
444
 
 
445
<para>&aktion; allows you to <quote>capture</quote> or take a
 
446
<quote>snapshot</quote> of frames from the movie you are viewing, by
 
447
simply pressing the key <keycap>C</keycap>.  This tab contains options
 
448
relating to this feature.</para> 
 
449
 
 
450
<variablelist>
 
451
<varlistentry>
 
452
<term><guilabel>Output file format</guilabel></term>
 
453
<listitem><para>Choose what format your captures will be saved as. You may
 
454
choose from the following:</para>
 
455
 
 
456
<simplelist>
 
457
<member>bmp</member>
 
458
<member>jpeg</member>
 
459
<member>pbm</member>
 
460
<member>pgm</member>
 
461
<member>png</member>
 
462
<member>ppm</member>
 
463
<member>xbm</member>
 
464
<member>xpm</member>
 
465
</simplelist>
 
466
 
 
467
<para>The default is png</para></listitem>
 
468
</varlistentry>
 
469
<varlistentry>
 
470
<term><guilabel>Output file directory</guilabel>:</term>
 
471
<listitem><para>Choose where the screen captures will be saved.  The default is
 
472
<filename>~</filename> (your home directory.)  You may type a path to a
 
473
different directory directly in the text box, or you can press the
 
474
<guibutton>...</guibutton> to open a file selection dialog and browse to the
 
475
desired location.</para></listitem>
 
476
</varlistentry>
 
477
</variablelist>
 
478
 
 
479
</sect2>
 
480
 
 
481
<sect2 id="setup-others">
 
482
<title>Setup <guilabel>Others</guilabel></title>
 
483
 
 
484
<para>This tab contains other miscellaneous options.</para>
 
485
 
 
486
<variablelist>
 
487
<varlistentry>
 
488
<term><guilabel>Video Loading</guilabel></term>
 
489
<listitem><para>This section contains options relating to pre-loading of
 
490
movies. You may choose one of the following:</para>
 
491
<variablelist>
 
492
<varlistentry>
 
493
<term><guilabel>Preload animation into memory</guilabel></term>
 
494
<listitem><para>Loads the whole animation into your computers memory before it
 
495
begins to play.</para></listitem>
 
496
</varlistentry>
 
497
<varlistentry>
 
498
<term><guilabel>Preload and uncompress animation</guilabel></term>
 
499
<listitem><para>Loads the whole animation into your computers memory, and
 
500
uncompresses it, before beginning to play it.</para></listitem>
 
501
</varlistentry>
 
502
<varlistentry>
 
503
<term><guilabel>Read each sector only when needed</guilabel></term>
 
504
<listitem><para>Performs no preloading, reading each section of the movie from
 
505
disk as it's needed.</para></listitem>
 
506
</varlistentry>
 
507
</variablelist>
 
508
<para>The default is <guilabel>Read each sector only when
 
509
needed</guilabel></para></listitem>
 
510
</varlistentry>
 
511
 
 
512
<varlistentry>
 
513
<term><guilabel>Use X11 shared memory</guilabel></term>
 
514
<listitem><para>This is unavailable if you chose "<guilabel>Preload and
 
515
uncompress animation</guilabel>" in the section above.It is deselected by
 
516
default.</para></listitem>
 
517
</varlistentry>
 
518
<varlistentry>
 
519
<term><guilabel>Use X11 multi buffering</guilabel></term>
 
520
<listitem><para>If selected, &aktion; will use X11 Buffering (if present) to
 
521
smooth animations by double-buffering. It is selected by
 
522
default.</para></listitem>
 
523
</varlistentry>
 
524
<varlistentry>
 
525
<term><guilabel>Use Pixmap instead of Image in X11</guilabel></term>
 
526
<listitem><para>If selected, &aktion; will use Pixmap instead of Image in
 
527
X11shared. This option has no effect if the animation is
 
528
buffered.</para></listitem> 
 
529
</varlistentry>
 
530
<varlistentry>
 
531
<term><guilabel>Initial directory</guilabel></term>
 
532
<listitem><para>Set the directory that is shown when you choose to open a new
 
533
movie. You may type a value directly in the text box, or use the
 
534
<guibutton>...</guibutton> button to browse to your preferred location.  Of
 
535
course, this is only the default directory, and you can browse to another
 
536
location when actually opening movies. By default this is empty, which in most
 
537
cases results in &aktion; beginning to look for movies from your home
 
538
directory.</para></listitem>
 
539
</varlistentry>
 
540
 
 
541
<varlistentry>
 
542
<term><guilabel>Loop animation</guilabel></term>
 
543
<listitem><para>If selected, when the movie reaches its end, it will begin over
 
544
at the start, until you press the <guiicon>Stop</guiicon>
 
545
button.</para></listitem>
 
546
</varlistentry>
 
547
 
 
548
<varlistentry>
 
549
<term><guilabel>Automatically start playing video</guilabel></term>
 
550
<listitem><para>If this is chosen, &aktion; will begin playing the selected
 
551
 movie
 
552
as soon as you have selected it. If this is not checked, you will have to
 
553
press <guiicon>play</guiicon> yourself to start playing the
 
554
movie.</para></listitem>
 
555
</varlistentry>
 
556
 
 
557
<varlistentry>
 
558
<term><guilabel>Extra XAnim parameters</guilabel></term>
 
559
 
 
560
<listitem><para>If you wish to pass any extra parameters to the underlying
 
561
<application>XAnim</application> application, you may enter them
 
562
here.</para></listitem>
 
563
</varlistentry>
 
564
</variablelist>
 
565
 
 
566
</sect2>
 
567
 
 
568
</sect1>
 
569
 
 
570
</chapter>
 
571
 
 
572
<chapter id="developers">
 
573
<title>Developer's Guide to &aktion;</title>
 
574
 
 
575
<para>&aktion; includes the <classname>KXAnim</classname> widget wrapper, with
 
576
 it
 
577
you can include video playback in your own programs.</para>
 
578
 
 
579
<!-- Use refentries to describe APIs.  Refentries are fairly complicated and you
 
580
should consult the docbook reference for further details. The example below was
 
581
taken from that reference and shortened a bit for readability. -->
 
582
 
 
583
<refentry id="re-1007-kanim">
 
584
 
 
585
<refmeta>
 
586
<refentrytitle>KXAnim</refentrytitle>
 
587
<refmiscinfo>KXAnim Class Reference</refmiscinfo>
 
588
</refmeta>
 
589
 
 
590
<refnamediv>
 
591
<refname>KXAnimChildren</refname>
 
592
<refpurpose>A xanim wrapper to allow video playing in your apps.</refpurpose>
 
593
</refnamediv>
 
594
 
 
595
<refsynopsisdiv>
 
596
<refsynopsisdivinfo>
 
597
<date>18/08/2000</date>
 
598
</refsynopsisdivinfo>
 
599
 
 
600
<synopsis>
 
601
Public Members
 
602
 
 
603
      KXAnim (QWidget *parent, const char *name=0)
 
604
      ~KXAnim ()
 
605
      void setFile (QString file)
 
606
      void setAutoResize (bool val)
 
607
      bool getAutoResize ()
 
608
      void updateSize ()
 
609
      void setLoop (bool val)
 
610
      bool getLoop ()
 
611
      QString getVideoFileName ()
 
612
      int getVideoHeight ()
 
613
      int getVideoWidth ()
 
614
      float getVideoSpeed ()
 
615
      int getVideoFrames ()
 
616
      QString getVideoCodec ()
 
617
      QString getErrorCode ()
 
618
      QString getErrorString ()
 
619
      bool isPlaying ()
 
620
      bool isActive ()
 
621
      void resetXAnimDefaults ()
 
622
      void setAudio (bool val)
 
623
      void setAudioSync (bool val)
 
624
      void setInitialVolume (int val)
 
625
      enum colorMap { static332, lookupTable, grayScale, none }
 
626
      void setColorMapping (colorMap val)
 
627
      void setColorAhead (int val)
 
628
      void setGammaDisplay (float val)
 
629
      void setResizing (bool val)
 
630
      void setScaleFactor (float val)
 
631
      void setScaleHFactor (float val)
 
632
      void setScaleVFactor (float val)
 
633
      void setScaleWidth (int val)
 
634
      void setScaleHeight (int val)
 
635
      void setScaleDisplayToBuffer (bool val)
 
636
      void setScaleFactorB (float val)
 
637
      void setScaleHFactorB (float val)
 
638
      void setScaleVFactorB (float val)
 
639
      void setScaleWidthB (int val)
 
640
      void setScaleHeightB (int val)
 
641
      void setScaleBufferToDisplay (bool val)
 
642
      void setLoading (int val)
 
643
      void setX11Shared (bool val)
 
644
      void setMultiBuffer (bool val)
 
645
      void setUsePixmap (bool val)
 
646
      void setX11VisualClass ( const char *val)
 
647
      void setPauseAt (int val)
 
648
      void setExtraParameters (const char *val)
 
649
      void setExecutable (const char *val)
 
650
 
 
651
Public Slots
 
652
 
 
653
      void play ()
 
654
      void pause ()
 
655
      void stop ()
 
656
      void stepForward ()
 
657
      void stepBack ()
 
658
      void stepForwardWA ()
 
659
      void stepBackWA ()
 
660
      void toggleSound ()
 
661
      void volumeIncrement ()
 
662
      void volumeDecrement ()
 
663
      void setVolume (int v)
 
664
      void faster ()
 
665
      void slower ()
 
666
      void resetSpeed ()
 
667
 
 
668
Protected Members
 
669
 
 
670
      void changeProperty ( const char * c)
 
671
      virtual void closeEvent ( QCloseEvent *)
 
672
      virtual void mousePressEvent ( QMouseEvent *)
 
673
 
 
674
Signals
 
675
 
 
676
      void stopped ()
 
677
      void mouseClick ( QMouseEvent *)
 
678
</synopsis>
 
679
</refsynopsisdiv>
 
680
 
 
681
<refsect1>
 
682
<title>Detailed Description of <classname>KXAnim</classname></title>
 
683
 
 
684
<para>#include &lt;kxanim.h&gt;</para>
 
685
 
 
686
<para>Inherits: <classname>QWidget</classname></para>
 
687
 
 
688
<para>Widget class for video playing</para>
 
689
 
 
690
<para>This widget is an <application>xanim</application> wrapper to
 
691
easily allow the video playing on your applications.</para>
 
692
 
 
693
<variablelist>
 
694
 
 
695
<varlistentry>
 
696
<term>
 
697
<funcsynopsis>
 
698
<funcprototype>
 
699
<funcdef><function>KXAnim</function></funcdef>
 
700
<paramdef>QWidget <parameter>*parent</parameter></paramdef>
 
701
<paramdef>const char <parameter>*name=0</parameter></paramdef>
 
702
</funcprototype>
 
703
</funcsynopsis> [public] </term>
 
704
<listitem><para>Constructor. The parent argument is <emphasis>NOT</emphasis>
 
705
optional.</para></listitem>
 
706
</varlistentry>
 
707
 
 
708
<varlistentry>
 
709
<term>
 
710
<funcsynopsis>
 
711
<funcprototype>
 
712
<funcdef>void <function>setFile</function></funcdef>
 
713
<paramdef>QString <parameter>file</parameter></paramdef>
 
714
</funcprototype>
 
715
</funcsynopsis> [public] </term>
 
716
<listitem><para>Use this method to tell the player the name of the file to
 
717
play. The file will not start to play until you call the
 
718
<function>play()</function> slot. You need to call <function>stop()</function>
 
719
before you can set a new filename. </para> 
 
720
<para>After calling this method, you should wait for an stopped signal. Just then,
 
721
the information about the file will be available.</para>
 
722
<para>Also check for <returnvalue>KXAnim::getErrorNumber</returnvalue> and
 
723
<function>getErrorString</function> to know if there was some
 
724
error.</para></listitem> 
 
725
</varlistentry>
 
726
 
 
727
<varlistentry>
 
728
<term>
 
729
<funcsynopsis>
 
730
<funcprototype>
 
731
<funcdef>void <function>setAutoResize</function></funcdef>
 
732
<paramdef>bool
 
733
<parameter><replaceable>val</replaceable></parameter></paramdef>
 
734
</funcprototype>
 
735
</funcsynopsis> [public] </term>
 
736
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
737
the widget will resize by himself after the <function>setFile()</function> to
 
738
fit to the size of the video. If
 
739
<parameter>val</parameter>==<returnvalue>false</returnvalue>, the video size
 
740
will be adjusted to fit to the widget size.</para> 
 
741
<para>The size of the widget is automatically updated by
 
742
<function>setFile</function> and play But if you need to know the effective size
 
743
of the widget *before* you call <function>play</function>, you need to call
 
744
<function>updateSize</function> manually.</para>
 
745
<para>Default is <returnvalue>true</returnvalue></para></listitem>
 
746
</varlistentry>
 
747
 
 
748
<varlistentry>
 
749
<term>
 
750
<funcsynopsis>
 
751
<funcprototype>
 
752
<funcdef>bool <function>getAutoResize</function></funcdef><void/>
 
753
</funcprototype>
 
754
</funcsynopsis> [public] </term>
 
755
<listitem><para>Returns the auto-resize state (see
 
756
<function>setAutoResize</function> ).</para></listitem>
 
757
</varlistentry>
 
758
 
 
759
<varlistentry>
 
760
<term>
 
761
<funcsynopsis>
 
762
<funcprototype>
 
763
<funcdef>void <function>updateSize</function></funcdef><void/>
 
764
</funcprototype>
 
765
</funcsynopsis> [public] </term>
 
766
<listitem>
 
767
<para>Updates the widget size to fit video size (taking care of the scale
 
768
factors that applies). See <function>setAutoResize</function>
 
769
.</para></listitem>
 
770
</varlistentry>
 
771
 
 
772
<varlistentry>
 
773
<term>
 
774
<funcsynopsis>
 
775
<funcprototype>
 
776
<funcdef>void <function>setLoop</function></funcdef>
 
777
<paramdef>bool <parameter><replaceable>val</replaceable></parameter></paramdef>
 
778
</funcprototype>
 
779
</funcsynopsis> [public] </term>
 
780
<listitem>
 
781
<para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>, the video
 
782
will loop forever.</para> 
 
783
<para>Default is <returnvalue>true</returnvalue></para></listitem>
 
784
</varlistentry>
 
785
 
 
786
<varlistentry>
 
787
<term>
 
788
<funcsynopsis>
 
789
<funcprototype>
 
790
<funcdef>bool <function>getLoop</function></funcdef><void/>
 
791
</funcprototype>
 
792
</funcsynopsis> [public] </term>
 
793
<listitem><para>Returns the loop state ( see <function>setLoop</function>
 
794
).</para></listitem>
 
795
</varlistentry>
 
796
 
 
797
<varlistentry>
 
798
<term>
 
799
<funcsynopsis>
 
800
<funcprototype>
 
801
<funcdef>QString <function>getVideoFileName</function></funcdef><void/>
 
802
</funcprototype>
 
803
</funcsynopsis> [public] </term>
 
804
<listitem><para>Returns the current video file name (or an empty string, if
 
805
there's no video yet).</para></listitem>
 
806
</varlistentry>
 
807
 
 
808
<varlistentry>
 
809
<term>
 
810
<funcsynopsis>
 
811
<funcprototype>
 
812
<funcdef>int <function>getVideoHeight</function></funcdef><void/>
 
813
</funcprototype>
 
814
</funcsynopsis> [public] </term>
 
815
<listitem><para>Returns the video height (in pixels).</para></listitem>
 
816
</varlistentry>
 
817
 
 
818
<varlistentry>
 
819
<term>
 
820
<funcsynopsis>
 
821
<funcprototype>
 
822
<funcdef>int <function>getVideoWidth</function></funcdef><void/>
 
823
</funcprototype>
 
824
</funcsynopsis> [public] </term>
 
825
<listitem><para>Returns the video height (in pixels).</para></listitem>
 
826
</varlistentry>
 
827
 
 
828
<varlistentry>
 
829
<term>
 
830
<funcsynopsis>
 
831
<funcprototype>
 
832
<funcdef>float <function>getVideoSpeed</function></funcdef>
 
833
<paramdef></paramdef>
 
834
</funcprototype></funcsynopsis> [public] </term>
 
835
<listitem><para>Returns the video playback speed (in frames per
 
836
second).</para></listitem>
 
837
</varlistentry>
 
838
 
 
839
<varlistentry>
 
840
<term>
 
841
<funcsynopsis>
 
842
<funcprototype>
 
843
<funcdef>int <function>getVideoFrames</function></funcdef><void/>
 
844
</funcprototype>
 
845
</funcsynopsis> [public] </term>
 
846
<listitem><para>Returns the number of frames in the video.</para></listitem>
 
847
</varlistentry>
 
848
 
 
849
<varlistentry>
 
850
<term>
 
851
<funcsynopsis>
 
852
<funcprototype>
 
853
<funcdef>QString <function>getVideoCodec</function></funcdef><void/>
 
854
</funcprototype>
 
855
</funcsynopsis> [public] </term>
 
856
<listitem><para>Returns the string that describes the video
 
857
codec.</para></listitem>
 
858
</varlistentry>
 
859
 
 
860
<varlistentry>
 
861
<term>
 
862
<funcsynopsis>
 
863
<funcprototype>
 
864
<funcdef>QString <function>getErrorCode</function></funcdef><void/>
 
865
</funcprototype>
 
866
</funcsynopsis> [public] </term>
 
867
<listitem><para>Returns the the error code number. You should check this number
 
868
after a <function>setFile</function>. If the code is
 
869
<returnvalue>zero</returnvalue> , the there were no errors. To get a string
 
870
containing a description see
 
871
<function>getErrorCode</function>.</para></listitem>
 
872
</varlistentry>
 
873
 
 
874
<varlistentry>
 
875
<term>
 
876
<funcsynopsis>
 
877
<funcprototype>
 
878
<funcdef>QString <function>getErrorString</function></funcdef><void/>
 
879
</funcprototype>
 
880
</funcsynopsis> [public] </term>
 
881
<listitem><para>Returns the string that describes the error during
 
882
<function>setFile</function>.</para></listitem>
 
883
</varlistentry>
 
884
 
 
885
<varlistentry>
 
886
<term>
 
887
<funcsynopsis>
 
888
<funcprototype>
 
889
<funcdef>bool <function>isPlaying</function></funcdef><void/>
 
890
</funcprototype>
 
891
</funcsynopsis> [public] </term>
 
892
<listitem><para>Returns <returnvalue>true</returnvalue> is the video is in play
 
893
mode. Otherwise it returns <returnvalue>false</returnvalue>.</para></listitem>
 
894
</varlistentry>
 
895
 
 
896
<varlistentry>
 
897
<term>
 
898
<funcsynopsis>
 
899
<funcprototype>
 
900
<funcdef>bool <function>isActive</function></funcdef><void/>
 
901
</funcprototype>
 
902
</funcsynopsis> [public] </term>
 
903
<listitem><para>Returns <returnvalue>true</returnvalue> is the video is
 
904
active. Otherwise it returns <returnvalue>false</returnvalue>. The widget is
 
905
<emphasis>NOT</emphasis> Active only when it's stopped. Therefore, you can use
 
906
this method to check if the video is REALLY stopped. </para></listitem>
 
907
</varlistentry>
 
908
 
 
909
<varlistentry>
 
910
<term>
 
911
<funcsynopsis>
 
912
<funcprototype>
 
913
<funcdef>void <function>resetXAnimDefaults</function></funcdef><void/>
 
914
</funcprototype>
 
915
</funcsynopsis> [public] </term>
 
916
<listitem><para>This method reset all the configuration parameters to their
 
917
default values.</para></listitem>
 
918
</varlistentry>
 
919
 
 
920
<varlistentry>
 
921
<term>
 
922
<funcsynopsis>
 
923
<funcprototype>
 
924
<funcdef>void <function>setAudio</function></funcdef>
 
925
<paramdef>bool <parameter>val</parameter></paramdef>
 
926
</funcprototype>
 
927
</funcsynopsis> [public] </term>
 
928
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
929
enables sound output.</para> 
 
930
<para>Default is <returnvalue>true</returnvalue></para>
 
931
</listitem>
 
932
</varlistentry>
 
933
 
 
934
<varlistentry>
 
935
<term>
 
936
<funcsynopsis>
 
937
<funcprototype>
 
938
<funcdef>void <function>setAudioSync</function></funcdef>
 
939
<paramdef>bool <parameter>val</parameter></paramdef>
 
940
</funcprototype>
 
941
</funcsynopsis> [public] </term>
 
942
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
943
allows <application>xanim</application> skip video frames for audio sync.</para>
 
944
<para>Default is <returnvalue>true</returnvalue></para></listitem>
 
945
</varlistentry>
 
946
 
 
947
<varlistentry>
 
948
<term>
 
949
<funcsynopsis>
 
950
<funcprototype>
 
951
<funcdef>void <function>setInitialVolume</function></funcdef>
 
952
<paramdef>int <parameter>val</parameter></paramdef>
 
953
</funcprototype>
 
954
</funcsynopsis> [public] </term>
 
955
<listitem><para>Sets the initial audio volume.</para>
 
956
<para>Default is <returnvalue>40</returnvalue></para></listitem>
 
957
</varlistentry>
 
958
 
 
959
<varlistentry>
 
960
<term>
 
961
<!-- Lauri: find out how to do this one!! -->
 
962
enum colorMap ( static332, lookupTable, grayScale, none ) [public]
 
963
</term><listitem>
 
964
<para>See setColorMapping .</para>
 
965
</listitem></varlistentry>
 
966
 
 
967
<varlistentry>
 
968
<term>
 
969
<funcsynopsis>
 
970
<funcprototype>
 
971
<funcdef>void <function>setColorMapping</function></funcdef>
 
972
<paramdef>colorMap <parameter>val</parameter></paramdef>
 
973
</funcprototype>
 
974
</funcsynopsis> [public]</term>
 
975
<listitem><para>Tells <classname>KXAnim</classname> which type of color mapping
 
976
to use for non truecolor displays.</para>
 
977
<para>If
 
978
<parameter>val</parameter>==<returnvalue>KXAnim::static322</returnvalue>,
 
979
<application>xanim</application> will convert truecolor anims to
 
980
static322.</para>
 
981
<para>If
 
982
<parameter>val</parameter>==<returnvalue>KXAnim::lookupTable</returnvalue>,
 
983
<application>xanim</application> will sample the color of truecolor animations
 
984
ahead of time and forms a color lookup table.</para>
 
985
<para>If
 
986
<parameter>val</parameter>==<returnvalue>KXAnim::grayScale</returnvalue>,
 
987
<application>xanim</application> will convert TrueColor animations to gray
 
988
scale.</para>
 
989
<para>Those three option are ignored for TrueColor and DirectColor
 
990
displays.</para>
 
991
<para>if <parameter>val</parameter>==<returnvalue>KXAnim::none</returnvalue>,
 
992
<application>xanim</application> will use the default color mapping.</para>
 
993
<para>Default is <returnvalue>KXAnim::none</returnvalue></para></listitem>
 
994
</varlistentry>
 
995
 
 
996
<varlistentry>
 
997
<term>
 
998
<funcsynopsis>
 
999
<funcprototype>
 
1000
<funcdef>void <function>setColorAhead</function></funcdef>
 
1001
<paramdef>int <parameter>val</parameter></paramdef>
 
1002
</funcprototype>
 
1003
</funcsynopsis> [public] </term>
 
1004
<listitem><para>This sets the number of frames ahead to use for the look up
 
1005
table when using <returnvalue>KXAnim::lookupTable</returnvalue> in
 
1006
<function>setColorMapping</function>.</para>
 
1007
<para>Default is <returnvalue>5</returnvalue></para>
 
1008
</listitem></varlistentry>
 
1009
 
 
1010
<varlistentry>
 
1011
<term>
 
1012
<funcsynopsis>
 
1013
<funcprototype>
 
1014
<funcdef>void <function>setGammaDisplay</function></funcdef>
 
1015
<paramdef>float <parameter>val</parameter></paramdef>
 
1016
</funcprototype>
 
1017
</funcsynopsis> [public] </term>
 
1018
<listitem><para>Set gamma of display. Gamma's greater than 1.0 typically
 
1019
brighten the animation.</para>
 
1020
<para>Default is <returnvalue>1.0</returnvalue></para></listitem>
 
1021
</varlistentry>
 
1022
 
 
1023
<varlistentry>
 
1024
<term>
 
1025
<funcsynopsis>
 
1026
<funcprototype>
 
1027
<funcdef>void setResizing</funcdef>
 
1028
<paramdef>bool <parameter>val</parameter></paramdef>
 
1029
</funcprototype>
 
1030
</funcsynopsis> [public] </term>
 
1031
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
1032
the video size can be changed "on the fly".</para>
 
1033
<para>Default is <returnvalue>true</returnvalue></para></listitem>
 
1034
</varlistentry>
 
1035
 
 
1036
<varlistentry>
 
1037
<term>
 
1038
<funcsynopsis>
 
1039
<funcprototype>
 
1040
<funcdef>void <function>setScaleFactor</function></funcdef>
 
1041
<paramdef>float <parameter>val</parameter></paramdef>
 
1042
</funcprototype>
 
1043
</funcsynopsis> [public] </term>
 
1044
<listitem><para>Scale the size of anim by "<parameter>val</parameter>" before
 
1045
displaying.</para>
 
1046
<para>Default is <returnvalue>1.0</returnvalue> (no scaling)</para></listitem>
 
1047
</varlistentry>
 
1048
 
 
1049
<varlistentry>
 
1050
<term>
 
1051
<funcsynopsis>
 
1052
<funcprototype>
 
1053
<funcdef>void <function>setScaleHFactor</function></funcdef>
 
1054
<paramdef>float <parameter>val</parameter></paramdef>
 
1055
</funcprototype>
 
1056
</funcsynopsis> [public]</term>
 
1057
<listitem><para>Scale the horizontal size of anim by
 
1058
"<parameter>val</parameter>" before displaying.</para>
 
1059
<para>Default is <returnvalue>1.0</returnvalue> (no scaling)</para></listitem>
 
1060
</varlistentry>
 
1061
 
 
1062
<varlistentry>
 
1063
<term>
 
1064
<funcsynopsis>
 
1065
<funcprototype>
 
1066
<funcdef>void <function>setScaleVFactor</function></funcdef>
 
1067
<paramdef>float <parameter>val</parameter></paramdef>
 
1068
</funcprototype>
 
1069
</funcsynopsis> [public] </term>
 
1070
<listitem><para>Scale the vertical size of anim by "<parameter>val</parameter>"
 
1071
before displaying.</para>
 
1072
<para>Default is <returnvalue>1.0</returnvalue> (no scaling)</para></listitem>
 
1073
</varlistentry>
 
1074
 
 
1075
<varlistentry>
 
1076
<term>
 
1077
<funcsynopsis>
 
1078
<funcprototype>
 
1079
<funcdef>void <function>setScaleWidth</function></funcdef>
 
1080
<paramdef>int <parameter>val</parameter></paramdef>
 
1081
</funcprototype>
 
1082
</funcsynopsis> [public] </term>
 
1083
<listitem><para>Scale the animation to have width "<parameter>val</parameter>"
 
1084
before displaying.</para>
 
1085
<para>Default is <returnvalue>0</returnvalue> (no scaling)</para></listitem>
 
1086
</varlistentry>
 
1087
 
 
1088
<varlistentry>
 
1089
<term>
 
1090
<funcsynopsis>
 
1091
<funcprototype>
 
1092
<funcdef>void <function>setScaleHeight</function></funcdef>
 
1093
<paramdef>int <parameter>val</parameter></paramdef>
 
1094
</funcprototype>
 
1095
</funcsynopsis> [public] </term>
 
1096
<listitem><para>Scale the animation to have height "<parameter>val</parameter>"
 
1097
before displaying.</para>
 
1098
<para>Default is <returnvalue>0</returnvalue> (no scaling)</para></listitem>
 
1099
</varlistentry>
 
1100
 
 
1101
<varlistentry>
 
1102
<term>
 
1103
<funcsynopsis>
 
1104
<funcprototype>
 
1105
<funcdef>void <function>setScaleDisplayToBuffer</function></funcdef>
 
1106
<paramdef>bool <parameter>val</parameter></paramdef>
 
1107
</funcprototype>
 
1108
</funcsynopsis> [public] </term>
 
1109
<listitem><para>Copy display scaling factors to buffering scaling
 
1110
factors.</para>
 
1111
<para>Default is <returnvalue>false</returnvalue>.</para></listitem>
 
1112
</varlistentry>
 
1113
 
 
1114
<varlistentry>
 
1115
<term>
 
1116
<funcsynopsis>
 
1117
<funcprototype>
 
1118
<funcdef>void <function>setScaleFactorB</function></funcdef>
 
1119
<paramdef>float <parameter>val</parameter></paramdef>
 
1120
</funcprototype>
 
1121
</funcsynopsis> [public] </term>
 
1122
<listitem><para>Scale the size of anim by "<parameter>val</parameter>" before
 
1123
buffering it.</para>
 
1124
<para>Default is <returnvalue>1.0</returnvalue> (no scaling)</para></listitem>
 
1125
</varlistentry>
 
1126
 
 
1127
<varlistentry>
 
1128
<term>
 
1129
<funcsynopsis>
 
1130
<funcprototype>
 
1131
<funcdef>void <function>setScaleHFactorB</function></funcdef>
 
1132
<paramdef>float <parameter>val</parameter></paramdef>
 
1133
</funcprototype>
 
1134
</funcsynopsis> [public] </term>
 
1135
<listitem><para>Scale the horizontal size of anim by
 
1136
"<parameter>val</parameter>" before buffering it.</para>
 
1137
<para>Default is <returnvalue>1.0</returnvalue> (no scaling)</para></listitem>
 
1138
</varlistentry>
 
1139
 
 
1140
<varlistentry>
 
1141
<term>
 
1142
<funcsynopsis>
 
1143
<funcprototype>
 
1144
<funcdef>void <function>setScaleVFactorB</function></funcdef>
 
1145
<paramdef>float <parameter>val</parameter></paramdef>
 
1146
</funcprototype>
 
1147
</funcsynopsis> [public] </term>
 
1148
<listitem><para>Scale the vertical size of anim by "<parameter>val</parameter>"
 
1149
before buffering it.</para>
 
1150
<para>Default is <returnvalue>1.0</returnvalue> (no scaling)</para></listitem>
 
1151
</varlistentry>
 
1152
 
 
1153
<varlistentry>
 
1154
<term>
 
1155
<funcsynopsis>
 
1156
<funcprototype>
 
1157
<funcdef>void <function>setScaleWidthB</function></funcdef>
 
1158
<paramdef>int <parameter>val</parameter></paramdef>
 
1159
</funcprototype>
 
1160
</funcsynopsis> [public] </term>
 
1161
<listitem><para>Scale the animation to have width "<parameter>val</parameter>"
 
1162
before buffering it.</para>
 
1163
<para>Default is <returnvalue>0</returnvalue> (no scaling)</para></listitem>
 
1164
</varlistentry>
 
1165
 
 
1166
<varlistentry>
 
1167
<term>
 
1168
<funcsynopsis>
 
1169
<funcprototype>
 
1170
<funcdef>void <function>setScaleHeightB</function></funcdef>
 
1171
<paramdef>int <parameter>val</parameter></paramdef>
 
1172
</funcprototype>
 
1173
</funcsynopsis> [public] </term>
 
1174
<listitem><para>Scale the animation to have height "<parameter>val</parameter>"
 
1175
before buffering it.</para>
 
1176
<para>Default is <returnvalue>0</returnvalue> (no scaling)</para></listitem>
 
1177
</varlistentry>
 
1178
 
 
1179
<varlistentry>
 
1180
<term>
 
1181
<funcsynopsis>
 
1182
<funcprototype>
 
1183
<funcdef>void <function>setScaleBufferToDisplay</function></funcdef>
 
1184
<paramdef>bool <parameter>val</parameter></paramdef>
 
1185
</funcprototype>
 
1186
</funcsynopsis> [public] </term>
 
1187
<listitem><para>Copy buffering scaling factors to display scaling
 
1188
factors.</para>
 
1189
<para>Default is <returnvalue>false</returnvalue>.</para></listitem>
 
1190
</varlistentry>
 
1191
 
 
1192
<varlistentry>
 
1193
<term>
 
1194
<funcsynopsis>
 
1195
<funcprototype>
 
1196
<funcdef>void <function>setLoading</function></funcdef>
 
1197
<paramdef>int <parameter>val</parameter></paramdef>
 
1198
</funcprototype>
 
1199
</funcsynopsis> [public] </term>
 
1200
<listitem><para><returnvalue>0</returnvalue>: <classname>KXAnim</classname> will
 
1201
load the entire video into memory.</para>
 
1202
<para><returnvalue>1</returnvalue>: <classname>KXAnim</classname> will load and
 
1203
decompress the animation entirely into memory before displaying.</para>
 
1204
<para><returnvalue>2</returnvalue>: <classname>KXAnim</classname> will read each
 
1205
sector only when needed</para>
 
1206
<para>Default is <returnvalue>2</returnvalue>.</para>
 
1207
</listitem>
 
1208
</varlistentry>
 
1209
 
 
1210
<varlistentry>
 
1211
<term>
 
1212
<funcsynopsis>
 
1213
<funcprototype>
 
1214
<funcdef>void <function>setX11Shared</function></funcdef>
 
1215
<paramdef>bool <parameter>val</parameter></paramdef>
 
1216
</funcprototype>
 
1217
</funcsynopsis> [public]</term>
 
1218
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
1219
<classname>KXAnim</classname> will use X11 shared memory (this is mutually
 
1220
exclusive with <function>setPreload</function> .</para>
 
1221
<para>Default is <returnvalue>false</returnvalue>.</para></listitem>
 
1222
</varlistentry>
 
1223
 
 
1224
<varlistentry>
 
1225
<term>
 
1226
<funcsynopsis>
 
1227
<funcprototype>
 
1228
<funcdef>void <function>setMultiBuffer</function></funcdef>
 
1229
<paramdef>bool <parameter>val</parameter></paramdef>
 
1230
</funcprototype>
 
1231
</funcsynopsis> [public] </term>
 
1232
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
1233
<classname>KXAnim</classname> will use X11 Buffering (if present) to smooth
 
1234
animations by double-buffering. </para> 
 
1235
<para>Default is <returnvalue>true</returnvalue>.</para></listitem>
 
1236
</varlistentry>
 
1237
 
 
1238
<varlistentry>
 
1239
<term>
 
1240
<funcsynopsis>
 
1241
<funcprototype>
 
1242
<funcdef>void <function>setUsePixmap</function></funcdef>
 
1243
<paramdef>bool <parameter>val</parameter></paramdef>
 
1244
</funcprototype>
 
1245
</funcsynopsis> [public] </term>
 
1246
<listitem><para>If <parameter>val</parameter>==<returnvalue>true</returnvalue>,
 
1247
<classname>KXAnim</classname> will use Pixmap instead of Image in
 
1248
X11shared. This option has no effect if the animation is buffered.</para>
 
1249
<para>Default is <returnvalue>false</returnvalue>.</para></listitem>
 
1250
</varlistentry>
 
1251
 
 
1252
<varlistentry>
 
1253
<term>
 
1254
<funcsynopsis>
 
1255
<funcprototype>
 
1256
<funcdef>void <function>setX11VisualClass</function></funcdef>
 
1257
<paramdef>const char <parameter>*val</parameter></paramdef>
 
1258
</funcprototype>
 
1259
</funcsynopsis> [public] </term>
 
1260
<listitem><para>Select the best <quote>X11 Visual of Class...</quote>
 
1261
when displaying the animation. <parameter>val</parameter> can be anyone
 
1262
of the following strings and is case insensitive:</para>
 
1263
 
 
1264
<simplelist>
 
1265
<member><returnvalue>default</returnvalue></member>
 
1266
<member><returnvalue>staticgray</returnvalue></member>
 
1267
<member><returnvalue>grayscale</returnvalue></member>
 
1268
<member><returnvalue>staticcolor</returnvalue></member>
 
1269
<member><returnvalue>pseudocolor</returnvalue></member>
 
1270
<member><returnvalue>truecolor</returnvalue></member>
 
1271
<member><returnvalue>directcolor</returnvalue></member>
 
1272
</simplelist>
 
1273
 
 
1274
<para>Default is <returnvalue>default</returnvalue>.</para></listitem>
 
1275
</varlistentry>
 
1276
 
 
1277
<varlistentry>
 
1278
<term>
 
1279
<funcsynopsis>
 
1280
<funcprototype>
 
1281
<funcdef>void <function>setPauseAt</function></funcdef>
 
1282
<paramdef>int <parameter>val</parameter></paramdef>
 
1283
</funcprototype>
 
1284
</funcsynopsis> [public] </term>
 
1285
<listitem><para>This will pause <application>XAnim</application> at frame
 
1286
<parameter>val</parameter>.
 
1287
<parameter>val</parameter>=<returnvalue>-1</returnvalue> disables this
 
1288
option.</para>
 
1289
<para>Default is <returnvalue>-1</returnvalue> (no pause).</para></listitem>
 
1290
</varlistentry>
 
1291
 
 
1292
<varlistentry>
 
1293
<term>
 
1294
<funcsynopsis>
 
1295
<funcprototype>
 
1296
<funcdef>void <function>setExtraParameters</function></funcdef>
 
1297
<paramdef>const char <parameter>*val</parameter></paramdef>
 
1298
</funcprototype>
 
1299
</funcsynopsis> [public] </term>
 
1300
<listitem><para>Use this method to pass any extra parameters you want to
 
1301
<application>xanim</application> (separated by spaces).</para></listitem>
 
1302
</varlistentry>
 
1303
 
 
1304
<varlistentry>
 
1305
<term>
 
1306
<funcsynopsis>
 
1307
<funcprototype>
 
1308
<funcdef>void <function>setExecutable</function></funcdef>
 
1309
<paramdef>const char <parameter>*val</parameter></paramdef>
 
1310
</funcprototype>
 
1311
</funcsynopsis> [public] </term>
 
1312
<listitem><para>Use this method to set the executable name for
 
1313
<application>xanim</application>. Default is "<returnvalue>xanim</returnvalue>",
 
1314
but you can change it, for instance, if you don't have
 
1315
<application>xanim</application> in the path.</para></listitem>
 
1316
</varlistentry>
 
1317
 
 
1318
<varlistentry>
 
1319
<term>
 
1320
<funcsynopsis>
 
1321
<funcprototype>
 
1322
<funcdef>void <function>play</function></funcdef><void/>
 
1323
</funcprototype>
 
1324
</funcsynopsis> [public slot] </term>
 
1325
<listitem><para>Start playing the video.</para></listitem>
 
1326
</varlistentry>
 
1327
 
 
1328
<varlistentry>
 
1329
<term>
 
1330
<funcsynopsis>
 
1331
<funcprototype>
 
1332
<funcdef>void <function>pause</function></funcdef><void/>
 
1333
</funcprototype>
 
1334
</funcsynopsis> [public slot] </term>
 
1335
<listitem><para>Pauses the video playing (<application>xanim</application> is
 
1336
still runnig).</para></listitem>
 
1337
</varlistentry>
 
1338
 
 
1339
<varlistentry>
 
1340
<term>
 
1341
<funcsynopsis>
 
1342
<funcprototype>
 
1343
<funcdef>void <function>stop</function></funcdef><void/>
 
1344
</funcprototype>
 
1345
</funcsynopsis> [public slot] </term>
 
1346
<listitem><para>Stops the video and exit <application>xanim</application> (don't
 
1347
worry about it, it's transparent for the class user).</para>
 
1348
<note><para>Calling this slot doesn't mean that the video will stop
 
1349
immediately. Use the <returnvalue>stopped</returnvalue> signal to know exactly
 
1350
when the player is set to the inactive mode (see <function>isActive</function>
 
1351
). </para></note></listitem>
 
1352
</varlistentry>
 
1353
 
 
1354
<varlistentry>
 
1355
<term>
 
1356
<funcsynopsis>
 
1357
<funcprototype>
 
1358
<funcdef>void <function>stepForward</function></funcdef><void/>
 
1359
</funcprototype>
 
1360
</funcsynopsis> [public slot] </term>
 
1361
<listitem><para>Single step forward one frame. Pauses the video
 
1362
playing.</para></listitem>
 
1363
</varlistentry>
 
1364
 
 
1365
<varlistentry>
 
1366
<term>
 
1367
<funcsynopsis>
 
1368
<funcprototype>
 
1369
<funcdef>void <function>stepBack</function></funcdef><void/>
 
1370
</funcprototype>
 
1371
</funcsynopsis> [public slot] </term>
 
1372
<listitem><para>Single step back one frame. Pauses the video
 
1373
playing.</para></listitem>
 
1374
</varlistentry>
 
1375
 
 
1376
<varlistentry>
 
1377
<term>
 
1378
<funcsynopsis>
 
1379
<funcprototype>
 
1380
<funcdef>void <function>stepForwardWA</function></funcdef><void/>
 
1381
</funcprototype>
 
1382
</funcsynopsis> [public slot] </term>
 
1383
<listitem><para>Single step forward one frame staying with anim. Pauses the
 
1384
video playing.</para></listitem>
 
1385
</varlistentry>
 
1386
 
 
1387
<varlistentry>
 
1388
<term>
 
1389
<funcsynopsis>
 
1390
<funcprototype>
 
1391
<funcdef>void <function>stepBackWA</function></funcdef><void/>
 
1392
</funcprototype>
 
1393
</funcsynopsis> [public slot] </term>
 
1394
<listitem><para>Single step back one frame staying with anim. Pauses the video
 
1395
playing.</para></listitem>
 
1396
</varlistentry>
 
1397
 
 
1398
<varlistentry>
 
1399
<term>
 
1400
<funcsynopsis>
 
1401
<funcprototype>
 
1402
<funcdef>void <function>toggleSound</function></funcdef><void/>
 
1403
</funcprototype>
 
1404
</funcsynopsis> [public slot] </term>
 
1405
<listitem><para>Toggle sound between ON/OFF.</para></listitem>
 
1406
</varlistentry>
 
1407
 
 
1408
<varlistentry>
 
1409
<term>
 
1410
<funcsynopsis>
 
1411
<funcprototype>
 
1412
<funcdef>void <function>volumeIncrement</function></funcdef><void/>
 
1413
</funcprototype>
 
1414
</funcsynopsis> [public slot] </term>
 
1415
<listitem><para>Increment volume by 1.</para></listitem>
 
1416
</varlistentry>
 
1417
 
 
1418
<varlistentry>
 
1419
<term>
 
1420
<funcsynopsis>
 
1421
<funcprototype>
 
1422
<funcdef>void <function>volumeDecrement</function></funcdef><void/>
 
1423
</funcprototype>
 
1424
</funcsynopsis> [public slot] </term>
 
1425
<listitem><para>Decrement volume by 1.</para></listitem>
 
1426
</varlistentry>
 
1427
 
 
1428
<varlistentry>
 
1429
<term>
 
1430
<funcsynopsis>
 
1431
<funcprototype>
 
1432
<funcdef>void <function>setVolume</function></funcdef>
 
1433
<paramdef>int <parameter>v</parameter></paramdef>
 
1434
</funcprototype>
 
1435
</funcsynopsis> [public slot] </term>
 
1436
<listitem><para>Setup volume where <parameter>v</parameter> is a number from
 
1437
<returnvalue>0</returnvalue> to
 
1438
<returnvalue>100</returnvalue>.</para></listitem>
 
1439
</varlistentry>
 
1440
 
 
1441
<varlistentry>
 
1442
<term>
 
1443
<funcsynopsis>
 
1444
<funcprototype>
 
1445
<funcdef>void <function>faster</function></funcdef><void/>
 
1446
</funcprototype>
 
1447
</funcsynopsis> [public slot] </term>
 
1448
<listitem><para>Increase animation playback speed.</para></listitem>
 
1449
</varlistentry>
 
1450
 
 
1451
<varlistentry>
 
1452
<term>
 
1453
<funcsynopsis>
 
1454
<funcprototype>
 
1455
<funcdef>void <function>slower</function></funcdef>
 
1456
<paramdef></paramdef>
 
1457
</funcprototype>
 
1458
</funcsynopsis> [public slot] </term>
 
1459
<listitem><para>Decrease animation playback speed.</para></listitem>
 
1460
</varlistentry>
 
1461
 
 
1462
<varlistentry>
 
1463
<term>
 
1464
<funcsynopsis>
 
1465
<funcprototype>
 
1466
<funcdef>void <function>resetSpeed</function></funcdef><void/>
 
1467
</funcprototype>
 
1468
</funcsynopsis> [public slot] </term>
 
1469
<listitem><para>Reset animation playback speed to original
 
1470
values.</para></listitem>
 
1471
</varlistentry>
 
1472
 
 
1473
<varlistentry>
 
1474
<term>
 
1475
<funcsynopsis>
 
1476
<funcprototype>
 
1477
<funcdef>void <function>changeProperty</function></funcdef>
 
1478
<paramdef>const char <parameter>*</parameter> c</paramdef>
 
1479
</funcprototype>
 
1480
</funcsynopsis> [protected] </term>
 
1481
<listitem><para><emphasis>Don't use it!</emphasis> This is internally used for
 
1482
the communication with <application>xanim</application>.</para></listitem>
 
1483
</varlistentry>
 
1484
 
 
1485
<varlistentry>
 
1486
<term>
 
1487
<funcsynopsis>
 
1488
<funcprototype>
 
1489
<funcdef>void <function>stopped</function></funcdef><void/>
 
1490
</funcprototype>
 
1491
</funcsynopsis> [signal] </term>
 
1492
<listitem><para>This signal is emitted after a call to the
 
1493
<function>stop()</function> slot, and means that the player has
 
1494
<emphasis>really</emphasis> stopped playing (that
 
1495
<application>xanim</application> is inactive) (see
 
1496
<function>stop</function>).</para></listitem>
 
1497
</varlistentry>
 
1498
 
 
1499
<varlistentry>
 
1500
<term>
 
1501
<funcsynopsis>
 
1502
<funcprototype>
 
1503
<funcdef>void <function>mouseClick</function></funcdef>
 
1504
<paramdef>QMouseEvent <parameter>*</parameter></paramdef>
 
1505
</funcprototype>
 
1506
</funcsynopsis> [signal] </term>
 
1507
<listitem><para>This signal is emitted when the user clicks into the
 
1508
widget.</para></listitem> 
 
1509
</varlistentry>
 
1510
</variablelist>
 
1511
</refsect1>
 
1512
 
 
1513
</refentry>
 
1514
 
 
1515
</chapter>
 
1516
 
 
1517
<chapter id="faq">
 
1518
<title>Questions and Answers</title>
 
1519
 
 
1520
<qandaset>
 
1521
<qandaentry>
 
1522
<question><para>What does the Unsupported video codec message
 
1523
mean?</para></question>
 
1524
<answer><para>It means the video format can not be played. This may be because
 
1525
you do not have a full featured <application>xanim</application> installed. See
 
1526
the next answer for more details.</para>
 
1527
<para>There are some codecs that will not be playable for the foreseeable
 
1528
future. The one that may affect you the most is Sorenson as used in QuickTime
 
1529
4. </para></answer>
 
1530
</qandaentry>
 
1531
 
 
1532
<qandaentry>
 
1533
<question><para>How do I get the full featured
 
1534
<application>xanim</application>?</para></question>
 
1535
<answer><para>Go to the <application>xanim</application> home page and follow
 
1536
 the
 
1537
instructions to install the cinepak, indeo and creative video codecs. You may
 
1538
need to recompile <application>xanim</application>, but check your distributions
 
1539
documentation as some are easier to install than others.</para></answer>
 
1540
</qandaentry>
 
1541
 
 
1542
<qandaentry>
 
1543
<question><para>How do I know if the VidMode and DGA extensions are available on
 
1544
my system?</para>
 
1545
</question>
 
1546
<answer><para>There are two ways to check. Which one you use depends on how you
 
1547
installed &aktion;. </para>
 
1548
<variablelist>
 
1549
<varlistentry>
 
1550
<term>Installed &aktion; from source</term>
 
1551
<listitem><para>Check the output of <command>./configure</command>, you should
 
1552
see <computeroutput>"checking for VidMode extensions..."</computeroutput>. If
 
1553
the script prints a <computeroutput>"no"</computeroutput> after this line, then
 
1554
you don't have the extensions.</para></listitem>
 
1555
</varlistentry>
 
1556
<varlistentry>
 
1557
<term>Installed &aktion; binary (rpm or deb)</term>
 
1558
<listitem><para>Look in your system for two files called:
 
1559
<filename>libXxf86vm.a</filename> and <filename>libXxf86dga.a</filename>, if you
 
1560
have them, good.</para></listitem>
 
1561
</varlistentry>
 
1562
</variablelist>
 
1563
<para>In both cases, if you don't have the extensions, check that you've
 
1564
installed the XFree86-devel rpm package from your Linux box. The extensions are
 
1565
included in this package.</para></answer>
 
1566
</qandaentry>
 
1567
 
 
1568
<qandaentry>
 
1569
<question><para>How do I know if the VidMode extensions are working on my
 
1570
system?</para></question>
 
1571
<answer><para>Try switching video modes with
 
1572
<keycombo><keycap>CTRL</keycap><keycap>ALT</keycap><keycap>numpad
 
1573
+</keycap></keycombo>. If nothing happens, you may only need to enable additional
 
1574
resolutions. See the next answer for more details.</para></answer>
 
1575
</qandaentry>
 
1576
 
 
1577
<qandaentry>
 
1578
<question><para>How do I set up aditional video modes?</para></question>
 
1579
<answer><para>You should have a video configuration utility provided with your
 
1580
distribution. If not, there is always <application>XF86Config</application>
 
1581
available.</para>
 
1582
<para>Enable as many resolution modes as you can. At the very least, you will
 
1583
want to enable 640x400 alongside your standard everyday
 
1584
resolution.</para></answer>
 
1585
</qandaentry>
 
1586
</qandaset>
 
1587
</chapter>
 
1588
 
 
1589
<chapter id="credits">
 
1590
 
 
1591
<title>Credits and License</title>
 
1592
 
 
1593
<para>&aktion;</para>
 
1594
 
 
1595
<para>Program copyright 2000 Guillermo P. Marotte
 
1596
<email>g-marotte@usa.net</email></para>
 
1597
 
 
1598
<para>Contributors:</para>
 
1599
<itemizedlist>
 
1600
<listitem><para>Benjamin Sher
 
1601
 <email>sher07@bellsouth.net</email></para></listitem>
 
1602
</itemizedlist>
 
1603
 
 
1604
<para>Xanim author:</para>
 
1605
<itemizedlist><listitem><para>Mark Podlipec</para></listitem>
 
1606
</itemizedlist>
 
1607
 
 
1608
<para>Documentation copyright 2000 Chris D. Corbettis
 
1609
<email>chris@corbettis.fsnet.co.uk</email></para>
 
1610
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
 
1611
 
 
1612
&underFDL;
 
1613
&underGPL;
 
1614
 
 
1615
</chapter>
 
1616
 
 
1617
<appendix id="installation">
 
1618
<title>Installation</title>
 
1619
 
 
1620
<sect1 id="getting-kapp">
 
1621
<title>How to obtain &aktion;</title>
 
1622
 
 
1623
<para>&aktion; is part of the &kde; project <ulink
 
1624
url="http://www.kde.org">http://www.kde.org</ulink>.  &aktion; can be
 
1625
found in the kdemultimedia package on <ulink
 
1626
url="ftp://ftp.kde.org/pub/kde/">ftp://ftp.kde.org/pub/kde/</ulink>, the
 
1627
main ftp site of the &kde; project. </para>
 
1628
 
 
1629
</sect1>
 
1630
 
 
1631
<sect1 id="requirements">
 
1632
<title>Requirements</title>
 
1633
 
 
1634
<para>In order to successfully use &aktion;, you need &kde; 2 and
 
1635
<application>xanim</application> 2.70.7.0 or higher. Full screen mode
 
1636
requires <application>VidMode</application> and <abbrev>DGA</abbrev>
 
1637
extensions to be installed and working.</para>
 
1638
 
 
1639
<para>All required libraries as well as &aktion; itself can be found on <ulink
 
1640
url="ftp://ftp.kde.org">The &aktion; home page</ulink> and the <ulink
 
1641
url="http://xanim.va.pubnix.com/home.html">Xanim home page</ulink></para>
 
1642
 
 
1643
</sect1>
 
1644
 
 
1645
<sect1 id="compilation">
 
1646
<title>Compilation and Installation</title>
 
1647
 
 
1648
<para>In order to compile and install &aktion; on your system, type the
 
1649
following  in the base directory of the &aktion; distribution:</para>
 
1650
 
 
1651
<screen width="40">
 
1652
<prompt>%</prompt> <userinput><command>./configure</command></userinput>
 
1653
<prompt>%</prompt> <userinput><command>make</command></userinput>
 
1654
<prompt>%</prompt> <userinput><command>make</command>
 
1655
 <option>install</option></userinput>
 
1656
</screen>
 
1657
 
 
1658
<para>Since &aktion; uses <command>autoconf</command> and
 
1659
<command>automake</command> you should have not trouble compiling
 
1660
it. Should you run into problems please report them to the &kde; mailing
 
1661
lists.</para>
 
1662
 
 
1663
</sect1>
 
1664
 
 
1665
<sect1 id="configuration">
 
1666
<title>Configuration</title>
 
1667
 
 
1668
<para>Don't forget to install <application>xanim</application> before
 
1669
&aktion;.</para>
 
1670
 
 
1671
</sect1>
 
1672
 
 
1673
</appendix>
 
1674
 
 
1675
 
 
1676
&documentation.index; 
 
1677
</book>
 
1678
<!--
 
1679
Local Variables:
 
1680
mode: sgml
 
1681
sgml-minimize-attributes: nil
 
1682
sgml-general-insert-case: lower
 
1683
End:
 
1684
-->
 
1685