Inheritance diagram for vetCodec_MPEG:

Public Member Functions | |
| vetCodec_MPEG (vetCodec_MPEGParameters *initParams=NULL) | |
| Default constructor, initialize parameters and superclasses. | |
| vetCodec_MPEG (char *filename, int stream=0) | |
| Initialize parameters and load given quicktime movie. | |
| ~vetCodec_MPEG () | |
| Default destructor, close file and free buffer. | |
| VETRESULT | save () |
| MPEG encoding is not implemented in libmpeg3. | |
| VETRESULT | save (char *filename, int stream=0) |
| Save current movie to file. | |
| VETRESULT | load () |
| Load movie from current filename, use SetFileName() or load(char*, int). | |
| VETRESULT | load (char *filename, int stream=0) |
| Load a BMP format image into current buffer (vetFrameRGB). | |
| VETRESULT | setParameters (vetCodec_MPEGParameters *initParams) |
| Set parameters for (de)coding. | |
| vetCodec_MPEGParameters & | getParameters () |
| Get parameters for (de)coding. | |
| VETRESULT | setFilterParameters (vetFilterParameters *initParams) |
| vetFilterParameters * | getFilterParameters () |
| VETRESULT | reset () |
| Reset filename and movie related settings. | |
| bool | EoF () |
| Get the state of current data source. | |
| bool | eof (int stream=-1) const |
| Test for end of file. | |
| VETRESULT | setFrameIndex (long index, int stream=-1) |
| Seek to point in stream (position in the video timeline). | |
| VETRESULT | goToPreviousFrame (int stream=-1) |
| Move frame index to previous frame. | |
| VETRESULT | goToVideoEnd (int stream=-1) |
| Move video frame index to end (last frame). | |
| VETRESULT | goToAudioEnd (int stream=-1) |
| Move audio sample index to end (last frame). | |
| double | getLastPacketTime () |
| unsigned int | getWidth () const |
| Read current frame index (position in the video timeline).Read current sample index (position in the audio timeline).read current image's width. | |
| unsigned int | getHeight () const |
| read current image's height. | |
| int | getColorModel (int stream=-1) |
| read color model for selected stream. | |
| bool | hasVideo () |
| check if loaded movie has a video stream. | |
| int | getVideoStreamCount () |
| get movie's video streams count. | |
| float | getVideoFrameRate (int stream=-1) |
| get movie's video frame rate. | |
| long | getVideoStreamLength (int stream=-1) |
| get movie's video frame count. | |
| bool | hasAudio () |
| get movie's audio streams count. | |
| int | getAudioStreamCount () |
| get movie's audio streams count. | |
| int | getAudioChannels (int stream=-1) |
| get movie's audio channel count for selected stream. | |
| float | getAudioSampleRate (int stream=-1) |
| get movie's audio sample rate for selected stream. | |
| long | getAudioStreamLength (int stream=-1) |
| get movie's audio sample count for selected stream. | |
| VETRESULT | setHeight (unsigned int value) |
| Set current canvas' height. | |
| VETRESULT | setWidth (unsigned int value) |
| Set current canvas' width. | |
| VETRESULT | extractTo (vetFrameYUV420 &img) |
| Load current frame data into image (parameter), increments frame index. | |
| VETRESULT | extractTo (vetFrameRGB24 &img) |
| Load current frame data into image (parameter), increments frame index. | |
| VETRESULT | extractTo (vetFrameT< unsigned char > &img) |
| Load current frame data into image (parameter), increments frame index. | |
| VETRESULT | importFrom (vetFrameYUV420 &img) |
| Load movie from current filename, use SetFileName() or load(char*, int). | |
| VETRESULT | importFrom (vetFrameRGB24 &img) |
| Load movie from current filename, use SetFileName() or load(char*, int). | |
| VETRESULT | importFrom (vetFrameT< unsigned char > &img) |
| Load movie from current filename, use SetFileName() or load(char*, int). | |
| bool | isEncodingAvailable () |
| Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method.Ouput operator, export to standard VETLib frame formats, current implementation calls directly extractTo() method and if framerate isn't zero waits untill clock is syncronized, if elaboration time is greater than sleeptime, no delay is applied. | |
| bool | isDecodingAvailable () |
| Check ability to decode data. | |
Static Public Member Functions | |
| static int | getMPEG3_Version_major () |
| static int | getMPEG3_Version_minor () |
| static int | getMPEG3_Version_release () |
Protected Attributes | |
| vetCodec_MPEGParameters * | myParams |
| Current parameters. | |
| mpeg3_t * | file |
| MPEG file handle. | |
| unsigned char ** | buff |
| decoded data buffer. Buffer for decoded data | |
| char * | Y |
| decoded YUV Y data buffer. | |
| char * | U |
| decoded YUV U data buffer. | |
| char * | V |
| decoded YUV V data buffer. | |
| unsigned int | width |
| movie's width. | |
| unsigned int | height |
| movie's height. | |
Definition at line 158 of file vetCodec_MPEG.h.
|
|
Default constructor, initialize parameters and superclasses.
Definition at line 48 of file vetCodec_MPEG.cpp. References buff, DEBUGMSG, file, reset(), and setParameters(). |
|
||||||||||||
|
Initialize parameters and load given quicktime movie.
Definition at line 28 of file vetCodec_MPEG.cpp. References buff, DEBUGMSG, file, load(), reset(), and setParameters(). |
|
|
Test for end of file.
Definition at line 665 of file vetCodec_MPEG.cpp. References file, myParams, and vetCodec_MPEGParameters::stream. |
|
|
Get the state of current data source.
Implements vetCodec. Definition at line 137 of file vetCodec_MPEG.cpp. References file. |
|
|
Load current frame data into image (parameter), increments frame index.
Implements vetCodec. Definition at line 235 of file vetCodec_MPEG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Load current frame data into image (parameter), increments frame index.
Implements vetCodec. Definition at line 197 of file vetCodec_MPEG.cpp. References buff, vetUtility::conv_rgb24_rgb96(), vetFrameRGB24::data, DEBUGMSG, file, vetFrame::height, height, vetFrameRGB24::reAllocCanvas(), VETRET_ILLEGAL_USE, VETRET_OK, vetFrame::width, and width. |
|
|
Load current frame data into image (parameter), increments frame index.
Implements vetCodec. Definition at line 158 of file vetCodec_MPEG.cpp. References DEBUGMSG, file, vetFrame::height, height, vetFrameYUV420::reAllocCanvas(), vetFrameYUV420::U, vetFrameYUV420::V, VETRET_ILLEGAL_USE, VETRET_NOT_IMPLEMENTED, vetFrame::width, width, and vetFrameYUV420::Y. |
|
|
get movie's audio channel count for selected stream.
Definition at line 583 of file vetCodec_MPEG.cpp. References file, getAudioStreamCount(), hasAudio(), myParams, and vetCodec_MPEGParameters::stream. |
|
|
get movie's audio sample rate for selected stream.
Definition at line 564 of file vetCodec_MPEG.cpp. References file, getAudioStreamCount(), hasAudio(), myParams, and vetCodec_MPEGParameters::stream. |
|
|
get movie's audio streams count.
Definition at line 510 of file vetCodec_MPEG.cpp. References file. Referenced by getAudioChannels(), getAudioSampleRate(), getAudioStreamLength(), and goToAudioEnd(). |
|
|
get movie's audio sample count for selected stream.
Implements vetCodec. Definition at line 526 of file vetCodec_MPEG.cpp. References file, getAudioStreamCount(), hasAudio(), myParams, and vetCodec_MPEGParameters::stream. |
|
|
read color model for selected stream.
Definition at line 621 of file vetCodec_MPEG.cpp. References file, getVideoStreamCount(), and hasVideo(). |
|
|
read current image's height.
Implements vetInput. Definition at line 390 of file vetCodec_MPEG.h. References height. |
|
|
Get parameters for (de)coding.
Definition at line 273 of file vetCodec_MPEG.h. References myParams. |
|
|
get movie's video frame rate.
Definition at line 602 of file vetCodec_MPEG.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, and vetCodec_MPEGParameters::stream. |
|
|
get movie's video streams count.
Definition at line 481 of file vetCodec_MPEG.cpp. References file. Referenced by getColorModel(), getVideoFrameRate(), getVideoStreamLength(), goToPreviousFrame(), goToVideoEnd(), and setFrameIndex(). |
|
|
get movie's video frame count.
Implements vetCodec. Definition at line 545 of file vetCodec_MPEG.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, and vetCodec_MPEGParameters::stream. |
|
|
Read current frame index (position in the video timeline).Read current sample index (position in the audio timeline).read current image's width.
Implements vetInput. Definition at line 383 of file vetCodec_MPEG.h. References width. |
|
|
Move audio sample index to end (last frame).
Definition at line 435 of file vetCodec_MPEG.cpp. References file, getAudioStreamCount(), myParams, vetCodec_MPEGParameters::stream, VETRET_ILLEGAL_USE, and VETRET_PARAM_ERR. |
|
|
Move frame index to previous frame.
Definition at line 389 of file vetCodec_MPEG.cpp. References file, getVideoStreamCount(), myParams, vetCodec_MPEGParameters::stream, VETRET_ILLEGAL_USE, and VETRET_PARAM_ERR. |
|
|
Move video frame index to end (last frame).
Definition at line 412 of file vetCodec_MPEG.cpp. References file, getVideoStreamCount(), myParams, vetCodec_MPEGParameters::stream, VETRET_ILLEGAL_USE, and VETRET_PARAM_ERR. |
|
|
get movie's audio streams count.
Definition at line 494 of file vetCodec_MPEG.cpp. References file. Referenced by getAudioChannels(), getAudioSampleRate(), and getAudioStreamLength(). |
|
|
check if loaded movie has a video stream.
Definition at line 465 of file vetCodec_MPEG.cpp. References file. Referenced by getColorModel(), getVideoFrameRate(), getVideoStreamLength(), and setFrameIndex(). |
|
|
Load movie from current filename, use SetFileName() or load(char*, int).
Implements vetCodec. Definition at line 304 of file vetCodec_MPEG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Load movie from current filename, use SetFileName() or load(char*, int).
Implements vetCodec. Definition at line 284 of file vetCodec_MPEG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Load movie from current filename, use SetFileName() or load(char*, int).
Implements vetCodec. Definition at line 264 of file vetCodec_MPEG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Check ability to decode data.
Implements vetCodec. Definition at line 626 of file vetCodec_MPEG.h. |
|
|
Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method.Ouput operator, export to standard VETLib frame formats, current implementation calls directly extractTo() method and if framerate isn't zero waits untill clock is syncronized, if elaboration time is greater than sleeptime, no delay is applied.
Implements vetCodec. Definition at line 625 of file vetCodec_MPEG.h. |
|
||||||||||||
|
Load a BMP format image into current buffer (vetFrameRGB).
Implements vetCodec. Definition at line 368 of file vetCodec_MPEG.cpp. References DEBUGMSG, load(), myParams, vetCodec_MPEGParameters::setFileName(), and vetCodec_MPEGParameters::setStream(). |
|
|
Load movie from current filename, use SetFileName() or load(char*, int).
Definition at line 321 of file vetCodec_MPEG.cpp. References buff, file, vetCodec_MPEGParameters::fileName, height, INFO, myParams, vetCodec_MPEGParameters::stream, U, V, VETRET_ILLEGAL_USE, VETRET_OK, width, and Y. Referenced by load(), and vetCodec_MPEG(). |
|
|
Reset filename and movie related settings.
Implements vetCodec. Definition at line 64 of file vetCodec_MPEG.cpp. References buff, file, height, INFO, myParams, vetCodec_MPEGParameters::reset(), vetObject::setDescription(), vetObject::setName(), vetObject::setVersion(), VETRET_OK, and width. Referenced by vetCodec_MPEG(). |
|
||||||||||||
|
Save current movie to file.
Implements vetCodec. Definition at line 234 of file vetCodec_MPEG.h. References VETRET_NOT_IMPLEMENTED. |
|
|
MPEG encoding is not implemented in libmpeg3.
Definition at line 233 of file vetCodec_MPEG.h. References VETRET_NOT_IMPLEMENTED. |
|
||||||||||||
|
Seek to point in stream (position in the video timeline).
Definition at line 644 of file vetCodec_MPEG.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, vetCodec_MPEGParameters::setFrameIndex(), vetCodec_MPEGParameters::stream, and VETRET_ILLEGAL_USE. |
|
|
Set current canvas' height.
Implements vetOutput. Definition at line 492 of file vetCodec_MPEG.h. |
|
|
Set parameters for (de)coding.
Definition at line 107 of file vetCodec_MPEG.cpp. References myParams, and VETRET_OK. Referenced by setFilterParameters(), and vetCodec_MPEG(). |
|
|
Set current canvas' width.
Implements vetOutput. Definition at line 503 of file vetCodec_MPEG.h. |
1.4.4