Changeset 32649


Ignore:
Timestamp:
01/24/15 11:22:36 (9 years ago)
Author:
Stephan
Message:

prepare new oled indicators

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r32345 r32649  
    5858                *rettype = FUNCPIC;
    5959                return &getoledstreaming;
     60        }
     61
     62    if(ostrcmp("getoledcrypt", value) == 0)
     63        {
     64                *rettype = FUNCPIC;
     65                return &getoledcrypt;
     66        }
     67
     68    if(ostrcmp("getoledchannelaspect", value) == 0)
     69        {
     70                *rettype = FUNCPIC;
     71                return &getoledchannelaspect;
     72        }
     73
     74    if(ostrcmp("getoledchannelresolution", value) == 0)
     75            {
     76                    *rettype = FUNCPIC;
     77                    return &getoledchannelresolution;
     78            }
     79
     80    if(ostrcmp("getoledsdhd", value) == 0)
     81        {
     82                *rettype = FUNCPIC;
     83                return &getoledsdhd;
    6084        }
    6185
  • titan/titan/skinfunc.h

    r32355 r32649  
    144144
    145145#ifdef MIPSEL
     146//oled indicators for Nemesis
    146147//rec png
    147148        char* getoledrec(struct skin* node, char* path)
     
    206207                return tmpstr;
    207208        }
     209
     210//crypt png
     211    char* getoledcrypt(struct skin* node, char* path)
     212    {
     213            char* tmpstr = NULL;
     214
     215            if(status.aktservice->channel != NULL)
     216            {
     217                    if(status.aktservice->channel->crypt > 0)
     218                            tmpstr = ostrcat("oledcrypt.png", NULL, 0, 0);
     219                    else
     220                            tmpstr = ostrcat("olednocrypt.png", NULL, 0, 0);
     221
     222                    if(path != NULL)
     223                            tmpstr = ostrcat("/", tmpstr, 0, 1);
     224                    tmpstr = ostrcat(path, tmpstr, 0, 1);
     225            }
     226       
     227            return tmpstr;
     228    }
     229
     230//real aspect png
     231    char* getoledchannelaspect(struct skin* node, char* path)
     232    {
     233            char* tmpstr = NULL;
     234       
     235            videoreadqwidth(status.aktservice->videodev);
     236
     237    //  if(getaktvideosize() == 0) //videosize is ok
     238    //  {
     239                    if(status.videosize.aspect_ratio == 0)
     240                            tmpstr = ostrcat("oled4_3.png", NULL, 0, 0);
     241                    else if(status.videosize.aspect_ratio == 1)
     242                            tmpstr = ostrcat("oled16_9.png", NULL, 0, 0);
     243    //  }
     244       
     245            if(tmpstr == NULL) tmpstr = ostrcat("olednovideoasp.png", NULL, 0, 0);
     246
     247            if(path != NULL)
     248                    tmpstr = ostrcat("/", tmpstr, 0, 1);
     249            tmpstr = ostrcat(path, tmpstr, 0, 1);
     250
     251            return tmpstr;
     252    }
     253
     254//real resolution png
     255    char* getoledchannelresolution(struct skin* node, char* path)
     256    {
     257            char* tmpstr = NULL;
     258
     259            videoreadqwidth(status.aktservice->videodev);
     260
     261    //  if(getaktvideosize() == 0) //videosize is ok
     262    //  {
     263                    if(status.videosize.h == 576)
     264                            tmpstr = ostrcat("oled576.png", NULL, 0, 0);
     265                    else if(status.videosize.h == 720)
     266                            tmpstr = ostrcat("oled720.png", NULL, 0, 0);
     267                    else if(status.videosize.h == 1080)
     268                            tmpstr = ostrcat("oled1080.png", NULL, 0, 0);
     269    //  }
     270       
     271            if(tmpstr == NULL) tmpstr = ostrcat("olednovideores.png", NULL, 0, 0);
     272
     273            if(path != NULL)
     274                    tmpstr = ostrcat("/", tmpstr, 0, 1);
     275            tmpstr = ostrcat(path, tmpstr, 0, 1);
     276
     277            return tmpstr;
     278    }
     279
     280//sh/hd png
     281    char* getoledsdhd(struct skin* node, char* path)
     282    {
     283            char* tmpstr = NULL;
     284
     285            videoreadqwidth(status.aktservice->videodev);
     286
     287    //  if(getaktvideosize() == 0) //videosize is ok
     288    //  {
     289                    if(status.videosize.h == 576)
     290                            tmpstr = ostrcat("oledsd.png", NULL, 0, 0);
     291                    else if(status.videosize.h == 720)
     292                            tmpstr = ostrcat("oledhdready.png", NULL, 0, 0);
     293                    else if(status.videosize.h == 1080)
     294                            tmpstr = ostrcat("oledhd.png", NULL, 0, 0);
     295    //  }
     296       
     297            if(tmpstr == NULL) tmpstr = ostrcat("olednovideo.png", NULL, 0, 0);
     298
     299            if(path != NULL)
     300                    tmpstr = ostrcat("/", tmpstr, 0, 1);
     301            tmpstr = ostrcat(path, tmpstr, 0, 1);
     302
     303            return tmpstr;
     304    }
     305
    208306       
    209307#endif
Note: See TracChangeset for help on using the changeset viewer.