C# Class ZBar.Video

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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

Close the video device
public Close ( ) : void
Résultat void

Dispose() public méthode

Release resources held by this object
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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. ///
Résultat void

NextFrame() public méthode

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

Open() public méthode

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). ///
Résultat void

RequestSize() public méthode

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 ///
Résultat void

Video() public méthode

Create a video instance
public Video ( ) : System
Résultat System