qt4l_opening.html

来自「这个库实现了录象功能」· HTML 代码 · 共 46 行

HTML
46
字号
<TITLE>Opening</TITLE><H1>Step 1: Open the file</H1>The first step in any Quicktime operation is to open the file.  Includethe 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 opensa 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 readaccess.  Argument 3 is a flag for write access.  You can specify reador write access by setting these flags.  Never specify read andwrite.<P>quicktime_open returns a NULL if the file couldn't be opened or theformat couldn't be recognized.  Now you can do all sorts of operationson the file.<P>When you're done using the file, call<P><CODE>quicktime_close(quicktime_t *file);<BR></CODE><P><P>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?