/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_CROP.c | 31 struct v4l2_crop crop; in do_get_crop() local 33 memset(&crop, 0xff, sizeof(crop)); in do_get_crop() 34 crop.type = type; in do_get_crop() 35 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in do_get_crop() 61 struct v4l2_crop crop; in do_get_crop_invalid() local 63 memset(&crop, 0xff, sizeof(crop)); in do_get_crop_invalid() 64 crop.type = type; in do_get_crop_invalid() 65 ret1 = ioctl(get_video_fd(), VIDIOC_G_CROP, &crop); in do_get_crop_invalid() 95 struct v4l2_crop crop; in test_VIDIOC_G_CROP_NULL() local 97 memset(&crop, 0, sizeof(crop)); in test_VIDIOC_G_CROP_NULL() [all …]
|
/third_party/gstreamer/gstplugins_good/gst/videocrop/ |
D | gstvideocrop.c | 471 GstVideoCrop *crop = GST_VIDEO_CROP (trans); in gst_video_crop_decide_allocation() local 478 if ((crop->crop_left | crop->crop_right | crop->crop_top | crop-> in gst_video_crop_decide_allocation() 480 GST_INFO_OBJECT (crop, "we are using passthrough"); in gst_video_crop_decide_allocation() 481 gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (crop), TRUE); in gst_video_crop_decide_allocation() 482 gst_base_transform_set_in_place (GST_BASE_TRANSFORM (crop), FALSE); in gst_video_crop_decide_allocation() 484 GST_INFO_OBJECT (crop, "we are doing in-place transform using crop meta"); in gst_video_crop_decide_allocation() 485 gst_base_transform_set_passthrough (GST_BASE_TRANSFORM (crop), FALSE); in gst_video_crop_decide_allocation() 486 gst_base_transform_set_in_place (GST_BASE_TRANSFORM (crop), TRUE); in gst_video_crop_decide_allocation() 487 } else if (crop->raw_caps) { in gst_video_crop_decide_allocation() 488 GST_INFO_OBJECT (crop, "we are not using passthrough"); in gst_video_crop_decide_allocation() [all …]
|
/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2sink.c | 299 struct v4l2_crop crop; in gst_v4l2sink_sync_crop_fields() local 301 memset (&crop, 0x00, sizeof (struct v4l2_crop)); in gst_v4l2sink_sync_crop_fields() 302 crop.type = V4L2_BUF_TYPE_VIDEO_OUTPUT; in gst_v4l2sink_sync_crop_fields() 304 if (obj->ioctl (obj->video_fd, VIDIOC_G_CROP, &crop) < 0) { in gst_v4l2sink_sync_crop_fields() 312 v4l2sink->crop.top, v4l2sink->crop.left, in gst_v4l2sink_sync_crop_fields() 313 v4l2sink->crop.width, v4l2sink->crop.height); in gst_v4l2sink_sync_crop_fields() 316 crop.c.top = v4l2sink->crop.top; in gst_v4l2sink_sync_crop_fields() 318 crop.c.left = v4l2sink->crop.left; in gst_v4l2sink_sync_crop_fields() 320 crop.c.width = v4l2sink->crop.width; in gst_v4l2sink_sync_crop_fields() 322 crop.c.height = v4l2sink->crop.height; in gst_v4l2sink_sync_crop_fields() [all …]
|
/third_party/gstreamer/gstplugins_good/tests/check/elements/ |
D | videocrop.c | 165 GstElement *crop; member 200 ctx->crop = gst_element_factory_make ("videocrop", "crop"); in videocrop_test_cropping_init_context_full() 201 fail_unless (ctx->crop != NULL, "Failed to create videocrop element"); in videocrop_test_cropping_init_context_full() 209 ctx->crop, ctx->filter2, ctx->sink, NULL); in videocrop_test_cropping_init_context_full() 210 gst_element_link_many (ctx->src, ctx->filter, ctx->crop, ctx->filter2, in videocrop_test_cropping_init_context_full() 264 g_object_set (ctx->crop, "left", left, "right", right, "top", top, in videocrop_test_cropping() 369 caps_list = video_crop_get_test_caps (ctx.crop); in GST_START_TEST() 423 caps_list = video_crop_get_test_caps (ctx.crop); in GST_START_TEST() 533 g_object_set (ctx.crop, "left", 0, "right", 0, "top", 0, "bottom", 0, NULL); in GST_START_TEST() 574 GstBaseTransform *crop; in GST_START_TEST() local [all …]
|
/third_party/gstreamer/gstplugins_good/tests/icles/ |
D | videocrop2-test.c | 56 GstElement *pipe, *crop; in main() local 80 crop = gst_bin_get_by_name (GST_BIN (pipe), "crop"); in main() 81 g_assert (crop); in main() 91 g_object_set (crop, "top", top, "bottom", bottom, "left", left, "right", in main() 132 gst_object_unref (crop); in main()
|
D | videocrop-test.c | 194 GstElement *pipeline, *src, *filter1, *crop, *scale, *filter2, *csp, *sink; in main() local 218 crop = gst_element_factory_make ("videocrop", "videocrop"); in main() 219 g_assert (crop != NULL); in main() 268 gst_bin_add_many (GST_BIN (pipeline), src, filter1, crop, scale, filter2, in main() 274 if (!gst_element_link (filter1, crop)) in main() 277 if (!gst_element_link (crop, scale)) in main() 289 caps_list = video_crop_get_test_caps (crop); in main() 336 test_with_caps (src, crop, caps); in main()
|
/third_party/gstreamer/gstplugins_base/sys/xvimage/ |
D | xvimageallocator.c | 59 GstVideoRectangle crop; member 114 gst_xvimage_memory_get_crop (GstXvImageMemory * xvmem, GstVideoRectangle * crop) in gst_xvimage_memory_get_crop() argument 118 if (crop) in gst_xvimage_memory_get_crop() 119 *crop = xvmem->crop; in gst_xvimage_memory_get_crop() 235 sub->crop = mem->crop; in gst_xvimage_memory_share() 262 mem->xvimage->height, &mem->crop, NULL); in gst_xvimage_memory_copy() 347 const GstVideoRectangle * crop, GError ** error) in gst_xvimage_allocator_alloc() argument 368 mem->crop = *crop; in gst_xvimage_allocator_alloc() 371 mem, padded_width, padded_height, crop->x, crop->y, crop->w, crop->h); in gst_xvimage_allocator_alloc()
|
D | xvimagepool.c | 126 xvpool->crop.x = xvpool->align.padding_left; in xvimage_buffer_pool_set_config() 127 xvpool->crop.y = xvpool->align.padding_top; in xvimage_buffer_pool_set_config() 128 xvpool->crop.w = xvpool->info.width; in xvimage_buffer_pool_set_config() 129 xvpool->crop.h = xvpool->info.height; in xvimage_buffer_pool_set_config() 137 xvpool->padded_height, &xvpool->crop, NULL); in xvimage_buffer_pool_set_config() 214 info, xvpool->padded_width, xvpool->padded_height, &xvpool->crop, &err); in xvimage_buffer_pool_alloc()
|
D | xvimageallocator.h | 50 const GstVideoRectangle *crop, 60 GstVideoRectangle *crop);
|
/third_party/skia/gm/ |
D | backdrop_imagefilter_croprect.cpp | 14 typedef sk_sp<SkImageFilter> (*FilterFactory)(const SkIRect* crop); 71 static sk_sp<SkImageFilter> make_invert_filter(const SkIRect* crop) { in make_invert_filter() argument 76 return SkImageFilters::ColorFilter(SkColorFilters::Matrix(matrix), nullptr, crop); in make_invert_filter() 79 static sk_sp<SkImageFilter> make_blur_filter(const SkIRect* crop) { in make_blur_filter() argument 81 return SkImageFilters::Blur(16.f, 4.f, nullptr, crop); in make_blur_filter()
|
D | imagefilters.cpp | 234 SkRect crop = SkRect::Make(image->bounds()); variable 236 canvas->clipRect(crop); 242 canvas->clipRect(crop); 273 canvas->clipRect(crop); 279 canvas->clipRect(crop);
|
/third_party/cups-filters/filter/pdftopdf/ |
D | qpdf_pdftopdf_processor.cc | 179 Rotation QPDF_PDFTOPDF_PageHandle::crop(const PageRect &cropRect,Rotation orientation,Rotation para… in crop() function in QPDF_PDFTOPDF_PageHandle 269 …shared_ptr<PDFTOPDF_PageHandle> &sub,float xpos,float ypos,float scale,const PageRect *crop) // {{{ in add_subpage() argument 275 if (crop) { in add_subpage() 276 PageRect pg=qsub->getRect(),tmp=*crop; in add_subpage() 301 …if (crop) { // TODO? other technique: set trim-box before makeXObject (but this modifies original … in add_subpage() 302 mtx.translate(crop->left,crop->bottom); in add_subpage() 308 if (crop) { in add_subpage() 309 …tent.append("0 0 "+QUtil::double_to_string(crop->right-crop->left)+" "+QUtil::double_to_string(cro… in add_subpage()
|
/third_party/gstreamer/gstplugins_good/sys/rpicamsrc/ |
D | RaspiStillYUV.c | 533 format->es->video.crop.x = 0; in create_camera_component() 534 format->es->video.crop.y = 0; in create_camera_component() 535 format->es->video.crop.width = state->preview_parameters.previewWindow.width; in create_camera_component() 536 format->es->video.crop.height = state->preview_parameters.previewWindow.height; in create_camera_component() 577 format->es->video.crop.x = 0; in create_camera_component() 578 format->es->video.crop.y = 0; in create_camera_component() 579 format->es->video.crop.width = state->width; in create_camera_component() 580 format->es->video.crop.height = state->height; in create_camera_component()
|
D | RaspiStill.c | 723 format->es->video.crop.x = 0; in create_camera_component() 724 format->es->video.crop.y = 0; in create_camera_component() 725 format->es->video.crop.width = state->width; in create_camera_component() 726 format->es->video.crop.height = state->height; in create_camera_component() 735 format->es->video.crop.x = 0; in create_camera_component() 736 format->es->video.crop.y = 0; in create_camera_component() 737 format->es->video.crop.width = state->preview_parameters.previewWindow.width; in create_camera_component() 738 format->es->video.crop.height = state->preview_parameters.previewWindow.height; in create_camera_component() 771 format->es->video.crop.x = 0; in create_camera_component() 772 format->es->video.crop.y = 0; in create_camera_component() [all …]
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
D | croptest.in | 74 echo $PROGARG $NSARG $COLORSARG -crop $CROPSPEC 79 … convert -crop $CROPSPEC $OUTDIR/${basename}_${samp}_full.ppm $OUTDIR/${basename}_${samp}_ref.ppm 80 …runme $EXEDIR/djpeg $NSARG $COLORSARG -crop $CROPSPEC -rgb -outfile $OUTDIR/${basename}_${samp}.pp…
|
/third_party/ffmpeg/libavfilter/ |
D | vf_vpp_qsv.c | 293 QSVVPPCrop crop = { 0 }; in config_output() local 320 crop.in_idx = 0; in config_output() 321 crop.x = vpp->crop_x; in config_output() 322 crop.y = vpp->crop_y; in config_output() 323 crop.w = vpp->crop_w; in config_output() 324 crop.h = vpp->crop_h; in config_output() 327 param.crop = &crop; in config_output()
|
D | qsvvpp.c | 704 QSVVPPCrop *crop = param->crop + i; in ff_qsvvpp_create() local 705 if (crop->in_idx > avctx->nb_inputs) { in ff_qsvvpp_create() 709 s->frame_infos[crop->in_idx].CropX = crop->x; in ff_qsvvpp_create() 710 s->frame_infos[crop->in_idx].CropY = crop->y; in ff_qsvvpp_create() 711 s->frame_infos[crop->in_idx].CropW = crop->w; in ff_qsvvpp_create() 712 s->frame_infos[crop->in_idx].CropH = crop->h; in ff_qsvvpp_create()
|
D | vf_deshake_opencl.c | 1006 CropInfo* crop, in update_needed_crop() argument 1020 if (crop->bottom_right.s[0] == 0) { in update_needed_crop() 1022 crop->bottom_right.s[0] = frame_width; in update_needed_crop() 1023 crop->bottom_right.s[1] = frame_height; in update_needed_crop() 1026 crop->top_left.s[0] = FFMAX3( in update_needed_crop() 1027 crop->top_left.s[0], in update_needed_crop() 1032 crop->top_left.s[1] = FFMAX3( in update_needed_crop() 1033 crop->top_left.s[1], in update_needed_crop() 1038 crop->bottom_right.s[0] = FFMIN3( in update_needed_crop() 1039 crop->bottom_right.s[0], in update_needed_crop() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/ |
D | TextureParameterTest.cpp | 120 constexpr std::array<GLint, kParameterLength> crop = { in TEST_P() local 123 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop.data()); in TEST_P() 126 ASSERT_EQ(crop, cropStored); in TEST_P()
|
/third_party/mesa3d/include/android_stub/system/ |
D | window.h | 681 android_native_rect_t const * crop) in native_window_set_crop() argument 683 return window->perform(window, NATIVE_WINDOW_SET_CROP, crop); in native_window_set_crop() 702 android_native_rect_t const * crop) in native_window_set_post_transform_crop() argument 704 return window->perform(window, NATIVE_WINDOW_SET_POST_TRANSFORM_CROP, crop); in native_window_set_post_transform_crop()
|
/third_party/openGLES/extensions/OES/ |
D | OES_draw_texture.txt | 58 called the texture crop rectangle, which defines a 64 texture crop rectangle for one or more textures via 70 the texture crop rectangle(s) linearly to fragments in 162 generates its own s,t based on its texture's crop 205 (14) Would it be better to remove the texture crop 212 (15) Should texture crop rect parameters be stored internally 214 the crop rect to include fractional texels? This is 219 RESOLVED. Integer only. Texture crop rect is 223 (16) Should we have a single global crop rect, or one per 236 DrawTex*() be defined as integer only like the crop [all …]
|
/third_party/skia/third_party/externals/opengl-registry/extensions/OES/ |
D | OES_draw_texture.txt | 48 called the texture crop rectangle, which defines a 54 texture crop rectangle for one or more textures via 60 the texture crop rectangle(s) linearly to fragments in 152 generates its own s,t based on its texture's crop 195 (14) Would it be better to remove the texture crop 202 (15) Should texture crop rect parameters be stored internally 204 the crop rect to include fractional texels? This is 209 RESOLVED. Integer only. Texture crop rect is 213 (16) Should we have a single global crop rect, or one per 226 DrawTex*() be defined as integer only like the crop [all …]
|
/third_party/skia/third_party/externals/angle2/samples/gles1/ |
D | DrawTexture.cpp | 44 GLint crop[4] = {0, 0, 2, 2}; in initialize() local 45 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initialize()
|
/third_party/skia/include/effects/ |
D | SkImageFilters.h | 45 CropRect(const SkIRect& crop) : fCropRect(SkRect::Make(crop)) {} in CropRect() 46 CropRect(const SkRect& crop) : fCropRect(crop) {} in CropRect()
|
/third_party/gstreamer/gstplugins_bad/ext/opencv/ |
D | gstcameraundistort.cpp | 196 undist->crop = DEFAULT_CROP; in gst_camera_undistort_init() 238 undist->crop = g_value_get_boolean (value); in gst_camera_undistort_set_property() 270 g_value_set_boolean (value, undist->crop); in gst_camera_undistort_get_property() 330 if (undist->crop) { in camera_undistort_run()
|