![]() |
MediaX v1.0.0rc7 [7e6cb74]
Video streaming for military vehicles
|
The display manager class. More...
#include <display_manager_base.h>
Public Member Functions | |
DisplayManagerBase (std::string name="") | |
Construct a new Display Manager object. | |
virtual | ~DisplayManagerBase ()=default |
Destroy the Display Manager object. | |
virtual Status | Initalise ()=0 |
Initalise the display manager. | |
virtual void | Run ()=0 |
The main event loop if there is one. | |
virtual void | Stop () |
Stop the main loop if there is one. | |
virtual Resolution | GetResolution ()=0 |
Get the Resolution attribute. | |
void | SetResolution (Resolution resolution) |
Set the Resolution object. | |
std::string | GetName () |
Get the Name object. | |
virtual int | GetBytesPerPixel ()=0 |
Get the Bits Per Pixel object. | |
virtual mediax::rtp::ColourspaceType | GetColourspace () |
Get the Colourspace object. | |
virtual Status | DisplayBuffer (uint8_t *frame_buffer, Resolution resolution, std::string text)=0 |
Buffer must be in the format RGBA. | |
Status | Rescale (uint8_t *frame_buffer, void *display_buffer, Resolution resolution, int height, int width) |
Rescale the video if needed. | |
virtual void | Flush ()=0 |
Flush the framebuffer /dev/fb0. | |
virtual void | ToggleFullscreen () |
Toggle Fullscreen object. | |
Data Fields | |
Resolution | last_requested_resolution_ = {0, 0, 0} |
Last requested resolution. | |
std::vector< uint8_t > | scaled_frame_buffer_ |
Scaled frame buffer for resolutions that do not match the display. | |
std::string | name_ |
The name of the display, can be used in the window title if windowing is supported. | |
The display manager class.
|
pure virtual |
Buffer must be in the format RGBA.
frame_buffer | the frame buffer to display |
resolution | the resolution of the frame buffer |
text | The text to display |
Implemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
pure virtual |
Flush the framebuffer /dev/fb0.
Implemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
pure virtual |
Get the Bits Per Pixel object.
Implemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
inlinevirtual |
Get the Colourspace object.
Reimplemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
inline |
Get the Name object.
|
pure virtual |
Get the Resolution attribute.
Implemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
pure virtual |
Initalise the display manager.
Implemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
Status mediax::DisplayManagerBase::Rescale | ( | uint8_t * | frame_buffer, |
void * | display_buffer, | ||
Resolution | resolution, | ||
int | height, | ||
int | width | ||
) |
Rescale the video if needed.
frame_buffer | The video buffer |
display_buffer | The scaled video buffer |
resolution | The video buffer resolution |
height | The required height |
width | The required width |
|
pure virtual |
The main event loop if there is one.
Implemented in mediax::fb::DisplayManager, mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
inline |
Set the Resolution object.
resolution |
|
inlinevirtual |
Stop the main loop if there is one.
Reimplemented in mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.
|
inlinevirtual |
Toggle Fullscreen object.
Reimplemented in mediax::gtk4::DisplayManager, and mediax::sdl::DisplayManager.