Inheritance diagram for vetCodec_XVID:

Public Member Functions | |
| vetCodec_XVID (vetCodec_XVIDParameters *initParams=NULL) | |
| Default constructor, initializa parameters and superclasses. | |
| vetCodec_XVID (char *filename, int stream=0) | |
| Creates a new frame from given dimensions, call superclass vetFrameRGB constructor. | |
| ~vetCodec_XVID () | |
| VETRESULT | setParameters (vetCodec_XVIDParameters *initParams) |
| Set parameters for this filter. | |
| vetCodec_XVIDParameters & | getParameters () |
| Get parameters for this filter. | |
| VETRESULT | setFilterParameters (vetFilterParameters *initParams) |
| vetFilterParameters * | getFilterParameters () |
| VETRESULT | save () |
| Save current buffered image to current filename, first setup current filename and format then call this function. | |
| VETRESULT | load () |
| Load a BMP format image into current buffer (vetFrameRGB), first setup current filename and format then call this function. | |
| 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 | reset () |
| Reset filename related setup. | |
| bool | EoF () |
| Get the state of current data source. | |
| VETRESULT | extractTo (vetFrameYUV420 &img) |
| Load bmp data into image parameter, if AutoInput is enabled try to load next filename, else just copy current data to img. | |
| VETRESULT | extractTo (vetFrameRGB24 &img) |
| Load bmp data into image parameter, if AutoInput is enabled try to load next filename, else just copy current data to img. | |
| VETRESULT | extractTo (vetFrameT< unsigned char > &img) |
| Load bmp data into image parameter, if AutoInput is enabled try to load next filename, else just copy current data to img. | |
| VETRESULT | importFrom (vetFrameYUV420 &img) |
| Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file. | |
| VETRESULT | importFrom (vetFrameRGB24 &img) |
| Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file. | |
| VETRESULT | importFrom (vetFrameT< unsigned char > &img) |
| Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file. | |
| unsigned int | getHeight () const |
| Get current canvas' height. | |
| unsigned int | getWidth () const |
| Get current canvas' width. | |
| long | getVideoStreamLength (int stream=0) |
| Get movie's video stream frame count. | |
| long | getAudioStreamLength (int stream=-1) |
| Get movie's video stream sample count. | |
| int | getVideoStreamPosition (int stream=0) |
| double | getVideoStreamDecodedTotalTime (int stream=0) |
| bool | hasAudio (int stream=-1) |
| Check if loaded movie has an audio stream. | |
| bool | hasVideo (int stream=-1) |
| Check if loaded movie has a video stream. | |
| int | getAudioStreamCount (int stream=-1) |
| Get movie's audio streams count. | |
| int | getVideoStreamCount (int stream=-1) |
| Get movie's video streams count. | |
| VETRESULT | doDecode (long frameCount=0) |
| get movie's video frame rate. | |
| VETRESULT | setHeight (unsigned int value) |
| Set current canvas' height. | |
| VETRESULT | setWidth (unsigned int value) |
| Set current canvas' width. | |
| 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 Member Functions | |
| VETRESULT | doDecodeFrame () |
| VETRESULT | init () |
| VETRESULT | close () |
| Close current movie (close file access). | |
| VETRESULT | flush () |
| VETRESULT | release () |
| VETRESULT | updateBuffer (unsigned int width, unsigned int height) |
| VETRESULT | dec_init (int use_assembler, int debug_level) |
| VETRESULT | dec_main (unsigned char *istream, unsigned char *ostream, int istream_size, xvid_dec_stats_t *xvid_dec_stats) |
| VETRESULT | write_image (char *prefix, unsigned char *image) |
| VETRESULT | write_pnm (char *filename, unsigned char *image) |
Protected Attributes | |
| void * | stream_handle |
| unsigned char * | mp4_buffer |
| unsigned char * | mp4_ptr |
| unsigned char * | buffer |
| FILE * | file |
| int | use_assembler |
| int | debug_level |
| int | useful_bytes |
| int | chunk |
| xvid_dec_stats_t | xvid_dec_stats |
| double | totaldectime |
| long | totalsize |
| int | status |
| int | filenr |
| vetCodec_XVIDParameters * | myParams |
| unsigned int | width |
| XVID width. | |
| unsigned int | height |
| XVID height. | |
Definition at line 83 of file vetCodec_XVID.h.
|
||||||||||||
|
Creates a new frame from given dimensions, call superclass vetFrameRGB constructor.
Definition at line 24 of file vetCodec_XVID.cpp. References buffer, DEBUGMSG, init(), load(), mp4_buffer, reset(), setParameters(), and stream_handle. |
|
|
Close current movie (close file access).
Implements vetCodec. Definition at line 303 of file vetCodec_XVID.cpp. References INFO, and stream_handle. Referenced by init(), reset(), and ~vetCodec_XVID(). |
|
|
get movie's video frame rate.
Definition at line 586 of file vetCodec_XVID.cpp. References doDecodeFrame(), file, filenr, flush(), and useful_bytes. |
|
|
Get the state of current data source.
Implements vetCodec. Definition at line 122 of file vetCodec_XVID.cpp. References stream_handle. |
|
|
Load bmp data into image parameter, if AutoInput is enabled try to load next filename, else just copy current data to img.
Implements vetCodec. Definition at line 185 of file vetCodec_XVID.cpp. References buffer, vetFrameT< T >::data, DEBUGMSG, doDecodeFrame(), vetFrameT< T >::height, height, vetFrameT< T >::profile, vetFrameT< T >::reAllocCanvas(), stream_handle, VETRET_ILLEGAL_USE, VETRET_NOT_IMPLEMENTED, VETRET_OK, vetFrameT< T >::width, and width. |
|
|
Load bmp data into image parameter, if AutoInput is enabled try to load next filename, else just copy current data to img.
Implements vetCodec. Definition at line 144 of file vetCodec_XVID.cpp. References buffer, vetUtility::conv_bgr_rgb(), vetFrameRGB24::data, DEBUGMSG, doDecodeFrame(), vetFrame::height, height, vetFrameRGB24::reAllocCanvas(), stream_handle, VETRET_ILLEGAL_USE, vetFrame::width, and width. |
|
|
Load bmp data into image parameter, if AutoInput is enabled try to load next filename, else just copy current data to img.
Implements vetCodec. Definition at line 133 of file vetCodec_XVID.cpp. References DEBUGMSG, stream_handle, VETRET_ILLEGAL_USE, and VETRET_NOT_IMPLEMENTED. |
|
|
Get movie's audio streams count.
Implements vetCodec. Definition at line 357 of file vetCodec_XVID.h. |
|
|
Get movie's video stream sample count.
Implements vetCodec. Definition at line 347 of file vetCodec_XVID.h. |
|
|
Get current canvas' height.
Implements vetInput. Definition at line 342 of file vetCodec_XVID.h. References height. |
|
|
Get parameters for this filter.
Definition at line 172 of file vetCodec_XVID.h. References myParams. |
|
|
Get movie's video streams count.
Implements vetCodec. Definition at line 358 of file vetCodec_XVID.h. |
|
|
Get movie's video stream frame count.
Implements vetCodec. Definition at line 346 of file vetCodec_XVID.h. References totalsize. |
|
|
Get current canvas' width.
Implements vetInput. Definition at line 344 of file vetCodec_XVID.h. References width. |
|
|
Check if loaded movie has an audio stream.
Implements vetCodec. Definition at line 353 of file vetCodec_XVID.h. |
|
|
Check if loaded movie has a video stream.
Implements vetCodec. Definition at line 354 of file vetCodec_XVID.h. |
|
|
Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file.
Implements vetCodec. Definition at line 230 of file vetCodec_XVID.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file.
Implements vetCodec. Definition at line 221 of file vetCodec_XVID.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file.
Implements vetCodec. Definition at line 212 of file vetCodec_XVID.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Check ability to decode data.
Implements vetCodec. Definition at line 480 of file vetCodec_XVID.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 479 of file vetCodec_XVID.h. |
|
||||||||||||
|
Load a BMP format image into current buffer (vetFrameRGB).
Implements vetCodec. Definition at line 255 of file vetCodec_XVID.cpp. References DEBUGMSG, load(), myParams, vetCodec_XVIDParameters::setFileName(), and vetCodec_XVIDParameters::setStream(). |
|
|
Load a BMP format image into current buffer (vetFrameRGB), first setup current filename and format then call this function.
Definition at line 366 of file vetCodec_XVID.cpp. References chunk, doDecodeFrame(), file, vetCodec_XVIDParameters::fileName, filenr, INFO, mp4_buffer, mp4_ptr, myParams, totaldectime, totalsize, useful_bytes, VETRET_ILLEGAL_USE, VETRET_OK, and VETRET_PARAM_ERR. Referenced by load(), and vetCodec_XVID(). |
|
|
Reset filename related setup.
Implements vetCodec. Definition at line 63 of file vetCodec_XVID.cpp. References buffer, chunk, close(), debug_level, filenr, height, INFO, mp4_buffer, mp4_ptr, myParams, release(), vetCodec_XVIDParameters::reset(), vetObject::setDescription(), vetObject::setName(), vetObject::setVersion(), stream_handle, totaldectime, totalsize, use_assembler, VETRET_OK, and width. Referenced by vetCodec_XVID(). |
|
||||||||||||
|
Save current movie to file.
Implements vetCodec. Definition at line 240 of file vetCodec_XVID.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Save current buffered image to current filename, first setup current filename and format then call this function.
Definition at line 247 of file vetCodec_XVID.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Set current canvas' height.
Implements vetOutput. Definition at line 425 of file vetCodec_XVID.h. |
|
|
Set parameters for this filter.
Definition at line 100 of file vetCodec_XVID.cpp. References myParams, and VETRET_OK. Referenced by setFilterParameters(), and vetCodec_XVID(). |
|
|
Set current canvas' width.
Implements vetOutput. Definition at line 436 of file vetCodec_XVID.h. |
1.4.4