y 65 core/autoiso.c int x, y; y 66 core/autoiso.c for (y=0; y<vp_height; y+=1, img+=vp_offset) y 1456 core/conf.c configVal->pos.y = pos->y; y 1544 core/conf.c pos->y = configVal.pos.y; y 87 core/console.c int y = (console_y + console_max_lines - 1) * FONT_HEIGHT; y 96 core/console.c draw_string_justified(x, y - c * FONT_HEIGHT, buf, col, 0, console_line_length * FONT_WIDTH, TEXT_LEFT|TEXT_FILL); y 223 core/console.c coord y = (camera_screen.height - (h+1) * FONT_HEIGHT) >> 1; y 225 core/console.c draw_rectangle(x-3, y-3, x+w*FONT_WIDTH+3, y+(h+1)*FONT_HEIGHT+2, col, RECT_BORDER1|DRAW_FILLED); // main box y 226 core/console.c draw_rectangle(x-2, y-2, x+w*FONT_WIDTH+2, y+FONT_HEIGHT+1, col, RECT_BORDER1|DRAW_FILLED); //title y 228 core/console.c draw_string_justified(x, y, "Console - press SET to close", col, 0, w*FONT_WIDTH, TEXT_CENTER); //title text y 229 core/console.c y += FONT_HEIGHT + 2; y 235 core/console.c draw_string_justified(x-1, y + c * FONT_HEIGHT, console_buf[i], col, 0, w * FONT_WIDTH, TEXT_LEFT|TEXT_FILL); y 239 core/console.c draw_rectangle(x+w*FONT_WIDTH, y+((MAX_CONSOLE_HISTORY-console_scroll-h)*(h*FONT_HEIGHT))/MAX_CONSOLE_HISTORY, y 240 core/console.c x+w*FONT_WIDTH+2, y+((MAX_CONSOLE_HISTORY-console_scroll)*(h*FONT_HEIGHT))/MAX_CONSOLE_HISTORY-1, y 54 core/gps_math.c double arctan2(double y, double x){ y 56 core/gps_math.c result = 2.0 * arctan((y / (sqrt(x*x+y*y)+x)),30); y 296 core/gps_math.c rcb->values[i].y = 0; y 304 core/gps_math.c void regressionAdd (t_regression *rcb, double x, double y) { y 310 core/gps_math.c double old_y = rcb->values[rcb->index].y; y 312 core/gps_math.c rcb->values[rcb->index].y = 0; y 326 core/gps_math.c rcb->sy += y; y 328 core/gps_math.c rcb->sxy += x*y; y 334 core/gps_math.c rcb->values[rcb->index].y = y; y 382 core/gps_math.c double regressionReverse (t_regression *rcb, double y) { y 384 core/gps_math.c return rcb->s != 0.0 ? (y - rcb->t) / rcb->s : 1e9; y 10 core/gps_math.h extern double arctan2(double y, double x); y 52 core/gps_math.h double y; y 76 core/gps_math.h extern void regressionAdd (t_regression *rcb, double x, double y); y 79 core/gps_math.h extern double regressionReverse (t_regression *rcb, double y); y 279 core/gui.c coord y = (camera_screen.height - EXP_TEXT_HEIGHT*FONT_HEIGHT) >> 1; y 281 core/gui.c draw_text_justified(x, y, exp_text, cl, EXP_TEXT_WIDTH, camera_info.state.gui_mode_alt ? EXP_TEXT_HEIGHT : 1, TEXT_CENTER|TEXT_FILL); y 284 core/gui.c void do_expire_splash(int x,int y) { y 293 core/gui.c draw_string(x-((strlen(under_dev_text)*FONT_WIDTH)>>1), y, under_dev_text, cl); y 2332 core/gui.c coord x, y; y 2349 core/gui.c y = ((camera_screen.height-logo_text_height)>>1) + 20; y 2351 core/gui.c draw_rectangle(x, y, x+logo_text_width, y+logo_text_height, MAKE_COLOR(COLOR_RED, COLOR_RED), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 2354 core/gui.c draw_string(x+((logo_text_width-strlen(text[i])*FONT_WIDTH)>>1), y+i*FONT_HEIGHT+4, text[i], cl); y 2358 core/gui.c do_expire_splash(x+((logo_text_width)>>1),y+(i+1)*FONT_HEIGHT+4); y 2536 core/gui.c static int shortcut_text(int x, int y, int button, int func_str, const char *state, twoColors col) y 2556 core/gui.c draw_string(x, y, buf, col); y 2557 core/gui.c return y + FONT_HEIGHT; y 2584 core/gui.c int y = FONT_HEIGHT; y 2594 core/gui.c draw_string(x, y, buf, hdr_col); y 2595 core/gui.c y += FONT_HEIGHT; y 2603 core/gui.c draw_string(x, y, buf, col); y 2604 core/gui.c y += FONT_HEIGHT; y 2607 core/gui.c draw_string(x, y, lang_str(LANG_HELP_SCRIPTS), col); y 2608 core/gui.c y += FONT_HEIGHT; y 2611 core/gui.c y = shortcut_text(x, y, SHORTCUT_MF_TOGGLE,LANG_HELP_MANUAL_FOCUS,gui_on_off_enum(0,&conf.subj_dist_override_koef), col); y 2617 core/gui.c draw_string(x, y, buf, col); y 2618 core/gui.c y += FONT_HEIGHT; y 2624 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_RAW,LANG_MENU_DEBUG_SHORTCUT_ACTION,gui_debug_shortcut_modes[conf.debug_shortcut_action], col); y 2631 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_RAW, LANG_HELP_INF_FOCUS, 0, col); y 2633 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_RAW, LANG_HELP_CHG_FOCUS_FACTOR, 0, col); y 2637 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_RAW,LANG_MENU_RAW_SAVE,(conf.save_raw?(conf.dng_raw?"DNG":"RAW"):"Off"), col); y 2641 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_RAW,LANG_MENU_DEBUG_SHORTCUT_ACTION,gui_debug_shortcut_modes[conf.debug_shortcut_action], col); y 2644 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_RAW,LANG_MENU_RAW_SAVE,(conf.save_raw?(conf.dng_raw?"DNG":"RAW"):"Off"), col); y 2647 core/gui.c y = shortcut_text(x, y, 0 ,LANG_HELP_HALF_PRESS, 0, hdr_col); y 2651 core/gui.c y = shortcut_text(x, y, SHORTCUT_DISABLE_OVERRIDES,LANG_MENU_OVERRIDE_DISABLE,gui_override_disable_modes[conf.override_disable], col); y 2652 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_HISTO,LANG_MENU_HISTO_SHOW,gui_histo_show_modes[conf.show_histo], col); y 2653 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_ZEBRA,LANG_MENU_ZEBRA_DRAW,gui_on_off_enum(0,&conf.zebra_draw), col); y 2654 core/gui.c y = shortcut_text(x, y, SHORTCUT_TOGGLE_OSD,LANG_MENU_OSD_SHOW,gui_on_off_enum(0,&conf.show_osd), col); y 2658 core/gui.c y = shortcut_text(x, y, 0,LANG_HELP_SHORTCUTS_DISABLED, 0, col); y 2662 core/gui.c y = shortcut_text(x, y, KEY_DISPLAY, LANG_HELP_HIDE_OSD, 0, col); y 2665 core/gui.c y = shortcut_text(x, y, 0 ,LANG_HELP_NOT_ALT, 0, col); y 3051 core/gui.c int gui_touch_process(int x, int y) y 3054 core/gui.c return gui_mode->touch_handler(x, y); y 66 core/gui_batt.c draw_icon_cmds(conf.batt_icon_pos.x, conf.batt_icon_pos.y, batt_icon); y 73 core/gui_draw.c unsigned int y; y 75 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,y,o); y 88 core/gui_draw.c bbu[offs2+3] = y; // Y y 92 core/gui_draw.c bbu[offs2+1] = y; // Y y 102 core/gui_draw.c (bitmap_buffer[0])[offs2+3] = y; // Y y 103 core/gui_draw.c (bitmap_buffer[1])[offs2+3] = y; // Y y 107 core/gui_draw.c (bitmap_buffer[0])[offs2+1] = y; // Y y 108 core/gui_draw.c (bitmap_buffer[1])[offs2+1] = y; // Y y 127 core/gui_draw.c int x, y; y 132 core/gui_draw.c for (y = 0; y < vid_get_viewport_height(); y += 1) { y 147 core/gui_draw.c for (y = 0; y < vid_get_viewport_height(); y += 1) { y 168 core/gui_draw.c unsigned int y,u,v,o; y 170 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,y,o); y 173 core/gui_draw.c return (u&255)+((y&255)<<8)+((v&255)<<16)+(y<<24); y 269 core/gui_draw.c static void draw_1pixel_simple(coord x, coord y, int px, int vrepeat) y 271 core/gui_draw.c if ((x < 0) || (y < 0) || (x >= camera_screen.width) || (y+vrepeat >= camera_screen.height)/* || ((x == 0) && (y == 0))*/) return; y 272 core/gui_draw.c unsigned int offset = y * camera_screen.buffer_width + x; y 341 core/gui_draw.c static void draw_2pixels_simple(coord x, coord y, int px, int vrepeat) y 343 core/gui_draw.c if ((x < 0) || (y < 0) || (x+1 >= camera_screen.width) || (y+vrepeat >= camera_screen.height)/* || ((x == 0) && (y == 0))*/) return; y 345 core/gui_draw.c unsigned int offset = (y * camera_screen.buffer_width + x)>>1; y 390 core/gui_draw.c void draw_hline_simple(coord x, coord y, int len, int px) y 392 core/gui_draw.c if ((y < 0) || (x >= camera_screen.width) || (y >= camera_screen.height)) return; y 396 core/gui_draw.c register unsigned int offset = y * camera_screen.buffer_width + (x); y 564 core/gui_draw.c void draw_pixel(coord x, coord y, color cl) y 567 core/gui_draw.c if ((x < 0) || (y < 0) || (x >= camera_screen.width) || (y >= camera_screen.height) || ((x == 0) && (y == 0))) return; y 570 core/gui_draw.c register unsigned int offset = y * camera_screen.buffer_width + ASPECT_XCORRECTION(x); y 621 core/gui_draw.c unsigned int y; y 623 core/gui_draw.c CALC_YUV_LUMA_OPACITY_FOR_COLOR(cl,y,o); y 638 core/gui_draw.c bbu[offs2+3] = y; // Y y 642 core/gui_draw.c bbu[offs2+1] = y; // Y y 651 core/gui_draw.c (bitmap_buffer[0])[offs2+3] = y; // Y y 652 core/gui_draw.c (bitmap_buffer[1])[offs2+3] = y; // Y y 656 core/gui_draw.c (bitmap_buffer[0])[offs2+1] = y; // Y y 657 core/gui_draw.c (bitmap_buffer[1])[offs2+1] = y; // Y y 669 core/gui_draw.c color draw_get_pixel(coord x, coord y) y 672 core/gui_draw.c if ((x < 0) || (y < 0) || (x >= camera_screen.width) || (y >= camera_screen.height)) return 0; y 676 core/gui_draw.c return bitmap_buffer[0][rotate_base - (y * camera_screen.buffer_width + ASPECT_XCORRECTION(x))]; y 678 core/gui_draw.c return frame_buffer[0][rotate_base - (y * camera_screen.buffer_width + ASPECT_XCORRECTION(x))]; y 684 core/gui_draw.c return bitmap_buffer[0][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x)]; y 686 core/gui_draw.c return frame_buffer[0][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x)]; y 691 core/gui_draw.c (void)x; (void)y; y 715 core/gui_draw.c int y = y1; y 720 core/gui_draw.c if (steep) draw_pixel(y, x, cl); y 721 core/gui_draw.c else draw_pixel(x, y, cl); y 725 core/gui_draw.c y += ystep; y 749 core/gui_draw.c int y = y1; y 755 core/gui_draw.c draw_pixel(y, x, cl); y 756 core/gui_draw.c draw_pixel(y+1, x, cl); y 757 core/gui_draw.c draw_pixel(y, x+1, cl); y 758 core/gui_draw.c draw_pixel(y+1, x+1, cl); y 760 core/gui_draw.c draw_pixel(x, y, cl); y 761 core/gui_draw.c draw_pixel(x+1, y, cl); y 762 core/gui_draw.c draw_pixel(x, y+1, cl); y 763 core/gui_draw.c draw_pixel(x+1, y+1, cl); y 768 core/gui_draw.c y += ystep; y 776 core/gui_draw.c void draw_hline(coord x, coord y, int len, color cl) y 778 core/gui_draw.c if ((y < 0) || (x >= camera_screen.width) || (y >= camera_screen.height)) return; y 784 core/gui_draw.c if ((y == camera_screen.height-1) && ((x+len) >= camera_screen.width-1)) { x--; len--; } // Skip guard pixel y 788 core/gui_draw.c if ((y == 0) && (x == 0)) { x++; len--; } // Skip guard pixel y 791 core/gui_draw.c register unsigned int offset = y * camera_screen.buffer_width + ASPECT_XCORRECTION(x); y 797 core/gui_draw.c void draw_vline(coord x, coord y, int len, color cl) y 799 core/gui_draw.c if ((x < 0) || (x >= camera_screen.width) || (y >= camera_screen.height)) return; y 800 core/gui_draw.c if (y < 0) { len += y; y = 0; } y 801 core/gui_draw.c if ((y + len) > camera_screen.height) len = camera_screen.height - y; y 802 core/gui_draw.c for (; len>0; len--, y++) y 803 core/gui_draw.c draw_pixel(x, y, cl); y 861 core/gui_draw.c coord y; y 862 core/gui_draw.c for (y = y1; y <= y2; ++y) y 863 core/gui_draw.c draw_hline(x1, y, x2 - x1 + 1, BG_COLOR(cl)); y 890 core/gui_draw.c void draw_char(coord x, coord y, const char ch, twoColors cl) y 899 core/gui_draw.c draw_hline(x, y+i, FONT_WIDTH, BG_COLOR(cl)); y 917 core/gui_draw.c draw_pixel(x+ii, y+i, (dsym & (0x80>>ii))? FG_COLOR(cl) : BG_COLOR(cl)); y 924 core/gui_draw.c draw_pixel(x+ii, y+i, (dsym & (0x80>>ii))? FG_COLOR(cl) : BG_COLOR(cl)); y 933 core/gui_draw.c draw_hline(x, y+i, FONT_WIDTH, BG_COLOR(cl)); y 939 core/gui_draw.c void draw_char(coord x, coord y, const char ch, twoColors cl) y 956 core/gui_draw.c draw_hline_simple(x, y+j, fw, 0); y 957 core/gui_draw.c draw_hline_simple(x, y+j+1, fw, 0); y 991 core/gui_draw.c unsigned int yt = y+(i<<1); y 1019 core/gui_draw.c draw_hline_simple(x, y+j, fw, 0); y 1020 core/gui_draw.c draw_hline_simple(x, y+j+1, fw, 0); y 1024 core/gui_draw.c void draw_char_unscaled(coord x, coord y, const char ch, twoColors cl) y 1039 core/gui_draw.c draw_hline_simple(x, y+i, fw, 0); y 1060 core/gui_draw.c unsigned int yt = y+(i); y 1086 core/gui_draw.c draw_hline_simple(x, y+i, fw, 0); y 1093 core/gui_draw.c void draw_char_scaled(coord x, coord y, const char ch, twoColors cl, int xsize, int ysize) y 1105 core/gui_draw.c draw_rectangle(x,y,x+FONT_WIDTH*xsize-1,y+offset*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); y 1130 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); y 1139 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); y 1148 core/gui_draw.c draw_rectangle(x,y+i*ysize,x+FONT_WIDTH*xsize-1,y+FONT_HEIGHT*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); y 1153 core/gui_draw.c void draw_char_scaled(coord x, coord y, const char ch, twoColors cl, int xsize, int ysize) y 1167 core/gui_draw.c draw_rectangle(x,y,x+FONT_WIDTH*xsize-1,y+offset*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); y 1206 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); y 1215 core/gui_draw.c draw_rectangle(x+(ii-len)*xsize,y+i*ysize,x+ii*xsize-1,y+i*ysize+ysize-1,(last)?clf:clb,RECT_BORDER0|DRAW_FILLED); y 1224 core/gui_draw.c draw_rectangle(x,y+i*ysize,x+FONT_WIDTH*xsize-1,y+FONT_REAL_HEIGHT*ysize+ysize-1,clb,RECT_BORDER0|DRAW_FILLED); y 1231 core/gui_draw.c int draw_string_clipped(coord x, coord y, const char *s, twoColors cl, int max_width) y 1235 core/gui_draw.c draw_char(x, y, *s, cl); y 1241 core/gui_draw.c draw_char(x-FONT_WIDTH,y, '>', cl); y 1249 core/gui_draw.c int draw_string(coord x, coord y, const char *s, twoColors cl) y 1251 core/gui_draw.c return draw_string_clipped(x, y, s, cl, camera_screen.width); y 1259 core/gui_draw.c int draw_string_justified(coord x, coord y, const char *s, twoColors cl, int xo, int max_width, int justification) y 1283 core/gui_draw.c draw_rectangle(x, y, x+xo-1, y+FONT_HEIGHT-1, cl, RECT_BORDER0|DRAW_FILLED); y 1286 core/gui_draw.c l = draw_string_clipped(x+xo, y, s, cl, max_width - xo) - x; y 1290 core/gui_draw.c draw_rectangle(x+l, y, x+max_width-1, y+FONT_HEIGHT-1, cl, RECT_BORDER0|DRAW_FILLED); y 1332 core/gui_draw.c int draw_text_justified(coord x, coord y, const char *s, twoColors cl, int max_chars, int max_lines, int justification) y 1340 core/gui_draw.c rx = draw_string_justified(x, y, s, cl, 0, max_chars*FONT_WIDTH, justification); y 1343 core/gui_draw.c y += FONT_HEIGHT; y 1351 core/gui_draw.c void draw_string_scaled(coord x, coord y, const char *s, twoColors cl, int xsize, int ysize) y 1355 core/gui_draw.c draw_char_scaled(x, y, *s, cl, xsize, ysize); y 1360 core/gui_draw.c draw_char_scaled(x-FONT_WIDTH*xsize,y, '>', cl, xsize, ysize); y 1368 core/gui_draw.c void draw_string_scaled(coord x, coord y, const char *s, twoColors cl, int xsize, int ysize) y 1374 core/gui_draw.c draw_char_unscaled(x, y, *s, cl); y 1379 core/gui_draw.c draw_char_unscaled(x-FONT_REAL_WIDTH,y, '>', cl); y 1388 core/gui_draw.c draw_char_scaled(x, y, *s, cl, xsize, ysize); y 1393 core/gui_draw.c draw_char_scaled(x-FONT_WIDTH*xsize,y, '>', cl, xsize, ysize); y 1405 core/gui_draw.c if ((scale.x == 0) || (scale.y == 0) || ((scale.x == 1) && (scale.y == 1))) y 1406 core/gui_draw.c draw_string(pos.x+xo, pos.y+yo, s, c); y 1408 core/gui_draw.c draw_string_scaled(pos.x+(xo*scale.x), pos.y+(yo*scale.y), s, c, scale.x, scale.y); y 1415 core/gui_draw.c if ((scale.x == 1) && (scale.y == 1)) y 1417 core/gui_draw.c draw_string(pos.x+xo, pos.y+yo, s, c); y 1419 core/gui_draw.c else if ((scale.x == 0) || (scale.y == 0)) y 1421 core/gui_draw.c draw_string_scaled(pos.x+(xo>>1), pos.y+(yo>>1), s, c, scale.x, scale.y); y 1425 core/gui_draw.c draw_string_scaled(pos.x+(xo*scale.x), pos.y+(yo*scale.y), s, c, scale.x, scale.y); y 1554 core/gui_draw.c void draw_button(int x, int y, int w, int str_id, int active) y 1559 core/gui_draw.c draw_rectangle(x-2, y-2, x+w+2, y+FONT_HEIGHT+2, cl, RECT_BORDER1|DRAW_FILLED|RECT_SHADOW1); // main box y 1560 core/gui_draw.c draw_string(x+((w-(strlen(lang_str(str_id))*FONT_WIDTH))>>1), y, lang_str(str_id), cl); y 1566 core/gui_draw.c void draw_icon_cmds(coord x, coord y, icon_cmd *cmds) y 1595 core/gui_draw.c draw_hline(x+x1, y+y1, x2, cb); y 1597 core/gui_draw.c draw_hline(x+x1, y+y1+1, x2, cb); y 1601 core/gui_draw.c draw_vline(x+x1, y+y1, y2, cb); y 1603 core/gui_draw.c draw_vline(x+x1+1, y+y1, y2, cb); y 1608 core/gui_draw.c draw_line_x2(x+x1, y+y1, x+x2, y+y2, cb); y 1610 core/gui_draw.c draw_line(x+x1, y+y1, x+x2, y+y2, cb); y 1615 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2+1, y+y2+1, MAKE_COLOR(cb,cf), thickness); y 1617 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2, y+y2, MAKE_COLOR(cb,cf), thickness); y 1622 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2+1, y+y2+1, MAKE_COLOR(cb,cf), thickness|DRAW_FILLED); y 1624 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2, y+y2, MAKE_COLOR(cb,cf), thickness|DRAW_FILLED); y 1629 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2+1, y+y2+1, MAKE_COLOR(cb,cf), thickness|RECT_ROUND_CORNERS); y 1631 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2, y+y2, MAKE_COLOR(cb,cf), thickness|RECT_ROUND_CORNERS); y 1636 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2+1, y+y2+1, MAKE_COLOR(cb,cf), thickness|DRAW_FILLED|RECT_ROUND_CORNERS); y 1638 core/gui_draw.c draw_rectangle(x+x1, y+y1, x+x2, y+y2, MAKE_COLOR(cb,cf), thickness|DRAW_FILLED|RECT_ROUND_CORNERS); y 107 core/gui_draw.h extern color draw_get_pixel(coord x, coord y); y 108 core/gui_draw.h extern void draw_pixel(coord x, coord y, color cl); y 109 core/gui_draw.h extern void draw_or_erase_edge_pixel(coord x, coord y, color cl, int is_draw); y 116 core/gui_draw.h extern void draw_hline(coord x, coord y, int len, color cl); y 117 core/gui_draw.h extern void draw_vline(coord x, coord y, int len, color cl); y 125 core/gui_draw.h extern void draw_char(coord x, coord y, const char ch, twoColors cl); y 126 core/gui_draw.h extern int draw_string_clipped(coord x, coord y, const char *s, twoColors cl, int max_width); y 127 core/gui_draw.h extern int draw_string(coord x, coord y, const char *s, twoColors cl); y 128 core/gui_draw.h extern int draw_string_justified(coord x, coord y, const char *s, twoColors cl, int xo, int max_width, int justification); y 129 core/gui_draw.h extern int draw_text_justified(coord x, coord y, const char *s, twoColors cl, int max_chars, int max_lines, int justification); y 130 core/gui_draw.h extern void draw_string_scaled(coord x, coord y, const char *s, twoColors cl, int xsize, int ysize); y 132 core/gui_draw.h extern void draw_button(int x, int y, int w, int str_id, int active); y 171 core/gui_draw.h extern void draw_icon_cmds(coord x, coord y, icon_cmd *cmds); y 94 core/gui_mbox.c coord y = (camera_screen.height - (h+2) * FONT_HEIGHT) >> 1; y 95 core/gui_mbox.c draw_rectangle(x-4, y-4, x+w*FONT_WIDTH+4, y+(h+2)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+7, y 97 core/gui_mbox.c draw_rectangle(x-2, y-2, x+w*FONT_WIDTH+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); //title y 99 core/gui_mbox.c draw_string_justified(x, y, mbox_title, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), 0, w*FONT_WIDTH, TEXT_CENTER); //title text y 100 core/gui_mbox.c y += FONT_HEIGHT+2+SPACING_TITLE; y 108 core/gui_mbox.c draw_text_justified(x+FONT_WIDTH, y, mbox_msg, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), w-1, MAX_LINES, justification); // text y 111 core/gui_mbox.c mbox_buttons_y = y+h*FONT_HEIGHT+SPACING_BTN; y 180 core/gui_mbox.c coord x=60, y=100; y 183 core/gui_mbox.c draw_rectangle(x, y, x+w, y+h, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED|RECT_SHADOW3); // main box y 184 core/gui_mbox.c draw_string_justified(x, y+2, msg, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), 0, w, TEXT_CENTER); //title text y 185 core/gui_mbox.c draw_rectangle(x+10, y+4+FONT_HEIGHT, x+w-10, y+h-10, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); // progress rect y 186 core/gui_mbox.c draw_rectangle(x+11, y+5+FONT_HEIGHT, x+11+(w-22)*perc/100, y+h-11, MAKE_COLOR(COLOR_RED, COLOR_RED), RECT_BORDER0|DRAW_FILLED); // progress bar y 35 core/gui_menu.c static int x, y; y 524 core/gui_menu.c if ((tx >= x) && (ty >= y) && (tx < (x + w)) && (ty < (y + h))) y 526 core/gui_menu.c int r = ((ty - y) / rbf_font_height()) + gui_menu_top_item; y 734 core/gui_menu.c y = (camera_screen.height - ((num_lines - 1) * rbf_font_height())) >> 1; y 753 core/gui_menu.c draw_rectangle((x+w), y, (x+w)+wplus, y+num_lines*rbf_font_height()-1, MAKE_COLOR(BG_COLOR(user_color(conf.menu_color)), BG_COLOR(user_color(conf.menu_color))), RECT_BORDER0|DRAW_FILLED); y 760 core/gui_menu.c y = (camera_screen.height - ((count - 1) * rbf_font_height())) >> 1; y 764 core/gui_menu.c rbf_draw_menu_header(x, y-rbf_font_height(), w+wplus, (conf.menu_symbol_enable)?curr_menu->symbol:0, lang_str(curr_menu->title), user_color(conf.menu_title_color)); y 980 core/gui_menu.c for (imenu=gui_menu_top_item, i=0, yy=y; curr_menu->menu[imenu].text && i<num_lines; ++imenu, ++i, yy+=rbf_font_height()) y 1100 core/gui_menu.c draw_rectangle((x+w)+2, y+1, (x+w)+6, y+1+i, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 1101 core/gui_menu.c draw_rectangle((x+w)+2, y+i+j, (x+w)+6, y+num_lines*rbf_font_height()-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 1102 core/gui_menu.c draw_rectangle((x+w)+2, y+1+i, (x+w)+6, y+i+j, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 442 core/gui_osd.c void gui_osd_draw_clock(int x, int y, twoColors cl, int is_osd_edit) y 480 core/gui_osd.c draw_string(x, y, osd_buf, cl); y 686 core/gui_osd.c int x0=conf.ev_video_pos.x, y0=conf.ev_video_pos.y; y 25 core/gui_osd.h extern void gui_osd_draw_clock(int x, int y, twoColors cl, int is_osd_edit); y 42 core/gui_space.c yy = pos.y; y 76 core/gui_space.c coord y; y 82 core/gui_space.c y = height - ((perc*height)/100); y 83 core/gui_space.c if (y < 1) y = 1; y 84 core/gui_space.c if (y >= height) y = height; y 85 core/gui_space.c else draw_rectangle(xx+2, yy+y+2, xx+width+1, yy+height+1, MAKE_COLOR(FG_COLOR(cl), FG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // If not empty fill 'free' space area y 86 core/gui_space.c draw_rectangle(xx+2, yy+2, xx+width+1, yy+y+1, MAKE_COLOR(COLOR_TRANSPARENT, COLOR_BLACK), RECT_BORDER1|DRAW_FILLED); // fill 'used' space area y 131 core/gui_space.c draw_icon_cmds(conf.space_icon_pos.x, conf.space_icon_pos.y, space_icon); y 29 core/gui_usb.c draw_icon_cmds(conf.usb_info_pos.x, conf.usb_info_pos.y, usb_icon); y 35 core/gui_usb.c draw_string(conf.usb_info_pos.x, conf.usb_info_pos.y, "<USB>", cl); y 217 core/gui_user_menu.c int x, y; y 224 core/gui_user_menu.c for (x=0, y=1; x<USER_MENU_ITEMS; x++, y++) y 228 core/gui_user_menu.c set_user_menu_extern(y, x, 0x35, MENUITEM_PROC, (int*)gui_load_user_menu_script); y 232 core/gui_user_menu.c set_user_menu_extern(y, x, 0x28, MENUITEM_PROC|MENUITEM_USER_MODULE, (int*)module_run); y 242 core/gui_user_menu.c user_submenu_items[y] = *item; y 246 core/gui_user_menu.c user_submenu_items[y].text = 0; y 287 core/raw.c void set_raw_pixel(unsigned int x, unsigned int y, unsigned short value) { y 289 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*10; y 301 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/4)*6; y 309 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*14; y 326 core/raw.c unsigned short get_raw_pixel(unsigned int x,unsigned int y) { y 328 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*10; y 340 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/4)*6; y 348 core/raw.c unsigned char* addr=(unsigned char*)rawadr+y*camera_sensor.raw_rowlen+(x/8)*14; y 366 core/raw.c void patch_bad_pixel(unsigned int x,unsigned int y) { y 371 core/raw.c if ((x>=2) && (x<camera_sensor.raw_rowpix-2) && (y>=2) && (y<camera_sensor.raw_rows-2)) { y 376 core/raw.c val=get_raw_pixel(x+i, y+j); y 379 core/raw.c if (nzero) set_raw_pixel(x,y,sum/nzero); y 381 core/raw.c set_raw_pixel(x,y,0); y 387 core/raw.c int y; y 394 core/raw.c patch_bad_pixel((*pixel).x,(*pixel).y); y 400 core/raw.c int x,y; y 414 core/raw.c y=strtol(ptr, &endptr, 0); y 420 core/raw.c (*pixel).y=y; y 24 core/raw.h extern unsigned short get_raw_pixel(unsigned int x,unsigned int y); y 25 core/raw.h extern void set_raw_pixel(unsigned int x,unsigned int y, unsigned short v); y 27 core/raw.h extern void patch_bad_pixel(unsigned int x,unsigned int y); y 56 include/camera_info.h int x, y; // DNG JPEG top left corner y 35 include/conf.h unsigned short x, y; y 39 include/conf.h unsigned short x, y; y 34 include/font.h extern int rbf_draw_char(int x, int y, int ch, twoColors cl); y 35 include/font.h extern int rbf_draw_symbol(int x, int y, int ch, twoColors cl); y 36 include/font.h extern int rbf_draw_string(int x, int y, const char *str, twoColors cl); y 37 include/font.h extern int rbf_draw_clipped_string(int x, int y, const char *str, twoColors cl, int l, int maxlen); y 38 include/font.h extern int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl); y 39 include/font.h extern int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl); y 40 include/font.h extern int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl); y 65 include/gui.h int (*touch_handler)(int x, int y); y 76 include/gui.h extern int gui_touch_process(int x, int y); y 251 include/lolevel.h extern double __pow(double x, double y); y 14 include/math.h extern double pow(double x, double y); y 311 lib/font/rbf_font.c void font_draw_char(int x, int y, char *cdata, int width, int height, int pixel_width, twoColors cl) { y 318 lib/font/rbf_font.c draw_pixel(x+xx ,y+yy, (cdata[yy*width/8+xx/8] & (1<<(xx%8))) ? FG_COLOR(cl) : BG_COLOR(cl)); y 322 lib/font/rbf_font.c int rbf_draw_char(int x, int y, int ch, twoColors cl) { y 331 lib/font/rbf_font.c draw_char(x,y,ch,cl); y 333 lib/font/rbf_font.c font_draw_char(x, y, cdata, rbf_font->width, rbf_font->hdr.height, rbf_font->wTable[ch], cl); y 339 lib/font/rbf_font.c int rbf_draw_symbol(int x, int y, int ch, twoColors cl) { y 359 lib/font/rbf_font.c draw_rectangle(x, y, x+pixel_width, y+space, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); y 360 lib/font/rbf_font.c y+=space; y 364 lib/font/rbf_font.c font_draw_char(x, y, cdata, rbf_symbol_font->width, sym_height, pixel_width, cl); y 368 lib/font/rbf_font.c draw_rectangle(x, y+sym_height, x+pixel_width, y-space+txt_height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); y 376 lib/font/rbf_font.c int rbf_draw_string_c(int x, int y, const char *str, twoColors c1, int c, twoColors c2) { y 380 lib/font/rbf_font.c l+=rbf_draw_char(x+l, y, *str++, (i==c)?c2:c1); y 387 lib/font/rbf_font.c int rbf_draw_string(int x, int y, const char *str, twoColors cl) { y 388 lib/font/rbf_font.c return rbf_draw_string_c(x, y, str, cl, -1, MAKE_COLOR(0,0)); y 408 lib/font/rbf_font.c int rbf_draw_clipped_string(int x, int y, const char *str, twoColors cl, int l, int maxlen) y 417 lib/font/rbf_font.c l+=rbf_draw_char(x+l, y, *str++, inv_cl); y 419 lib/font/rbf_font.c l+=rbf_draw_char(x+l, y, *str++, cl); y 427 lib/font/rbf_font.c int rbf_draw_string_len(int x, int y, int len, const char *str, twoColors cl) { y 429 lib/font/rbf_font.c int l = rbf_draw_clipped_string(x, y, str, cl, 0, len); y 433 lib/font/rbf_font.c draw_rectangle(x+l, y, x+len-1, y+rbf_font->hdr.height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); y 439 lib/font/rbf_font.c int rbf_draw_string_right_len(int x, int y, int len, const char *str, twoColors cl) { y 445 lib/font/rbf_font.c draw_rectangle(x, y, x+l-1, y+rbf_font->hdr.height-1, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); y 448 lib/font/rbf_font.c l = rbf_draw_clipped_string(x, y, str, cl, l, len); y 454 lib/font/rbf_font.c int rbf_draw_menu_header(int x, int y, int len, char symbol, const char *str, twoColors cl) { y 470 lib/font/rbf_font.c int right = x+len-1, bottom = y+rbf_font_height()-1; y 476 lib/font/rbf_font.c draw_line(x+i, y+2-i, x+i, bottom, BG_COLOR(cl)); // left side y 477 lib/font/rbf_font.c draw_line(right-i, y+2-i, right-i, bottom, BG_COLOR(cl)); // right side y 481 lib/font/rbf_font.c draw_rectangle(x+i, y, x+ll-1, bottom, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // left side y 482 lib/font/rbf_font.c draw_rectangle(right-lr, y, right-i, bottom, MAKE_COLOR(BG_COLOR(cl), BG_COLOR(cl)), RECT_BORDER0|DRAW_FILLED); // right side y 488 lib/font/rbf_font.c ll += rbf_draw_symbol(x+ll, y, symbol, cl); y 489 lib/font/rbf_font.c ll += rbf_draw_char(x+ll, y, ' ', cl); y 493 lib/font/rbf_font.c ll = rbf_draw_clipped_string(x, y, str, cl, ll, len); y 39 lib/lua/ldump.c static void DumpChar(int y, DumpState* D) y 41 lib/lua/ldump.c char x=(char)y; y 181 lib/lua/lfmathlib.c static void cordic(int f, double *x, double *y, double *z) { y 188 lib/lua/lfmathlib.c ystep = *y / div; y 193 lib/lua/lfmathlib.c int f1 = (f) ? *y >= 0 : *z < 0; y 195 lib/lua/lfmathlib.c *y = (f1) ? *y - xstep : *y + xstep; y 203 lib/lua/lfmathlib.c static double fmod(double x, double y) { y 204 lib/lua/lfmathlib.c return x - trunc(x / y) * y; y 222 lib/lua/lfmathlib.c double x = INV_GAIN_CIRCLE, y = 0, z = phi; y 223 lib/lua/lfmathlib.c cordic(ROTATE, &x, &y, &z); y 227 lib/lua/lfmathlib.c if ((q == 3) || (q == 4)) { y = -y; } y 229 lib/lua/lfmathlib.c *sinphi = y; y 234 lib/lua/lfmathlib.c static void atanhypCordic(double x, double y, double *phi, double *hyp) { y 235 lib/lua/lfmathlib.c if (x == 0 && y == 0) { y 243 lib/lua/lfmathlib.c int fy = (y >= 0); y 254 lib/lua/lfmathlib.c y = fabs(y); y 257 lib/lua/lfmathlib.c cordic(VECTOR, &x, &y, &z); y 418 lib/lua/lfmathlib.c double y = 0; y 421 lib/lua/lfmathlib.c y = x; y 425 lib/lua/lfmathlib.c y = cathetus(x); y 428 lib/lua/lfmathlib.c y = x; y 435 lib/lua/lfmathlib.c atanhypCordic(x, y, &phi, &hyp); y 29 modules/cordic_math.c static void cordic(tangle t, fcordic f, fixed *x, fixed *y, fixed *z) { y 35 modules/cordic_math.c ystep = *y >> i; y 40 modules/cordic_math.c int f1 = (f) ? *y >= 0 : *z < 0; y 42 modules/cordic_math.c *y = (f1) ? *y - xstep : *y + xstep; y 96 modules/cordic_math.c fixed x = INV_GAIN_CIRCLE[t], y = 0, z = phi; y 97 modules/cordic_math.c cordic(t, ROTATE, &x, &y, &z); y 100 modules/cordic_math.c if ((q == 3) || (q == 4)) { y = -y; } y 101 modules/cordic_math.c *sinphi = y; y 132 modules/cordic_math.c fixed x = px, y = py, z = 0; y 133 modules/cordic_math.c cordic(t, VECTOR, &x, &y, &z); y 523 modules/dng.c crop_origin[1] = camera_sensor.jpeg.y; y 703 modules/dng.c int pow_calc_2( int mult, int x, int x_div, double y, int y_div) y 707 modules/dng.c if ( y_div != 1 ) { y=y/y_div;} y 710 modules/dng.c return pow( x1, y ); y 712 modules/dng.c return mult * pow( x1, y ); y 715 modules/dng.c int pow_calc( int mult, int x, int x_div, int y, int y_div) y 717 modules/dng.c return pow_calc_2( mult, x, x_div, y, y_div); y 908 modules/dng.c int y_end = camera_sensor.active_area.y1 + camera_sensor.jpeg.y + DNG_TH_HEIGHT*y_inc; y 922 modules/dng.c for (y_off=camera_sensor.active_area.y1 + camera_sensor.jpeg.y; y_off<y_end; y_off += y_inc) y 926 modules/dng.c int y = (y_off & 0xFFFFFFFE) + yadj; y 928 modules/dng.c *buf++ = gamma[get_raw_pixel(x,y)>>shift]; // red pixel y 930 modules/dng.c int g=get_raw_pixel(x+1,y) >> (shift+1); y 932 modules/dng.c *buf++ = gamma[get_raw_pixel(x+1,y+1)>>shift]; // blue pixel y 951 modules/dng.c int x, y, xlen, ylen; y 971 modules/dng.c for (y=camera_sensor.active_area.y1; y<camera_sensor.active_area.y2; y++) y 973 modules/dng.c if (get_raw_pixel(x,y) <= camera_sensor.dng_badpixel_value_limit) y 975 modules/dng.c for (ylen=1; ylen<8 && (y+ylen)<camera_sensor.active_area.y2; ylen++) y 976 modules/dng.c if (get_raw_pixel(x,y+ylen) > camera_sensor.dng_badpixel_value_limit) y 980 modules/dng.c c[++xlen] = y | ((ylen-1) << 13); y 989 modules/dng.c y += ylen - 1; y 1049 modules/dng.c short x, y, xcnt, ycnt; y 1057 modules/dng.c y = ptr[i] & 0x1FFF; y 1060 modules/dng.c for (; ycnt>=0; ycnt--, y++) y 1061 modules/dng.c if (get_raw_pixel(x, y) <= camera_sensor.dng_badpixel_value_limit) y 1062 modules/dng.c patch_bad_pixel(x, y); y 354 modules/edgeoverlay.c int x, y, xdiv3; y 391 modules/edgeoverlay.c for (y = -1; y <= 1; ++y) y 395 modules/edgeoverlay.c ptrh1 = img + (y_min+y-1) * viewport_byte_width*viewport_yscale; y 396 modules/edgeoverlay.c smptr = smbuf + (y+1) * viewport_byte_width; y 402 modules/edgeoverlay.c for (y = y_min; y < y_max; ++y) y 418 modules/edgeoverlay.c ptrh1 = img + y * viewport_byte_width*viewport_yscale; y 426 modules/edgeoverlay.c ptrh1 = img + (y-1) * viewport_byte_width*viewport_yscale; y 460 modules/edgeoverlay.c bv_set(edgebuf, (y-camera_screen.edge_hmargin)*viewport_width + xdiv3, 1); y 490 modules/edgeoverlay.c bv_set(edgebuf, (y-camera_screen.edge_hmargin)*viewport_width + xdiv3+1, 1); y 523 modules/edgeoverlay.c bv_set(edgebuf, (y-camera_screen.edge_hmargin)*viewport_width + xdiv3, 1); y 553 modules/edgeoverlay.c bv_set(edgebuf, (y-camera_screen.edge_hmargin)*viewport_width + xdiv3+1, 1); y 625 modules/edgeoverlay.c int x, y; y 638 modules/edgeoverlay.c for (y = y_slice_min; y < y_slice_max; ++y) y 640 modules/edgeoverlay.c y_off = y + yoffset; y 646 modules/edgeoverlay.c const int y_edgebuf = (y-y_min) * viewport_width; y 675 modules/edgeoverlay.c for (y = y_min; y < y_max; ++y) y 680 modules/edgeoverlay.c draw_or_erase_edge_pixel(x+viewport_xoffset, y+viewport_yoffset, cl, 0); y 692 modules/edgeoverlay.c for (y = y_min_c; y < y_max_c; ++y) y 697 modules/edgeoverlay.c draw_or_erase_edge_pixel(x+viewport_xoffset, y+viewport_yoffset, cl, 0); y 1102 modules/file_shelter.c unsigned y; y 1103 modules/file_shelter.c for (y=0; y<helph; y++) { y 1104 modules/file_shelter.c if (scrolly+y < sizeof(help1)/sizeof(char*)) { y 1105 modules/file_shelter.c draw_string(camera_screen.disp_left, (5+y)*FONT_HEIGHT, help1[scrolly+y], MAKE_COLOR(COLOR_BLACK, COLOR_GREY)); y 197 modules/games/gui_4wins.c coord w, x, y; y 202 modules/games/gui_4wins.c y = ((camera_screen.height) >> 1); y 203 modules/games/gui_4wins.c draw_rectangle(x, y, x + w, y + FONT_HEIGHT + 8, cl, RECT_BORDER2 | DRAW_FILLED | RECT_ROUND_CORNERS); y 204 modules/games/gui_4wins.c draw_string_justified(x, y + 4, text, cl, 0, w, TEXT_CENTER); y 36 modules/games/gui_mastermind.c static void choice_box(int x, int y, twoColors cl) y 39 modules/games/gui_mastermind.c y = FONT_HEIGHT+FONT_HEIGHT/2+(y*cell_size); y 40 modules/games/gui_mastermind.c draw_rectangle(x+5, y+5, x+cell_size-5, y+cell_size-5, cl, RECT_BORDER1|DRAW_FILLED); y 46 modules/games/gui_mastermind.c int y = FONT_HEIGHT+FONT_HEIGHT/2+(curr_y*cell_size) + cell_size/2 - FONT_WIDTH/2 + 1; y 47 modules/games/gui_mastermind.c draw_rectangle(x, y, x+FONT_WIDTH-2, y+FONT_WIDTH-2, MAKE_COLOR(col,col), RECT_BORDER0|DRAW_FILLED); y 58 modules/games/gui_reversi.c uchar x, y; y 62 modules/games/gui_reversi.c for (y=0; y<8; ++y) { y 63 modules/games/gui_reversi.c if (Field[x][y]==FIELD_PLAYER1) ++NumPl1; y 64 modules/games/gui_reversi.c if (Field[x][y]==FIELD_PLAYER2) ++NumPl2; y 69 modules/games/gui_reversi.c static void DrawCell(uchar x, uchar y) { y 70 modules/games/gui_reversi.c draw_rectangle(field_x+cell_size*x, field_y+cell_size*y, y 71 modules/games/gui_reversi.c field_x+cell_size*(x+1), field_y+cell_size*(y+1), y 72 modules/games/gui_reversi.c (x==xPos && y==yPos)?MAKE_COLOR(SELECTED_COLOR, COLOR_RED):((x+y)&1)?MAKE_COLOR(FIELD_COLOR_WHITE, COLOR_WHITE) y 74 modules/games/gui_reversi.c switch (Field[x][y]) { y 78 modules/games/gui_reversi.c draw_ellipse(field_x+cell_size*x+(cell_size>>1), field_y+cell_size*y+(cell_size>>1), y 82 modules/games/gui_reversi.c draw_ellipse(field_x+cell_size*x+(cell_size>>1), field_y+cell_size*y+(cell_size>>1), y 89 modules/games/gui_reversi.c static uchar Place(uchar x, uchar y, uchar Player, uchar Placed) { y 94 modules/games/gui_reversi.c if (Field[x][y]!=FIELD_EMPTY) { y 102 modules/games/gui_reversi.c y1 = y + J; y 109 modules/games/gui_reversi.c Field[x][y] = Player; y 110 modules/games/gui_reversi.c DrawCell(x, y); y 112 modules/games/gui_reversi.c y1 = y + J; y 219 modules/games/gui_reversi.c uchar x, y; y 223 modules/games/gui_reversi.c for (y=0; y<8; ++y) { y 225 modules/games/gui_reversi.c DrawCell(x, y); y 255 modules/games/gui_reversi.c static void Clk(uchar x, uchar y) { y 261 modules/games/gui_reversi.c Placed = Place(x, y ,CurrPlayer, 0); y 269 modules/games/gui_reversi.c Placed = Place(x, y, CurrPlayer, 1); y 307 modules/games/gui_reversi.c uint x, y, mid; y 326 modules/games/gui_reversi.c x = camera_screen.disp_left+field_size, y = 40; y 329 modules/games/gui_reversi.c draw_string(x, y-10, "REVERSI", MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); y 331 modules/games/gui_reversi.c draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*2, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); y 332 modules/games/gui_reversi.c draw_string(x, y+FONT_HEIGHT*2, plm1, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); y 333 modules/games/gui_reversi.c draw_ellipse(x+FONT_WIDTH*1.5+(cell_size>>1), y+FONT_HEIGHT*3+(cell_size>>1), y 336 modules/games/gui_reversi.c draw_string(x+FONT_WIDTH*(7-strlen(buf))/2, y+FONT_HEIGHT*6, buf, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); y 337 modules/games/gui_reversi.c draw_string(x, y+FONT_HEIGHT*6, plm2, MAKE_COLOR(COLOR_BLUE, COLOR_WHITE)); y 338 modules/games/gui_reversi.c draw_ellipse(x+FONT_WIDTH*1.5+(cell_size>>1), y+FONT_HEIGHT*7+(cell_size>>1), y 210 modules/games/gui_snake.c static void draw_element(int x,int y,const char element[8][8],char angle){ y 212 modules/games/gui_snake.c y = screen_top + y * snake_screen_size; y 235 modules/games/gui_snake.c draw_pixel( x+px, y+py, c ); y 242 modules/games/gui_snake.c int x,y; y 244 modules/games/gui_snake.c for(y=0;y<RING_HEIGHT;y++){ y 245 modules/games/gui_snake.c ring[x][y] = labyrinth[num][y][x]; y 246 modules/games/gui_snake.c if(ring[x][y] != ' '){ y 247 modules/games/gui_snake.c draw_element(x,y,wall,0); y 250 modules/games/gui_snake.c screen_top + y * snake_screen_size, y 252 modules/games/gui_snake.c screen_top + y * snake_screen_size+snake_screen_size-1, MAKE_COLOR(COLOR_WHITE,COLOR_WHITE), RECT_BORDER0|DRAW_FILLED); y 259 modules/games/gui_snake.c int x,y,i; y 264 modules/games/gui_snake.c y = rand() % RING_HEIGHT; y 265 modules/games/gui_snake.c if(ring[x][y] != ' ') continue; y 268 modules/games/gui_snake.c if(snake[i][0] == x && snake[i][1] == y) goto randomagain; y 272 modules/games/gui_snake.c draw_element(x,y,apple,0); y 273 modules/games/gui_snake.c ring[x][y] = 1; y 158 modules/games/gui_sokoban.c int x=0, y, w=0, h=0; y 204 modules/games/gui_sokoban.c for (y=0; y<FIELD_HEIGHT; ++y) y 206 modules/games/gui_sokoban.c field[y][x]=MARKER_EMPTY; y 210 modules/games/gui_sokoban.c for (y=(FIELD_HEIGHT-h)/2; y<FIELD_HEIGHT; ++y, ++p) { y 212 modules/games/gui_sokoban.c field[y][x]=*p; y 213 modules/games/gui_sokoban.c if (field[y][x] == MARKER_PLAYER || field[y][x] == MARKER_PLAYER_PLACE) { y 214 modules/games/gui_sokoban.c xPl = x; yPl = y; y 228 modules/games/gui_sokoban.c int x, y; y 230 modules/games/gui_sokoban.c for (y=0; y<FIELD_HEIGHT; ++y) y 232 modules/games/gui_sokoban.c if (field[y][x]==MARKER_BOX) y 273 modules/games/gui_sokoban.c static void sokoban_draw_box(int x, int y, twoColors cl) { y 274 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1, y*cell_size+cell_size-1, cl, RECT_BORDER1|DRAW_FILLED); y 275 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+2, y*cell_size, camera_screen.disp_left+x*cell_size+2, y*cell_size+cell_size-1, FG_COLOR(cl)); y 276 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1, FG_COLOR(cl)); y 277 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+2, y*cell_size+2, camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size+2, FG_COLOR(cl)); y 278 modules/games/gui_sokoban.c draw_line(camera_screen.disp_left+x*cell_size+2, y*cell_size+cell_size-1-2, camera_screen.disp_left+x*cell_size+cell_size-1-2, y*cell_size+cell_size-1-2, FG_COLOR(cl)); y 401 modules/games/gui_sokoban.c int y, x; y 412 modules/games/gui_sokoban.c for (y=0; y<FIELD_HEIGHT; ++y) { y 414 modules/games/gui_sokoban.c switch (field[y][x]) { y 416 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(WALL_COLOR_1, WALL_COLOR_2), RECT_BORDER1|DRAW_FILLED); y 419 modules/games/gui_sokoban.c sokoban_draw_box(x, y, MAKE_COLOR(BOX_COLOR_1, BOX_COLOR_2)); y 422 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 423 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size+4, y*cell_size+4, camera_screen.disp_left+x*cell_size+cell_size-1-4, y*cell_size+cell_size-1-4, MAKE_COLOR(PLACE_COLOR_1, PLACE_COLOR_2), RECT_BORDER1|DRAW_FILLED); y 426 modules/games/gui_sokoban.c sokoban_draw_box(x, y, MAKE_COLOR(BOX_COLOR_3, BOX_COLOR_2)); y 430 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 431 modules/games/gui_sokoban.c draw_ellipse(camera_screen.disp_left+x*cell_size+(cell_size>>1)-1, y*cell_size+(cell_size>>1)-1, (cell_size>>1)-3, (cell_size>>1)-3, PLAYER_COLOR_1, DRAW_FILLED); y 435 modules/games/gui_sokoban.c draw_rectangle(camera_screen.disp_left+x*cell_size, y*cell_size, camera_screen.disp_left+x*cell_size+cell_size-1, y*cell_size+cell_size-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 138 modules/games/gui_sudoku.c int i, y, x; y 154 modules/games/gui_sudoku.c for (y=0; y<3; y++)for (x=0; x<3; x++) y 158 modules/games/gui_sudoku.c draw_string(xPadStart+padLineDistance*x+(padLineDistance-FONT_WIDTH)/2, yPadStart+padLineDistance*y+(padLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, COLOR_BLACK)); y 200 modules/games/gui_sudoku.c int i, x, y; y 245 modules/games/gui_sudoku.c for (y=0; y<9; y++){ y 248 modules/games/gui_sudoku.c if (user[y][x]==0) continue; y 249 modules/games/gui_sudoku.c if (mode==MODE_EDIT && x==xPos && y==yPos) continue; y 250 modules/games/gui_sudoku.c sprintf(str, "%i", get_dec_num(user[y][x])); y 251 modules/games/gui_sudoku.c if (field[y][x]!=0) y 252 modules/games/gui_sudoku.c draw_string(xFieldBorder+fieldLineDistance*x+(fieldLineDistance-FONT_WIDTH)/2, yFieldBorder+fieldLineDistance*y+(fieldLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, COLOR_BLACK)); y 253 modules/games/gui_sudoku.c else draw_string(xFieldBorder+fieldLineDistance*x+(fieldLineDistance-FONT_WIDTH)/2, yFieldBorder+fieldLineDistance*y+(fieldLineDistance-FONT_HEIGHT)/2, str, MAKE_COLOR(SUDOKU_BG_COLOR, MARKER_COLOR)); y 298 modules/games/gui_sudoku.c int counter, chkflag, x, y, xs, ys, linenum, columnnum; y 324 modules/games/gui_sudoku.c for (y=0; y<=8; y++) y 326 modules/games/gui_sudoku.c if (*(pointer+y*9+columnnum)&flag[chkflag]) y 346 modules/games/gui_sudoku.c for (y=ys*3; y<ys*3+3; y++) y 350 modules/games/gui_sudoku.c if (*(pointer+y*9+x)&flag[chkflag]) y 367 modules/games/gui_sudoku.c int sudoku_follows_rules_xy(int x, int y, int number) //for field y 370 modules/games/gui_sudoku.c for (xc=0; xc<9; xc++) if (field[y][xc]&(number)) return 0; y 374 modules/games/gui_sudoku.c for (yc = y/3 * 3; yc < y/3 * 3 + 3; yc++) y 396 modules/games/gui_sudoku.c int y; y 397 modules/games/gui_sudoku.c for (y=0; y<9; y++) y 399 modules/games/gui_sudoku.c if (is_one_num(mess[y][columnNumber]))returnnum |= mess[y][columnNumber]; y 407 modules/games/gui_sudoku.c int y, x; y 408 modules/games/gui_sudoku.c for (y=squareY*3; y<squareY*3+3; y++) y 412 modules/games/gui_sudoku.c if (is_one_num(mess[y][x]))returnnum |= mess[y][x]; y 425 modules/games/gui_sudoku.c int x, y, xs, ys; y 431 modules/games/gui_sudoku.c for (y=0; y<=8; y++) y 433 modules/games/gui_sudoku.c if (one_plus_nums(mess[y][x])) y 435 modules/games/gui_sudoku.c temp=mess[y][x]; y 436 modules/games/gui_sudoku.c mess[y][x]&=leftnums; y 437 modules/games/gui_sudoku.c if (temp !=mess[y][x]) y 447 modules/games/gui_sudoku.c for(x=xs*3; x<xs*3+3; x++)for (y=ys*3; y<ys*3+3; y++) y 449 modules/games/gui_sudoku.c if (one_plus_nums(mess[y][x])) y 451 modules/games/gui_sudoku.c temp=mess[y][x]; y 452 modules/games/gui_sudoku.c mess[y][x]&=leftnums; y 453 modules/games/gui_sudoku.c if (temp != mess[y][x]) y 460 modules/games/gui_sudoku.c for (y=0; y<9; y++) y 462 modules/games/gui_sudoku.c leftnums=get_missing_nums_line(y); y 465 modules/games/gui_sudoku.c if (one_plus_nums(mess[y][x])) y 467 modules/games/gui_sudoku.c temp=mess[y][x]; y 468 modules/games/gui_sudoku.c mess[y][x]&=leftnums; y 469 modules/games/gui_sudoku.c if (temp != mess[y][x]) y 482 modules/games/gui_sudoku.c int x, y, xs, ys, num, count; y 491 modules/games/gui_sudoku.c for (y=ys*3; y<ys*3+3; y++) for (x=xs*3; x<xs*3+3; x++) y 493 modules/games/gui_sudoku.c if (field[y][x] > 0 || mess[y][x]==0 || is_one_num(mess[y][x])) y 495 modules/games/gui_sudoku.c else if (mess[y][x] & flag[num]) y 503 modules/games/gui_sudoku.c ytemp = y; y 516 modules/games/gui_sudoku.c for (y=0; y<9; y++)for (num=1; num<10; num++) y 521 modules/games/gui_sudoku.c if (field[y][x] > 0 || mess[y][x]==0 || is_one_num(mess[y][x])) y 523 modules/games/gui_sudoku.c else if (mess[y][x] & flag[num]) y 531 modules/games/gui_sudoku.c ytemp = y; y 547 modules/games/gui_sudoku.c for (y=0; y<9; y++) y 549 modules/games/gui_sudoku.c if (field[y][x] > 0 || mess[y][x]==0 || is_one_num(mess[y][x])) y 551 modules/games/gui_sudoku.c else if (mess[y][x] & flag[num]) y 559 modules/games/gui_sudoku.c ytemp = y; y 586 modules/games/gui_sudoku.c int x, y; y 589 modules/games/gui_sudoku.c for (y=0; y<=8; y++) y 591 modules/games/gui_sudoku.c leftnums=get_missing_nums_line(y); y 592 modules/games/gui_sudoku.c for (x=0; x<=8; x++)if (mess[y][x]==0)mess[y][x]=leftnums; y 701 modules/games/gui_sudoku.c int x, y, i, j; y 707 modules/games/gui_sudoku.c for (x = 0; x < 9; x++) for (y = 0; y < 9; y++) field[y][x] = 0; y 732 modules/games/gui_sudoku.c for (y=1; y<9; y++) y 738 modules/games/gui_sudoku.c field[y][x]=field[0][xnum]; y 740 modules/games/gui_sudoku.c if ((y+1)%3==0)xnum=(xnum+4)%9; y 800 modules/games/gui_sudoku.c int y, x; y 817 modules/games/gui_sudoku.c for (y=0; y<9; y++) for (x=0; x<9; x++) if (is_one_num(mess[y][x]))user[y][x]=mess[y][x]; y 821 modules/games/gui_sudoku.c for (y=0; y<9; y++) for (x=0; x<9; x++) if (is_one_num(mess[y][x]))user[y][x]=mess[y][x]; y 832 modules/games/gui_sudoku.c for (x = 0; x < 9; x++)for (y = 0; y < 9; y++) y 834 modules/games/gui_sudoku.c field[y][x] = 0; y 835 modules/games/gui_sudoku.c user[y][x]=0; y 986 modules/games/gui_sudoku.c int x, y; y 1008 modules/games/gui_sudoku.c for (x = 0; x < 9; x++) for (y = 0; y < 9; y++) y 1010 modules/games/gui_sudoku.c field[y][x] = 0; y 1011 modules/games/gui_sudoku.c user[y][x]=0; y 79 modules/games/gui_tetris.c int y; y 204 modules/games/gui_tetris.c tmp[i + game->fallingBlock.x][j + game->fallingBlock.y] = game->fallingBlock.cells[i][j]; y 376 modules/games/gui_tetris.c game->fallingBlock.y = 0; y 458 modules/games/gui_tetris.c if ((game->fallingBlock.x + i < 0) || (game->fallingBlock.x + i >= BOARD_WIDTH) || (game->fallingBlock.y + j >= BOARD_HEIGHT)) y 463 modules/games/gui_tetris.c if (game->map[i + game->fallingBlock.x][j + game->fallingBlock.y] != EMPTY_CELL) y 489 modules/games/gui_tetris.c newy = game->fallingBlock.y + dy; y 552 modules/games/gui_tetris.c static void moveTetramino(StcGame *game, int x, int y) y 557 modules/games/gui_tetris.c if (checkCollision(game, x, y)) y 560 modules/games/gui_tetris.c if (y == 1) y 564 modules/games/gui_tetris.c if (game->fallingBlock.y <= 1) y 578 modules/games/gui_tetris.c game->map[game->fallingBlock.x + i][game->fallingBlock.y + j] = game->fallingBlock.cells[i][j]; y 602 modules/games/gui_tetris.c for (y = j; y > 0; --y) y 604 modules/games/gui_tetris.c game->map[x][y] = game->map[x][y - 1]; y 632 modules/games/gui_tetris.c game->fallingBlock.y = 0; y 644 modules/games/gui_tetris.c game->fallingBlock.y += y; y 651 modules/games/gui_tetris.c int y; y 652 modules/games/gui_tetris.c y = 1; y 654 modules/games/gui_tetris.c while (!checkCollision(game, 0, y)) y 656 modules/games/gui_tetris.c y++; y 658 modules/games/gui_tetris.c moveTetramino(game, 0, y - 1); y 15 modules/gui_bench.c #define draw_txt_string(x,y,s,c) draw_string((x)*FONT_WIDTH,(y)*FONT_HEIGHT,s,c) y 16 modules/gui_bench.c #define draw_txt_stringnonalign(x,y,s,c) draw_string((x)*FONT_WIDTH+1,(y)*FONT_HEIGHT,s,c) y 131 modules/gui_calendar.c int x, y; y 148 modules/gui_calendar.c y = cal_y + 4; y 149 modules/gui_calendar.c draw_rectangle(cal_x+FONT_WIDTH, y, cal_x+cal_w-FONT_WIDTH-FONT_WIDTH*4-FONT_WIDTH, y+FONT_HEIGHT, MAKE_COLOR(BG_COLOR(TITLE_COLOR), BG_COLOR(TITLE_COLOR)), RECT_BORDER0|DRAW_FILLED); y 150 modules/gui_calendar.c draw_string(x+FONT_WIDTH, y, lang_str(months[cal_month]), TITLE_COLOR); y 153 modules/gui_calendar.c draw_string(cal_x+cal_w-FONT_WIDTH*2-FONT_WIDTH*4, y, str, TITLE_COLOR); y 158 modules/gui_calendar.c y += FONT_HEIGHT+4+4; y 160 modules/gui_calendar.c y += FONT_HEIGHT+4; y 162 modules/gui_calendar.c draw_string(cal_x+x*FONT_WIDTH*4, y, " ", (x<5)?CALENDAR_COLOR:WEEKEND_COLOR); y 167 modules/gui_calendar.c draw_string(cal_x+x*FONT_WIDTH*4, y, str, (x<5)?CALENDAR_COLOR:WEEKEND_COLOR); y 171 modules/gui_calendar.c y += FONT_HEIGHT+4; y 174 modules/gui_calendar.c for (; y<cal_y+cal_h; y += FONT_HEIGHT+4, x=0) { y 176 modules/gui_calendar.c draw_string(cal_x+x*FONT_WIDTH*4, y, " ", (x<5)?CALENDAR_COLOR:WEEKEND_COLOR); y 43 modules/gui_debug.c static void gui_debug_draw_values(const coord y, void* addr) { y 49 modules/gui_debug.c draw_string(10*FONT_WIDTH, y, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 52 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 55 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+2*FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 65 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+3*FONT_HEIGHT, buf, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 69 modules/gui_debug.c draw_string(10*FONT_WIDTH, y, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 70 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+FONT_HEIGHT, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 71 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+2*FONT_HEIGHT, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 72 modules/gui_debug.c draw_string(10*FONT_WIDTH, y+3*FONT_HEIGHT, bad_address, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 29 modules/gui_hexbox.c static int w, h, x, y; y 57 modules/gui_hexbox.c y = ((camera_screen.height - h)>>5)<<4; y 139 modules/gui_hexbox.c draw_rectangle(x-4, y-4, x+w+4, y+h+4, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), RECT_BORDER3|DRAW_FILLED|RECT_SHADOW3); y 140 modules/gui_hexbox.c draw_rectangle(x-2, y-2, x+w+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); y 141 modules/gui_hexbox.c draw_string(offs_title, y, box_title, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 142 modules/gui_hexbox.c draw_string(x+FONT_WIDTH*2, y+FONT_HEIGHT*4, box_helpline, MAKE_COLOR(COLOR_GREY, COLOR_WHITE)); y 146 modules/gui_hexbox.c gui_hexbox_draw_hex32(*num_to_edit, currpos, offs_num, y + FONT_HEIGHT * 2); y 147 modules/gui_hexbox.c gui_hexbox_draw_hint(*num_to_edit, offs_num + 11*FONT_WIDTH, y + FONT_HEIGHT * 2); y 81 modules/gui_mpopup.c coord y = mpopup_actions_y; y 86 modules/gui_mpopup.c draw_string_justified(mpopup_actions_x, y, lang_str(actions[mpopup_actions[i]].text), cl, FONT_WIDTH, mpopup_actions_w*FONT_WIDTH+1, TEXT_LEFT|TEXT_FILL); y 87 modules/gui_mpopup.c y+=FONT_HEIGHT; y 95 modules/gui_mpopup.c coord x=0, y=0; y 107 modules/gui_mpopup.c y = (camera_screen.height - h*FONT_HEIGHT) / 2; y 108 modules/gui_mpopup.c draw_rectangle(x-4, y-4, x+w*FONT_WIDTH+4, y+h*FONT_HEIGHT+3, y 112 modules/gui_mpopup.c mpopup_actions_y = y; y 20 modules/gui_osd_edit.c #define SCY(y) (FONT_HEIGHT*(y)/FONT_REAL_HEIGHT) y 70 modules/gui_osd_edit.c int yscale = osd[curr_item].scale->y; y 77 modules/gui_osd_edit.c draw_rectangle((osd[curr_item].pos->x>=i)?osd[curr_item].pos->x-i:0, (osd[curr_item].pos->y>=i)?osd[curr_item].pos->y-i:0, y 79 modules/gui_osd_edit.c (osd[curr_item].pos->y+SCL(osd[curr_item].size.y,yscale))+i-1, y 82 modules/gui_osd_edit.c sprintf(osd_buf, " %s: x:%d y:%d s:%d f:%d:%d ", lang_str(osd[curr_item].title), osd[curr_item].pos->x, osd[curr_item].pos->y, step, xscale, yscale); y 83 modules/gui_osd_edit.c draw_string(0, (osd[curr_item].pos->x<strlen(osd_buf)*FONT_WIDTH+4 && osd[curr_item].pos->y<FONT_HEIGHT+4)?camera_screen.height-FONT_HEIGHT:0, y 94 modules/gui_osd_edit.c yscale = osd[curr_item].scale->y ; y 138 modules/gui_osd_edit.c osd[curr_item].scale->y = yscale ; y 163 modules/gui_osd_edit.c if (osd[curr_item].pos->y > 0) y 165 modules/gui_osd_edit.c osd[curr_item].pos->y-=(osd[curr_item].pos->y>=step)?step:osd[curr_item].pos->y; y 170 modules/gui_osd_edit.c if (osd[curr_item].pos->y < camera_screen.height-osd[curr_item].size.y) y 172 modules/gui_osd_edit.c osd[curr_item].pos->y+=(camera_screen.height-osd[curr_item].size.y-osd[curr_item].pos->y>step)?step:camera_screen.height-osd[curr_item].size.y-osd[curr_item].pos->y; y 175 modules/gui_osd_edit.c osd[curr_item].pos->y = camera_screen.height-osd[curr_item].size.y; y 146 modules/gui_palette.c unsigned int x, y, xl, xr, w, h; y 200 modules/gui_palette.c for (y=0; y<3; y++) y 204 modules/gui_palette.c draw_rectangle(xl+(x*w), (2*FONT_HEIGHT)+(y*h), xl+(x*w)+w-1, (2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-6, MAKE_COLOR(cols[test_page][c],cols[test_page][c]), RECT_BORDER0|DRAW_FILLED); y 205 modules/gui_palette.c draw_string(xl+(x*w),(2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-3, nams[test_page][c], MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 215 modules/gui_palette.c for (y=0; y<3; y++) y 219 modules/gui_palette.c draw_rectangle(xl+(x*w), (2*FONT_HEIGHT)+(y*h), xl+(x*w)+w-1, (2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-6, MAKE_COLOR(cols[test_page][c],cols[test_page][c]), RECT_BORDER0|DRAW_FILLED); y 220 modules/gui_palette.c draw_string(xl+(x*w),(2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-3, nams[test_page][c], MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 230 modules/gui_palette.c for (y=0; y<4; y++) y 234 modules/gui_palette.c draw_rectangle(xl+(x*w), (2*FONT_HEIGHT)+(y*h), xl+(x*w)+w-1, (2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-6, y 236 modules/gui_palette.c draw_string(xl+(x*w),(2*FONT_HEIGHT)+(y*h)+h-FONT_HEIGHT-3, nams[test_page][c], MAKE_COLOR(COLOR_BLACK, COLOR_WHITE)); y 258 modules/gui_palette.c int x, y, xl, xr; y 304 modules/gui_palette.c for (y=DISP_TOP; y<DISP_BOTTOM; y+=CELL_SIZE) y 308 modules/gui_palette.c draw_rectangle(xl+x, y, xl+x+CELL_SIZE, y+CELL_SIZE, MAKE_COLOR(c,COLOR_BLACK), RECT_BORDER1|DRAW_FILLED); y 316 modules/gui_palette.c y = DISP_TOP_CHDK; y 321 modules/gui_palette.c y = DISP_TOP + ((cl.col>>4)&0x0F) * CELL_SIZE; y 326 modules/gui_palette.c draw_rectangle(xl+x-CELL_ZOOM, y-CELL_ZOOM, xl+x+CELL_SIZE+CELL_ZOOM, y+CELL_SIZE+CELL_ZOOM, MAKE_COLOR(chdkColorToCanonColor(cl), COLOR_RED), RECT_BORDER2|DRAW_FILLED); y 33 modules/gui_read.c static coord x, y, h, w; y 86 modules/gui_read.c y=FONT_HEIGHT; y 88 modules/gui_read.c h=camera_screen.height-y; y 127 modules/gui_read.c camera_screen.disp_right, y-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 128 modules/gui_read.c draw_rectangle(camera_screen.disp_left, y, y 144 modules/gui_read.c xx=x; yy=y; y 149 modules/gui_read.c while (yy<=y+h-rbf_font_height()) { y 153 modules/gui_read.c if (yy < y+h) y 154 modules/gui_read.c draw_rectangle(x, yy, x+w-1, y+h-1, MAKE_COLOR(BG_COLOR(col), BG_COLOR(col)), RECT_BORDER0|DRAW_FILLED); y 164 modules/gui_read.c while (i<n && yy<=y+h-rbf_font_height()) { y 235 modules/gui_read.c draw_rectangle(x+w+6+2, y+1, x+w+6+6, y+1+i, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 236 modules/gui_read.c draw_rectangle(x+w+6+2, y+i+n, x+w+6+6, y+h-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 237 modules/gui_read.c draw_rectangle(x+w+6+2, y+1+i, x+w+6+6, y+i+n, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0|DRAW_FILLED); y 239 modules/gui_read.c draw_rectangle((x+w)*FONT_WIDTH+2, y*FONT_HEIGHT+1, y 240 modules/gui_read.c (x+w)*FONT_WIDTH+6, (y+h)*FONT_HEIGHT-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED); y 190 modules/gui_tbox.c coord y = (camera_screen.height - (tbox_height+6) * FONT_HEIGHT-SPACING_BELOW_TEXT) >> 1; y 191 modules/gui_tbox.c draw_rectangle(x-4, y-4, x+tbox_width*FONT_WIDTH+4, y+(tbox_height+6)*FONT_HEIGHT+SPACING_BTN+2+SPACING_TITLE+11, y 193 modules/gui_tbox.c draw_rectangle(x-2, y-2, x+tbox_width*FONT_WIDTH+2, y+FONT_HEIGHT+2, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), RECT_BORDER1|DRAW_FILLED); //title y 195 modules/gui_tbox.c draw_text_justified(x, y, tbox_title, MAKE_COLOR(COLOR_BLACK, COLOR_WHITE), tbox_width, 1, TEXT_CENTER); //title text y 196 modules/gui_tbox.c y += FONT_HEIGHT+2+SPACING_TITLE; y 199 modules/gui_tbox.c draw_text_justified(x, y, tbox_msg, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), tbox_width, MAX_LINES, TEXT_CENTER); y 202 modules/gui_tbox.c text_offset_y = y+(tbox_height*FONT_HEIGHT)+SPACING_BELOW_TEXT; y 241 modules/gui_tbox.c int y = tbox_buttons_y + y_offset[group]; y 244 modules/gui_tbox.c x = draw_text_justified(x, y, tstr, MAKE_COLOR(COLOR_GREY, COLOR_WHITE), tbox_width-8, 1, x_just[group]); y 246 modules/gui_tbox.c draw_char(x+(curchar*FONT_WIDTH), y, tstr[curchar], MAKE_COLOR(COLOR_RED, COLOR_WHITE)); // Selected char cursor y 120 modules/histogram.c int y, v, u, hi; y 121 modules/histogram.c y = p[1]; y 131 modules/histogram.c ++histogram_proc[HISTO_Y][y]; // Y y 132 modules/histogram.c hi = clip(((y<<12) + v*5743 + 2048)>>12); // R y 134 modules/histogram.c hi = clip(((y<<12) - u*1411 - v*2925 + 2048)>>12); // G y 136 modules/histogram.c hi = clip(((y<<12) + u*7258 + 2048)>>12); // B y 323 modules/histogram.c static void gui_osd_draw_single_histo(int hist, coord x, coord y, int small) y 356 modules/histogram.c draw_pixel(x+1+i, y+h-v, (v<=threshold)?cl:cl_bg); y 359 modules/histogram.c draw_pixel(x+1+i, y+h-v, (v<=threshold)?cl_over:cl_bg); y 366 modules/histogram.c draw_pixel(x+1+i, y+h-v, (v<=threshold)?cl:cl_bg); y 369 modules/histogram.c draw_pixel(x+1+i, y+h-v, (v<=threshold)?cl_over:cl_bg); y 373 modules/histogram.c draw_rectangle(x, y, x+1+w, y+h, hc2, RECT_BORDER1); y 375 modules/histogram.c if (conf.histo_show_ev_grid) for (i=1;i<=4;i++) draw_line(x+(1+w)*i/5, y, x+(1+w)*i/5, y+h, FG_COLOR(hc2)); y 379 modules/histogram.c static void gui_osd_draw_blended_histo(coord x, coord y) y 408 modules/histogram.c draw_pixel(x+1+i, y+HISTO_HEIGHT-v, cls[sel]); y 412 modules/histogram.c draw_rectangle(x, y, x+1+HISTO_WIDTH, y+HISTO_HEIGHT, hc2, RECT_BORDER1); y 414 modules/histogram.c if (conf.histo_show_ev_grid) for (i=1;i<=4;i++) draw_line(x+(1+HISTO_WIDTH)*i/5, y, x+(1+HISTO_WIDTH)*i/5, y+HISTO_HEIGHT, FG_COLOR(hc2)); y 437 modules/histogram.c gui_osd_draw_single_histo(HISTO_Y, conf.histo_pos.x, conf.histo_pos.y, 0); y 440 modules/histogram.c gui_osd_draw_single_histo(HISTO_RGB, conf.histo_pos.x, conf.histo_pos.y, 0); y 441 modules/histogram.c gui_osd_draw_single_histo(HISTO_Y, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT, 0); y 444 modules/histogram.c gui_osd_draw_single_histo(HISTO_R, conf.histo_pos.x, conf.histo_pos.y, 0); y 445 modules/histogram.c gui_osd_draw_single_histo(HISTO_G, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT, 0); y 446 modules/histogram.c gui_osd_draw_single_histo(HISTO_B, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT*2, 0); y 449 modules/histogram.c gui_osd_draw_single_histo(HISTO_RGB, conf.histo_pos.x, conf.histo_pos.y, 0); y 450 modules/histogram.c gui_osd_draw_single_histo(HISTO_Y, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT, 1); y 451 modules/histogram.c gui_osd_draw_single_histo(HISTO_R, conf.histo_pos.x+HISTO_WIDTH/2+1, conf.histo_pos.y+HISTO_HEIGHT, 1); y 452 modules/histogram.c gui_osd_draw_single_histo(HISTO_G, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT+HISTO_HEIGHT/2, 1); y 453 modules/histogram.c gui_osd_draw_single_histo(HISTO_B, conf.histo_pos.x+HISTO_WIDTH/2+1, conf.histo_pos.y+HISTO_HEIGHT+HISTO_HEIGHT/2, 1); y 456 modules/histogram.c gui_osd_draw_single_histo(HISTO_Y, conf.histo_pos.x, conf.histo_pos.y, 0); y 457 modules/histogram.c gui_osd_draw_single_histo(HISTO_RGB, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT, 1); y 458 modules/histogram.c gui_osd_draw_single_histo(HISTO_R, conf.histo_pos.x+HISTO_WIDTH/2+1, conf.histo_pos.y+HISTO_HEIGHT, 1); y 459 modules/histogram.c gui_osd_draw_single_histo(HISTO_G, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT+HISTO_HEIGHT/2, 1); y 460 modules/histogram.c gui_osd_draw_single_histo(HISTO_B, conf.histo_pos.x+HISTO_WIDTH/2+1, conf.histo_pos.y+HISTO_HEIGHT+HISTO_HEIGHT/2, 1); y 463 modules/histogram.c gui_osd_draw_blended_histo(conf.histo_pos.x, conf.histo_pos.y); y 466 modules/histogram.c gui_osd_draw_blended_histo(conf.histo_pos.x, conf.histo_pos.y); y 467 modules/histogram.c gui_osd_draw_single_histo(HISTO_Y, conf.histo_pos.x, conf.histo_pos.y+HISTO_HEIGHT, 0); y 471 modules/histogram.c gui_osd_draw_single_histo(HISTO_RGB, conf.histo_pos.x, conf.histo_pos.y, 0); y 479 modules/histogram.c draw_ellipse(conf.histo_pos.x+HISTO_DOT_PAD, conf.histo_pos.y+HISTO_DOT_PAD, y 484 modules/histogram.c draw_ellipse(conf.histo_pos.x+HISTO_WIDTH-HISTO_DOT_PAD, conf.histo_pos.y+HISTO_DOT_PAD, y 489 modules/histogram.c draw_string(conf.histo_pos.x+HISTO_WIDTH-FONT_WIDTH*3, conf.histo_pos.y-FONT_HEIGHT, "EXP", hc); y 494 modules/histogram.c draw_string(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, osd_buf, hc); y 496 modules/histogram.c draw_string(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, " 9.99x ", hc); y 498 modules/histogram.c draw_rectangle(conf.histo_pos.x, conf.histo_pos.y-FONT_HEIGHT, conf.histo_pos.x+8*FONT_WIDTH, conf.histo_pos.y-1, MAKE_COLOR(COLOR_TRANSPARENT, COLOR_TRANSPARENT), RECT_BORDER0|DRAW_FILLED); y 2337 modules/luascript.c lua_pushnumber(L, configVal.pos.y); ret++; y 2369 modules/luascript.c case 1: configVal.pos.y = luaL_checknumber(L, i); configVal.isPos++; break; y 296 modules/md5.c #define F1(x, y, z) (z ^ (x & (y ^ z))) y 297 modules/md5.c #define F2(x, y, z) F1(z, x, y) y 298 modules/md5.c #define F3(x, y, z) (x ^ y ^ z) y 299 modules/md5.c #define F4(x, y, z) (y ^ (x | ~z)) y 302 modules/md5.c #define MD5STEP(f, w, x, y, z, data, s) \ y 303 modules/md5.c ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) y 50 modules/motion_detector.c #define MD_XY2IDX(x,y) ((y)*motion_detector.columns+(x)) y 465 modules/motion_detector.c register int x, y; y 468 modules/motion_detector.c for (y=y_start; y<y_end; y+=y_step) y 472 modules/motion_detector.c curr += img[y + x + 1]; //Y always 2nd byte in each block y 481 modules/motion_detector.c register int x, y, uvx; y 484 modules/motion_detector.c for (y=y_start; y<y_end; y+=y_step) y 491 modules/motion_detector.c curr += (int)img[y + uvx] - 128; //U y 494 modules/motion_detector.c curr += (signed char)img[y + uvx]; //U y 504 modules/motion_detector.c register int x, y, uvx; y 507 modules/motion_detector.c for (y=y_start; y<y_end; y+=y_step) y 514 modules/motion_detector.c curr += (int)img[y + uvx + 2] - 128; //V y 517 modules/motion_detector.c curr += (signed char)img[y + uvx + 2]; //V y 527 modules/motion_detector.c register int x, y, uvx, cy, cv; y 530 modules/motion_detector.c for (y=y_start; y<y_end; y+=y_step) y 534 modules/motion_detector.c cy = img[y + x + 1]; y 538 modules/motion_detector.c cv = (int)img[y + uvx + 2] - 128; y 541 modules/motion_detector.c cv = (signed char)img[y + uvx + 2]; y 552 modules/motion_detector.c register int x, y, uvx, cy, cu, cv; y 555 modules/motion_detector.c for (y=y_start; y<y_end; y+=y_step) y 559 modules/motion_detector.c cy = img[y + x + 1]; y 563 modules/motion_detector.c cu = (int)img[y + uvx] - 128; y 564 modules/motion_detector.c cv = (int)img[y + uvx + 2] - 128; y 567 modules/motion_detector.c cu = (signed char)img[y + uvx]; y 568 modules/motion_detector.c cv = (signed char)img[y + uvx + 2]; y 579 modules/motion_detector.c register int x, y, uvx, cy, cu; y 582 modules/motion_detector.c for (y=y_start; y<y_end; y+=y_step) y 586 modules/motion_detector.c cy = img[y + x + 1]; y 590 modules/motion_detector.c cu = (int)img[y + uvx] - 128; y 593 modules/motion_detector.c cu = (signed char)img[y + uvx]; y 212 modules/rawhookops.c lua_pushnumber(L,camera_sensor.active_area.y1 + camera_sensor.jpeg.y); y 250 modules/rawhookops.c unsigned y=luaL_checknumber(L,2); y 253 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix || y >= (unsigned)camera_sensor.raw_rows) { y 256 modules/rawhookops.c lua_pushnumber(L,get_raw_pixel(x,y)); y 272 modules/rawhookops.c unsigned int y=luaL_checknumber(L,2); y 276 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix || y >= (unsigned)camera_sensor.raw_rows) { y 280 modules/rawhookops.c set_raw_pixel(x,y,v); y 297 modules/rawhookops.c unsigned int y=luaL_checknumber(L,2); y 300 modules/rawhookops.c y &= 0xFFFFFFFE; y 302 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix || y >= (unsigned)camera_sensor.raw_rows) { y 305 modules/rawhookops.c lua_pushnumber(L,get_raw_pixel(x+cfa_offsets[CFA_R][0],y+cfa_offsets[CFA_R][1])); y 306 modules/rawhookops.c lua_pushnumber(L,get_raw_pixel(x+cfa_offsets[CFA_G1][0],y+cfa_offsets[CFA_G1][1])); y 307 modules/rawhookops.c lua_pushnumber(L,get_raw_pixel(x+cfa_offsets[CFA_B][0],y+cfa_offsets[CFA_B][1])); y 308 modules/rawhookops.c lua_pushnumber(L,get_raw_pixel(x+cfa_offsets[CFA_G2][0],y+cfa_offsets[CFA_G2][1])); y 326 modules/rawhookops.c unsigned int y=luaL_checknumber(L,2); y 333 modules/rawhookops.c y &= 0xFFFFFFFE; y 335 modules/rawhookops.c if(x >= (unsigned)camera_sensor.raw_rowpix - 1 || y >= (unsigned)camera_sensor.raw_rows - 1) { y 338 modules/rawhookops.c set_raw_pixel(x+cfa_offsets[CFA_R][0],y+cfa_offsets[CFA_R][1],r); y 339 modules/rawhookops.c set_raw_pixel(x+cfa_offsets[CFA_G1][0],y+cfa_offsets[CFA_G1][1],g1); y 340 modules/rawhookops.c set_raw_pixel(x+cfa_offsets[CFA_B][0],y+cfa_offsets[CFA_B][1],b); y 341 modules/rawhookops.c set_raw_pixel(x+cfa_offsets[CFA_G2][0],y+cfa_offsets[CFA_G2][1],g2); y 377 modules/rawhookops.c unsigned x,y; y 378 modules/rawhookops.c for(y=ystart; y<ymax; y+=ystep) { y 380 modules/rawhookops.c set_raw_pixel(x,y,val); y 435 modules/rawhookops.c unsigned x,y; y 436 modules/rawhookops.c for(y = y1; y < y_max; y += y_step) { y 438 modules/rawhookops.c t+=get_raw_pixel(x,y); y 579 modules/rawhookops.c unsigned x,y; y 581 modules/rawhookops.c for(y=ystart;y<ymax;y+=ystep) { y 583 modules/rawhookops.c h->data[get_raw_pixel(x,y)>>shift]++; y 587 modules/rawhookops.c for(y=ystart;y<ymax;y+=ystep) { y 589 modules/rawhookops.c h->data[get_raw_pixel(x,y)]++; y 557 modules/sha1.c #define R0(v,w,x,y,z,i) \ y 558 modules/sha1.c z += ((w & (x ^ y)) ^ y) + blk0(i) + 0x5A827999 + rol(v, 5); \ y 560 modules/sha1.c #define R1(v,w,x,y,z,i) \ y 561 modules/sha1.c z += ((w & (x ^ y)) ^ y) + blk(i) + 0x5A827999 + rol(v, 5); \ y 563 modules/sha1.c #define R2(v,w,x,y,z,i) \ y 564 modules/sha1.c z += (w ^ x ^ y) + blk(i) + 0x6ED9EBA1 + rol(v, 5); w = rol(w, 30); y 565 modules/sha1.c #define R3(v,w,x,y,z,i) \ y 566 modules/sha1.c z += (((w | x) & y) | (w & x)) + blk(i) + 0x8F1BBCDC + rol(v, 5); \ y 568 modules/sha1.c #define R4(v,w,x,y,z,i) \ y 569 modules/sha1.c z += (w ^ x ^ y) + blk(i) + 0xCA62C1D6 + rol(v, 5); \ y 39 modules/shot_histogram.c int x, y, x0, x1, y0, y1; y 57 modules/shot_histogram.c for (y = y0; y < y1; y += SHOT_HISTOGRAM_STEP) y 60 modules/shot_histogram.c p = get_raw_pixel(x,y); y 68 modules/shot_histogram.c for (y = y0; y < y1; y += SHOT_HISTOGRAM_STEP ) y 71 modules/shot_histogram.c p = get_raw_pixel(x,y) >> shift; y 40 modules/user_menu_edit.c static int x, y; y 420 modules/user_menu_edit.c y = ((camera_screen.height-(num_lines-1)*rbf_font_height())>>1); y 423 modules/user_menu_edit.c draw_rectangle((x+w), y, (x+w)+wplus, y+num_lines*rbf_font_height()-1, MAKE_COLOR(BG_COLOR(user_color(conf.menu_color)), BG_COLOR(user_color(conf.menu_color))), RECT_BORDER0|DRAW_FILLED); y 430 modules/user_menu_edit.c y = (camera_screen.height-(count-1)*rbf_font_height())>>1; y 434 modules/user_menu_edit.c y = ((camera_screen.height-(num_lines-1)*rbf_font_height())>>1); y 438 modules/user_menu_edit.c rbf_draw_menu_header(x, y-rbf_font_height(), w+wplus, (conf.menu_symbol_enable)?curr_menu->symbol:0, lang_str(curr_menu->title), MAKE_COLOR(COLOR_RED,COLOR_WHITE)); y 509 modules/user_menu_edit.c for (imenu=gui_menu_top_item, i=0, yy=y; curr_menu->menu[imenu].text && i<num_lines; ++imenu) y 562 modules/user_menu_edit.c draw_rectangle((x+w)+2, y+1, (x+w)+6, y+1+i, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 563 modules/user_menu_edit.c draw_rectangle((x+w)+2, y+i+j, (x+w)+6, y+num_lines*rbf_font_height()-1-1, MAKE_COLOR(COLOR_BLACK, COLOR_BLACK), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 564 modules/user_menu_edit.c draw_rectangle((x+w)+2, y+1+i, (x+w)+6, y+i+j, MAKE_COLOR(COLOR_WHITE, COLOR_WHITE), RECT_BORDER0|DRAW_FILLED|RECT_ROUND_CORNERS); y 243 modules/zebra.c int v, s, x, y, over; y 269 modules/zebra.c for (y=viewport_yoffset, v=viewport_image_offset; y<viewport_yoffset+viewport_height; ++y) { y 270 modules/zebra.c sy = y*camera_screen.buffer_width; y 287 modules/zebra.c if (!((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) { y 295 modules/zebra.c else if (((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) y 351 modules/zebra.c int v, s, x, y, over; y 377 modules/zebra.c for (y=1, v=0; y<=viewport_height; ++y) { y 389 modules/zebra.c if (!((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) { y 396 modules/zebra.c else if (((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) buf[s]=COLOR_TRANSPARENT; y 406 modules/zebra.c if (y*camera_screen.height/viewport_height == (s+camera_screen.buffer_width)/camera_screen.buffer_width) { y 611 modules/zebra.c int x, y, over; y 639 modules/zebra.c for (y=0; y<viewport_height ; ++y) y 648 modules/zebra.c v = y*(viewport_byte_width) + x + x ; //v is the byte number in img-buf 0...480,480+320...960, y 649 modules/zebra.c bitmap_byte = (y + viewport_yoffset) * viewport_byte_width + 2*(x + viewport_xoffset); y 652 modules/zebra.c if (!((conf.zebra_mode == ZEBRA_MODE_ZEBRA_1 || conf.zebra_mode == ZEBRA_MODE_ZEBRA_2) && (y-x-timer)&f)) y 89 platform/a3400/kbd.c void get_touch_data(unsigned short *x, unsigned short *y, unsigned int *cnt) y 92 platform/a3400/kbd.c *y=touchy; y 474 platform/g5x/sub/100c/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 474 platform/g5x/sub/101a/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 474 platform/g5x/sub/101b/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 474 platform/g5x/sub/101d/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 457 platform/g7x/sub/100b/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 457 platform/g7x/sub/100c/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 452 platform/g7x/sub/100d/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 591 platform/g7x2/sub/101a/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 600 platform/g7x2/sub/110b/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 1010 platform/generic/wrappers.c double pow(double x, double y) { y 1011 platform/generic/wrappers.c return __pow(x, y); y 381 platform/ixus240_elph320hs/kbd.c static int draw_test_pixel(coord x, coord y, color c) y 385 platform/ixus240_elph320hs/kbd.c return (bitmap_buffer[active_bitmap_buffer][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x)] == c); y 203 platform/ixus310_elph500hs/kbd.c static int draw_test_pixel(coord x, coord y, color c) y 208 platform/ixus310_elph500hs/kbd.c return (bitmap_buffer[active_bitmap_buffer][(240-y) * camera_screen.buffer_width + ASPECT_XCORRECTION(480-x) - 1] == c); y 210 platform/ixus310_elph500hs/kbd.c return (bitmap_buffer[active_bitmap_buffer][y * camera_screen.buffer_width + ASPECT_XCORRECTION(x)] == c); y 517 platform/sx400is/sub/100b/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 18 platform/sx400is/sub/boot_extras.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 509 platform/sx410is/sub/100c/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 17 platform/sx410is/sub/boot_extras.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 540 platform/sx420is/sub/100a/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 18 platform/sx420is/sub/boot_extras.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 552 platform/sx430is/sub/100b/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 18 platform/sx430is/sub/boot_extras.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 55 platform/sx60hs/sub/100b/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 55 platform/sx60hs/sub/100c/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 56 platform/sx60hs/sub/100f/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 56 platform/sx60hs/sub/100h/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 122 platform/sx700hs/sub/100d/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 122 platform/sx700hs/sub/100e/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 583 platform/sx710hs/sub/100a/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 582 platform/sx710hs/sub/101a/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 598 platform/sx730hs/sub/100c/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 600 platform/sx730hs/sub/100d/boot.c extern int _CreateBinarySemaphoreStrictly(int x, int y); y 243 tools/ghidra_scripts/datatypes/fw_functions.h __stdcall double _pow(double x, double y); y 42 tools/rawconvert.c typedef unsigned (*get_pixel_func_t)(uint8_t *p, unsigned row_bytes, unsigned x, unsigned y); y 43 tools/rawconvert.c typedef void (*set_pixel_func_t)(uint8_t *p, unsigned row_bytes, unsigned x, unsigned y, unsigned value); y 54 tools/rawconvert.c void set_12_pixel(uint8_t *p,unsigned row_bytes, unsigned x, unsigned y, unsigned value) y 56 tools/rawconvert.c uint8_t* addr=p+y*row_bytes+(x>>2)*6; y 77 tools/rawconvert.c unsigned get_12_pixel(uint8_t *p, unsigned row_bytes, unsigned x, unsigned y) y 79 tools/rawconvert.c uint8_t* addr = p + y * row_bytes + (x>>2) * 6; y 89 tools/rawconvert.c unsigned get_10_pixel(uint8_t *p, unsigned row_bytes, unsigned x, unsigned y) y 91 tools/rawconvert.c uint8_t* addr = p + y * row_bytes + (x>>3) * 10; y 105 tools/rawconvert.c void set_10_pixel(uint8_t *p, unsigned row_bytes, unsigned x, unsigned y, unsigned value) y 107 tools/rawconvert.c uint8_t* addr = p + y*row_bytes + (x>>3)*10; y 144 tools/rawconvert.c unsigned get_8_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y) y 146 tools/rawconvert.c return buf[row_bytes*y+x]; y 149 tools/rawconvert.c void set_8_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y, unsigned value) y 151 tools/rawconvert.c buf[row_bytes*y+x] = (uint8_t)value; y 154 tools/rawconvert.c unsigned get_16_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y) y 156 tools/rawconvert.c return ((uint16_t *)buf)[(row_bytes/2)*y + x]; y 159 tools/rawconvert.c void set_16_pixel(uint8_t *buf, unsigned row_bytes, unsigned x, unsigned y, unsigned value) y 161 tools/rawconvert.c ((uint16_t *)buf)[(row_bytes/2)*y + x] = (uint16_t)value; y 41 tools/yuvconvert.c void yuv_to_rgb(uint8_t **dest, uint8_t y, int8_t u, int8_t v) y 43 tools/yuvconvert.c *((*dest)++) = clip(((y<<12) + v*5743 + 2048)>>12); y 44 tools/yuvconvert.c *((*dest)++) = clip(((y<<12) - u*1411 - v*2925 + 2048)>>12); y 45 tools/yuvconvert.c *((*dest)++) = clip(((y<<12) + u*7258 + 2048)>>12);