Click or drag to resize
Accord.NET (logo)

AVIReader Class

AVI files reading using Video for Windows.
Inheritance Hierarchy
SystemObject
  Accord.Video.VFWAVIReader

Namespace:  Accord.Video.VFW
Assembly:  Accord.Video.VFW (in Accord.Video.VFW.dll) Version: 3.8.0
Syntax
public class AVIReader : IDisposable
Request Example View Source

The AVIReader type exposes the following members.

Constructors
  NameDescription
Public methodAVIReader
Initializes a new instance of the AVIReader class.
Top
Properties
  NameDescription
Public propertyCodec
Codec used for video compression.
Public propertyFrameRate
Desired playing frame rate.
Public propertyHeight
Height of video frames.
Public propertyLength
Video stream length.
Public propertyPosition
Current position in video stream.
Public propertyStart
Starting position of video stream.
Public propertyWidth
Width of video frames.
Top
Methods
  NameDescription
Public methodClose
Close video file.
Public methodDispose
Dispose the object.
Protected methodDispose(Boolean)
Dispose the object.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destroys the instance of the AVIReader class.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetNextFrame
Get next frame of opened video stream.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOpen
Open AVI file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

The class allows to read AVI files using Video for Windows API.

Sample usage:

// instantiate AVI reader
AVIReader reader = new AVIReader( );
// open video file
reader.Open( "test.avi" );
// read the video file
while ( reader.Position - reader.Start < reader.Length )
{
    // get next frame
    Bitmap image = reader.GetNextFrame( );
    // .. process the frame somehow or display it
}
reader.Close( );
See Also