Home
last modified time | relevance | path

Searched refs:crop_rect (Results 1 – 25 of 472) sorted by relevance

12345678910>>...19

/dports/games/alephone/alephone-release-20190331/Source_Files/RenderOther/
H A DShape_Blitter.cpp57 crop_rect.x = crop_rect.y = crop_rect.w = crop_rect.h = 0; in Shape_Blitter()
75 crop_rect.x = crop_rect.x * width / m_scaled_src.w; in Rescale()
76 crop_rect.w = crop_rect.w * width / m_scaled_src.w; in Rescale()
81 crop_rect.y = crop_rect.y * height / m_scaled_src.h; in Rescale()
82 crop_rect.h = crop_rect.h * height / m_scaled_src.h; in Rescale()
173 if (crop_rect.x > 0) in OGL_Draw()
175 if (crop_rect.y > 0) in OGL_Draw()
192 if (crop_rect.x > 0) in OGL_Draw()
194 if (crop_rect.y > 0) in OGL_Draw()
220 if (crop_rect.x > 0) in OGL_Draw()
[all …]
H A DImage_Blitter.cpp30 crop_rect.x = crop_rect.y = crop_rect.w = crop_rect.h = 0; in Image_Blitter()
79 crop_rect.x = 0; in Load()
80 crop_rect.y = 0; in Load()
81 crop_rect.w = m_src.w; in Load()
82 crop_rect.h = m_src.h; in Load()
124 crop_rect.x = crop_rect.x * width / m_scaled_src.w; in Rescale()
125 crop_rect.w = crop_rect.w * width / m_scaled_src.w; in Rescale()
130 crop_rect.y = crop_rect.y * height / m_scaled_src.h; in Rescale()
131 crop_rect.h = crop_rect.h * height / m_scaled_src.h; in Rescale()
/dports/www/chromium-legacy/chromium-88.0.4324.182/cc/paint/
H A Dpaint_op_reader.h144 const base::Optional<PaintFilter::CropRect>& crop_rect);
147 const base::Optional<PaintFilter::CropRect>& crop_rect);
150 const base::Optional<PaintFilter::CropRect>& crop_rect);
153 const base::Optional<PaintFilter::CropRect>& crop_rect);
156 const base::Optional<PaintFilter::CropRect>& crop_rect);
159 const base::Optional<PaintFilter::CropRect>& crop_rect);
162 const base::Optional<PaintFilter::CropRect>& crop_rect);
165 const base::Optional<PaintFilter::CropRect>& crop_rect);
168 const base::Optional<PaintFilter::CropRect>& crop_rect);
171 const base::Optional<PaintFilter::CropRect>& crop_rect);
[all …]
H A Dpaint_filter.cc68 if (crop_rect) in PaintFilter()
69 crop_rect_.emplace(*crop_rect); in PaintFilter()
246 const CropRect* crop_rect) in ColorFilterPaintFilter() argument
474 crop_rect, in XfermodePaintFilter()
517 crop_rect, in ArithmeticPaintFilter()
570 const CropRect* crop_rect) in MatrixConvolutionPaintFilter() argument
627 const CropRect* crop_rect) in DisplacementMapEffectPaintFilter() argument
630 crop_rect, in DisplacementMapEffectPaintFilter()
989 crop_rect); in PaintFlagsPaintFilter()
1051 const CropRect* crop_rect) in LightingDistantPaintFilter() argument
[all …]
H A Dpaint_filter_unittest.cc47 SkImageFilter::CropRect crop_rect(SkRect::MakeWH(100.f, 100.f)); in CreateTestFilter() local
64 &crop_rect); in CreateTestFilter()
73 &crop_rect); in CreateTestFilter()
80 &crop_rect); in CreateTestFilter()
86 image_filter, &crop_rect); in CreateTestFilter()
92 0.1f, image_filter, record_filter, &crop_rect); in CreateTestFilter()
99 return sk_make_sp<MergePaintFilter>(filters, 2, &crop_rect); in CreateTestFilter()
104 &crop_rect); in CreateTestFilter()
107 &crop_rect); in CreateTestFilter()
115 0.3f, nullptr, &crop_rect); in CreateTestFilter()
[all …]
H A Dpaint_op_reader.cc766 crop_rect.emplace(rect, flags); in Read()
778 ReadBlurPaintFilter(filter, crop_rect); in Read()
805 ReadImagePaintFilter(filter, crop_rect); in Read()
808 ReadRecordPaintFilter(filter, crop_rect); in Read()
811 ReadMergePaintFilter(filter, crop_rect); in Read()
817 ReadOffsetPaintFilter(filter, crop_rect); in Read()
820 ReadTilePaintFilter(filter, crop_rect); in Read()
829 ReadMatrixPaintFilter(filter, crop_rect); in Read()
953 base::OptionalOrNullptr(crop_rect))); in ReadAlphaThresholdPaintFilter()
1074 base::OptionalOrNullptr(crop_rect))); in ReadDisplacementMapEffectPaintFilter()
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/cc/paint/
H A Dpaint_op_reader.h138 const base::Optional<PaintFilter::CropRect>& crop_rect);
141 const base::Optional<PaintFilter::CropRect>& crop_rect);
144 const base::Optional<PaintFilter::CropRect>& crop_rect);
147 const base::Optional<PaintFilter::CropRect>& crop_rect);
150 const base::Optional<PaintFilter::CropRect>& crop_rect);
153 const base::Optional<PaintFilter::CropRect>& crop_rect);
156 const base::Optional<PaintFilter::CropRect>& crop_rect);
159 const base::Optional<PaintFilter::CropRect>& crop_rect);
162 const base::Optional<PaintFilter::CropRect>& crop_rect);
165 const base::Optional<PaintFilter::CropRect>& crop_rect);
[all …]
H A Dpaint_filter.cc68 if (crop_rect) in PaintFilter()
69 crop_rect_.emplace(*crop_rect); in PaintFilter()
246 const CropRect* crop_rect) in ColorFilterPaintFilter() argument
474 crop_rect, in XfermodePaintFilter()
517 crop_rect, in ArithmeticPaintFilter()
570 const CropRect* crop_rect) in MatrixConvolutionPaintFilter() argument
627 const CropRect* crop_rect) in DisplacementMapEffectPaintFilter() argument
630 crop_rect, in DisplacementMapEffectPaintFilter()
988 crop_rect); in PaintFlagsPaintFilter()
1050 const CropRect* crop_rect) in LightingDistantPaintFilter() argument
[all …]
H A Dpaint_filter_unittest.cc46 SkImageFilter::CropRect crop_rect(SkRect::MakeWH(100.f, 100.f)); in CreateTestFilter() local
63 &crop_rect); in CreateTestFilter()
72 &crop_rect); in CreateTestFilter()
79 &crop_rect); in CreateTestFilter()
85 image_filter, &crop_rect); in CreateTestFilter()
91 0.1f, image_filter, record_filter, &crop_rect); in CreateTestFilter()
98 return sk_make_sp<MergePaintFilter>(filters, 2, &crop_rect); in CreateTestFilter()
103 &crop_rect); in CreateTestFilter()
106 &crop_rect); in CreateTestFilter()
114 0.3f, nullptr, &crop_rect); in CreateTestFilter()
[all …]
H A Dpaint_op_reader.cc732 crop_rect.emplace(rect, flags); in Read()
744 ReadBlurPaintFilter(filter, crop_rect); in Read()
771 ReadImagePaintFilter(filter, crop_rect); in Read()
774 ReadRecordPaintFilter(filter, crop_rect); in Read()
777 ReadMergePaintFilter(filter, crop_rect); in Read()
783 ReadOffsetPaintFilter(filter, crop_rect); in Read()
786 ReadTilePaintFilter(filter, crop_rect); in Read()
795 ReadMatrixPaintFilter(filter, crop_rect); in Read()
919 base::OptionalOrNullptr(crop_rect))); in ReadAlphaThresholdPaintFilter()
1040 base::OptionalOrNullptr(crop_rect))); in ReadDisplacementMapEffectPaintFilter()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c32 struct v4l2_rect crop_rect; member
163 struct v4l2_rect *crop_rect; in vimc_sca_get_fmt() local
171 crop_rect = &vsca->crop_rect; in vimc_sca_get_fmt()
217 crop_rect = &vsca->crop_rect; in vimc_sca_set_fmt()
269 crop_rect = &vsca->crop_rect; in vimc_sca_get_selection()
277 sel->r = *crop_rect; in vimc_sca_get_selection()
305 crop_rect = &vsca->crop_rect; in vimc_sca_set_selection()
316 *crop_rect = sel->r; in vimc_sca_set_selection()
400 const struct v4l2_rect crop_rect = vsca->crop_rect; in vimc_sca_scale_pix() local
417 lin -= crop_rect.top; in vimc_sca_scale_pix()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c32 struct v4l2_rect crop_rect; member
163 struct v4l2_rect *crop_rect; in vimc_sca_get_fmt() local
171 crop_rect = &vsca->crop_rect; in vimc_sca_get_fmt()
217 crop_rect = &vsca->crop_rect; in vimc_sca_set_fmt()
269 crop_rect = &vsca->crop_rect; in vimc_sca_get_selection()
277 sel->r = *crop_rect; in vimc_sca_get_selection()
305 crop_rect = &vsca->crop_rect; in vimc_sca_set_selection()
316 *crop_rect = sel->r; in vimc_sca_set_selection()
400 const struct v4l2_rect crop_rect = vsca->crop_rect; in vimc_sca_scale_pix() local
417 lin -= crop_rect.top; in vimc_sca_scale_pix()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/media/test-drivers/vimc/
H A Dvimc-scaler.c32 struct v4l2_rect crop_rect; member
163 struct v4l2_rect *crop_rect; in vimc_sca_get_fmt() local
171 crop_rect = &vsca->crop_rect; in vimc_sca_get_fmt()
217 crop_rect = &vsca->crop_rect; in vimc_sca_set_fmt()
269 crop_rect = &vsca->crop_rect; in vimc_sca_get_selection()
277 sel->r = *crop_rect; in vimc_sca_get_selection()
305 crop_rect = &vsca->crop_rect; in vimc_sca_set_selection()
316 *crop_rect = sel->r; in vimc_sca_set_selection()
400 const struct v4l2_rect crop_rect = vsca->crop_rect; in vimc_sca_scale_pix() local
417 lin -= crop_rect.top; in vimc_sca_scale_pix()
[all …]
/dports/multimedia/gstreamer1-vaapi/gstreamer-vaapi-1.16.2/tests/
H A Dtest-filter.c222 parse_crop_rect (const gchar * str, GstVaapiRectangle * crop_rect) in parse_crop_rect() argument
226 if (sscanf (str, "%ux%u", &crop_rect->width, &crop_rect->height) == 2) { in parse_crop_rect()
227 crop_rect->x = 0; in parse_crop_rect()
228 crop_rect->y = 0; in parse_crop_rect()
232 if (sscanf (str, "(%d,%d):%ux%u", &crop_rect->x, &crop_rect->y, in parse_crop_rect()
233 &crop_rect->width, &crop_rect->height) == 4 || in parse_crop_rect()
234 sscanf (str, "%d,%d:%ux%u", &crop_rect->x, &crop_rect->y, in parse_crop_rect()
235 &crop_rect->width, &crop_rect->height) == 4) in parse_crop_rect()
370 GstVaapiRectangle crop_rect; in main() local
372 if (!parse_crop_rect (g_crop_rect_str, &crop_rect)) in main()
[all …]
H A Dtest-decode.c64 const GstVaapiRectangle *crop_rect; in main() local
103 crop_rect = gst_vaapi_surface_proxy_get_crop_rect (proxy); in main()
110 if (crop_rect) { in main()
111 width = crop_rect->width; in main()
112 height = crop_rect->height; in main()
121 if (!gst_vaapi_pixmap_put_surface (pixmap, surface, crop_rect, in main()
127 } else if (!gst_vaapi_window_put_surface (window, surface, crop_rect, NULL, in main()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/gpu/command_buffer/service/
H A Dimage_reader_gl_owner.cc319 AImageCropRect crop_rect; in GetCropRect() local
327 DCHECK_GE(crop_rect.right, crop_rect.left); in GetCropRect()
328 DCHECK_GE(crop_rect.bottom, crop_rect.top); in GetCropRect()
329 return gfx::Rect(crop_rect.left, crop_rect.top, in GetCropRect()
330 crop_rect.right - crop_rect.left, in GetCropRect()
331 crop_rect.bottom - crop_rect.top); in GetCropRect()
384 gfx::Rect crop_rect = GetCropRect(); in GetTransformMatrix() local
385 if (crop_rect.IsEmpty()) in GetTransformMatrix()
431 int32_t crop_rect_width = crop_rect.width(); in GetTransformMatrix()
432 int32_t crop_rect_height = crop_rect.height(); in GetTransformMatrix()
[all …]
/dports/graphics/gegl/gegl-0.4.34/tests/python/
H A Dtest-gegl-node.py93 crop_rect = Gegl.Rectangle.new(10, 20, 5, 15)
95 crop_node.set_property("x", crop_rect.x)
96 crop_node.set_property("y", crop_rect.y)
97 crop_node.set_property("width", crop_rect.width)
98 crop_node.set_property("height", crop_rect.height)
102 self.assertTrue(crop_rect.equal(crop_node.get_bounding_box()))
108 self.assertTrue(crop_rect.equal(trans_node.get_bounding_box()))
112 self.assertFalse(crop_rect.equal(trans_node.get_bounding_box()))
114 trans_rect = crop_rect.dup()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/blink/renderer/core/imagebitmap/
H A Dimage_bitmap.cc106 if (!crop_rect) { in ParseOptions()
109 parsed_options.crop_rect = NormalizeRect(*crop_rect); in ParseOptions()
121 parsed_options.crop_rect.Width() * parsed_options.crop_rect.Height()); in ParseOptions()
126 parsed_options.crop_rect.Height() * parsed_options.crop_rect.Width()); in ParseOptions()
129 parsed_options.crop_rect.Width() && in ParseOptions()
131 parsed_options.crop_rect.Height()) { in ParseOptions()
153 total_bytes *= options.crop_rect.Height(); in DstBufferSizeHasOverflow()
462 parsed_options.crop_rect.Width(), parsed_options.crop_rect.Height(), in MakeBlankImage()
775 IntRect src_rect = crop_rect in ImageBitmap()
850 ParseOptions(options, crop_rect, input->Size()); in ImageBitmap()
[all …]
H A Dimage_bitmap_factories.cc131 base::Optional<IntRect> crop_rect, in CreateImageBitmapFromBlob() argument
136 factory, crop_rect, options, script_state); in CreateImageBitmapFromBlob()
172 base::Optional<IntRect> crop_rect = IntRect(sx, sy, sw, sh); in CreateImageBitmap() local
173 return CreateImageBitmap(script_state, bitmap_source_internal, crop_rect, in CreateImageBitmap()
180 base::Optional<IntRect> crop_rect, in CreateImageBitmap() argument
183 if (crop_rect && (crop_rect->Width() == 0 || crop_rect->Height() == 0)) { in CreateImageBitmap()
185 "The crop rect %s is 0.", crop_rect->Width() ? "height" : "width")); in CreateImageBitmap()
190 return CreateImageBitmapFromBlob(script_state, bitmap_source, crop_rect, in CreateImageBitmap()
204 return bitmap_source->CreateImageBitmap(script_state, crop_rect, options, in CreateImageBitmap()
236 base::Optional<IntRect> crop_rect, in ImageBitmapLoader() argument
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/blink/renderer/core/imagebitmap/
H A Dimage_bitmap.cc125 if (!crop_rect) { in ParseOptions()
128 parsed_options.crop_rect = NormalizeRect(*crop_rect); in ParseOptions()
140 parsed_options.crop_rect.Width() * parsed_options.crop_rect.Height()); in ParseOptions()
145 parsed_options.crop_rect.Height() * parsed_options.crop_rect.Width()); in ParseOptions()
148 parsed_options.crop_rect.Width() && in ParseOptions()
150 parsed_options.crop_rect.Height()) { in ParseOptions()
172 total_bytes *= options.crop_rect.Height(); in DstBufferSizeHasOverflow()
446 parsed_options.crop_rect.Width(), parsed_options.crop_rect.Height(), in MakeBlankImage()
773 IntRect src_rect = crop_rect in ImageBitmap()
848 ParseOptions(options, crop_rect, input->Size()); in ImageBitmap()
[all …]
H A Dimage_bitmap_factories.cc132 base::Optional<IntRect> crop_rect, in CreateImageBitmapFromBlob() argument
136 From(event_target), crop_rect, options, script_state); in CreateImageBitmapFromBlob()
175 base::Optional<IntRect> crop_rect = IntRect(sx, sy, sw, sh); in CreateImageBitmap() local
177 crop_rect, options, exception_state); in CreateImageBitmap()
184 base::Optional<IntRect> crop_rect, in CreateImageBitmap() argument
187 if (crop_rect && (crop_rect->Width() == 0 || crop_rect->Height() == 0)) { in CreateImageBitmap()
189 "The crop rect %s is 0.", crop_rect->Width() ? "height" : "width")); in CreateImageBitmap()
195 crop_rect, options); in CreateImageBitmap()
208 return bitmap_source->CreateImageBitmap(script_state, event_target, crop_rect, in CreateImageBitmap()
250 base::Optional<IntRect> crop_rect, in ImageBitmapLoader() argument
[all …]
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/ui/ozone/platform/drm/gpu/
H A Ddrm_overlay_plane.cc33 crop_rect(0, 0, 1, 1), in DrmOverlayPlane()
41 const gfx::RectF& crop_rect, in DrmOverlayPlane() argument
48 crop_rect(crop_rect), in DrmOverlayPlane()
66 return std::tie(z_order, display_bounds, crop_rect, plane_transform) < in operator <()
67 std::tie(plane.z_order, plane.display_bounds, plane.crop_rect, in operator <()
84 crop_rect, enable_blend, CloneGpuFence(gpu_fence)); in Clone()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/ozone/platform/drm/gpu/
H A Ddrm_overlay_plane.cc33 crop_rect(0, 0, 1, 1), in DrmOverlayPlane()
41 const gfx::RectF& crop_rect, in DrmOverlayPlane() argument
48 crop_rect(crop_rect), in DrmOverlayPlane()
66 return std::tie(z_order, display_bounds, crop_rect, plane_transform) < in operator <()
67 std::tie(plane.z_order, plane.display_bounds, plane.crop_rect, in operator <()
84 crop_rect, enable_blend, CloneGpuFence(gpu_fence)); in Clone()
/dports/www/chromium-legacy/chromium-88.0.4324.182/ui/ozone/platform/scenic/
H A Dscenic_surface.cc152 const gfx::RectF& crop_rect, in UpdateOverlayViewPosition() argument
161 overlay_view_info.crop_rect == crop_rect && in UpdateOverlayViewPosition()
168 overlay_view_info.crop_rect = crop_rect; in UpdateOverlayViewPosition()
229 const float left_bound = -0.5f + info.crop_rect.x(); in UpdateViewHolderScene()
230 const float top_bound = -0.5f + info.crop_rect.y(); in UpdateViewHolderScene()
232 {left_bound + info.crop_rect.width(), in UpdateViewHolderScene()
233 top_bound + info.crop_rect.height(), 0.f}}; in UpdateViewHolderScene()
240 (info.crop_rect.width() * main_shape_size_.width()); in UpdateViewHolderScene()
242 (info.crop_rect.height() * main_shape_size_.height()); in UpdateViewHolderScene()
/dports/www/chromium-legacy/chromium-88.0.4324.182/gpu/command_buffer/service/
H A Dimage_reader_gl_owner.cc362 AImageCropRect crop_rect; in GetCropRect() local
364 loader_.AImage_getCropRect(current_image_ref_->image(), &crop_rect); in GetCropRect()
370 DCHECK_GE(crop_rect.right, crop_rect.left); in GetCropRect()
371 DCHECK_GE(crop_rect.bottom, crop_rect.top); in GetCropRect()
372 return gfx::Rect(crop_rect.left, crop_rect.top, in GetCropRect()
373 crop_rect.right - crop_rect.left, in GetCropRect()
374 crop_rect.bottom - crop_rect.top); in GetCropRect()

12345678910>>...19