neutrino: Add switch osd resolution when supported from hardware

- At the moment supported hardware: CS HD2

 Currently known problems:
 -------------------------
 - Display menus after changing resolution (Reboot required)
 - Display headers after changing resolution hd => fullhd (Reboot required)
 - Display infobar after changing resolution hd => fullhd (Reboot required)
 - Screenshot broken (With new driver and set resolution to 1280x720)


Origin commit data
------------------
Commit: 7b158903f8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-13 (Mon, 13 Feb 2017)

Origin message was:
------------------
neutrino: Add switch osd resolution when supported from hardware

 - At the moment supported hardware: CS HD2

 Currently known problems:
 -------------------------
 - Display menus after changing resolution (Reboot required)
 - Display headers after changing resolution hd => fullhd (Reboot required)
 - Display infobar after changing resolution hd => fullhd (Reboot required)
 - Screenshot broken (With new driver and set resolution to 1280x720)
This commit is contained in:
Michael Liebmann
2017-02-13 12:49:37 +01:00
parent 166919764a
commit 0c20bf9af6
15 changed files with 338 additions and 80 deletions

View File

@@ -39,6 +39,13 @@
typedef struct fb_var_screeninfo t_fb_var_screeninfo;
typedef struct osd_resolution_t
{
uint32_t yRes;
uint32_t xRes;
uint32_t bpp;
} osd_resolution_struct_t;
typedef struct gradientData_t
{
fb_pixel_t* gradientBuf;
@@ -271,6 +278,9 @@ class CFrameBuffer : public sigc::trackable
virtual void mark(int x, int y, int dx, int dy);
virtual int scaleFont(int size) { return size; };
virtual bool fullHdAvailable() { return false; };
virtual void setOsdResolutions();
std::vector<osd_resolution_t> osd_resolutions;
enum
{