Changeset 841


Ignore:
Timestamp:
11/19/09 00:53:04 (4 years ago)
Author:
EWAVR
Message:
  • IXUS700(SD500): fixed modes map.
  • color zebra: fixed false "spots in darkness".
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/gui_osd.c

    r805 r841  
    8686#define OSD_MISC     1 
    8787 
     88unsigned char clip8(signed short x){ if (x<0) x=0; else if (x>255) x=255; return x; } 
    8889 
    8990//------------------------------------------------------------------- 
     
    458459                        sel=0; 
    459460                        if (!((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) { 
    460                             if (((yy<<12) +           vv*5743 + 2048)>>12>over) sel  = 4; // R 
    461                             if (((yy<<12) - uu*1411 - vv*2925 + 2048)>>12>over) sel |= 2; // G 
    462                             if (((yy<<12) + uu*7258           + 2048)>>12>over) sel |= 1; // B 
     461                            if (clip8(((yy<<12) +           vv*5743 + 2048)>>12)>over) sel  = 4; // R 
     462                            if (clip8(((yy<<12) - uu*1411 - vv*2925 + 2048)>>12)>over) sel |= 2; // G 
     463                            if (clip8(((yy<<12) + uu*7258           + 2048)>>12)>over) sel |= 1; // B 
    463464                        } 
    464465                        buf[s]=buf[s+1]=cls[sel]; 
     
    646647                        sel=0; 
    647648                        if (!((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) { 
    648                             if (((yy<<12) +           vv*5743 + 2048)>>12>over) sel  = 4; // R 
    649                             if (((yy<<12) - uu*1411 - vv*2925 + 2048)>>12>over) sel |= 2; // G 
    650                             if (((yy<<12) + uu*7258           + 2048)>>12>over) sel |= 1; // B 
     649                            if (clip8(((yy<<12) +           vv*5743 + 2048)>>12)>over) sel  = 4; // R 
     650                            if (clip8(((yy<<12) - uu*1411 - vv*2925 + 2048)>>12)>over) sel |= 2; // G 
     651                            if (clip8(((yy<<12) + uu*7258           + 2048)>>12)>over) sel |= 1; // B 
    651652                        } 
    652653                        buf[s]=buf[s+1]=cls[sel]; 
  • trunk/platform/ixus700_sd500/main.c

    r838 r841  
    187187        int canonmode; 
    188188} modemap[] = { 
     189    { MODE_DIGITAL_MACRO,       0 }, 
    189190    { MODE_P,                   1 }, 
     191    { MODE_NIGHT,               2 }, // 1-15s 
    190192    { MODE_AUTO,                3 }, 
    191193    { MODE_MY_COLORS,           4 }, 
Note: See TracChangeset for help on using the changeset viewer.