Inheritance diagram for vetCodec_IMG:

Public Member Functions | |
| vetCodec_IMG (vetCodec_IMGParameters *initParams=NULL) | |
| Default constructor, initializa parameters and superclasses. | |
| vetCodec_IMG (char *filename) | |
| Creates a new frame from given dimensions, call superclass vetFrameRGB constructor. | |
| VETRESULT | save () |
| Save current buffered image to current filename, first setup current filename and format then call this function. | |
| VETRESULT | save (char *filename) |
| Save current buffered image to given filename and format. | |
| 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) |
| Load a BMP format image into current buffer (vetFrameRGB). | |
| VETRESULT | setParameters (vetCodec_IMGParameters *initParams) |
| Set parameters for (de)coding. | |
| vetCodec_IMGParameters & | getParameters () |
| Get parameters for (de)coding. | |
| VETRESULT | setFilterParameters (vetFilterParameters *initParams) |
| vetFilterParameters * | getFilterParameters () |
| bool | EoF () |
| Get the state of current data source. | |
| void | setFileNameProgression (bool value) |
| Enable or disable filename progression, for example: basefile name is "output", index is 13 so filename is output13.bmp, if filename progression is enabled, when an operation is done onto file, idex is incremented (output14.bmp). | |
| void | setAutoOutputEnabled (bool value=true) |
| Enable or disable auto input feature,. | |
| void | setAutoInputEnabled (bool value=true) |
| void | setDoBuffering (bool value=true) |
| void | setFileName (const char *filename) |
| int | getFileNameIndex () |
| Read current file name index, used in file name progression routines. | |
| bool | isFileNameProgressionEnabled () |
| bool | isAutoInputEnabled () |
| bool | isAutoOutputEnabled () |
| bool | isBufferingEnabled () |
| void | getFileName (char *filename) |
| Read base filename, if progression is enabled it's the base fixed name. | |
| void | getFileNameCurrent (char *filename) |
| Read current filename, if progression is enabled it's the base fixed name + current index + bmp extension. | |
| VETRESULT | reset () |
| Reset filename related setup. | |
| VETRESULT | setHeight (unsigned int value) |
| read current image's width.read current image's height.Set current canvas' height. | |
| VETRESULT | setWidth (unsigned int value) |
| Set current canvas' width. | |
| long | getVideoStreamLength (int stream=-1) |
| Get movie's video stream frame count. | |
| long | getAudioStreamLength (int stream=-1) |
| Get movie's video stream sample count. | |
| int | getAudioStreamCount () |
| int | getVideoStreamCount () |
| bool | hasAudio () |
| bool | hasVideo () |
| 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. | |
| bool | isEncodingAvailable () |
| Check ability to encode data. | |
| bool | isDecodingAvailable () |
| Check ability to decode data. | |
Static Public Member Functions | |
| static VETRESULT | save (vetFrameYUV420 &source, const char *filename) |
| Save given image to a BMP file. | |
| static VETRESULT | save (vetFrameRGB24 &source, const char *filename) |
| Save given image to a BMP file. | |
| static VETRESULT | save (vetFrameT< unsigned char > &source, const char *filename) |
| Save given image to a BMP file. | |
| static VETRESULT | load (vetFrameYUV420 &source, const char *filename) |
| Load a BMP format image into given image. | |
| static VETRESULT | load (vetFrameRGB24 &source, const char *filename) |
| Load a BMP format image into given image. | |
| static VETRESULT | load (vetFrameT< unsigned char > &source, const char *filename) |
| Load a BMP format image into given image. | |
Protected Member Functions | |
| void | doFileNameCurrent () |
Static Protected Member Functions | |
| static void * | im_load (char *filename, unsigned int &w, unsigned int &h, char *prog_path) |
| static void | im_get_data (void *image, int *rgb) |
| static void | im_get_data (void *img, unsigned char *rgb) |
| static void | im_get_data_grey (void *image, int *d) |
| static void | im_free (void *img) |
Protected Attributes | |
| vetCodec_IMGParameters * | myParams |
| unsigned int | width |
| unsigned int | height |
| void * | img |
| bool | ok |
| char | fileNameIndexBuffer [16] |
| char | fileNameBuffer [80] |
Definition at line 256 of file vetCodec_IMG.h.
|
|
Creates a new frame from given dimensions, call superclass vetFrameRGB constructor.
Definition at line 151 of file vetCodec_IMG.cpp. References DEBUGMSG, vetCodec_IMGParameters::fileNameBase, load(), myParams, reset(), and setParameters(). |
|
|
Get the state of current data source.
Implements vetCodec. Definition at line 210 of file vetCodec_IMG.cpp. |
|
|
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 260 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
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 224 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::autoInput, vetCodec_IMGParameters::autoOuput, DEBUGMSG, vetCodec_IMGParameters::doBuffering, doFileNameCurrent(), fileNameBuffer, vetCodec_IMGParameters::fileNameIndex, vetCodec_IMGParameters::fileNameProgression, load(), myParams, and VETRET_OK. |
|
|
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 216 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Get movie's video stream sample count.
Implements vetCodec. Definition at line 565 of file vetCodec_IMG.h. |
|
|
Read base filename, if progression is enabled it's the base fixed name.
|
|
|
Read current filename, if progression is enabled it's the base fixed name + current index + bmp extension.
Definition at line 344 of file vetCodec_IMG.cpp. References doFileNameCurrent(), and fileNameBuffer. |
|
|
Read current file name index, used in file name progression routines.
Definition at line 626 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::fileNameIndex, and myParams. |
|
|
Get parameters for (de)coding.
Definition at line 361 of file vetCodec_IMG.h. References myParams. |
|
|
Get movie's video stream frame count.
Implements vetCodec. Definition at line 564 of file vetCodec_IMG.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 312 of file vetCodec_IMG.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 279 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::autoOuput, DEBUGMSG, vetCodec_IMGParameters::doBuffering, doFileNameCurrent(), fileNameBuffer, vetCodec_IMGParameters::fileNameIndex, vetCodec_IMGParameters::fileNameProgression, myParams, save(), and VETRET_OK. |
|
|
Load given image into memory, if AutoOutput is enabled image data will be saved as a BMP format file.
Implements vetCodec. Definition at line 270 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Definition at line 647 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::autoInput, and myParams. |
|
|
Definition at line 661 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::autoOuput, and myParams. |
|
|
Definition at line 676 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::doBuffering, and myParams. |
|
|
Check ability to decode data.
Implements vetCodec. Definition at line 742 of file vetCodec_IMG.h. |
|
|
Check ability to encode data.
Implements vetCodec. Definition at line 741 of file vetCodec_IMG.h. |
|
|
Definition at line 635 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::fileNameProgression, and myParams. |
|
||||||||||||
|
Load a BMP format image into given image.
Definition at line 456 of file vetCodec_IMG.cpp. References DEBUGMSG, vetFrameT< T >::getHeight(), vetFrameT< T >::getWidth(), VETRET_NOT_IMPLEMENTED, VETRET_OK, and VETRET_PARAM_ERR. |
|
||||||||||||
|
Load a BMP format image into given image.
Definition at line 420 of file vetCodec_IMG.cpp. References vetFrameRGB24::data, DEBUGMSG, vetFrame::height, im_get_data(), im_load(), img, ok, VETRET_OK, VETRET_PARAM_ERR, and vetFrame::width. |
|
||||||||||||
|
Load a BMP format image into given image.
Definition at line 412 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Load a BMP format image into current buffer (vetFrameRGB).
Definition at line 393 of file vetCodec_IMG.cpp. References vetFrameYUV420::autoFreeData, DEBUGMSG, load(), and VETRET_OK. |
|
|
Load a BMP format image into current buffer (vetFrameRGB), first setup current filename and format then call this function.
Definition at line 375 of file vetCodec_IMG.cpp. References vetFrameYUV420::autoFreeData, doFileNameCurrent(), fileNameBuffer, INFO, and VETRET_OK. Referenced by extractTo(), load(), and vetCodec_IMG(). |
|
|
Reset filename related setup.
Implements vetCodec. Definition at line 181 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::fileNameBase, fileNameBuffer, INFO, myParams, vetCodec_IMGParameters::reset(), vetObject::setDescription(), vetObject::setName(), vetObject::setVersion(), and VETRET_OK. Referenced by vetCodec_IMG(). |
|
||||||||||||
|
Save given image to a BMP file.
Definition at line 553 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
||||||||||||
|
Save given image to a BMP file.
Definition at line 513 of file vetCodec_IMG.cpp. References vetFrameRGB24::data, DEBUGMSG, vetFrame::getHeight(), vetFrame::getWidth(), vetFrame::height, VETRET_OK, VETRET_PARAM_ERR, and vetFrame::width. |
|
||||||||||||
|
Save given image to a BMP file.
Definition at line 470 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Save current buffered image to given filename and format.
Definition at line 366 of file vetCodec_IMG.cpp. References DEBUGMSG, and VETRET_NOT_IMPLEMENTED. |
|
|
Save current buffered image to current filename, first setup current filename and format then call this function.
Definition at line 352 of file vetCodec_IMG.cpp. References doFileNameCurrent(), INFO, VETRET_NOT_IMPLEMENTED, and VETRET_OK. Referenced by importFrom(). |
|
|
Definition at line 599 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::autoInput, and myParams. |
|
|
Enable or disable auto input feature,.
Definition at line 585 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::autoOuput, and myParams. |
|
|
Definition at line 613 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::doBuffering, and myParams. |
|
|
Definition at line 320 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::fileNameBase, fileNameBuffer, and myParams. |
|
|
Enable or disable filename progression, for example: basefile name is "output", index is 13 so filename is output13.bmp, if filename progression is enabled, when an operation is done onto file, idex is incremented (output14.bmp).
Definition at line 571 of file vetCodec_IMG.cpp. References vetCodec_IMGParameters::fileNameProgression, and myParams. |
|
|
read current image's width.read current image's height.Set current canvas' height.
Implements vetOutput. Definition at line 554 of file vetCodec_IMG.h. References VETRET_NOT_IMPLEMENTED. |
|
|
Set parameters for (de)coding.
Definition at line 199 of file vetCodec_IMG.cpp. References myParams, and VETRET_OK. Referenced by setFilterParameters(), and vetCodec_IMG(). |
|
|
Set current canvas' width.
Implements vetOutput. Definition at line 561 of file vetCodec_IMG.h. References VETRET_NOT_IMPLEMENTED. |
1.4.4