Home
last modified time | relevance | path

Searched refs:crop_height (Results 1 – 25 of 39) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dcrop_and_resize_op_gpu.cu.cc44 int image_width, int crop_height, int crop_width, int depth, int method_id, in CropAndResizeKernel() argument
53 const int y = idx % crop_height; in CropAndResizeKernel()
54 const int b = idx / crop_height; in CropAndResizeKernel()
67 (crop_height > 1) ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in CropAndResizeKernel()
72 const float in_y = (crop_height > 1) in CropAndResizeKernel()
136 int image_width, int crop_height, int crop_width, int depth, in CropAndResizeBackpropImageKernel() argument
145 const int y = idx % crop_height; in CropAndResizeBackpropImageKernel()
146 const int b = idx / crop_height; in CropAndResizeBackpropImageKernel()
159 (crop_height > 1) ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in CropAndResizeBackpropImageKernel()
164 const float in_y = (crop_height > 1) in CropAndResizeBackpropImageKernel()
[all …]
Dcrop_and_resize_op.cc160 const int crop_height = internal::SubtleMustCopy(crop_size_vec(0)); in ComputeAsync() local
163 context, crop_height > 0 && crop_width > 0, in ComputeAsync()
171 0, TensorShape({num_boxes, crop_height, crop_width, depth}), in ComputeAsync()
214 const int crop_height = crops.dimension(1); in operator ()() local
232 (crop_height > 1) in operator ()()
233 ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in operator ()()
239 for (int y = 0; y < crop_height; ++y) { in operator ()()
240 const float in_y = (crop_height > 1) in operator ()()
320 const double cost_per_box = crop_height * crop_width * cost_per_pixel; in operator ()()
359 const int crop_height = grads.dim_size(1); in ComputeAsync() local
[all …]
Dcrop_and_resize_op_benchmark_test.cc25 int crop_height, int crop_width) { in BM_CropAndResize() argument
42 crop_size_flat(0) = crop_height; in BM_CropAndResize()
/external/webrtc/webrtc/tools/barcode_tools/
Dyuv_cropper.py47 def crop_frames(yuv_file_name, output_file_name, width, height, crop_height): argument
63 component_sizes = [(width, height, crop_height),
64 (width/2, height/2, crop_height/2),
65 (width/2, height/2, crop_height/2)]
120 options.height, options.crop_height)
/external/libyuv/files/source/
Dconvert_to_argb.cc41 int crop_height, in ConvertToARGB() argument
49 int inv_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
62 int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
65 crop_width <= 0 || src_height == 0 || crop_height == 0) { in ConvertToARGB()
Dconvert_to_i420.cc41 int crop_height, in ConvertToI420() argument
50 const int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToI420()
67 src_height == 0 || crop_height == 0) { in ConvertToI420()
/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_to_argb.cc51 int crop_height, in ConvertToARGB() argument
59 int inv_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
72 int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
75 src_height == 0 || crop_height == 0) { in ConvertToARGB()
Dconvert_to_i420.cc41 int crop_height, in ConvertToI420() argument
50 const int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToI420()
67 crop_width <= 0 || src_height == 0 || crop_height == 0) { in ConvertToI420()
/external/libaom/libaom/third_party/libyuv/source/
Dconvert_to_argb.cc36 int crop_width, int crop_height, in ConvertToARGB() argument
44 int inv_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
57 int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
61 src_height == 0 || crop_height == 0) { in ConvertToARGB()
Dconvert_to_i420.cc35 int crop_width, int crop_height, in ConvertToI420() argument
43 int inv_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToI420()
55 int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToI420()
59 src_height == 0 || crop_height == 0) { in ConvertToI420()
/external/libvpx/libvpx/test/
Dvpx_scale_test.h115 static void ExtendPlane(uint8_t *buf, int crop_width, int crop_height, in ExtendPlane() argument
124 const int bottom_extend = padding + (height - crop_height); in ExtendPlane()
127 for (int y = 0; y < crop_height; ++y) { in ExtendPlane()
146 uint8_t *bottom = left + (crop_height * stride); in ExtendPlane()
148 memcpy(bottom, left + (crop_height - 1) * stride, extend_width); in ExtendPlane()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_CropAndResize.pbtxt35 A 1-D tensor of 2 elements, `size = [crop_height, crop_width]`. All
37 content is not preserved. Both `crop_height` and `crop_width` need to be
44 A 4-D tensor of shape `[num_boxes, crop_height, crop_width, depth]`.
72 `size = [crop_height, crop_width]`. The result is a 4-D tensor
73 `[num_boxes, crop_height, crop_width, depth]`. The resizing is corner aligned.
Dapi_def_RandomCrop.pbtxt12 1-D of length 2 containing: `crop_height`, `crop_width`..
18 3-D of shape `[crop_height, crop_width, channels].`
Dapi_def_CropAndResizeGradBoxes.pbtxt6 A 4-D tensor of shape `[num_boxes, crop_height, crop_width, depth]`.
Dapi_def_CropAndResizeGradImage.pbtxt6 A 4-D tensor of shape `[num_boxes, crop_height, crop_width, depth]`.
Dapi_def_DecodeAndCropJpeg.pbtxt12 1-D. The crop window: [crop_y, crop_x, crop_height, crop_width].
/external/libjpeg-turbo/
Ddjpeg.c101 JDIMENSION crop_x, crop_y, crop_width, crop_height; variable
410 if (sscanf(argv[argn], "%u%c%u+%u+%u", &crop_width, &c, &crop_height, in parse_switches()
412 (c != 'X' && c != 'x') || crop_width < 1 || crop_height < 1) in parse_switches()
724 crop_y + crop_height > cinfo.output_height) { in main()
740 cinfo.output_height = crop_height; in main()
746 while (cinfo.output_scanline < crop_y + crop_height) { in main()
751 jpeg_skip_scanlines(&cinfo, cinfo.output_height - crop_y - crop_height); in main()
Dtransupp.c820 if (!jt_read_integer(&spec, &info->crop_height)) in jtransform_parse_crop_spec()
994 info->crop_height = info->output_height - info->crop_yoffset; in jtransform_request_workspace()
997 info->crop_height <= 0 || info->crop_height > info->output_height || in jtransform_request_workspace()
999 info->crop_yoffset > info->output_height - info->crop_height) in jtransform_request_workspace()
1007 yoffset = info->output_height - info->crop_height - info->crop_yoffset; in jtransform_request_workspace()
1017 info->output_height = info->crop_height; in jtransform_request_workspace()
1020 info->crop_height + (yoffset % info->iMCU_sample_height); in jtransform_request_workspace()
Dtransupp.h137 JDIMENSION crop_height; /* Height of selected region */ member
/external/libyuv/files/docs/
Drotation.md13 int crop_width, int crop_height,
18 …* Crops the original image, which is src_width x src_height, to crop_width x crop_height. At this…
28 Caller passes crop_width of 640, crop_height of 360.<br>
36 int crop_width, int crop_height,
/external/tensorflow/tensorflow/python/ops/
Dimage_grad_test.py333 crop_height = 4
339 crop_size = [crop_height, crop_width]
340 crops_shape = [num_boxes, crop_height, crop_width, depth]
411 for crop_height in range(1, 3):
418 crop_size = [crop_height, crop_width]
419 crops_shape = [num_boxes, crop_height, crop_width, depth]
/external/tensorflow/tensorflow/core/lib/jpeg/
Djpeg_mem_unittest.cc132 int crop_height) { in TestCropAndDecodeJpeg() argument
140 flags.crop_height = crop_height; in TestCropAndDecodeJpeg()
157 ASSERT_EQ(h, crop_height); in TestCropAndDecodeJpeg()
162 for (int i = 0; i < crop_height; i++) { in TestCropAndDecodeJpeg()
253 flags.crop_height = h; in CheckInvalidCropWindowFailed()
Djpeg_mem.cc78 return flags.crop_width > 0 && flags.crop_height > 0 && flags.crop_x >= 0 && in IsCropWindowValid()
80 flags.crop_y + flags.crop_height <= input_image_height && in IsCropWindowValid()
195 target_output_height = flags.crop_height; in UncompressLow()
359 cinfo.output_height - flags.crop_y - flags.crop_height); in UncompressLow()
442 target_output_height = flags.crop_height; in UncompressLow()
Djpeg_mem.h74 int crop_height = 0; member
/external/libaom/libaom/third_party/libyuv/include/libyuv/
Dconvert_argb.h223 int crop_width, int crop_height,

12