#include <vetCodec.h>
Inheritance diagram for vetCodec:

Public Types | |
| enum | |
| Ignore this, it's a class-type definition, mostly used by VETLib WorkShop, sintax is a bit more complex than usual because of a VC6 BUG, it's the same as: const int vetClassType = VETCLASS_TYPE_CODER;. | |
Public Member Functions | |
| vetCodec (float fps=0) | |
| Default constructor is protected because this is an abstract class and instance cannot be created directly. | |
| virtual | ~vetCodec () |
| Destructor currenly clear only filters description strings. | |
| virtual VETRESULT | reset ()=0 |
| Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization. | |
| virtual int | getAudioStreamCount (int stream=-1)=0 |
| Get movie's audio streams count. | |
| virtual int | getVideoStreamCount (int stream=-1)=0 |
| Get movie's video streams count. | |
| virtual bool | EoF ()=0 |
| Get the state of current data source. | |
| virtual bool | isEncodingAvailable ()=0 |
| Check ability to encode data. | |
| virtual bool | isDecodingAvailable ()=0 |
| Check ability to decode data. | |
| virtual long | getVideoStreamLength (int stream=-1)=0 |
| Get movie's video stream frame count. | |
| virtual long | getAudioStreamLength (int stream=-1)=0 |
| Get movie's video stream sample count. | |
| virtual bool | hasAudio (int stream=-1)=0 |
| Check if loaded movie has an audio stream. | |
| virtual bool | hasVideo (int stream=-1)=0 |
| Check if loaded movie has a video stream. | |
| virtual VETRESULT | close ()=0 |
| Close current movie (close file access). | |
| virtual VETRESULT | load (char *filename, int stream=-1)=0 |
| Load a movie from a file. | |
| virtual VETRESULT | save (char *filename, int stream=-1)=0 |
| Save current movie to file. | |
| virtual VETRESULT | extractTo (vetFrameYUV420 &img)=0 |
| Inherited class must implement this function, processing hardware/format specific stream to standard VETLib frame formats. | |
| virtual VETRESULT | extractTo (vetFrameRGB24 &img)=0 |
| Inherited class must implement this function, processing hardware/format specific stream to standard VETLib frame formats. | |
| virtual VETRESULT | extractTo (vetFrameT< unsigned char > &img)=0 |
| Inherited class must implement this function, processing hardware/format specific stream to standard VETLib frame formats. | |
| virtual VETRESULT | importFrom (vetFrameYUV420 &img)=0 |
| Inherited class must implement this function, processing frames to specific output (device or stream). | |
| virtual VETRESULT | importFrom (vetFrameRGB24 &img)=0 |
| Inherited class must implement this function, processing frames to specific output (device or stream). | |
| virtual VETRESULT | importFrom (vetFrameT< unsigned char > &img)=0 |
| Inherited class must implement this function, processing frames to specific output (device or stream). | |
Definition at line 54 of file vetCodec.h.
|
|
Default constructor is protected because this is an abstract class and instance cannot be created directly.
Definition at line 72 of file vetCodec.h. References vetInput::v_sleeptime. |
|
|
Close current movie (close file access).
Implemented in vetCodec_XVID. |
|
|
Get the state of current data source.
Implements vetInput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Inherited class must implement this function, processing hardware/format specific stream to standard VETLib frame formats.
Implements vetInput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Inherited class must implement this function, processing hardware/format specific stream to standard VETLib frame formats.
Implements vetInput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Inherited class must implement this function, processing hardware/format specific stream to standard VETLib frame formats.
Implements vetInput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Get movie's audio streams count.
Implemented in vetCodec_XVID. |
|
|
Get movie's video stream sample count.
Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Get movie's video streams count.
Implemented in vetCodec_XVID. |
|
|
Get movie's video stream frame count.
Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Check if loaded movie has an audio stream.
Implemented in vetCodec_XVID. |
|
|
Check if loaded movie has a video stream.
Implemented in vetCodec_XVID. |
|
|
Inherited class must implement this function, processing frames to specific output (device or stream).
Implements vetOutput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Inherited class must implement this function, processing frames to specific output (device or stream).
Implements vetOutput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Inherited class must implement this function, processing frames to specific output (device or stream).
Implements vetOutput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Check ability to decode data.
Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Check ability to encode data.
Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
||||||||||||
|
Load a movie from a file.
Implemented in vetCodec_BMP, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
|
Inherited class must implement this function, should reset all filters' parameters, something like constructor initialization.
Implements vetInput. Implemented in vetCodec_BMP, vetCodec_BMP, vetCodec_IMG, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
|
||||||||||||
|
Save current movie to file.
Implemented in vetCodec_BMP, vetCodec_MOV, vetCodec_MPEG, and vetCodec_XVID. |
1.4.4