/external/mesa3d/src/gallium/drivers/radeon/ |
D | r600_viewport.c | 55 float tmp, minx, miny, maxx, maxy; in r600_get_scissor_from_viewport() local 61 maxy = vp->scale[1] + vp->translate[1]; in r600_get_scissor_from_viewport() 64 if (minx == -1 && miny == -1 && maxx == 1 && maxy == 1) { in r600_get_scissor_from_viewport() 66 scissor->maxx = scissor->maxy = GET_MAX_SCISSOR(rctx); in r600_get_scissor_from_viewport() 76 if (miny > maxy) { in r600_get_scissor_from_viewport() 78 miny = maxy; in r600_get_scissor_from_viewport() 79 maxy = tmp; in r600_get_scissor_from_viewport() 86 scissor->maxy = ceilf(maxy); in r600_get_scissor_from_viewport() 97 out->maxy = CLAMP(scissor->maxy, 0, max_scissor); in r600_clamp_scissor() 106 out->maxy = MIN2(out->maxy, clip->maxy); in r600_clip_scissor() [all …]
|
/external/libvncserver/examples/ |
D | zippy.c | 7 static int maxx=400, maxy=400, bpp=4; variable 28 if(!rfbProcessSizeArguments(&maxx,&maxy,&bpp,&argc,argv)) in main() 31 server = rfbGetScreen (&argc, argv, maxx, maxy, 8, 3, bpp); in main() 35 server->frameBuffer = (char*)malloc(maxx*maxy*bpp); in main() 42 blank_framebuffer(server->frameBuffer, 0, 0, maxx, maxy); in main() 52 for (i=0; i < maxx * maxy * bpp; i++) frame_buffer[i]=(char) 0; in blank_framebuffer() 126 for (i=maxy-4; i>maxy-20; i-=4) in linecount() 152 blank_framebuffer(cl->screen->frameBuffer, 0, 0, maxx, maxy); in on_key_press() 153 rfbDrawString(cl->screen,&default8x16Font,20,maxy-20,"Hello, World!",0xffffff); in on_key_press() 154 rfbMarkRectAsModified(cl->screen,0, 0,maxx,maxy); in on_key_press() [all …]
|
D | example.c | 38 static int maxx=800, maxy=600; variable 46 for(j=0;j<maxy;++j) { in initBuffer() 48 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer() 50 buffer[(j*maxx+i)*bpp+2]=j*256/maxy; /* blue */ in initBuffer() 86 maxy = height; in newframebuffer() 88 newfb = (unsigned char*)malloc(maxx * maxy * bpp); in newframebuffer() 90 rfbNewFramebuffer(screen, (char*)newfb, maxx, maxy, 8, 3, bpp); in newframebuffer() 128 if(x>=0 && y>=0 && x<maxx && y<maxy) { in doptr() 144 y2=y+buttonMask; if(y2>maxy) y2=maxy; in doptr() 182 rfbMarkRectAsModified(cl->screen,0,0,maxx,maxy); in dokey() [all …]
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_atom_scissor.c | 52 GLint miny, maxy; in update_scissor() local 60 scissor[i].maxy = fb_height; in update_scissor() 74 if (ymax < (GLint) scissor[i].maxy) in update_scissor() 75 scissor[i].maxy = ymax; in update_scissor() 78 if (scissor[i].minx >= scissor[i].maxx || scissor[i].miny >= scissor[i].maxy) in update_scissor() 79 scissor[i].minx = scissor[i].miny = scissor[i].maxx = scissor[i].maxy = 0; in update_scissor() 86 miny = fb->Height - scissor[i].maxy; in update_scissor() 87 maxy = fb->Height - scissor[i].miny; in update_scissor() 89 scissor[i].maxy = maxy; in update_scissor() 122 new_rects[i].maxy = MAX2(rect->Y + rect->Height, 0); in update_window_rectangles()
|
/external/python/cpython2/Lib/curses/ |
D | textpad.py | 46 (self.maxy, self.maxx) = win.getmaxyx() 47 self.maxy = self.maxy - 1 68 if y < self.maxy or x < self.maxx: 89 if y < self.maxy or x < self.maxx: 114 elif y == self.maxy: 121 if self.maxy == 0: 123 elif y < self.maxy: 135 if y < self.maxy: 151 for y in range(self.maxy+1): 160 if self.maxy > 0:
|
/external/python/cpython3/Lib/curses/ |
D | textpad.py | 52 maxy, maxx = self.win.getmaxyx() 53 self.maxy = maxy - 1 74 while y < self.maxy or x < self.maxx: 101 if y < self.maxy or x < self.maxx: 126 elif y == self.maxy: 133 if self.maxy == 0: 135 elif y < self.maxy: 147 if y < self.maxy: 164 for y in range(self.maxy+1): 173 if self.maxy > 0:
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_emit.c | 50 uint32_t minx, miny, maxx, maxy; in vc4_emit_state() local 55 maxy = MIN2(vp_maxy, job->draw_height); in vc4_emit_state() 60 maxy = MIN2(vp_maxy, vc4->scissor.maxy); in vc4_emit_state() 67 cl_u16(&bcl, maxy - miny); in vc4_emit_state() 72 job->draw_max_y = MAX2(job->draw_max_y, maxy); in vc4_emit_state()
|
/external/libavc/encoder/ |
D | ime_macros.h | 41 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > maxy)?(maxy):(y))) argument
|
/external/libvncserver/test/ |
D | cursortest.c | 28 static int maxx=800, maxy=600; variable 35 for(j=0;j<maxy;++j) { in initBuffer() 37 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer() 39 buffer[(j*maxx+i)*bpp+2]=j*256/maxy; /* blue */ in initBuffer() 325 rfbScreenInfoPtr rfbScreen = rfbGetScreen(&argc,argv,maxx,maxy,8,3,bpp); in main() 330 rfbScreen->frameBuffer = (char*)malloc(maxx*maxy*bpp); in main()
|
/external/mesa3d/src/gallium/state_trackers/xa/ |
D | xa_priv.h | 130 ctx->scissor.maxy = 0; in xa_scissor_reset() 138 unsigned maxx, unsigned maxy) in xa_scissor_update() argument 141 ctx->scissor.maxy = MAX2(ctx->scissor.maxy, maxy); in xa_scissor_update()
|
/external/autotest/client/profilers/powertop/src/ |
D | display.c | 87 int maxx, maxy; variable 94 getmaxyx(stdscr, maxy, maxx); in setup_windows() 102 timerstat_window = subwin(stdscr, maxy-16, maxx, 12, 0); in setup_windows() 103 maxtimerstats = maxy-16 -2; in setup_windows() 105 suggestion_window = subwin(stdscr, 3, maxx, maxy-4, 0); in setup_windows() 106 status_bar_window = subwin(stdscr, 1, maxx, maxy-1, 0); in setup_windows()
|
/external/fio/ |
D | graph.c | 371 double miny, double maxy, int nticks, int add_tm_text) in graph_draw_y_ticks() argument 378 nticks = calc_tickmarks(miny, maxy, nticks, &tm, &power_of_ten, in graph_draw_y_ticks() 388 maxy = tm[nticks - 1].value; in graph_draw_y_ticks() 391 ty = y2 - (((tm[i].value) - miny) / (maxy - miny)) * (y2 - y1); in graph_draw_y_ticks() 433 return maxy; in graph_draw_y_ticks() 530 double minx, miny, maxx, maxy, gminx, gminy, gmaxx, gmaxy; in line_graph_draw() local 553 maxy = find_xy_value(g, gety, maxdouble); in line_graph_draw() 555 if (fabs(maxx - minx) < 1e-20 || fabs(maxy - miny) < 1e-20) { in line_graph_draw() 560 maxy = 100.0; in line_graph_draw() 569 top_extra = fabs(maxy - miny) * g->top_extra; in line_graph_draw() [all …]
|
/external/libavc/common/ |
D | ih264_macros.h | 75 #define CLIP3(miny, maxy, y) (((y) < (miny))?(miny):(((y) > (maxy))?(maxy):(y))) argument
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_state_validate.c | 188 int minx, maxx, miny, maxy, i; in nv50_validate_scissor() local 215 maxy = s->maxy; in nv50_validate_scissor() 220 maxy = nv50->framebuffer.height; in nv50_validate_scissor() 226 maxy = MIN2(maxy, (int)(vp->translate[1] + fabsf(vp->scale[1]))); in nv50_validate_scissor() 231 maxy = MAX2(maxy, 0); in nv50_validate_scissor() 235 PUSH_DATA (push, (maxy << 16) | miny); in nv50_validate_scissor() 239 PUSH_DATA (push, (s->maxy << 16) | s->miny); in nv50_validate_scissor() 303 PUSH_DATA(push, (s->maxy << 16) | s->miny); in nv50_validate_window_rects()
|
/external/skqp/src/effects/ |
D | SkEmbossMask.cpp | 63 int maxy = mask->fBounds.height() - 1; in Emboss() local 67 for (int y = 0; y <= maxy; y++) { in Emboss() 68 int next_row = neq_to_mask(y, maxy) & rowBytes; in Emboss()
|
/external/skia/src/effects/ |
D | SkEmbossMask.cpp | 63 int maxy = mask->fBounds.height() - 1; in Emboss() local 67 for (int y = 0; y <= maxy; y++) { in Emboss() 68 int next_row = neq_to_mask(y, maxy) & rowBytes; in Emboss()
|
/external/ltp/testcases/realtime/lib/ |
D | libstats.c | 317 int minx = 0, maxx = 0, miny = 0, maxy = 0; in stats_container_save() local 345 miny = maxy = data->records[0].y; in stats_container_save() 351 maxy = MAX(maxy, rec->y); in stats_container_save() 368 maxx + 1, maxy + 1, datfile, mode); in stats_container_save()
|
/external/skqp/samplecode/ |
D | SampleClip.cpp | 88 const SkScalar maxy = 5*SkIntToScalar(H)/4; in show_stroke() local 90 canvas->drawLine(randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke() 91 randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke()
|
/external/skia/samplecode/ |
D | SampleClip.cpp | 88 const SkScalar maxy = 5*SkIntToScalar(H)/4; in show_stroke() local 90 canvas->drawLine(randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke() 91 randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_gmem.c | 156 height = scissor->maxy - miny; in calculate_tiles() 447 unsigned maxy = tile->yoff + tile->bin_h; in skip_restore() local 449 (miny >= scissor->miny) && (maxy <= scissor->maxy); in skip_restore()
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
D | sp_state_derived.c | 270 sp->cliprect[i].maxy = MIN2(sp->scissors[i].maxy, surfHeight); in compute_cliprect() 277 sp->cliprect[i].maxy = surfHeight; in compute_cliprect()
|
/external/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
D | fd5_draw.c | 197 ctx->batch->max_scissor.maxy = MAX2(ctx->batch->max_scissor.maxy, scissor->maxy); in fd5_clear()
|
/external/python/cpython3/Tools/demo/ |
D | ss1.py | 135 maxx = maxy = 0 138 maxy = max(maxy, y) 139 return maxx, maxy 153 maxx, maxy = self.getsize() 154 width, height = maxx+1, maxy+1 503 maxx, maxy = self.sheet.getsize() 504 rows = max(rows, maxy)
|
/external/python/cpython2/Demo/tkinter/guido/ |
D | ss1.py | 132 maxx = maxy = 0 135 maxy = max(maxy, y) 136 return maxx, maxy 150 maxx, maxy = self.getsize() 151 width, height = maxx+1, maxy+1 518 maxx, maxy = self.sheet.getsize() 519 rows = max(rows, maxy)
|
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
D | fd3_emit.c | 640 int maxy = scissor->maxy; in fd3_emit_state() local 651 maxy = MIN2(maxy, (int)ceilf(vp->translate[1] + fabsf(vp->scale[1]))); in fd3_emit_state() 658 A3XX_GRAS_SC_WINDOW_SCISSOR_BR_Y(maxy - 1)); in fd3_emit_state() 663 ctx->batch->max_scissor.maxy = MAX2(ctx->batch->max_scissor.maxy, maxy); in fd3_emit_state()
|