class VideoFile

This class is designed to handle a file as a video source

Inheritance:


Public Fields

[more]unsigned char* pixmap
the current image of the video file

Public Methods

[more] constructors
[more]virtual ~VideoFile()
desctructor
[more]virtual bool initVideoSource()
initizialize the video file
[more]virtual bool openVideoSource()
open the video file
[more]virtual VirtualPixmap* getframe()
read the current frame of the video file
[more]virtual bool closeVideoSource()
close the video file
[more]unsigned int getwidth()
[more]unsigned int getheight()
[more]virtual bool open(char* filename_, const char* open_flags_ = "r") = 0
open the video file filename_
[more]virtual bool read() = 0
read the current image from the file and fill pixmap
[more]virtual bool write(unsigned char* pixmap_) = 0
write pixmap_ into a file
[more]virtual bool rewindmovie() = 0
restart the video file at the beginning
[more]virtual int seekmovie(int h, int m, int s, int f) = 0
seek in the video file
[more]virtual bool close() = 0
close the video file
[more]real getframerate()
returns the frame rate in frame per second
[more]int getnframes(bool force = false)
returns the number of images (if possible).
[more]char* getcodec()
returns the name of the codec

Protected Fields

[more]char* codec_name
the name of the codec used
[more]FrameVideoFile* frame
the virtual pixmap
[more]int nframes
number of frames in the video source
[more]real frate
frame rate of the video source
[more]int cframe
current frame number
[more]char* filename
name of the video file
[more]char* open_flags
opening flag of the file


Inherited from VideoSource:

Public Fields

obool verbose
oint width
oint height

Public Methods

ovirtual bool releaseframe(VirtualPixmap* )
obool isOk()

Protected Fields

oshort status


Documentation

This class is designed to handle a file as a video source

ochar* codec_name
the name of the codec used

oFrameVideoFile* frame
the virtual pixmap

oint nframes
number of frames in the video source

oreal frate
frame rate of the video source

oint cframe
current frame number

ochar* filename
name of the video file

ochar* open_flags
opening flag of the file

ounsigned char* pixmap
the current image of the video file

o constructors

o VideoFile()
empty constructor

o VideoFile(char* filename_, const char* open_flags_ = "r")
construct a video source from a file

ovirtual ~VideoFile()
desctructor

ovirtual bool initVideoSource()
initizialize the video file

ovirtual bool openVideoSource()
open the video file

ovirtual VirtualPixmap* getframe()
read the current frame of the video file

ovirtual bool closeVideoSource()
close the video file

ounsigned int getwidth()

ounsigned int getheight()

ovirtual bool open(char* filename_, const char* open_flags_ = "r") = 0
open the video file filename_

ovirtual bool read() = 0
read the current image from the file and fill pixmap

ovirtual bool write(unsigned char* pixmap_) = 0
write pixmap_ into a file

ovirtual bool rewindmovie() = 0
restart the video file at the beginning

ovirtual int seekmovie(int h, int m, int s, int f) = 0
seek in the video file

This function seeks at position h:m:s (assuming 25fps) and then read f frames.

ovirtual bool close() = 0
close the video file

oreal getframerate()
returns the frame rate in frame per second

oint getnframes(bool force = false)
returns the number of images (if possible).

If force==true then it reads all the file to get the number of frames.

ochar* getcodec()
returns the name of the codec


Direct child classes:
rgbRawVideoFile
ffmpegVideoFile
Author:
Sebastien Marcel (marcel@idiap.ch)
Version:
2.0 Fri 15 Jul 2005 11:35:20 AM CEST
Since:
1.0

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.