![]() |
MediaX v1.1.2 [7554dd3]
Video streaming for military vehicles
|
The display manager class. More...
#include <display_manager_fb.h>


Public Member Functions | |
| DisplayManager ()=default | |
| Construct a new Display Manager object. | |
| ~DisplayManager () | |
| Destroy the Display Manager object. | |
| DisplayManager (const DisplayManager &)=delete | |
| Construct a new Display Manager object (deleted) | |
| DisplayManager & | operator= (const DisplayManager &)=delete |
| Delete the copy operator. | |
| Status | Initalise () override |
| Initalise the display manager. | |
| void | Run () override |
| Run the main loop if these is one. | |
| Resolution | GetResolution () override |
| Get the Resolution attribute. | |
| int | GetBytesPerPixel () final |
| Get the Bits Per Pixel object. | |
| mediax::rtp::ColourspaceType | GetColourspace () final |
| Get the Colourspace object. | |
| Status | DisplayBuffer (uint8_t *frame_buffer, Resolution resolution, std::string text) override |
| Buffer must be in the format RGBA. | |
| void | Flush () override |
| Flush the framebuffer /dev/fb0. | |
Public Member Functions inherited from mediax::DisplayManagerBase | |
| DisplayManagerBase (std::string name="") | |
| Construct a new Display Manager object. | |
| virtual | ~DisplayManagerBase ()=default |
| Destroy the Display Manager object. | |
| virtual void | Stop () |
| Stop the main loop if there is one. | |
| void | SetResolution (Resolution resolution) |
| Set the Resolution object. | |
| std::string | GetName () |
| Get the Name object. | |
| Status | Rescale (uint8_t *frame_buffer, void *display_buffer, Resolution resolution, int height, int width) |
| Rescale the video if needed. | |
| virtual void | ToggleFullscreen () |
| Toggle Fullscreen object. | |
Private Attributes | |
| std::string | fb_name_ = "/dev/fb0" |
| Frame buffer device name. | |
| void * | frame_buffer_ |
| Frame buffer device. | |
| struct fb_fix_screeninfo | fix_info_ |
| Frame buffer device. | |
| struct fb_var_screeninfo | var_info_ |
| Frame buffer info. | |
| int32_t | frame_buffer_frame_device_ |
| Frame buffer device handle. | |
| bool | initaliased_ = false |
| Initalized flag. | |
Additional Inherited Members | |
Data Fields inherited from mediax::DisplayManagerBase | |
| 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.
|
overridevirtual |
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 |
Implements mediax::DisplayManagerBase.
|
overridevirtual |
Flush the framebuffer /dev/fb0.
Implements mediax::DisplayManagerBase.
|
inlinefinalvirtual |
Get the Bits Per Pixel object.
Implements mediax::DisplayManagerBase.
|
inlinefinalvirtual |
Get the Colourspace object.
Reimplemented from mediax::DisplayManagerBase.
|
overridevirtual |
|
overridevirtual |
|
delete |
Delete the copy operator.
|
inlineoverridevirtual |
Run the main loop if these is one.
Implements mediax::DisplayManagerBase.