Inheritance diagram for vetDoctor:

Public Types | |
| enum | RUNMODE |
Public Member Functions | |
| vetDoctor (RUNMODE mode=vetDoctor::FPS_STAT) | |
| Default constructor initializes variables. | |
| VETRESULT | run () |
| Currently not used. | |
| VETRESULT | setHeight (unsigned int value) |
| Set current canvas' height. | |
| VETRESULT | setWidth (unsigned int value) |
| Set current canvas' width. | |
| VETRESULT | reset (bool startTimers=false) |
| Reset class variables for new statistics, by default it doesn't start frame rate counter. | |
| VETRESULT | setInputFrameRate (float fps=0) |
| Set display frame rate (elaboration time is not subtracted). | |
| long | getInputFrameRateDelay () |
| Read current input frame delay. | |
| float | getInputFrameRateCurrent () const |
| Read last frame rate. | |
| float | getInputFrameRateAverage () const |
| Read average frame rate. ( SUM(frames) / framecount ). | |
| long | getExecutionTimeCurrent () const |
| Read last processing time in milliseconds, it's execution time of importFrom() method, if current RUNMODE is FPS_STAT return zero because frames are not processed. | |
| long | getExecutionTimeAverage () const |
| Read average processing time in milliseconds, it's execution time of importFrom() method, if current RUNMODE is FPS_STAT return zero because frames are not processed. | |
| long | getElapsedTime () const |
| VETRESULT | importFrom (vetFrameYUV420 &img) |
| Analyze frame and store statistics, elaboration time is saved. | |
| VETRESULT | importFrom (vetFrameRGB24 &img) |
| Analyze frame and store statistics, elaboration time is saved. | |
| VETRESULT | importFrom (vetFrameT< unsigned char > &img) |
| Analyze frame and store statistics, elaboration time is saved. | |
| void | operator<< (vetFrameYUV420 &img) |
| Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method or gather only frame statistics if RUNMODE is FPS_STAT. | |
| void | operator<< (vetFrameRGB24 &img) |
| Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method or gather only frame statistics if RUNMODE is FPS_STAT. | |
| void | operator<< (vetFrameT< unsigned char > &img) |
| Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method. or gather only frame statistics if RUNMODE is FPS_STAT. | |
Protected Member Functions | |
| void | updateFps () |
| Updates last frame rate time and average. | |
| void | updateExtime () |
| Updates last processing (analyzing) time and average. | |
Protected Attributes | |
| int | runmode |
| long | v_sleeptime |
| long | frameCount |
| clock_t | lastFrameTime |
| float | lastFps |
| float | mediumFps |
| long | lastExTime |
| long | mediumExTime |
Definition at line 42 of file vetDoctor.h.
|
|
Default constructor initializes variables.
Definition at line 27 of file vetDoctor.cpp. References DEBUGMSG, reset(), runmode, and v_sleeptime. |
|
|
Read average processing time in milliseconds, it's execution time of importFrom() method, if current RUNMODE is FPS_STAT return zero because frames are not processed.
Definition at line 206 of file vetDoctor.h. References mediumExTime. |
|
|
Read last processing time in milliseconds, it's execution time of importFrom() method, if current RUNMODE is FPS_STAT return zero because frames are not processed.
Definition at line 196 of file vetDoctor.h. References lastExTime. |
|
|
Read average frame rate. ( SUM(frames) / framecount ).
Definition at line 186 of file vetDoctor.h. References mediumFps. |
|
|
Read last frame rate.
Definition at line 178 of file vetDoctor.h. References lastFps. |
|
|
Read current input frame delay.
Definition at line 170 of file vetDoctor.h. References v_sleeptime. |
|
|
Analyze frame and store statistics, elaboration time is saved.
Implements vetOutput. Definition at line 190 of file vetDoctor.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Analyze frame and store statistics, elaboration time is saved.
Implements vetOutput. Definition at line 172 of file vetDoctor.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. |
|
|
Analyze frame and store statistics, elaboration time is saved.
Implements vetOutput. Definition at line 154 of file vetDoctor.cpp. References INFO, and VETRET_NOT_IMPLEMENTED. Referenced by operator<<(). |
|
|
Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method. or gather only frame statistics if RUNMODE is FPS_STAT.
Reimplemented from vetOutput. Definition at line 256 of file vetDoctor.cpp. References INFO. |
|
|
Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method or gather only frame statistics if RUNMODE is FPS_STAT.
Reimplemented from vetOutput. Definition at line 231 of file vetDoctor.cpp. References importFrom(), INFO, runmode, updateExtime(), updateFps(), and v_sleeptime. |
|
|
Input operator, import standard VETLib frame formats, current implementation calls directly importFrom() method or gather only frame statistics if RUNMODE is FPS_STAT.
Reimplemented from vetOutput. Definition at line 207 of file vetDoctor.cpp. References importFrom(), INFO, runmode, updateExtime(), updateFps(), and v_sleeptime. |
|
|
Reset class variables for new statistics, by default it doesn't start frame rate counter.
Definition at line 46 of file vetDoctor.cpp. References frameCount, lastExTime, lastFps, lastFrameTime, mediumExTime, mediumFps, v_sleeptime, and VETRET_OK. Referenced by vetDoctor(). |
|
|
Currently not used.
Definition at line 126 of file vetDoctor.h. References VETRET_NOT_IMPLEMENTED. |
|
|
Set current canvas' height.
Implements vetOutput. Definition at line 133 of file vetDoctor.h. References VETRET_NOT_IMPLEMENTED. |
|
|
Set display frame rate (elaboration time is not subtracted).
Definition at line 77 of file vetDoctor.cpp. References v_sleeptime, VETRET_OK, and VETRET_PARAM_ERR. |
|
|
Set current canvas' width.
Implements vetOutput. Definition at line 140 of file vetDoctor.h. References VETRET_NOT_IMPLEMENTED. |
|
|
Updates last processing (analyzing) time and average.
Definition at line 120 of file vetDoctor.cpp. References frameCount, lastExTime, lastFrameTime, and mediumExTime. Referenced by operator<<(). |
|
|
Updates last frame rate time and average.
Definition at line 97 of file vetDoctor.cpp. References frameCount, lastFps, lastFrameTime, and mediumFps. Referenced by operator<<(). |
1.4.4