Home
last modified time | relevance | path

Searched refs:rect (Results 451 - 475 of 1415) sorted by relevance

1...<<11121314151617181920>>...57

/kernel/linux/linux-6.6/drivers/media/i2c/
H A Dov5693.c837 * We can only support setting either the dimensions of the crop rect in ov5693_set_fmt()
928 struct v4l2_rect rect; in ov5693_set_selection() local
938 rect.left = clamp(ALIGN(sel->r.left, 2), OV5693_NATIVE_START_LEFT, in ov5693_set_selection()
940 rect.top = clamp(ALIGN(sel->r.top, 2), OV5693_NATIVE_START_TOP, in ov5693_set_selection()
942 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in ov5693_set_selection()
944 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in ov5693_set_selection()
948 rect.width = min_t(unsigned int, rect.width, in ov5693_set_selection()
949 OV5693_NATIVE_WIDTH - rect.left); in ov5693_set_selection()
950 rect in ov5693_set_selection()
[all...]
H A Dimx296.c770 struct v4l2_rect rect; in imx296_set_selection() local
779 rect.left = clamp(ALIGN(sel->r.left, 4), 0, in imx296_set_selection()
781 rect.top = clamp(ALIGN(sel->r.top, 4), 0, in imx296_set_selection()
783 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 4), in imx296_set_selection()
785 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 4), in imx296_set_selection()
788 rect.width = min_t(unsigned int, rect.width, in imx296_set_selection()
789 IMX296_PIXEL_ARRAY_WIDTH - rect.left); in imx296_set_selection()
790 rect.height = min_t(unsigned int, rect in imx296_set_selection()
[all...]
/third_party/ffmpeg/libavcodec/
H A Ddvbsubdec.c663 static void compute_default_clut(DVBSubContext *ctx, uint8_t *clut, AVSubtitleRect *rect, int w, int h) in compute_default_clut() argument
670 ptrdiff_t stride = rect->linesize[0]; in compute_default_clut()
674 #define V(x,y) rect->data[0][(x) + (y)*stride] in compute_default_clut()
735 AVSubtitleRect *rect; in save_subtitle_set() local
793 rect = sub->rects[i]; in save_subtitle_set()
794 rect->x = display->x_pos + offset_x; in save_subtitle_set()
795 rect->y = display->y_pos + offset_y; in save_subtitle_set()
796 rect->w = region->width; in save_subtitle_set()
797 rect->h = region->height; in save_subtitle_set()
798 rect in save_subtitle_set()
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/
H A Dvpdma.c826 struct v4l2_rect rect = *c_rect; in vpdma_rawchan_add_out_dtd() local
835 rect.height >>= 1; in vpdma_rawchan_add_out_dtd()
836 rect.top >>= 1; in vpdma_rawchan_add_out_dtd()
840 dma_addr += rect.top * stride + (rect.left * depth >> 3); in vpdma_rawchan_add_out_dtd()
896 struct v4l2_rect rect = *c_rect; in vpdma_add_in_dtd() local
904 rect.height >>= 1; in vpdma_add_in_dtd()
905 rect.top >>= 1; in vpdma_add_in_dtd()
909 dma_addr += rect.top * stride + (rect in vpdma_add_in_dtd()
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/
H A Dvpdma.c826 struct v4l2_rect rect = *c_rect; in vpdma_rawchan_add_out_dtd() local
835 rect.height >>= 1; in vpdma_rawchan_add_out_dtd()
836 rect.top >>= 1; in vpdma_rawchan_add_out_dtd()
840 dma_addr += rect.top * stride + (rect.left * depth >> 3); in vpdma_rawchan_add_out_dtd()
896 struct v4l2_rect rect = *c_rect; in vpdma_add_in_dtd() local
904 rect.height >>= 1; in vpdma_add_in_dtd()
905 rect.top >>= 1; in vpdma_add_in_dtd()
909 dma_addr += rect.top * stride + (rect in vpdma_add_in_dtd()
[all...]
/test/testfwk/arkxtest/uitest/test/
H A Dui_action_test.cpp220 Rect rect(210, 510, 30, 330); in TEST_F()
222 GenericPinch action(rect, scale); in TEST_F()
229 const int32_t disX0 = abs(rect.left_ - rect.GetCenterX()) * abs(scale - 1); in TEST_F()
236 int32_t expectedPointerX0 = rect.left_ + (disX0 * step) / steps; in TEST_F()
257 int32_t expectedPointerX0 = rect.right_ - stepLengthX * step; in TEST_F()
360 Rect rect(210, 510, 30, 330); in TEST_F()
362 GenericPinch action(rect, scale); in TEST_F()
369 const int32_t disX0 = abs(rect.left_ - rect in TEST_F()
[all...]
/third_party/mesa3d/src/gallium/frontends/vdpau/
H A Dmixer.c245 struct u_rect rect, clip, *prect, dirty_area; in vlVdpVideoMixerRender() local
297 RectToPipe(background_source_rect, &rect), NULL, NULL); in vlVdpVideoMixerRender()
337 prect = RectToPipe(video_source_rect, &rect); in vlVdpVideoMixerRender()
339 rect.x0 = 0; in vlVdpVideoMixerRender()
340 rect.y0 = 0; in vlVdpVideoMixerRender()
341 rect.x1 = surf->templat.width; in vlVdpVideoMixerRender()
342 rect.y1 = surf->templat.height; in vlVdpVideoMixerRender()
343 prect = &rect; in vlVdpVideoMixerRender()
384 vl_compositor_set_layer_dst_area(&vmixer->cstate, layer++, RectToPipe(destination_video_rect, &rect)); in vlVdpVideoMixerRender()
398 RectToPipe(layers->source_rect, &rect), NUL in vlVdpVideoMixerRender()
[all...]
/third_party/skia/src/gpu/effects/
H A DGrTextureEffect.cpp329 // 2) Clamp the coordinates to a 0.5 inset of the subset rect [Clamp, Repeat, and in emitCode()
331 // output of 1). The clamp rect collapses to a line or point it if the subset in emitCode()
332 // rect is less than one pixel wide/tall. in emitCode()
337 // filtering do a hard less than/greater than test with the subset rect. in emitCode()
431 // These modes either don't use the subset rect or don't need to map the in emitCode()
532 // Apply subset rect and clamp rect to coords. in emitCode()
652 // epsilon) before comparing to the subset rect to avoid GPU interpolation errors in emitCode()
691 auto pushRect = [&](float rect[4], UniformHandle uni) { in onSetData()
693 rect[ in onSetData()
[all...]
/third_party/skia/third_party/externals/libpng/contrib/gregbook/
H A Drpng2-win.c702 RECT rect;
824 rect.left = 0L;
825 rect.top = 0L;
826 rect.right = (LONG)rpng2_info.width; /* possibly off by one? */
827 rect.bottom = (LONG)rpng2_info.height; /* possibly off by one? */
828 InvalidateRect(global_hwnd, &rect, FALSE);
1157 RECT rect;
1159 rect.left = 0L;
1160 rect.top = (LONG)firstrow;
1161 rect
[all...]
/third_party/vk-gl-cts/modules/egl/
H A DteglPartialUpdateTests.cpp135 ColoredRect rect; member
140 , rect (rect_) in DrawCommand()
250 const ColoredRect& coloredRect = frame.draws[drawNdx].rect; in render()
334 const ColoredRect& coloredRect = frame.draws[drawNdx].rect; in render()
481 const ColoredRect& rect = frame.draws[drawNdx].rect; in getDamageRegion() local
482 damageRegion.push_back(rect.bottomLeft.x() - marginLeft); in getDamageRegion()
483 damageRegion.push_back(rect.bottomLeft.y() - marginBottom); in getDamageRegion()
484 damageRegion.push_back(rect.topRight.x() - rect in getDamageRegion()
[all...]
/third_party/skia/experimental/skrive/src/
H A DRectangle.cpp39 const auto rect = SkRect::MakeXYWH(-fWidth * 0.5f, -fHeight * 0.5f, fWidth, fHeight); in onDraw() local
41 canvas->drawRect(rect, paint); in onDraw()
/third_party/skia/docs/examples/
H A DPath_addRect_2.cpp8 const SkRect rect = {10, 10, 54, 54}; in REG_FIDDLE() local
20 path.addRect(rect, direction, start); in REG_FIDDLE()
H A DRRect_equal_operator.cpp9 SkRRect rrect2 = SkRRect::MakeRectXY(rrect1.rect(), 25, 100); in REG_FIDDLE()
10 SkRRect rrect3 = SkRRect::MakeOval(rrect1.rect()); in REG_FIDDLE()
H A DPicture_MakePlaceholder.cpp11 const SkRect rect = picture->cullRect(); in REG_FIDDLE() local
14 canvas->drawRect(rect, redPaint); in REG_FIDDLE()
H A DRRect_notequal_operator.cpp9 SkRRect rrect2 = SkRRect::MakeRectXY(rrect1.rect(), 50, 50); in REG_FIDDLE()
10 SkRRect rrect3 = SkRRect::MakeOval(rrect1.rect()); in REG_FIDDLE()
H A Dradial_gradient_test.cpp20 const SkRect rect = SkRect::MakeWH(SIZE, SIZE); in REG_FIDDLE() local
22 canvas->drawRect(rect, p); in REG_FIDDLE()
H A DRect_equal_operator.cpp19 for (auto rect : tests) { in REG_FIDDLE()
20 debugster(rect); in REG_FIDDLE()
/third_party/skia/experimental/sktext/editor/
H A DSelection.cpp9 void Selection::select(TextRange range, SkRect rect) { in select() argument
13 fGlyphBoxes.emplace_back(rect); in select()
/test/xts/acts/graphic/acts_drawing_native/
H A DDrawingNativePenTest.cpp1238 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 100, 200, 200); in HWTEST_F() local
1242 OH_Drawing_PenGetFillPath(pen, srcPath, dstPath, rect, matrix); in HWTEST_F()
1246 OH_Drawing_RectDestroy(rect); in HWTEST_F()
1267 OH_Drawing_Rect *rect = OH_Drawing_RectCreate(100, 100, 200, 200); in HWTEST_F() local
1271 OH_Drawing_PenGetFillPath(nullptr, srcPath, dstPath, rect, matrix); in HWTEST_F()
1273 OH_Drawing_PenGetFillPath(pen, nullptr, dstPath, rect, matrix); in HWTEST_F()
1275 OH_Drawing_PenGetFillPath(pen, srcPath, nullptr, rect, matrix); in HWTEST_F()
1279 OH_Drawing_PenGetFillPath(pen, srcPath, dstPath, rect, nullptr); in HWTEST_F()
1283 OH_Drawing_RectDestroy(rect); in HWTEST_F()
/third_party/mesa3d/src/panfrost/vulkan/
H A Dpanvk_vX_meta_clear.c275 unsigned minx = MAX2(clear_rect->rect.offset.x, 0); in panvk_meta_clear_attachment()
276 unsigned miny = MAX2(clear_rect->rect.offset.y, 0); in panvk_meta_clear_attachment()
277 unsigned maxx = MAX2(clear_rect->rect.offset.x + clear_rect->rect.extent.width - 1, 0); in panvk_meta_clear_attachment()
278 unsigned maxy = MAX2(clear_rect->rect.offset.y + clear_rect->rect.extent.height - 1, 0); in panvk_meta_clear_attachment()
288 float rect[] = { in panvk_meta_clear_attachment() local
295 rect, sizeof(rect), 64); in panvk_meta_clear_attachment()
/third_party/skia/src/gpu/ops/
H A DFillRectOp.cpp479 const SkRect& rect, in MakeNonAARect()
481 DrawQuad quad{GrQuad::MakeFromRect(rect, view), GrQuad(rect), GrQuadAAFlags::kNone}; in MakeNonAARect()
567 SkRect rect = GrTest::TestRect(random); in GR_DRAW_OP_TEST_DEFINE() local
586 DrawQuad quad = {GrQuad::MakeFromRect(rect, viewMatrix), in GR_DRAW_OP_TEST_DEFINE()
587 GrQuad::MakeFromRect(rect, localMatrix), aaFlags}; in GR_DRAW_OP_TEST_DEFINE()
590 // Pass local rect directly in GR_DRAW_OP_TEST_DEFINE()
592 DrawQuad quad = {GrQuad::MakeFromRect(rect, viewMatrix), in GR_DRAW_OP_TEST_DEFINE()
598 DrawQuad quad = {GrQuad::MakeFromRect(rect, viewMatrix), GrQuad(rect), aaFlag in GR_DRAW_OP_TEST_DEFINE()
476 MakeNonAARect(GrRecordingContext* context, GrPaint&& paint, const SkMatrix& view, const SkRect& rect, const GrUserStencilSettings* stencil) MakeNonAARect() argument
[all...]
/third_party/skia/tests/
H A DWritePixelsTest.cpp254 ERRORF(reporter, "Canvas pixel outside write rect at %d, %d changed." in check_write()
386 const SkIRect& rect = testRects[r]; in test_write_pixels() local
395 REPORTER_ASSERT(reporter, setup_bitmap(&bmp, ct, at, rect.width(), in test_write_pixels()
396 rect.height(), SkToBool(tightBmp))); in test_write_pixels()
399 surface->writePixels(bmp, rect.fLeft, rect.fTop); in test_write_pixels()
403 bmp, rect.fLeft, rect.fTop)); in test_write_pixels()
407 SkIRect writeRect = SkIRect::MakeXYWH(rect.fLeft, rect in test_write_pixels()
[all...]
/third_party/skia/include/core/
H A DSkPath.h521 /** Returns true if rect is contained by SkPath.
522 May return false when rect is contained by SkPath.
525 rect may share points and edges with SkPath and be contained.
526 Returns true if rect is empty, that is, it has zero width or height; and
527 the SkPoint or line described by rect is contained by SkPath.
529 @param rect SkRect, line, or SkPoint checked for containment
530 @return true if rect is contained
534 bool conservativelyContainsRect(const SkRect& rect) const;
1031 If false: rect, isClosed, and direction are unchanged.
1032 If true: rect, isClose
1077 addRect(const SkRect& rect, SkPathDirection dir = SkPathDirection::kCW) addRect() argument
1840 setBounds(const SkRect& rect) setBounds() argument
[all...]
/test/xts/acts/graphic/graphicnapidrawingtest/
H A DNativeDrawingPathLargeValueTest.cpp212 OH_Drawing_Rect* rect = OH_Drawing_RectCreate(50, 50, 2160, 4096); in HWTEST_F() local
213 OH_Drawing_RoundRect* roundRect = OH_Drawing_RoundRectCreate(rect, 20, 20); in HWTEST_F()
219 OH_Drawing_RectDestroy(rect); in HWTEST_F()
/third_party/cups-filters/filter/pdftopdf/
H A Dqpdf_pdftopdf_processor.h10 virtual void add_border_rect(const PageRect &rect,BorderType border,float fscale);
14 virtual void add_label(const PageRect &rect, const std::string label);
17 void debug(const PageRect &rect,float xpos,float ypos);

Completed in 21 milliseconds

1...<<11121314151617181920>>...57