C# Class ZBar.Video

Mid-level video source abstraction. captures images from a video device
Inheritance: IDisposable
Mostra file Open project: jonasfj/zbar-sharp

Public Methods

Method Description
Close ( ) : void

Close the video device

Dispose ( ) : void

Release resources held by this object

NextFrame ( ) : Image

Retrieve next captured image

This method blocks untill an image have been captured.

Open ( string device ) : void

Open and probe a video device.

RequestSize ( uint width, uint height ) : void

Request a other output image size

The request may be adjusted or completely ignored by the driver.

Video ( ) : System

Create a video instance

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Dispose this object

This boolean disposing parameter here ensures that objects with a finalizer is not disposed, this is method is invoked from the finalizer. Do overwrite, and call, this method in base classes if you use any unmanaged resources.

Private Methods

Method Description
zbar_video_create ( ) : IntPtr
zbar_video_destroy ( IntPtr video ) : void
zbar_video_enable ( IntPtr video, int enable ) : int
zbar_video_get_fd ( IntPtr video ) : int
zbar_video_get_height ( IntPtr video ) : int
zbar_video_get_width ( IntPtr video ) : int
zbar_video_init ( IntPtr video, uint format ) : int
zbar_video_next_image ( IntPtr video ) : IntPtr
zbar_video_open ( IntPtr video, string device ) : int
zbar_video_request_interface ( IntPtr video, int version ) : int
zbar_video_request_iomode ( IntPtr video, int iomode ) : int
zbar_video_request_size ( IntPtr video, uint width, uint height ) : int

Method Details

Close() public method

Close the video device
public Close ( ) : void
return void

Dispose() public method

Release resources held by this object
public Dispose ( ) : void
return void

Dispose() protected method

Dispose this object
This boolean disposing parameter here ensures that objects with a finalizer is not disposed, this is method is invoked from the finalizer. Do overwrite, and call, this method in base classes if you use any unmanaged resources.
protected Dispose ( bool disposing ) : void
disposing bool /// A False if called from the finalizer, True if called from Dispose. ///
return void

NextFrame() public method

Retrieve next captured image
This method blocks untill an image have been captured.
public NextFrame ( ) : Image
return Image

Open() public method

Open and probe a video device.
public Open ( string device ) : void
device string /// The device specified by platform specific unique name (v4l device node path in *nix eg "/dev/video", DirectShow DevicePath property in windows). ///
return void

RequestSize() public method

Request a other output image size
The request may be adjusted or completely ignored by the driver.
public RequestSize ( uint width, uint height ) : void
width uint /// Desired output width ///
height uint /// Desired output height ///
return void

Video() public method

Create a video instance
public Video ( ) : System
return System