-
Notifications
You must be signed in to change notification settings - Fork 3
/
listing10.html
executable file
·362 lines (299 loc) · 12.5 KB
/
listing10.html
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<!-- BEGIN META TAG INFO -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="home" href="http://developer.apple.com/">
<link rel="find" href="http://developer.apple.com/search/">
<link rel="stylesheet" type="text/css" href="../../documentation/css/adcstyle.css" title="fonts">
<script language="JavaScript" src="../../documentation/js/adc.js" type="text/javascript"></script>
<!-- END META TAG INFO -->
<!-- BEGIN TITLE -->
<title>SimpleVideoOut - /SimpleVideoOut_prefix.h</title>
<!-- END TITLE -->
<script language="JavaScript">
function JumpToNewPage() {
window.location=document.scpopupmenu.gotop.value;
return true;
}
</script>
</head>
<!-- BEGIN BODY OPEN -->
<body>
<!--END BODY OPEN -->
<!-- START CENTER OPEN -->
<center>
<!-- END CENTER OPEN -->
<!-- BEGIN LOGO AND SEARCH -->
<!--#include virtual="/includes/adcnavbar"-->
<!-- END LOGO AND SEARCH -->
<!-- START BREADCRUMB -->
<div id="breadcrumb">
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr>
<td scope="row"><img width="340" height="10" src="images/1dot.gif" alt=""></td>
<td><img width="340" height="10" src="images/1dot.gif" alt=""></td>
</tr>
<tr valign="middle">
<td align="left" colspan="2">
<a href="http://developer.apple.com/">ADC Home</a> > <a href="../../referencelibrary/index.html">Reference Library</a> > <a href="../../samplecode/index.html">Sample Code</a> > <a href="../../samplecode/Carbon/index.html">Carbon</a> > <a href="../../samplecode/Carbon/idxQuickTime-date.html">QuickTime</a> > <A HREF="javascript:location.replace('index.html');">SimpleVideoOut</A> >
</td>
</tr>
<tr>
<td colspan="2" scope="row"><img width="680" height="35" src="images/1dot.gif" alt=""></td>
</tr>
</table>
</div>
<!-- END BREADCRUMB -->
<!-- START MAIN CONTENT -->
<!-- START TITLE GRAPHIC AND INTRO-->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td><h1><div id="pagehead">SimpleVideoOut</div></h1></td>
</tr>
</table>
<!-- END TITLE GRAPHIC AND INTRO -->
<!-- START WIDE COLUMN -->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr align="left" valign="top">
<td id="scdetails">
<h2>/SimpleVideoOut_prefix.h</h2>
<form name="scpopupmenu" onSubmit="return false;" method=post>
<p><strong>View Source Code:</strong>
<select name="gotop" onChange="JumpToNewPage();" style="width:340px"><option selected value="ingnore">Select File</option>
<option value="listing1.html">/ChooseMovieClock.h</option>
<option value="listing2.html">/CVideoOutput.cpp</option>
<option value="listing3.html">/CVideoOutput.h</option>
<option value="listing4.html">/CVideoOutputComponent.cpp</option>
<option value="listing5.html">/CVideoOutputComponent.h</option>
<option value="listing6.html">/GetFile.c</option>
<option value="listing7.html">/GetFile.h</option>
<option value="listing8.html">/plist_carb.r</option>
<option value="listing9.html">/SimpleVideoOut.c</option>
<option value="listing10.html">/SimpleVideoOut_prefix.h</option>
<option value="listing11.html">/SimpleVideoOutMachO_prefix.h</option></select>
</p>
</form>
<p><strong><a href="SimpleVideoOut.zip">Download Sample</a></strong> (“SimpleVideoOut.zip”, 330.7K)<BR>
<strong><a href="SimpleVideoOut.dmg">Download Sample</a></strong> (“SimpleVideoOut.dmg”, 395.5K)</p>
<!--
<p><strong><a href="#">Download Sample</a></strong> (“filename.sit”, 500K)</p>
-->
</td>
</tr>
<tr>
<td scope="row"><img width="680" height="10" src="images/1dot.gif" alt=""><br>
<img height="1" width="680" src="images/1dot_919699.gif" alt=""><br>
<img width="680" height="20" src="images/1dot.gif" alt=""></td>
</tr>
<tr>
<td scope="row">
<!--googleon: index -->
<pre class="sourcecodebox">/* Metrowerks Standard Library * Copyright © 1995-2001 Metrowerks Corporation. All rights reserved. * * $Date: 2004/10/05 00:04:53 $ * $Revision: 1.1.1.1 $ */#ifndef _MSL_ANSI_PREFIX_MAC_H#define _MSL_ANSI_PREFIX_MAC_H#include <os_enum.h>#define __dest_os __mac_os/* JWW - You can change the define of _MWMT to control the behavior of how memory is allocated at the system level. When defined to 0, the traditional NewPtr/DisposePtr toolbox calls are used to request memory from the system. When defined to 1, the multiprocessing MPAllocateAligned/MPFree toolbox calls are used to request memory. Note that the OS must have MP 2.0 or later in order for MPAllocateAligned to be present.*/#ifndef _MWMT #define _MWMT 0 /*- JWW 010426 -*/#endif#ifndef _MSL_IMP_EXP /*- cc 000315 -*/ #define _MSL_IMP_EXP #endif #define _POSIX/* JWW - You can comment out either of the following two defines to limit the MSL library to using only one style of the file system APIs or the other. When _MSL_USE_OLD_FILE_APIS is 1 (but _MSL_USE_NEW_FILE_APIS is 0), MSL operates exactly the same way it always has since MSL first shipped. When _MSL_USE_NEW_FILE_APIS is 1 (but _MSL_USE_OLD_FILE_APIS is 0), MSL uses the new calls introduced in OS 9 to access the file system. This means you get access to filenames longer than 32 characters and files greater than 2GB. You must be careful to not use this configuration on a system which does not support the new APIs since no test is done to see if the file system routines are actually present before using them. When both _MSL_USE_NEW_FILE_APIS and _MSL_USE_OLD_FILE_APIS are 1, MSL tests the system to determine if the enhanced file system APIs are available, and if so it uses them. If not, it falls back to the traditional method of accessing files. This increases the library size since twice the amount of file system code is necessary, but you get the safety of knowing your code will operate properly on older systems. It is an error for both _MSL_USE_NEW_FILE_APIS and _MSL_USE_OLD_FILE_APIS to be 0.*/#ifndef _MSL_USE_OLD_FILE_APIS #define _MSL_USE_OLD_FILE_APIS 1#endif#ifndef _MSL_USE_NEW_FILE_APIS #define _MSL_USE_NEW_FILE_APIS 1#endif#if _MSL_USE_NEW_FILE_APIS && (!defined(__POWERPC__)) /* JWW - _MSL_USE_NEW_FILE_APIS cannot be used with 68K targets */ #undef _MSL_USE_NEW_FILE_APIS #define _MSL_USE_NEW_FILE_APIS 0#endif#if _MSL_USE_OLD_FILE_APIS && _MSL_USE_NEW_FILE_APIS #define _MSL_USE_OLD_AND_NEW_FILE_APIS 1#elif _MSL_USE_OLD_FILE_APIS || _MSL_USE_NEW_FILE_APIS #define _MSL_USE_OLD_AND_NEW_FILE_APIS 0#else #error At least one of _MSL_USE_OLD_FILE_APIS or _MSL_USE_NEW_FILE_APIS must be on!#endif#define __MSL_LONGLONG_SUPPORT__/* #define _MSL_MALLOC_0_RETURNS_NON_NULL *//* Turn on _MSL_OS_DIRECT_MALLOC for a malloc alternative that simply goes straight to the OS with no pooling. Recompile the C lib when flipping this switch. This will typically cause poorer performance, but may be of help when debugging memory problems. *//* #define _MSL_OS_DIRECT_MALLOC *//* #define _MSL_PRO4_MALLOC *//* Turn on and off namespace std here */#if defined(__cplusplus) && __embedded_cplusplus == 0 #define _MSL_USING_NAMESPACE /* Turn on support for wchar_t as a built in type */ /* #pragma wchar_type on */ /* vss not implemented yet */#endif/*- hh 980217 __ANSI_OVERLOAD__ controls whether or not the prototypes in the C++ standard section 26.5 get added to <cmath> and <math.h> or not. If __ANSI_OVERLOAD__ is defined, and a C++ compiler is used, then these functions are available, otherwise not. There is one exception to the above rule: double abs(double); is available in <cmath> and <math.h> if the C++ compiler is used. __ANSI_OVERLOAD__ has no effect on the availability of this one function. There is no need to recompile the C or C++ libs when this switch is flipped. If _MSL_INTEGRAL_MATH is defined then in addition to the prototypes added by __ANSI_OVERLOAD__, there are also non-standard integral versions of these prototypes added as well. This is to allow client code to put integral arguments into math functions, and avoid ambiguous call errors.*/#define __ANSI_OVERLOAD__ /*- hh 990201 -*/#define _MSL_INTEGRAL_MATH/*For MacHeaders*//*if you are using PP or custom precompiled headers please 1) set MSL_USE_PRECOMPILED_HEADERS to 0 2) make sure OLDROUTINENAMES, OLDROUTINELOCATIONS are set to false before MacHeaders is precompiled or parts of Universal Headers are included*//*- hh 980727 -*/#ifndef OLDROUTINENAMES #define OLDROUTINENAMES 0#endif#ifndef OLDROUTINELOCATIONS #define OLDROUTINELOCATIONS 0#endif/*#define _MWMT 1*/#ifndef MSL_USE_PRECOMPILED_HEADERS #define MSL_USE_PRECOMPILED_HEADERS 0 /*Set to have ansi_prefix include some form of MacHeaders*/#endif #if (MSL_USE_PRECOMPILED_HEADERS == 1 ) #ifndef USE_PRECOMPILED_MAC_HEADERS #define USE_PRECOMPILED_MAC_HEADERS 1 /*Set to 0 if you don't want to use precompiled MacHeaders*/ #endif #if (USE_PRECOMPILED_MAC_HEADERS != 1 ) #include <MacHeaders.c> #else #if __POWERPC__ #ifdef __cplusplus #include <MacHeadersPPC++> #else #include <MacHeadersPPC> #endif #endif #endif#endif /*MSL_USE_PRECOMPILED_HEADERS*//*For ZoneRanger If you want malloc to register its pools with ZoneRanger, add ZoneRanger.c to your project. ZoneRanger support is no longer part of MSL.*//*For DebugNewNB: this assumes that the only placement versions of new are in the following files: mmemory.h, new.h, and bstring.h. DebugNew does not currently work with the placement versions of operator new1) add DebugNew.cp to your project2) add this to New.cp #ifdef DebugNew_H #undef new #endif3) to zap memory, add gDebugNewFlags |= dnDontFreeBlocks; right before your problem code4) put DebugNewForgetLeaks() underneath this5) put DebugNewReportLeaks() at the end of your problem code6) uncomment lines below7) run*//*to activate debug new, uncomment the following lines*//*#define DEBUG_NEW 2#include <DebugNew.h>#ifdef DebugNew_H #define new NEW#endif*/#endif /* _MSL_ANSI_PREFIX_MAC_H *//*#pragma once on*//* Switching this pragma on, can improve compilation speed but it may cause problems with the use of assert.h, which generally depends upon being actually included more than once during compilation. *//* Change record: * mm 970110 Changed wrapper for long long support * hh 980727 Wrapped OLDROUTINENAMES and OLDROUTINELOCATIONS to prevent changing previously defined values. * mf 980811 commented out #define __ANSI_OVERLOAD__ * hh 990201 turned __ANSI_OVERLOAD__ on because we now have foo(int) support * hh 990227 Added flag for malloc - ZoneRanger cooperation * hh 000302 Moved the namespace flag to here from mslGlobals.h * cc 000315 added _MSL_IMP_EXP * JWW 001030 Added _MSL_USE_OLD_FILE_APIS and _MSL_USE_NEW_FILE_APIS definitions * JWW 010426 Added _MWMT for using Multiprocessing for obtaining memory */</pre>
<!--googleoff: index -->
</td>
</tr>
</table>
<!-- END WIDE COLUMN -->
<!-- END MAIN CONTENT -->
<table width="680" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div style="width: 100%; height: 1px; background-color: #919699; margin-top: 5px; margin-bottom: 15px"></div></td>
</tr>
<tr>
<td align="center"><br/>
<table border="0" cellpadding="0" cellspacing="0" class="graybox">
<tr>
<th>Did this document help you?</th>
</tr>
<tr>
<td>
<div style="margin-bottom: 8px"><a href="http://developer.apple.com/feedback/?v=1&url=/samplecode/SimpleVideoOut/listing10.html%3Fid%3DDTS10000809-1.0&media=dvd" target=_new>Yes</a>: Tell us what works for you.</div>
<div style="margin-bottom: 8px"><a href="http://developer.apple.com/feedback/?v=2&url=/samplecode/SimpleVideoOut/listing10.html%3Fid%3DDTS10000809-1.0&media=dvd" target=_new>It’s good, but:</a> Report typos, inaccuracies, and so forth.</div>
<div><a href="http://developer.apple.com/feedback/?v=3&url=/samplecode/SimpleVideoOut/listing10.html%3Fid%3DDTS10000809-1.0&media=dvd" target=_new>It wasn’t helpful</a>: Tell us what would have helped.</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!-- START BOTTOM APPLE NAVIGATION -->
<!--#include virtual="/includes/footer"-->
<!-- END BOTTOM APPLE NAVIGATION -->
<!-- START CENTER CLOSE -->
</center>
<!-- END CENTER CLOSE -->
</body>
</html>