---help---
this function be used scale-up UI when video, it only support RGB565 UI;
+config FB_SCALING_OSD_1080P
+ bool "fb scale OSD support when video playing in 1080P "
+ depends on FB_WORK_IPP && FB_SCALING_OSD
+ ---help---
+ this function be used scale-up UI when video, it only support RGB565 UI;
+ should set SCALE_UI_1080P_VIDEO to 1 in android
config FB_ROTATE_VIDEO
bool "fb video rotate support"
depends on FB_WORK_IPP
cancel_delayed_work_sync(&rk29_win1_check_work);
#endif
if(((screen->x_res != var->xres) || (screen->y_res != var->yres))
- && !((screen->x_res>1280) && (var->bits_per_pixel == 32)))
+ #ifndef CONFIG_FB_SCALING_OSD_1080P
+ && !((screen->x_res>1280) && (var->bits_per_pixel == 32))
+ #endif
+ )
{
hdmi_set_fbscale(info);
- }else if(((screen->x_res==1920) ))
+ }
+ #ifndef CONFIG_FB_SCALING_OSD_1080P
+ else if(((screen->x_res==1920) ))
{
if(hdmi_get_fbscale() < 100)
par->ypos -=screen->y_res * (100-hdmi_get_fbscale()) / 200;
}
+ #endif
//u32 offset=0, addr=0, map_size=0, smem_len=0;
addr=0;
xres_virtual = 0; //virtual screen size
#ifdef CONFIG_FB_SCALING_OSD
if(((screen->x_res != var->xres) || (screen->y_res != var->yres))
- && (screen->x_res<=1280))
+ #ifndef CONFIG_FB_SCALING_OSD_1080P
+ && (screen->x_res<=1280)
+ #endif
+ )
{
addr = fix->mmio_start + par->y_offset* hdmi_get_fbscale()/100;
xres_virtual = screen->x_res* hdmi_get_fbscale()/100; //virtual screen size
struct rk29fb_screen *screen = inf->cur_screen;
struct fb_var_screeninfo *var = &info->var;
if(((screen->x_res != var->xres) || (screen->y_res != var->yres))
- && (screen->x_res<=1280))
+ #ifndef CONFIG_FB_SCALING_OSD_1080P
+ && (screen->x_res<=1280)
+ #endif
+ )
{
addr = fix1->mmio_start + par->y_offset* hdmi_get_fbscale()/100;
}
{
#ifdef CONFIG_FB_SCALING_OSD
if(((screen->x_res != var->xres) || (screen->y_res != var->yres))
- && (screen->x_res<=1280))
+ #ifndef CONFIG_FB_SCALING_OSD_1080P
+ && (screen->x_res<=1280)
+ #endif
+ )
{
par->xpos = 0;
par->ypos = 0;
{
#ifdef CONFIG_FB_SCALING_OSD
if(((screen->x_res != var->xres) || (screen->y_res != var->yres))
- && (screen->x_res<=1280))
+ #ifndef CONFIG_FB_SCALING_OSD_1080P
+ && (screen->x_res<=1280)
+ #endif
+ )
{
par->y_offset = dstoffset;
par->par_seted = 0;
par->addr_seted = 0;
win1_blank(FB_BLANK_NORMAL, info);
+
//if(inf->cur_screen->type != SCREEN_HDMI)
fb0_set_par(inf->fb0);