Mac OS 9
ZoomedVideo.h
Go to the documentation of this file.
1 
19 #ifndef __ZOOMEDVIDEO__
20 #define __ZOOMEDVIDEO__
21 
22 #ifndef __MACTYPES__
23 #include <MacTypes.h>
24 #endif
25 
26 #ifndef __DEVICES__
27 #include <Devices.h>
28 #endif
29 
30 #if PRAGMA_ONCE
31 #pragma once
32 #endif
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 #if PRAGMA_IMPORT
39 #pragma import on
40 #endif
41 
42 #if PRAGMA_STRUCT_ALIGN
43 #pragma options align = mac68k
44 #elif PRAGMA_STRUCT_PACKPUSH
45 #pragma pack(push, 2)
46 #elif PRAGMA_STRUCT_PACK
47 #pragma pack(2)
48 #endif
49 
50 #define kZVDriverName "\p.ZVPort"
51 
52 /* Control codes */
53 
54 enum {
55  cscZVVideoEnable = 2, /* Used to enable or disable ZV Video*/
56  cscZVSetCurrentAnalogValue = 3, /* Used to set brightness, contrast, etc.*/
57  cscZVSetInput = 9, /* Set video source to selected input*/
58  cscZVSetInputStandard = 11, /* Set the input to NTSC, PAL, or SECAM*/
59  cscZVGetMaxSourceRect = 12 /* Get Maximum Source Rect*/
60 };
61 
62 /* Status codes*/
63 enum {
64  cscZVGetVideoEnable = 2, /* Indicates whether ZV Video is enabled*/
65  cscZVGetCurrentAnalogValue = 3, /* Used to get brightness, contrast, etc.*/
66  cscZVGetDefaultAnalogValue = 4,
67  cscZVGetVSyncState = 5, /* Used to look for a Vertical Sync on ZV Video*/
68  cscZVGetInfo = 6, /* Returns the ZV Information*/
69  cscZVGetInputFlags = 7, /* Returns the input flags.*/
70  cscZVGetNumberOfInputs = 8, /* Returns the number of video inputs*/
71  cscZVGetInput = 9, /* Zero-based input number*/
72  cscZVGetInputFormat = 10 /* Returns whether input is compsite/s-video*/
73 };
74 
82 typedef UInt32 ZVFeatures;
83 enum {
84  kZVHasAudio = (1 << 0),
85  kZVHasTVTuner = (1 << 1),
86  kZVHasContrast = (1 << 16),
87  kZVHasBrightness = (1 << 17),
88  kZVHasSharpness = (1 << 18),
89  kZVHasSaturation = (1 << 19),
90  kZVHasHue = (1 << 20)
91 };
92 
93 struct ZVInfo {
94  ZVFeatures features;
95  UInt32 currentFlags;
96  Rect activeRect;
97  Boolean isInterlaced;
98  SInt8 filler;
99  UInt32 reserved1;
100  UInt32 reserved2;
101 };
102 typedef struct ZVInfo ZVInfo;
103 struct ZVFlagRecord {
104  Boolean csFlag;
105  SInt8 filler;
106 };
107 typedef struct ZVFlagRecord ZVFlagRecord;
115 typedef UInt16 ZVAnalogControlSelector;
116 enum {
117  kZVContrast = 1, /* Range: 0x0 <= no change to image, larger values increase
118  the contrast*/
119  kZVBrightness =
120  2, /* Range: 0x0 <= darkest setting, 0xffff = lightest setting*/
121  kZVSharpness = 3, /* Range: 0x0 <= no sharpness filtering, 0xffff <= full
122  sharpness filtering*/
123  kZVSaturation =
124  4, /* Range: 0x0 <= min saturation, 0xffff <= max saturation */
125  kZVHue = 5, /* Range: 0x0 <= -180� shift in hue, 0xffff <= 179� shift, 0x8000
126  <=0� shift*/
127  kZVBlackLevel = 6, /* Range: 0x0 <= max black, 0xffff <= min black level*/
128  kZVWhiteLevel = 7 /* Range: 0x0 <= min white, 0xffff <= max white level*/
129 };
130 
132  ZVAnalogControlSelector whichControl;
133  UInt16 value;
134 };
136 
137 #if PRAGMA_STRUCT_ALIGN
138 #pragma options align = reset
139 #elif PRAGMA_STRUCT_PACKPUSH
140 #pragma pack(pop)
141 #elif PRAGMA_STRUCT_PACK
142 #pragma pack()
143 #endif
144 
145 #ifdef PRAGMA_IMPORT_OFF
146 #pragma import off
147 #elif PRAGMA_IMPORT
148 #pragma import reset
149 #endif
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* __ZOOMEDVIDEO__ */
Device Manager Interfaces.
Basic Macintosh data types.
unsigned char Boolean
Definition: MacTypes.h:318
UInt32 ZVFeatures
Definition: ZoomedVideo.h:82
UInt16 ZVAnalogControlSelector
Definition: ZoomedVideo.h:115
Definition: MacTypes.h:527
Definition: ZoomedVideo.h:131
Definition: ZoomedVideo.h:103
Definition: ZoomedVideo.h:93