|
| PVideoInputEmulatedDevice () |
|
| ~PVideoInputEmulatedDevice () |
|
PBoolean | Start () |
| Start the video device I/O. More...
|
|
PBoolean | Stop () |
| Stop the video device I/O capture. More...
|
|
PBoolean | IsCapturing () |
| Determine if the video device I/O capture is in progress. More...
|
|
virtual PBoolean | SetColourFormat (const PString &colourFormat) |
| Set the colour format to be used. More...
|
|
virtual int | GetNumChannels () |
| Get the number of video channels available on the device. More...
|
|
virtual PStringArray | GetChannelNames () |
| Get the names of video channels available on the device. More...
|
|
virtual PBoolean | GetFrameSizeLimits (unsigned &minWidth, unsigned &minHeight, unsigned &maxWidth, unsigned &maxHeight) |
| Get the minimum & maximum size of a frame on the device. More...
|
|
virtual PBoolean | SetFrameRate (unsigned rate) |
| Set the video frame rate to be used on the device. More...
|
|
virtual PBoolean | SetFrameSize (unsigned width, unsigned height) |
| Set the frame size to be used. More...
|
|
| ~PVideoInputDevice () |
| Create a new video input device. More...
|
|
virtual bool | GetDeviceCapabilities (Capabilities *capabilities) const |
| Retrieve a list of Device Capabilities. More...
|
|
virtual PBoolean | Open (const PString &deviceName, PBoolean startImmediate=true)=0 |
| Open the device given the device name. More...
|
|
virtual PBoolean | Close () |
| Close the device. More...
|
|
virtual PBoolean | CanCaptureVideo () const |
| Is the device a camera, and obtain video. More...
|
|
virtual PBoolean | SetNearestFrameSize (unsigned width, unsigned height) |
| Set the nearest available frame size to be used. More...
|
|
bool | GetFrame (BYTE *buffer, PINDEX &bytesReturned, bool &keyFrame, bool wait=true) |
| Grab a frame. More...
|
|
virtual PBoolean | GetFrame (PBYTEArray &frame) |
|
virtual PBoolean | GetFrame (PBYTEArray &frame, unsigned &width, unsigned &height) |
|
bool | GetFrameData (BYTE *buffer, PINDEX *bytesReturned, bool &keyFrame) |
| For backward compatibility. More...
|
|
bool | GetFrameData (BYTE *buffer, PINDEX *bytesReturned=NULL) |
| For backward compatibility. More...
|
|
bool | GetFrameDataNoDelay (BYTE *buffer, PINDEX *bytesReturned, bool &keyFrame) |
| For backward compatibility. More...
|
|
bool | GetFrameDataNoDelay (BYTE *buffer, PINDEX *bytesReturned=NULL) |
| For backward compatibility. More...
|
|
virtual bool | FlowControl (const void *flowData) |
| Pass data to the inputdevice for flowControl determination. More...
|
|
virtual bool | SetCaptureMode (unsigned mode) |
| Set the capture modes for implementations that support them. More...
|
|
virtual int | GetCaptureMode () const |
| Returns the current capture mode. More...
|
|
virtual bool | SetControl (PVideoControlInfo::Types type, int value, ControlMode mode) |
|
virtual const PVideoControlInfo & | GetControlInfo (PVideoControlInfo::Types type) const |
|
virtual | ~PVideoDevice () |
| Delete structures created by PVideoDevice();. More...
|
|
virtual void | PrintOn (ostream &strm) const |
| Output the contents of the object to the stream. More...
|
|
| P_DECLARE_STREAMABLE_ENUM (VideoFormat, PAL, NTSC, SECAM, Auto) |
|
virtual PString | GetDeviceName () const |
| Get the device name of the open device. More...
|
|
virtual PStringArray | GetDeviceNames () const =0 |
| Get a list of all of the drivers available. More...
|
|
virtual PBoolean | OpenFull (const OpenArgs &args, PBoolean startImmediate=true) |
| Open the device given the device name. More...
|
|
virtual PBoolean | IsOpen ()=0 |
| Determine if the device is currently open. More...
|
|
virtual PBoolean | SetVideoFormat (VideoFormat videoFormat) |
| Set the video format to be used. More...
|
|
virtual VideoFormat | GetVideoFormat () const |
| Get the video format being used. More...
|
|
virtual PBoolean | SetChannel (int channelNumber) |
| Set the video channel to be used on the device. More...
|
|
virtual int | GetChannel () const |
| Get the video channel to be used on the device. More...
|
|
virtual bool | SetFrameInfoConverter (const PVideoFrameInfo &info) |
| Set the frame info to be used, trying converters if available. More...
|
|
virtual PBoolean | SetColourFormatConverter (const PString &colourFormat) |
| Set the colour format to be used, trying converters if available. More...
|
|
virtual PBoolean | GetVFlipState () |
| Get the video conversion vertical flip state. More...
|
|
virtual PBoolean | SetVFlipState (PBoolean newVFlipState) |
| Set the video conversion vertical flip state. More...
|
|
virtual PBoolean | SetFrameSizeConverter (unsigned width, unsigned height, ResizeMode resizeMode=eMaxResizeMode) |
| Set the frame size to be used, trying converters if available. More...
|
|
virtual PBoolean | GetFrameSize (unsigned &width, unsigned &height) const |
| Get the frame size being used. More...
|
|
virtual PString | GetColourFormat () const |
| Get the colour format being used. More...
|
|
virtual PINDEX | GetMaxFrameBytes () |
| Get the maximum frame size in bytes. More...
|
|
virtual int | GetLastError () const |
| Get the last error code. More...
|
|
virtual bool | GetAttributes (Attributes &attributes) |
| Get video attributes. More...
|
|
virtual bool | SetAttributes (const Attributes &attributes) |
| Set video attributes. More...
|
|
virtual PBoolean | SetVideoChannelFormat (int channelNumber, VideoFormat videoFormat) |
| Set VideoFormat and VideoChannel in one ioctl. More...
|
|
virtual void | SetPreferredColourFormat (const PString &colourFmt) |
| Set preferred native colour format from video capture device. More...
|
|
virtual PString | GetPreferredColourFormat () |
| Get preferred native colour format from video capture device. More...
|
|
| P_DECLARE_ENUM_EX (ResizeMode, eMaxResizeMode, eScale, 0, eCropCentre, eCropTopLeft, eScaleKeepAspect) |
|
| PVideoFrameInfo () |
| Construct video frame information. More...
|
|
| PVideoFrameInfo (unsigned frameWidth, unsigned frameHeight, const PString &colourFormat=PVideoFrameInfo::YUV420P(), unsigned frameRate=15, ResizeMode resizeMode=eScale) |
|
virtual Comparison | Compare (const PObject &obj) const |
| Compare the two PVideoFrameInfo and return their relative rank. More...
|
|
virtual unsigned | GetFrameWidth () const |
| Get the width of the frame being used. More...
|
|
virtual unsigned | GetFrameHeight () const |
| Get the height of the frame being used. More...
|
|
virtual PBoolean | SetFrameSar (unsigned width, unsigned height) |
| Set the Storage Aspect Ratio size to be used. More...
|
|
virtual PBoolean | GetSarSize (unsigned &width, unsigned &height) const |
| Get the Storage Aspect Ratio size being used. More...
|
|
virtual unsigned | GetSarWidth () const |
| Get the width of the Storage Aspect Ratio being used. More...
|
|
virtual unsigned | GetSarHeight () const |
| Get the height of the Storage Aspect Ratio being used. More...
|
|
virtual unsigned | GetFrameRate () const |
| Get the video frame rate used on the device. More...
|
|
virtual void | SetResizeMode (ResizeMode mode) |
| Set the resize mode to be used. More...
|
|
virtual ResizeMode | GetResizeMode () const |
| Get the resize mode to be used. More...
|
|
virtual PINDEX | CalculateFrameBytes () const |
| Get the number of bytes of an image, given a particular width, height and colour format. More...
|
|
virtual bool | Parse (const PString &str) |
| Parse a descriptor string for the video format. More...
|
|
__inline unsigned | GetTraceContextIdentifier () const |
| Get PTRACE context identifier. More...
|
|
__inline void | SetTraceContextIdentifier (unsigned id) |
|
__inline void | SetTraceContextIdentifier (const PObject &obj) |
|
__inline void | SetTraceContextIdentifier (const PObject *obj) |
|
__inline void | CopyTraceContextIdentifier (PObject &obj) const |
|
__inline void | CopyTraceContextIdentifier (PObject *obj) const |
|
virtual | ~PObject () |
|
__inline const char * | GetClass () const |
|
__inline bool | IsClass (const char *name) const |
|
__inline const PObject * | PTraceObjectInstance () const |
|
virtual PObject * | Clone () const |
| Create a copy of the class on the heap. More...
|
|
template<class CLS > |
CLS * | CloneAs () const |
| As for Clone() but converts to specified type. More...
|
|
virtual PINDEX | HashFunction () const |
| This function yields a hash value required by the PDictionary class. More...
|
|
virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
| Determine the byte wise comparison of two objects. More...
|
|
bool | operator== (const PObject &obj) const |
| Compare the two objects. More...
|
|
bool | operator!= (const PObject &obj) const |
| Compare the two objects. More...
|
|
bool | operator< (const PObject &obj) const |
| Compare the two objects. More...
|
|
bool | operator> (const PObject &obj) const |
| Compare the two objects. More...
|
|
bool | operator<= (const PObject &obj) const |
| Compare the two objects. More...
|
|
bool | operator>= (const PObject &obj) const |
| Compare the two objects. More...
|
|
virtual void | ReadFrom (istream &strm) |
| Input the contents of the object from the stream. More...
|
|
|
static PStringArray | GetDriverNames (PPluginManager *pluginMgr=NULL) |
| Get the list of available video input drivers (plug-ins) More...
|
|
static PStringArray | GetDriversDeviceNames (const PString &driverName, PPluginManager *pluginMgr=NULL) |
| Get video input devices that correspond to the specified driver name. More...
|
|
static PVideoInputDevice * | CreateDevice (const PString &driverName, PPluginManager *pluginMgr=NULL) |
| Create the video input device that corresponds to the specified driver name. More...
|
|
static PVideoInputDevice * | CreateDeviceByName (const PString &deviceName, const PString &driverName=PString::Empty(), PPluginManager *pluginMgr=NULL) |
|
static PVideoInputDevice * | CreateOpenedDevice (const PString &driverName, const PString &deviceName, bool startImmediate=true, PPluginManager *pluginMgr=NULL) |
| Create an opened video input device that corresponds to the specified names. More...
|
|
static PVideoInputDevice * | CreateOpenedDevice (const PString &deviceName, bool startImmediate=true, PPluginManager *pluginMgr=NULL) |
|
static PVideoInputDevice * | CreateOpenedDevice (const OpenArgs &args, bool startImmediate=true) |
| Create an opened video output device that corresponds to the specified arguments. More...
|
|
static bool | GetDeviceCapabilities (const PString &deviceName, Capabilities *capabilities, PPluginManager *pluginMgr=NULL) |
| Retrieve a list of Device Capabilities for particular device. More...
|
|
static bool | GetDeviceCapabilities (const PString &deviceName, const PString &driverName, Capabilities *caps, PPluginManager *pluginMgr=NULL) |
| Retrieve a list of Device Capabilities for a particular driver. More...
|
|
static PBoolean | GetInputDeviceCapabilities (const PString &, Capabilities *) |
|
static const PString & | YUV420P () |
|
static PINDEX | CalculateFrameBytes (unsigned width, unsigned height, const PString &colourFormat=PVideoFrameInfo::YUV420P()) |
|
static bool | ParseSize (const PString &str, unsigned &width, unsigned &height) |
| Parse the standard size string names. More...
|
|
static PString | AsString (unsigned width, unsigned height) |
| Get a width/height as a standard size string name. More...
|
|
static PStringArray | GetSizeNames () |
| Get all "known" image size names. More...
|
|
static __inline void | CopyTraceContextIdentifier (PObject &to, const PObject &from) |
|
static __inline void | CopyTraceContextIdentifier (PObject &to, const PObject *from) |
|
static __inline void | CopyTraceContextIdentifier (PObject *to, const PObject &from) |
|
static __inline void | CopyTraceContextIdentifier (PObject *to, const PObject *from) |
|
static __inline const char * | Class () |
|
static __inline const PObject * | PTraceObjectInstance (const char *) |
|
static __inline const PObject * | PTraceObjectInstance (const PObject *obj) |
|
template<typename T > |
static Comparison | Compare2 (T v1, T v2) |
| Compare two types, returning Comparison type. More...
|
|
static Comparison | InternalCompareObjectMemoryDirect (const PObject *obj1, const PObject *obj2, PINDEX size) |
| Internal function caled from CompareObjectMemoryDirect() More...
|
|