Visualizer Class Reference
The Visualizer Adaptor allows access to VideoRenderer IO graphical output, so from within an adaptor chain, the intermediate results can be displayed either on SDL, Qt, or X11 <short description="">. More...
#include <Visualizer.hpp>
Inheritance diagram for Visualizer:
Public Types | |
enum | OutputMethod { Qt, SDL, X11 } |
Public Member Functions | |
Visualizer (const VideoESInfo *es, OutputMethod out, UncompressedVideoFrame::ColorSpace colorSpace) | |
void | initialize () |
Initialize internal data structures. | |
list< Frame * > | adapt (Frame *frm) |
Accepts as input a frame, and checks if it can adapt the frame, If the frame is modified, a new Frame object is created and inserted into the return list. | |
Adaptor * | clone () |
Create a shallow copy of the Adaptor. | |
list< Frame * > | close () |
Close and destroy an Adaptor. | |
u32 | getTranscodingCosts () const |
returns adaptation costs (CPU only). |
Detailed Description
The Visualizer Adaptor allows access to VideoRenderer IO graphical output, so from within an adaptor chain, the intermediate results can be displayed either on SDL, Qt, or X11 <short description="">.
- Author:
- Michael Kropfberger
- Version:
- Id
- Visualizer.hpp,v 1.3 2005/01/20 09:47:52 mkropfbe Exp
Definition at line 69 of file Visualizer.hpp.
Member Function Documentation
|
Accepts as input a frame, and checks if it can adapt the frame, If the frame is modified, a new Frame object is created and inserted into the return list. This new frame is returned only, if the size of the payload is larger than zero. If the frame was not modified, it is also inserted into the list. For more complex adaptors, it will happen, that the adaptor caches up one complete GOP and returns the full GOP in network order. A caching adaptor has to create deep-copies for each frames. Never directly modify the payload of the input frm, always create copies!!!
Reimplemented from Adaptor. Definition at line 119 of file Visualizer.cpp. References Frame::getAU(), IO::getState(), VideoRenderer::getURL(), initialize(), VideoRenderer::open(), and VideoRenderer::writeFrame().
|
|
Create a shallow copy of the Adaptor. Creates an Adaptor with the same setup (without copying the current status).
Implements Adaptor. Definition at line 80 of file Visualizer.hpp.
|
|
Close and destroy an Adaptor. Releases all internally buffered frame objects, and deallocate all allocated memory. The Adaptor must not be used after calling the close method!!!
Reimplemented from Adaptor. Definition at line 146 of file Visualizer.cpp.
|
|
returns adaptation costs (CPU only). Displaying costs are a 10th of decoding costs Implements Adaptor. Definition at line 91 of file Visualizer.hpp.
|
|
Initialize internal data structures.
Implements Adaptor. Definition at line 108 of file Visualizer.cpp. Referenced by adapt().
|
The documentation for this class was generated from the following files: