/third_party/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
H A 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; test_VIDIOC_G_CROP_NULL() local 155 struct v4l2_crop crop; do_set_crop() local 649 struct v4l2_crop crop; do_set_crop_invalid() local 722 struct v4l2_crop crop; do_set_crop_null() local [all...] |
/third_party/skia/gm/ |
H A D | backdrop_imagefilter_croprect.cpp | 14 typedef sk_sp<SkImageFilter> (*FilterFactory)(const SkIRect* crop); 23 // The image-filter crop relative to the CTM, which will map to in draw_backdrop_filter_gm() 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()
|
H A D | imagefilters.cpp | 234 SkRect crop = SkRect::Make(image->bounds()); in DEF_SIMPLE_GM() local 236 canvas->clipRect(crop); in DEF_SIMPLE_GM() 242 canvas->clipRect(crop); in DEF_SIMPLE_GM() 273 canvas->clipRect(crop); in DEF_SIMPLE_GM() 279 canvas->clipRect(crop); in DEF_SIMPLE_GM()
|
/third_party/cups-filters/filter/pdftopdf/ |
H A D | qpdf_pdftopdf_processor.cc | 175 * This crop function is written for print-scaling=fill option. 179 Rotation QPDF_PDFTOPDF_PageHandle::crop(const PageRect &cropRect,Rotation orientation,Rotation param_orientation,Position xpos,Position ypos,bool scale,bool autorotate) in crop() function in QPDF_PDFTOPDF_PageHandle 269 void QPDF_PDFTOPDF_PageHandle::add_subpage(const std::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 page) in add_subpage() 302 mtx.translate(crop->left,crop->bottom); in add_subpage() 303 // crop->dump(); in add_subpage() 308 if (crop) { in add_subpage() [all...] |
H A D | qpdf_pdftopdf_processor.h | 11 virtual void add_subpage(const std::shared_ptr<PDFTOPDF_PageHandle> &sub,float xpos,float ypos,float scale,const PageRect *crop=NULL); 15 virtual Rotation crop(const PageRect &cropRect,Rotation orientation,Rotation param_orientation,Position xpos,Position ypos,bool scale,bool autorotate);
|
H A D | pdftopdf_processor.h | 64 bool cropfit; // -o crop-to-fit 120 // TODO?! add standalone crop(...) method (not only for subpages) 121 virtual Rotation crop(const PageRect &cropRect,Rotation orientation,Rotation param_orientation,Position xpos,Position ypos,bool scale,bool autorotate) =0; 123 virtual void add_subpage(const std::shared_ptr<PDFTOPDF_PageHandle> &sub,float xpos,float ypos,float scale,const PageRect *crop=NULL) =0;
|
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/ |
H A 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()
|
H A D | BootAnimationTest.cpp | 43 GLint crop[4] = {0, height, width, -height}; in initTextureWithData() local 62 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop); in initTextureWithData()
|
/third_party/ffmpeg/libavfilter/ |
H A D | qsvvpp.c | 683 /* Update input's frame info according to crop */ in ff_qsvvpp_create() 685 QSVVPPCrop *crop = param->crop + i; in ff_qsvvpp_create() local 686 if (crop->in_idx > avctx->nb_inputs) { in ff_qsvvpp_create() 690 s->frame_infos[crop->in_idx].CropX = crop->x; in ff_qsvvpp_create() 691 s->frame_infos[crop->in_idx].CropY = crop->y; in ff_qsvvpp_create() 692 s->frame_infos[crop->in_idx].CropW = crop in ff_qsvvpp_create() [all...] |
H A D | vf_vpp_qsv.c | 75 int use_crop; /* 1 = use crop; 0=none */ 125 { "cw", "set the width crop area expression", OFFSET(cw), AV_OPT_TYPE_STRING, { .str = "iw" }, 0, 0, FLAGS }, 126 { "ch", "set the height crop area expression", OFFSET(ch), AV_OPT_TYPE_STRING, { .str = "ih" }, 0, 0, FLAGS }, 127 { "cx", "set the x crop area expression", OFFSET(cx), AV_OPT_TYPE_STRING, { .str = "(in_w-out_w)/2" }, 0, 0, FLAGS }, 128 { "cy", "set the y crop area expression", OFFSET(cy), AV_OPT_TYPE_STRING, { .str = "(in_h-out_h)/2" }, 0, 0, FLAGS }, 198 /* crop params */ in eval_expr() 324 QSVVPPCrop crop = { 0 }; in config_output() local 358 crop.in_idx = 0; in config_output() 359 crop.x = vpp->crop_x; in config_output() 360 crop in config_output() [all...] |
H A D | vf_deshake_opencl.c | 179 // The top left corner of the bounding box for the crop 181 // The bottom right corner of the bounding box for the crop 221 // Information regarding how to crop the smoothed luminance (or RGB) planes 223 // Information regarding how to crop the smoothed chroma planes 989 // Determines the crop necessary to eliminate black borders from a smoothed frame 990 // and updates target crop accordingly 992 CropInfo* crop, in update_needed_crop() 1006 if (crop->bottom_right.s[0] == 0) { in update_needed_crop() 1007 // The crop hasn't been set to the original size of the plane in update_needed_crop() 1008 crop in update_needed_crop() 991 update_needed_crop( CropInfo* crop, float *transform, float frame_width, float frame_height ) update_needed_crop() argument [all...] |
H A D | qsvvpp.h | 97 QSVVPPCrop *crop; member
|
/third_party/skia/third_party/externals/angle2/samples/gles1/ |
H A D | DrawTexture.cpp | 44 GLint crop[4] = {0, 0, 2, 2}; variable 45 glTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, crop);
|
/third_party/mesa3d/include/android_stub/system/ |
H A D | window.h | 382 /* the window is clipped to the size of the buffer's crop rectangle; pixels 383 * outside the crop rectangle are treated as if they are completely 666 * native_window_set_crop(..., crop) 668 * Depending on the scaling mode, a buffer's crop region is scaled and/or 669 * cropped to match the surface's size. This function sets the crop in 672 * The specified crop region applies to all buffers queued after it is called. 674 * If 'crop' is NULL, subsequently queued buffers won't be cropped. 676 * An error is returned if for instance the crop region is invalid, out of the 681 android_native_rect_t const * crop) in native_window_set_crop() 683 return window->perform(window, NATIVE_WINDOW_SET_CROP, crop); in native_window_set_crop() 679 native_window_set_crop( struct ANativeWindow* window, android_native_rect_t const * crop) native_window_set_crop() argument 700 native_window_set_post_transform_crop( struct ANativeWindow* window, android_native_rect_t const * crop) native_window_set_post_transform_crop() argument [all...] |
/third_party/skia/include/effects/ |
H A D | SkImageFilters.h | 38 // to those types as a crop rect for the image filter factories. It's not intended to be used 45 CropRect(const SkIRect& crop) : fCropRect(SkRect::Make(crop)) {} in CropRect() 46 CropRect(const SkRect& crop) : fCropRect(crop) {} in CropRect() 94 * @cropRect Optional rectangle to crop input and output. 105 * @cropRect Optional rectangle to crop input and output. 305 * @param cropRect Optional rectangle to crop the input and output.
|
/third_party/skia/third_party/externals/piex/src/ |
H A D | tiff_parser.cc | 612 std::vector<std::uint32_t> crop(2); in GetFullCropDimension() 613 if (tiff_directory.Get(kExifTagDefaultCropSize, &crop)) { in GetFullCropDimension() 614 if (crop.size() == 2 && crop[0] > 0 && crop[1] > 0) { in GetFullCropDimension() 615 *width = crop[0]; in GetFullCropDimension() 616 *height = crop[1]; in GetFullCropDimension()
|
/third_party/backends/backend/ |
H A D | plustek-pp_wrapper.c | 243 static int ppDev_getCropInfo( Plustek_Device *dev, pCropInfo crop ) in ppDev_getCropInfo() 246 return PtDrvIoctl( _PTDRV_GET_CROPINFO, crop ); in ppDev_getCropInfo() 248 return ioctl( dev->fd, _PTDRV_GET_CROPINFO, crop ); in ppDev_getCropInfo()
|
H A D | plustek.c | 2394 CropInfo crop; in local_sane_start() local 2399 memset(&crop, 0, sizeof(crop)); in local_sane_start() 2405 crop.ImgDef.dwFlag = SCANFLAG_Calibration; in local_sane_start() 2428 * says for crop info. in local_sane_start() 2466 crop.ImgDef.xyDpi.x = ndpi; in local_sane_start() 2467 crop.ImgDef.xyDpi.y = ndpi; in local_sane_start() 2468 crop.ImgDef.crArea.x = left; /* offset from left edge to area you want to scan */ in local_sane_start() 2469 crop.ImgDef.crArea.y = top; /* offset from top edge to area you want to scan */ in local_sane_start() 2470 crop in local_sane_start() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | cuviddec.c | 75 } crop; member 145 cuinfo.display_area.left = format->display_area.left + ctx->crop.left; in cuvid_handle_video_sequence() 146 cuinfo.display_area.top = format->display_area.top + ctx->crop.top; in cuvid_handle_video_sequence() 147 cuinfo.display_area.right = format->display_area.right - ctx->crop.right; in cuvid_handle_video_sequence() 148 cuinfo.display_area.bottom = format->display_area.bottom - ctx->crop.bottom; in cuvid_handle_video_sequence() 828 &ctx->crop.top, &ctx->crop.bottom, in cuvid_decode_init() 829 &ctx->crop.left, &ctx->crop.right) != 4) { in cuvid_decode_init() 1094 { "crop", "Cro [all...] |
H A D | mmaldec.c | 321 if ((ret = ff_set_dimensions(avctx, format_out->es->video.crop.x + format_out->es->video.crop.width, in ffmal_update_format() 322 format_out->es->video.crop.y + format_out->es->video.crop.height)) < 0) in ffmal_update_format() 399 format_in->es->video.crop.width = avctx->width; in ffmmal_init_decoder() 400 format_in->es->video.crop.height = avctx->height; in ffmmal_init_decoder()
|
H A D | h264_ps.h | 65 int crop; ///< frame_cropping_flag member
|
/third_party/skia/third_party/externals/libjpeg-turbo/ |
H A D | jpegtran.c | 76 fprintf(stderr, " -crop WxH+X+Y Crop to a rectangular region\n"); in usage() 163 transformoption.crop = FALSE; in parse_switches() 204 } else if (keymatch(arg, "crop", 2)) { in parse_switches() 209 if (transformoption.crop /* reject multiple crop/drop/wipe requests */ || in parse_switches() 211 fprintf(stderr, "%s: bogus -crop argument '%s'\n", in parse_switches() 223 if (transformoption.crop /* reject multiple crop/drop/wipe requests */ || in parse_switches() 403 if (transformoption.crop /* reject multiple crop/dro in parse_switches() [all...] |
H A D | djpeg.c | 101 boolean skip, crop; variable 182 fprintf(stderr, " -crop WxH+X+Y Decompress only a rectangular subregion of the image\n"); in usage() 214 crop = FALSE; in parse_switches() 421 } else if (keymatch(arg, "crop", 2)) { in parse_switches() 429 crop = TRUE; in parse_switches() 760 } else if (crop) { in djpeg() 763 /* Check for valid crop dimensions. We cannot check these values until in djpeg() 768 fprintf(stderr, "%s: crop dimensions exceed image dimensions %d x %d\n", in djpeg()
|
/third_party/skia/bench/ |
H A D | BlurImageFilterBench.cpp | 27 // When 'cropped' is set we apply a cropRect to the blurImageFilter. The crop rect is an inset of 32 // offsetImageFilter). The crop rect in this case is an inset of the source's natural dimensions. 33 // An additional crop rect is applied to the blurImageFilter that is just the natural dimensions 103 const SkIRect* crop = variable 106 paint.setImageFilter(SkImageFilters::Blur(fSigmaX, fSigmaY, std::move(input), crop));
|
/third_party/ffmpeg/tests/fate/ |
H A D | filter-video.mak | 391 FATE_FILTER_VSYNTH_VIDEO_FILTER-$(CONFIG_CROP_FILTER) += fate-filter-crop 392 fate-filter-crop: CMD = video_filter "crop=iw-100:ih-100:100:100" 395 fate-filter-crop_scale: CMD = video_filter "crop=iw-100:ih-100:100:100,scale=w=400:h=-1" 398 fate-filter-crop_scale_vflip: CMD = video_filter "null,null,crop=iw-200:ih-200:200:200,crop=iw-20:ih-20:20:20,scale=w=200:h=200,scale=w=250:h=250,vflip,vflip,null,scale=w=200:h=200,crop=iw-100:ih-100:100:100,vflip,scale=w=200:h=200,null,vflip,crop=iw-100:ih-100:100:100,null" 401 fate-filter-crop_vflip: CMD = video_filter "crop=iw-100:ih-100:100:100,vflip" 438 fate-filter-vflip_crop: CMD = video_filter "vflip,crop [all...] |