File: qt4l_opening.html

package info (click to toggle)
libquicktime 2%3A1.2.4-17
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,832 kB
  • sloc: ansic: 55,312; sh: 10,976; makefile: 473; sed: 16
file content (45 lines) | stat: -rw-r--r-- 904 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<TITLE>Opening</TITLE>


<H1>Step 1: Open the file</H1>


The first step in any Quicktime operation is to open the file.  Include
the Quicktime header:<P>

<CODE>
#include &#60quicktime.h&#62
</CODE><P>

create a quicktime pointer:<P>

<CODE>
quicktime_t *file;<P>
</CODE>

and open the file in read or write mode.  The following code opens
a file in read only:<P>

<CODE>
file = quicktime_open("test.mov", 1, 0));<P>
</CODE><P>

Argument 1 is the path to a file.  Argument 2 is a flag for read
access.  Argument 3 is a flag for write access.  You can specify read
or write access by setting these flags.  Never specify read and
write.<P>

quicktime_open returns a NULL if the file couldn't be opened or the
format couldn't be recognized.  Now you can do all sorts of operations
on the file.<P>



When you're done using the file, call<P>

<CODE>
quicktime_close(quicktime_t *file);<BR>
</CODE>
<P>
<P>