Inheritance diagram for vetCodec_MOV:

Public Member Functions | |
| vetCodec_MOV (vetCodec_MOVParameters *initParams=NULL) | |
| Default constructor, initialize parameters and superclasses. | |
| vetCodec_MOV (char *filename, int stream=0) | |
| Initialize parameters and load given mpeg movie. | |
| ~vetCodec_MOV () | |
| Default destructor, close file and free buffer. | |
| VETRESULT | newVideo (char *filename, unsigned int w, unsigned int h, float frame_rate, int quality=80) |
| Load a BMP format image into current buffer (vetFrameRGB). | |
| VETRESULT | save () |
| Save new movie to file, must be called at the end of writing, use newVideo(..) to create an empty video. | |
| 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 | save (char *filename, int stream=0) |
| Save current movie to file. | |
| VETRESULT | setParameters (vetCodec_MOVParameters *initParams) |
| Set parameters for (de)coding. | |
| vetCodec_MOVParameters & | 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. | |
| long | getAudioFrameIndex (int stream=-1) |
| Test for end of file.Read current frame index (position in the video timeline). | |
| long | getVideoFrameIndex (int stream=-1) |
| Read current sample index (position in the audio timeline). | |
| VETRESULT | setFrameIndex (long index, int stream=-1) |
| Seek to point in stream (position in the video timeline). | |
| VETRESULT | goToStart () |
| Move frame index to start (first frame). | |
| VETRESULT | goToEnd () |
| Move frame index to end (last frame). | |
| VETRESULT | setVideoFrameRate (float fps) |
| VETRESULT | setHeight (unsigned int value) |
| Set current canvas' height. | |
| VETRESULT | setWidth (unsigned int value) |
| Set current canvas' width. | |
| unsigned int | getWidth () const |
| read current image's width. | |
| unsigned int | getHeight () const |
| read current image's height. | |
| int | getVideoDepth (int stream=0) |
| read current image's depth. | |
| 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. | |
| char * | getVideoCompressor (int stream=-1) |
| get movie's video compressor name. | |
| 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. | |
| long | 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. | |
| char * | getAudioCompressor (int stream=-1) |
| get movie's audio compressor name. | |
| VETRESULT | setName (char *string) |
| set movie's name. | |
| VETRESULT | setInfo (char *string) |
| set movie's informations. | |
| VETRESULT | setCopyRight (char *string) |
| set movie's copyright. | |
| char * | getName () |
| get movie's name. | |
| char * | getInfo () |
| get movie's informations. | |
| char * | getCopyRight () |
| get movie's copyright. | |
| 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) |
| Encode given image to stream, increments frame index. | |
| VETRESULT | importFrom (vetFrameRGB24 &img) |
| Encode given image to stream, increments frame index. | |
| VETRESULT | importFrom (vetFrameT< unsigned char > &img) |
| Encode given image to stream, increments frame index. | |
| 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. | |
Protected Attributes | |
| vetCodec_MOVParameters * | myParams |
| vetCodec_MOV parameters pointer. | |
| quicktime_t * | file |
| Quicktime file handle. | |
| unsigned char ** | buff |
| decoded data buffer. | |
| long | lenghtFrames |
| number of frames (total). | |
| bool | streamEOF |
| when last frame is extracted this is set to true. | |
| unsigned int | width |
| quicktime movie width. | |
| unsigned int | height |
| quicktime movie height. | |
| float | outFrameRate |
| frame rate | |
Definition at line 144 of file vetCodec_MOV.h.
|
|
Default constructor, initialize parameters and superclasses.
Definition at line 52 of file vetCodec_MOV.cpp. References buff, DEBUGMSG, file, reset(), and setParameters(). |
|
||||||||||||
|
Initialize parameters and load given mpeg movie.
Definition at line 32 of file vetCodec_MOV.cpp. References buff, DEBUGMSG, file, load(), reset(), and setParameters(). |
|
|
Get the state of current data source.
Implements vetCodec. Definition at line 106 of file vetCodec_MOV.cpp. References file, vetCodec_MOVParameters::frameIndex, lenghtFrames, and myParams. |
|
|
Load current frame data into image (parameter), increments frame index.
Implements vetCodec. Definition at line 230 of file vetCodec_MOV.cpp. References DEBUGMSG, file, VETRET_ILLEGAL_USE, and VETRET_NOT_IMPLEMENTED. |
|
|
Load current frame data into image (parameter), increments frame index.
Implements vetCodec. Definition at line 193 of file vetCodec_MOV.cpp. References vetFrameRGB24::data, DEBUGMSG, file, vetCodec_MOVParameters::frameIndex, vetFrame::height, height, lenghtFrames, myParams, vetFrameRGB24::reAllocCanvas(), streamEOF, VETRET_ILLEGAL_USE, VETRET_OK, vetFrame::width, and width. |
|
|
Load current frame data into image (parameter), increments frame index.
Implements vetCodec. Definition at line 170 of file vetCodec_MOV.cpp. References DEBUGMSG, file, VETRET_ILLEGAL_USE, and VETRET_NOT_IMPLEMENTED. |
|
|
get movie's audio channel count for selected stream.
Definition at line 788 of file vetCodec_MOV.cpp. References file, getAudioStreamCount(), hasAudio(), myParams, and vetCodec_MOVParameters::stream. |
|
|
get movie's audio compressor name.
Definition at line 632 of file vetCodec_MOV.cpp. References file, getAudioStreamCount(), hasVideo(), myParams, and vetCodec_MOVParameters::stream. |
|
|
Test for end of file.Read current frame index (position in the video timeline).
Definition at line 529 of file vetCodec_MOV.cpp. References file, getVideoStreamCount(), hasAudio(), myParams, and vetCodec_MOVParameters::stream. |
|
|
get movie's audio sample rate for selected stream.
Definition at line 769 of file vetCodec_MOV.cpp. References file, getAudioStreamCount(), hasAudio(), myParams, and vetCodec_MOVParameters::stream. |
|
|
get movie's audio streams count.
Definition at line 715 of file vetCodec_MOV.cpp. References file. Referenced by getAudioChannels(), getAudioCompressor(), getAudioSampleRate(), and getAudioStreamLength(). |
|
|
get movie's audio sample count for selected stream.
Implements vetCodec. Definition at line 731 of file vetCodec_MOV.cpp. References file, getAudioStreamCount(), hasAudio(), myParams, and vetCodec_MOVParameters::stream. |
|
|
get movie's copyright.
Definition at line 892 of file vetCodec_MOV.cpp. References file. |
|
|
read current image's height.
Implements vetInput. Definition at line 403 of file vetCodec_MOV.h. References height. |
|
|
get movie's informations.
Definition at line 879 of file vetCodec_MOV.cpp. References file. |
|
|
get movie's name.
Definition at line 866 of file vetCodec_MOV.cpp. References file. |
|
|
Get parameters for (de)coding.
Definition at line 275 of file vetCodec_MOV.h. References myParams. |
|
|
get movie's video compressor name.
Definition at line 613 of file vetCodec_MOV.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, and vetCodec_MOVParameters::stream. |
|
|
read current image's depth.
Definition at line 594 of file vetCodec_MOV.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, vetCodec_MOVParameters::stream, and VETRET_ILLEGAL_USE. |
|
|
Read current sample index (position in the audio timeline).
Definition at line 548 of file vetCodec_MOV.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, and vetCodec_MOVParameters::stream. |
|
|
get movie's video frame rate.
Definition at line 652 of file vetCodec_MOV.cpp. References file, getVideoStreamCount(), hasVideo(), myParams, and vetCodec_MOVParameters::stream. |
|
|
get movie's video streams count.
Definition at line 702 of file vetCodec_MOV.cpp. References file. Referenced by getAudioFrameIndex(), getVideoCompressor(), getVideoDepth(), getVideoFrameIndex(), getVideoFrameRate(), getVideoStreamLength(), and setFrameIndex(). |
|
|
get movie's video frame count.
Implements vetCodec. Definition at line 750 of file vetCodec_MOV.cpp. References file, getVideoStreamCount(), hasAudio(), hasVideo(), myParams, and vetCodec_MOVParameters::stream. |
|
|
read current image's width.
Implements vetInput. Definition at line 396 of file vetCodec_MOV.h. References width. |
|
|
Move frame index to end (last frame).
Definition at line 510 of file vetCodec_MOV.cpp. References file, and VETRET_ILLEGAL_USE. |
|
|
Move frame index to start (first frame).
Definition at line 496 of file vetCodec_MOV.cpp. References file, and VETRET_ILLEGAL_USE. |
|
|
get movie's audio streams count.
Definition at line 686 of file vetCodec_MOV.cpp. References file. Referenced by getAudioChannels(), getAudioFrameIndex(), getAudioSampleRate(), getAudioStreamLength(), and getVideoStreamLength(). |
|
|
check if loaded movie has a video stream.
Definition at line 670 of file vetCodec_MOV.cpp. References file. Referenced by getAudioCompressor(), getVideoCompressor(), getVideoDepth(), getVideoFrameIndex(), getVideoFrameRate(), and getVideoStreamLength(). |
|
|
Encode given image to stream, increments frame index.
Implements vetCodec. Definition at line 319 of file vetCodec_MOV.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Encode given image to stream, increments frame index.
Implements vetCodec. Definition at line 274 of file vetCodec_MOV.cpp. References buff, vetFrameRGB24::data, DEBUGMSG, file, vetCodec_MOVParameters::frameIndex, vetFrame::height, lenghtFrames, myParams, VETRET_ILLEGAL_USE, VETRET_INTERNAL_ERR, VETRET_OK, and vetFrame::width. |
|
|
Encode given image to stream, increments frame index.
Implements vetCodec. Definition at line 252 of file vetCodec_MOV.cpp. References DEBUGMSG, file, VETRET_ILLEGAL_USE, and VETRET_NOT_IMPLEMENTED. |
|
|
Check ability to decode data.
Implements vetCodec. Definition at line 690 of file vetCodec_MOV.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 689 of file vetCodec_MOV.h. |
|
||||||||||||
|
Load a BMP format image into current buffer (vetFrameRGB).
Implements vetCodec. Definition at line 396 of file vetCodec_MOV.cpp. References DEBUGMSG, load(), myParams, vetCodec_MOVParameters::setFileName(), and vetCodec_MOVParameters::setStream(). |
|
|
Load movie from current filename, use SetFileName() or load(char*, int).
Definition at line 335 of file vetCodec_MOV.cpp. References buff, file, vetCodec_MOVParameters::fileName, vetCodec_MOVParameters::frameIndex, height, INFO, lenghtFrames, myParams, vetCodec_MOVParameters::stream, streamEOF, VETRET_ILLEGAL_USE, VETRET_OK, and width. Referenced by load(), and vetCodec_MOV(). |
|
||||||||||||||||||||||||
|
Load a BMP format image into current buffer (vetFrameRGB).
Definition at line 421 of file vetCodec_MOV.cpp. References buff, file, height, outFrameRate, reset(), streamEOF, VETRET_INTERNAL_ERR, VETRET_OK, and width. |
|
|
Reset filename and movie related settings.
Implements vetCodec. Definition at line 68 of file vetCodec_MOV.cpp. References buff, file, height, INFO, lenghtFrames, myParams, outFrameRate, vetCodec_MOVParameters::reset(), vetObject::setDescription(), setName(), vetObject::setVersion(), streamEOF, VETRET_OK, and width. Referenced by newVideo(), save(), and vetCodec_MOV(). |
|
||||||||||||
|
Save current movie to file.
Implements vetCodec. Definition at line 258 of file vetCodec_MOV.h. References VETRET_NOT_IMPLEMENTED. |
|
|
Save new movie to file, must be called at the end of writing, use newVideo(..) to create an empty video.
Definition at line 471 of file vetCodec_MOV.cpp. References file, INFO, reset(), VETRET_ILLEGAL_USE, and VETRET_OK. |
|
|
set movie's copyright.
Definition at line 851 of file vetCodec_MOV.cpp. References file, VETRET_ILLEGAL_USE, and VETRET_OK. |
|
||||||||||||
|
Seek to point in stream (position in the video timeline).
Definition at line 569 of file vetCodec_MOV.cpp. References file, vetCodec_MOVParameters::frameIndex, getVideoStreamCount(), myParams, vetCodec_MOVParameters::stream, VETRET_ILLEGAL_USE, and VETRET_PARAM_ERR. |
|
|
Set current canvas' height.
Implements vetOutput. Definition at line 374 of file vetCodec_MOV.h. |
|
|
set movie's informations.
Definition at line 833 of file vetCodec_MOV.cpp. References file, VETRET_ILLEGAL_USE, and VETRET_OK. |
|
|
set movie's name.
Definition at line 815 of file vetCodec_MOV.cpp. References file, VETRET_ILLEGAL_USE, and VETRET_OK. Referenced by reset(). |
|
|
Set parameters for (de)coding.
Definition at line 128 of file vetCodec_MOV.cpp. References myParams, and VETRET_OK. Referenced by setFilterParameters(), and vetCodec_MOV(). |
|
|
|
|
|
Set current canvas' width.
Implements vetOutput. Definition at line 385 of file vetCodec_MOV.h. |
1.4.4