Public Member Functions |
| PVideoOutputDevice () |
| Create a new video output device.
|
virtual | ~PVideoOutputDevice () |
| Close the video output device on destruction.
|
virtual PBoolean | Close () |
| Close the device.
|
virtual PBoolean | Start () |
| Start the video device I/O display.
|
virtual PBoolean | Stop () |
| Stop the video device I/O display.
|
virtual PBoolean | CanCaptureVideo () const |
| Is the device a camera, and obtain video.
|
virtual PBoolean | SetFrameData (unsigned x, unsigned y, unsigned width, unsigned height, const BYTE *data, PBoolean endFrame=true)=0 |
| Set a section of the output frame buffer.
|
virtual PBoolean | SetFrameData (unsigned x, unsigned y, unsigned width, unsigned height, const BYTE *data, PBoolean endFrame, unsigned flags) |
virtual PBoolean | SetFrameData (unsigned x, unsigned y, unsigned width, unsigned height, unsigned sarwidth, unsigned sarheight, const BYTE *data, PBoolean endFrame, unsigned flags, const void *mark) |
virtual PBoolean | DisableDecode () |
| Allow the outputdevice decide whether the decoder should ignore decode hence not render any output.
|
virtual PBoolean | GetPosition (int &x, int &y) const |
| Get the position of the output device, where relevant.
|
virtual bool | SetPosition (int x, int y) |
| Set the position of the output device, where relevant.
|
virtual | ~PVideoDevice () |
| Delete structures created by PVideoDevice();.
|
const PString & | GetDeviceName () const |
| Get the device name of the open device.
|
virtual PStringArray | GetDeviceNames () const =0 |
| Get a list of all of the drivers available.
|
virtual PBoolean | OpenFull (const OpenArgs &args, PBoolean startImmediate=true) |
| Open the device given the device name.
|
virtual PBoolean | Open (const PString &deviceName, PBoolean startImmediate=true)=0 |
| Open the device given the device name.
|
virtual PBoolean | IsOpen ()=0 |
| Determine if the device is currently open.
|
virtual PBoolean | SetVideoFormat (VideoFormat videoFormat) |
| Set the video format to be used.
|
virtual VideoFormat | GetVideoFormat () const |
| Get the video format being used.
|
virtual int | GetNumChannels () |
| Get the number of video channels available on the device.
|
virtual PBoolean | SetChannel (int channelNumber) |
| Set the video channel to be used on the device.
|
virtual int | GetChannel () const |
| Get the video channel to be used on the device.
|
virtual PBoolean | SetColourFormatConverter (const PString &colourFormat) |
| Set the colour format to be used, trying converters if available.
|
virtual PBoolean | GetVFlipState () |
| Get the video conversion vertical flip state.
|
virtual PBoolean | SetVFlipState (PBoolean newVFlipState) |
| Set the video conversion vertical flip state.
|
virtual PBoolean | GetFrameSizeLimits (unsigned &minWidth, unsigned &minHeight, unsigned &maxWidth, unsigned &maxHeight) |
| Get the minimum & maximum size of a frame on the device.
|
virtual PBoolean | SetFrameSizeConverter (unsigned width, unsigned height, ResizeMode resizeMode=eMaxResizeMode) |
| Set the frame size to be used, trying converters if available.
|
virtual PBoolean | SetFrameSizeConverter (unsigned width, unsigned height, PBoolean) |
| Set the frame size to be used, trying converters if available.
|
virtual PBoolean | SetNearestFrameSize (unsigned width, unsigned height) |
| Set the nearest available frame size to be used.
|
virtual PBoolean | SetFrameSize (unsigned width, unsigned height) |
| Set the frame size to be used.
|
virtual PBoolean | GetFrameSize (unsigned &width, unsigned &height) const |
| Get the frame size being used.
|
virtual PINDEX | GetMaxFrameBytes ()=0 |
| Get the maximum frame size in bytes.
|
int | GetLastError () const |
| Get the last error code.
|
virtual int | GetBrightness () |
| Get the brightness of the image.
|
virtual PBoolean | SetBrightness (unsigned newBrightness) |
| Set brightness of the image.
|
virtual int | GetWhiteness () |
| Get the whiteness of the image.
|
virtual PBoolean | SetWhiteness (unsigned newWhiteness) |
| Set whiteness of the image.
|
virtual int | GetColour () |
| Get the colour of the image.
|
virtual PBoolean | SetColour (unsigned newColour) |
| Set colour of the image.
|
virtual int | GetContrast () |
| Get the contrast of the image.
|
virtual PBoolean | SetContrast (unsigned newContrast) |
| Set contrast of the image.
|
virtual int | GetHue () |
| Get the hue of the image.
|
virtual PBoolean | SetHue (unsigned newHue) |
| Set hue of the image.
|
virtual PBoolean | GetParameters (int *whiteness, int *brightness, int *colour, int *contrast, int *hue) |
| Return whiteness, brightness, colour, contrast and hue in one call.
|
virtual PBoolean | SetVideoChannelFormat (int channelNumber, VideoFormat videoFormat) |
| Set VideoFormat and VideoChannel in one ioctl.
|
void | SetPreferredColourFormat (const PString &colourFmt) |
| Set preferred native colour format from video capture device.
|
const PString & | GetPreferredColourFormat () |
| Get preferred native colour format from video capture device.
|
| PVideoFrameInfo () |
| Construct video frame information.
|
| PVideoFrameInfo (unsigned frameWidth, unsigned frameHeight, const PString &colourFormat="YUV420P", unsigned frameRate=15, ResizeMode resizeMode=eScale) |
virtual void | PrintOn (ostream &strm) const |
| Output the contents of the object to the stream.
|
virtual unsigned | GetFrameWidth () const |
| Get the width of the frame being used.
|
virtual unsigned | GetFrameHeight () const |
| Get the height of the frame being used.
|
virtual PBoolean | SetFrameSar (unsigned width, unsigned height) |
| Set the sar size to be used.
|
virtual PBoolean | GetSarSize (unsigned &width, unsigned &height) const |
| Get the sar size being used.
|
virtual unsigned | GetSarWidth () const |
| Get the width of the sar being used.
|
virtual unsigned | GetSarHeight () const |
| Get the height of the sar being used.
|
virtual PBoolean | SetFrameRate (unsigned rate) |
| Set the video frame rate to be used on the device.
|
virtual unsigned | GetFrameRate () const |
| Get the video frame rate used on the device.
|
virtual PBoolean | SetColourFormat (const PString &colourFormat) |
| Set the colour format to be used.
|
virtual const PString & | GetColourFormat () const |
| Get the colour format to be used.
|
void | SetResizeMode (ResizeMode mode) |
| Set the resize mode to be used.
|
ResizeMode | GetResizeMode () const |
| Get the resize mode to be used.
|
PINDEX | CalculateFrameBytes () const |
| Get the number of bytes of an image, given a particular width, height and colour format.
|
bool | Parse (const PString &str) |
| Parse a descriptor string for the video format.
|
virtual | ~PObject () |
virtual PObject * | Clone () const |
| Create a copy of the class on the heap.
|
virtual PINDEX | HashFunction () const |
| This function yields a hash value required by the PDictionary class.
|
virtual const char * | GetClass (unsigned ancestor=0) const |
| Get the current dynamic type of the object instance.
|
PBoolean | IsClass (const char *cls) const |
virtual PBoolean | InternalIsDescendant (const char *clsName) const |
| Determine if the dynamic type of the current instance is a descendent of the specified class.
|
virtual Comparison | Compare (const PObject &obj) const |
| Compare the two objects and return their relative rank.
|
virtual Comparison | CompareObjectMemoryDirect (const PObject &obj) const |
| Determine the byte wise comparison of two objects.
|
bool | operator== (const PObject &obj) const |
| Compare the two objects.
|
bool | operator!= (const PObject &obj) const |
| Compare the two objects.
|
bool | operator< (const PObject &obj) const |
| Compare the two objects.
|
bool | operator> (const PObject &obj) const |
| Compare the two objects.
|
bool | operator<= (const PObject &obj) const |
| Compare the two objects.
|
bool | operator>= (const PObject &obj) const |
| Compare the two objects.
|
virtual void | ReadFrom (istream &strm) |
| Input the contents of the object from the stream.
|
This class defines a video output device.