Uncommented beaudio code
[pwlib.git] / src / ptlib / unix / dummyvideo.cxx
blob0ca3f09e256fbd9ee95ecdeef80563e3fcae09af
1 /*
2 * dummyvideo.cxx
4 * Classes to support streaming video input (grabbing) and output.
6 * Portable Windows Library
8 * Copyright (c) 1993-2001 Equivalence Pty. Ltd.
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 * the License for the specific language governing rights and limitations
18 * under the License.
20 * The Original Code is Portable Windows Library.
22 * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 * Contributor(s): Roger Hardiman <roger@freebsd.org>
26 * $Log$
27 * Revision 1.8 2004/01/02 23:30:18 rjongbloed
28 * Removed extraneous static function for getting input device names that has been deprecated during the plug ins addition.
30 * Revision 1.7 2002/04/10 08:40:36 rogerh
31 * Simplify the SetVideoChannelFormat() code. Use the implementation in the
32 * ancestor class.
34 * Revision 1.6 2002/04/05 06:41:54 rogerh
35 * Apply video changes from Damien Sandras <dsandras@seconix.com>.
36 * The Video Channel and Format are no longer set in Open(). Instead
37 * call the new SetVideoChannelFormat() method. This makes video capture
38 * and GnomeMeeting more stable with certain Linux video capture devices.
40 * Revision 1.5 2002/01/14 11:52:44 rogerh
41 * Add TestAllFormats
43 * Revision 1.4 2001/12/05 08:34:41 rogerh
44 * Add more dummy functions
46 * Revision 1.3 2001/09/24 09:11:07 rogerh
47 * Add dummy methods, submitted by Andreas Wrede <awrede@mac.com>
49 * Revision 1.2 2001/06/27 17:43:32 rogerh
50 * MakeOpen to return FALSE. Also change every things else to return failure.
52 * Revision 1.1 2001/06/27 17:27:23 rogerh
53 * Dummy video allows code dependent on PVideoInputDevice to compile and link.
54 * It has no functionality.
58 #pragma implementation "videoio.h"
60 #include <ptlib.h>
61 #include <ptlib/videoio.h>
62 #include <ptlib/vfakeio.h>
63 #include <ptlib/vconvert.h>
65 ///////////////////////////////////////////////////////////////////////////////
66 // PVideoInputDevice
68 PVideoInputDevice::PVideoInputDevice()
73 BOOL PVideoInputDevice::Open(const PString & devName, BOOL startImmediate)
75 return FALSE;
79 BOOL PVideoInputDevice::IsOpen()
81 return FALSE;
85 BOOL PVideoInputDevice::Close()
87 return FALSE;
91 BOOL PVideoInputDevice::Start()
93 return FALSE;
97 BOOL PVideoInputDevice::Stop()
99 return FALSE;
103 BOOL PVideoInputDevice::IsCapturing()
105 return FALSE;
109 BOOL PVideoInputDevice::SetVideoFormat(VideoFormat newFormat)
111 return FALSE;
115 int PVideoInputDevice::GetBrightness()
117 return -1;
121 BOOL PVideoInputDevice::SetBrightness(unsigned newBrightness)
123 return FALSE;
127 int PVideoInputDevice::GetHue()
129 return -1;
133 BOOL PVideoInputDevice::SetHue(unsigned newHue)
135 return FALSE;
139 int PVideoInputDevice::GetContrast()
141 return -1;
145 BOOL PVideoInputDevice::SetContrast(unsigned newContrast)
147 return FALSE;
151 BOOL PVideoInputDevice::GetParameters (int *whiteness, int *brightness,
152 int *colour, int *contrast, int *hue)
154 return FALSE;
158 int PVideoInputDevice::GetNumChannels()
160 return 0;
164 BOOL PVideoInputDevice::SetChannel(int newChannel)
166 return FALSE;
170 BOOL PVideoInputDevice::SetColourFormat(const PString & newFormat)
172 return FALSE;
176 BOOL PVideoInputDevice::SetFrameRate(unsigned rate)
178 return FALSE;
182 BOOL PVideoInputDevice::GetFrameSizeLimits(unsigned & minWidth,
183 unsigned & minHeight,
184 unsigned & maxWidth,
185 unsigned & maxHeight)
187 return FALSE;
191 BOOL PVideoInputDevice::SetFrameSize(unsigned width, unsigned height)
193 return FALSE;
197 PINDEX PVideoInputDevice::GetMaxFrameBytes()
199 return 0;
204 BOOL PVideoInputDevice::GetFrameData(BYTE * buffer, PINDEX * bytesReturned)
206 return FALSE;
210 BOOL PVideoInputDevice::GetFrameDataNoDelay(BYTE * buffer, PINDEX * bytesReturned)
212 return FALSE;
216 void PVideoInputDevice::ClearMapping()
220 BOOL PVideoInputDevice::VerifyHardwareFrameSize(unsigned width,
221 unsigned height)
223 // Assume the size is valid
224 return TRUE;
227 BOOL PVideoInputDevice::TestAllFormats()
229 return TRUE;
232 // End Of File ///////////////////////////////////////////////////////////////