![]() |
Lumiera 0.pre.04~rc.1
»edit your freedom«
|
#include "stage/output/xv-displayer.hpp"
XvDisplayer is a class which is responsible for rendering a video image via XVideo.
Definition at line 47 of file xv-displayer.hpp.
Public Member Functions | |
| XvDisplayer (Gtk::Widget &drawing_area, uint width, uint height) | |
| Constructor. | |
| ~XvDisplayer () | |
Public Member Functions inherited from Displayer | |
| virtual | ~Displayer () |
| Displayer (uint w, uint h) | |
Private Member Functions | |
| void | put (void *const image) override |
| Put an image of a given width and height with the expected input format (as indicated by the format method). | |
| bool | usable () override |
| Indicates if this object can be used to render images on the running system. | |
| DisplayerInput | format () override |
| Indicates the format required by the abstract put method. | |
Private Attributes | |
| bool | gotPort |
| Specifies whether the object is currently attached to an XVideo port. | |
| uint | grabbedPort |
| The current port being used. | |
| Gtk::Widget & | drawingArea_ |
| The widget that video will be drawn into. | |
| Display * | display |
| The display that video will be drawn into. | |
| Window | window |
| The X11 window that video will be drawn into. | |
| GC | gc |
| The graphics context which will be used when rendering video. | |
| XvImage * | xvImage |
| The shared memory image object which video will be written into. | |
| XShmSegmentInfo | shmInfo |
| Info about the shared memory segment. | |
Additional Inherited Members | |
Protected Member Functions inherited from Displayer | |
| 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 inherited from Displayer | |
| const uint | videoWidth |
| const uint | videoHeight |
| XvDisplayer | ( | Gtk::Widget & | drawing_area, |
| uint | width, | ||
| uint | height | ||
| ) |
Constructor.
| drawing_area | The widget into which the video image will be drawn. |
| width | of the video image image to be displayed, in pixels. |
| height | of the video image in pixels to be displayed. |
Definition at line 39 of file xv-displayer.cpp.
References XvDisplayer::display, XvDisplayer::drawingArea_, XvDisplayer::format(), XvDisplayer::gc, XvDisplayer::gotPort, XvDisplayer::grabbedPort, NULL, XvDisplayer::shmInfo, Displayer::videoHeight, Displayer::videoWidth, XvDisplayer::window, and XvDisplayer::xvImage.
Here is the call graph for this function:| ~XvDisplayer | ( | ) |
Definition at line 186 of file xv-displayer.cpp.
References XvDisplayer::display, XvDisplayer::gotPort, XvDisplayer::grabbedPort, NULL, XvDisplayer::shmInfo, and XvDisplayer::xvImage.
|
overrideprivatevirtual |
Put an image of a given width and height with the expected input format (as indicated by the format method).
| [in] | image | The video image array to draw. |
Implements Displayer.
Definition at line 215 of file xv-displayer.cpp.
References Displayer::calculateVideoLayout(), XvDisplayer::display, XvDisplayer::drawingArea_, XvDisplayer::gc, XvDisplayer::grabbedPort, NULL, Displayer::videoHeight, Displayer::videoWidth, XvDisplayer::window, and XvDisplayer::xvImage.
Here is the call graph for this function:
|
overrideprivatevirtual |
Indicates if this object can be used to render images on the running system.
Implements Displayer.
Definition at line 208 of file xv-displayer.cpp.
References XvDisplayer::gotPort.
|
inlineoverrideprivatevirtual |
Indicates the format required by the abstract put method.
Reimplemented from Displayer.
Definition at line 73 of file xv-displayer.hpp.
References lumiera::DISPLAY_YUV.
Referenced by XvDisplayer::XvDisplayer().
Here is the caller graph for this function:
|
private |
Specifies whether the object is currently attached to an XVideo port.
Definition at line 83 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), XvDisplayer::~XvDisplayer(), and XvDisplayer::usable().
|
private |
The current port being used.
Definition at line 89 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), XvDisplayer::~XvDisplayer(), and XvDisplayer::put().
|
private |
The widget that video will be drawn into.
Definition at line 95 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), and XvDisplayer::put().
|
private |
The display that video will be drawn into.
Definition at line 100 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), XvDisplayer::~XvDisplayer(), and XvDisplayer::put().
|
private |
The X11 window that video will be drawn into.
Definition at line 105 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), and XvDisplayer::put().
|
private |
The graphics context which will be used when rendering video.
Definition at line 110 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), and XvDisplayer::put().
|
private |
The shared memory image object which video will be written into.
Definition at line 115 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), XvDisplayer::~XvDisplayer(), and XvDisplayer::put().
|
private |
Info about the shared memory segment.
Definition at line 121 of file xv-displayer.hpp.
Referenced by XvDisplayer::XvDisplayer(), and XvDisplayer::~XvDisplayer().
Inheritance diagram for XvDisplayer:
Collaboration diagram for XvDisplayer: