Home
last modified time | relevance | path

Searched refs:maxx (Results 1 – 25 of 48) sorted by relevance

12

/external/libvncserver/examples/
Dexample.c38 static int maxx=800, maxy=600; variable
47 for(i=0;i<maxx;++i) { in initBuffer()
48 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer()
49 buffer[(j*maxx+i)*bpp+1]=i*128/maxx; /* green */ in initBuffer()
50 buffer[(j*maxx+i)*bpp+2]=j*256/maxy; /* blue */ in initBuffer()
52 buffer[j*maxx*bpp+0]=0xff; in initBuffer()
53 buffer[j*maxx*bpp+1]=0xff; in initBuffer()
54 buffer[j*maxx*bpp+2]=0xff; in initBuffer()
55 buffer[j*maxx*bpp+3]=0xff; in initBuffer()
85 maxx = width; in newframebuffer()
[all …]
Dzippy.c7 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()
127 for (j=0; j<4; j++) for (k=0; k < maxx; k++) { in linecount()
128 current_pixel = (i*j*maxx + k) * bpp; in linecount()
152 blank_framebuffer(cl->screen->frameBuffer, 0, 0, maxx, maxy); in on_key_press()
154 rfbMarkRectAsModified(cl->screen,0, 0,maxx,maxy); in on_key_press()
[all …]
/external/autotest/client/profilers/powertop/src/
Ddisplay.c87 int maxx, maxy; variable
94 getmaxyx(stdscr, maxy, maxx); in setup_windows()
98 title_bar_window = subwin(stdscr, 1, maxx, 0, 0); in setup_windows()
99 cstate_window = subwin(stdscr, 7, maxx, 2, 0); in setup_windows()
100 wakeup_window = subwin(stdscr, 1, maxx, 9, 0); in setup_windows()
101 battery_power_window = subwin(stdscr, 2, maxx, 10, 0); in setup_windows()
102 timerstat_window = subwin(stdscr, maxy-16, maxx, 12, 0); in setup_windows()
104 maxwidth = maxx - 18; 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/libvncserver/test/
Dcursortest.c28 static int maxx=800, maxy=600; variable
36 for(i=0;i<maxx;++i) { in initBuffer()
37 buffer[(j*maxx+i)*bpp+0]=(i+j)*128/(maxx+maxy); /* red */ in initBuffer()
38 buffer[(j*maxx+i)*bpp+1]=i*128/maxx; /* green */ 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/mesa/state_tracker/
Dst_atom_scissor.c53 scissor.maxx = fb->Width; in update_scissor()
66 if (xmax < (GLint) scissor.maxx) in update_scissor()
67 scissor.maxx = xmax; in update_scissor()
72 if (scissor.minx >= scissor.maxx || scissor.miny >= scissor.maxy) in update_scissor()
73 scissor.minx = scissor.miny = scissor.maxx = scissor.maxy = 0; in update_scissor()
/external/opencv3/samples/cpp/
Dcreate_mask.cpp34 int minx,miny,maxx,maxy,lenx,leny; variable
83 maxx = max(maxx,pts[i].x); in mouseHandler()
87 lenx = maxx - minx; in mouseHandler()
118 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in mouseHandler()
135 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in main()
Dcloning_gui.cpp59 int minx, miny, maxx, maxy, lenx, leny; variable
117 maxx = max(maxx,pts[i].x); in source()
121 lenx = maxx - minx; in source()
179 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in source()
302 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in main()
475 maxx = max(maxx,pts[i].x); in main()
479 lenx = maxx - minx; in main()
513 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in main()
/external/opencv3/samples/cpp/tutorial_code/photo/seamless_cloning/
Dcloning_gui.cpp58 int minx, miny, maxx, maxy, lenx, leny; variable
116 maxx = max(maxx,pts[i].x); in source()
120 lenx = maxx - minx; in source()
178 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in source()
301 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in main()
474 maxx = max(maxx,pts[i].x); in main()
478 lenx = maxx - minx; in main()
512 minx = INT_MAX; miny = INT_MAX; maxx = INT_MIN; maxy = INT_MIN; in main()
/external/fio/
Dgraph.c315 double minx, double maxx, int nticks, int add_tm_text) in graph_draw_x_ticks() argument
322 nticks = calc_tickmarks(minx, maxx, nticks, &tm, &power_of_ten, in graph_draw_x_ticks()
328 tx = (((tm[i].value) - minx) / (maxx - minx)) * (x2 - x1) + x1; in graph_draw_x_ticks()
530 double minx, miny, maxx, maxy, gminx, gminy, gmaxx, gmaxy; in line_graph_draw() local
542 maxx = find_xy_value(g, getx, maxdouble); in line_graph_draw()
555 if (fabs(maxx - minx) < 1e-20 || fabs(maxy - miny) < 1e-20) { in line_graph_draw()
559 maxx = 10.0; in line_graph_draw()
573 left_extra = fabs(maxx - minx) * g->left_extra; in line_graph_draw()
575 right_extra = fabs(maxx - minx) * g->right_extra; in line_graph_draw()
578 gmaxx = maxx + right_extra; in line_graph_draw()
[all …]
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_state_validate.c143 int minx, maxx, miny, maxy; in nv50_validate_scissor() local
153 maxx = s->maxx; in nv50_validate_scissor()
158 maxx = nv50->framebuffer.width; in nv50_validate_scissor()
164 maxx = MIN2(maxx, (int)(vp->translate[0] + fabsf(vp->scale[0]))); in nv50_validate_scissor()
169 PUSH_DATA (push, (maxx << 16) | minx); in nv50_validate_scissor()
173 PUSH_DATA (push, (s->maxx << 16) | s->minx); in nv50_validate_scissor()
/external/mesa3d/src/gallium/state_trackers/vega/
Dpolygon.c195 float minx, miny, maxx, maxy; in polygon_bounding_rect() local
198 maxx = vert[0]; in polygon_bounding_rect()
207 maxx = MAX2(vert[0], maxx); in polygon_bounding_rect()
213 rect[2] = maxx - minx; in polygon_bounding_rect()
/external/opencv3/modules/photo/src/
Dseamless_cloning.cpp58 int minx = INT_MAX, miny = INT_MAX, maxx = INT_MIN, maxy = INT_MIN; in seamlessClone() local
79 maxx = std::max(maxx,i); in seamlessClone()
86 int lenx = maxx - minx; in seamlessClone()
/external/skia/src/effects/
DSkEmbossMask.cpp101 int maxx = mask->fBounds.width() - 1; in Emboss() local
107 for (int x = 0; x <= maxx; x++) { in Emboss()
109 int nx = alpha[x + neq_to_one(x, maxx)] - alpha[x - nonzero_to_one(x)]; in Emboss()
/external/opencv/cv/src/
Dcvsegmentation.cpp458 int minx, miny, maxx, maxy; in cvPyrMeanShiftFiltering() local
466 maxx = cvRound(x0 + sp); maxx = MIN(maxx, size.width-1); in cvPyrMeanShiftFiltering()
470 for( y = miny; y <= maxy; y++, ptr += sstep - (maxx-minx+1)*3 ) in cvPyrMeanShiftFiltering()
474 for( ; x + 3 <= maxx; x += 4, ptr += 12 ) in cvPyrMeanShiftFiltering()
502 for( ; x <= maxx; x++, ptr += 3 ) in cvPyrMeanShiftFiltering()
/external/skia/samplecode/
DSampleClip.cpp85 const SkScalar maxx = 5*SkIntToScalar(W)/4; in show_stroke() local
89 canvas->drawLine(randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke()
90 randRange(rand, minx, maxx), randRange(rand, miny, maxy), in show_stroke()
/external/opencv3/modules/imgproc/src/
Dsegmentation.cpp461 int minx, miny, maxx, maxy; in pyrMeanShiftFiltering() local
469 maxx = cvRound(x0 + sp); maxx = MIN(maxx, size.width-1); in pyrMeanShiftFiltering()
473 for( y = miny; y <= maxy; y++, ptr += sstep - (maxx-minx+1)*3 ) in pyrMeanShiftFiltering()
478 for( ; x + 3 <= maxx; x += 4, ptr += 12 ) in pyrMeanShiftFiltering()
506 for( ; x <= maxx; x++, ptr += 3 ) in pyrMeanShiftFiltering()
/external/mesa3d/src/gallium/drivers/softpipe/
Dsp_state_derived.c194 sp->cliprect.maxx = MIN2(sp->scissor.maxx, surfWidth); in compute_cliprect()
201 sp->cliprect.maxx = surfWidth; in compute_cliprect()
Dsp_setup.c132 const int maxx = (int) cliprect->maxx; in quad_clip() local
136 if (quad->input.x0 >= maxx || in quad_clip()
148 if (quad->input.x0 == maxx - 1) in quad_clip()
714 const int maxx = (int) cliprect->maxx; in subtriangle() local
753 if (right > maxx) in subtriangle()
754 right = maxx; in subtriangle()
/external/opencv3/modules/cudaimgproc/src/cuda/
Dmean_shift.cu74 int maxx = x0+sp; in do_mean_shift() local
80 for( int x = minx; x <= maxx; x++ ) in do_mean_shift()
/external/opencv3/modules/features2d/src/
Devaluation.cpp350 … int maxx = (int)ceil(( keypoint1a.boundingBox.width > (diff.x+keypoint2a.boundingBox.width)) ? in computeOneToOneMatchedOverlaps() local
359 int mina = (maxx-minx) < (maxy-miny) ? (maxx-minx) : (maxy-miny) ; in computeOneToOneMatchedOverlaps()
363 int N = (int)floor((float)(maxx - minx) / dr); in computeOneToOneMatchedOverlaps()
/external/mesa3d/src/gallium/drivers/i915/
Di915_state_dynamic.c271 unsigned x2 = i915->scissor.maxx - 1; in upload_SCISSOR_RECT()
/external/mesa3d/src/gallium/include/pipe/
Dp_state.h175 unsigned maxx:16; member
/external/opencv3/modules/calib3d/src/
Dfisheye.cpp553 double minx = DBL_MAX, miny = DBL_MAX, maxx = -DBL_MAX, maxy = -DBL_MAX; in estimateNewCameraMatrixForUndistortRectify() local
559 maxx = std::max(maxx, pptr[i][0]); in estimateNewCameraMatrixForUndistortRectify()
563 double minx = -DBL_MAX, miny = -DBL_MAX, maxx = DBL_MAX, maxy = DBL_MAX; in estimateNewCameraMatrixForUndistortRectify()
569 if (i % 4 == 3) maxx = std::min(maxx, pptr[i][0]); in estimateNewCameraMatrixForUndistortRectify()
574 double f2 = w * 0.5/(maxx - cn[0]); in estimateNewCameraMatrixForUndistortRectify()
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_compositor.c650 result.x1 = MIN2(result.x1, s->scissor.maxx); in calc_drawn_area()
832 s->scissor.maxx = dst_clip->x1; in vl_compositor_set_dst_clip()
998 s->scissor.maxx = dst_surface->width; in vl_compositor_render()
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_framebuffer.c469 rect.w = scissor->maxx - scissor->minx; /* + 1 ?? */ in emit_scissor_rect()

12