![]() |
Lumiera 0.pre.04
»edit your freedom«
|
#include "stage/output/displayer.hpp"
A Displayer is a class which is responsible for rendering an image in some way (ie: Xvideo, GDK, OpenGL etc).
By default, all images will be delivered to the put method in a resolution of IMG_WIDTH * IMG_HEIGHT. If another size is required, then the rewrite the methods:
If the widget being written to doesn't need a fixed size, then rewrite the two other put methods as required.
Definition at line 60 of file displayer.hpp.
Public Member Functions | |
| virtual | ~Displayer () |
| Displayer (uint w, uint h) | |
| virtual bool | usable ()=0 |
| Indicates if this object can be used to render images on the running system. | |
| virtual DisplayerInput | format () |
| Indicates the format required by the abstract put method. | |
| virtual void | put (void *const)=0 |
| Put an image of a given width and height with the expected input format (as indicated by the format method). | |
Protected Member Functions | |
| void | calculateVideoLayout (int widgetWidth, int widgetHeight, int &imgOrg_x, int &imgOrg_y, int &imgWidth, int &imgHeight) |
| Calculates the coordinates for placing a video image inside a widget. | |
Protected Attributes | |
| const uint | videoWidth |
| const uint | videoHeight |
Additional Inherited Members | |
Private Member Functions inherited from NonCopyable | |
| ~NonCopyable ()=default | |
| NonCopyable ()=default | |
| NonCopyable (NonCopyable const &)=delete | |
| NonCopyable & | operator= (NonCopyable const &)=delete |
|
inlinevirtual |
Definition at line 68 of file displayer.hpp.
Definition at line 70 of file displayer.hpp.
|
pure virtual |
Indicates if this object can be used to render images on the running system.
Implemented in NullDisplayer, PixbufDisplayer, and XvDisplayer.
|
virtual |
Indicates the format required by the abstract put method.
Reimplemented in PixbufDisplayer, and XvDisplayer.
Definition at line 39 of file displayer.cpp.
References lumiera::DISPLAY_NONE.
|
pure virtual |
Put an image of a given width and height with the expected input format (as indicated by the format method).
Implemented in PixbufDisplayer, NullDisplayer, and XvDisplayer.
|
protected |
Calculates the coordinates for placing a video image inside a widget.
| [in] | widgetWidth | available width for display in the widget. |
| [in] | widgetHeight | available height for display in the widget. |
| [out] | imgOrg_x | x-coordinate of the top left corner of the scaled video image to display. |
| [out] | imgOrg_y | y-coordinate of the top left corner. |
| [out] | imgWidth | width of the scale video image to display. |
| [out] | imgHeight | height of the scale video image. |
Definition at line 45 of file displayer.cpp.
References Displayer::videoHeight, and Displayer::videoWidth.
Referenced by PixbufDisplayer::put(), NullDisplayer::put(), and XvDisplayer::put().
Here is the caller graph for this function:
|
protected |
Definition at line 64 of file displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), Displayer::calculateVideoLayout(), PixbufDisplayer::put(), and XvDisplayer::put().
|
protected |
Definition at line 65 of file displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), Displayer::calculateVideoLayout(), PixbufDisplayer::put(), and XvDisplayer::put().
Inheritance diagram for Displayer:
Collaboration diagram for Displayer: