Home
last modified time | relevance | path

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

123

/external/tensorflow/tensorflow/core/kernels/image/
Dcrop_and_resize_op_gpu.cu.cc44 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()
137 int crop_height, int crop_width, int depth, T* __restrict__ grads_image_ptr, in CropAndResizeBackpropImageKernel() argument
146 const int y = idx % crop_height; in CropAndResizeBackpropImageKernel()
147 const int b = idx / crop_height; in CropAndResizeBackpropImageKernel()
160 (crop_height > 1) ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in CropAndResizeBackpropImageKernel()
165 const float in_y = (crop_height > 1) in CropAndResizeBackpropImageKernel()
[all …]
Dcrop_and_resize_op.cc166 const int crop_height = internal::SubtleMustCopy(crop_size_vec(0)); in ComputeAsync() local
169 context, crop_height > 0 && crop_width > 0, in ComputeAsync()
177 0, TensorShape({num_boxes, crop_height, crop_width, depth}), in ComputeAsync()
221 const int crop_height = crops.dimension(1); in operator ()() local
250 (crop_height > 1) in operator ()()
251 ? (y2 - y1) * (image_height - 1) / (crop_height - 1) in operator ()()
257 for (int y = 0; y < crop_height; ++y) { in operator ()()
258 const float in_y = (crop_height > 1) in operator ()()
338 const double cost_per_box = crop_height * crop_width * cost_per_pixel; in operator ()()
377 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 CropAndResize() argument
42 crop_size_flat(0) = crop_height; in CropAndResize()
/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/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/tensorflow/tensorflow/lite/tools/evaluation/stages/
Dimage_preprocessing_stage.cc109 int crop_height, crop_width; in Crop() local
113 crop_height = in Crop()
118 crop_height = crop_params.target_size().height(); in Crop()
122 crop_height = std::min(crop_height, crop_width); in Crop()
123 crop_width = crop_height; in Crop()
126 int start_h = static_cast<int>(round((input_height - crop_height) / 2.0)); in Crop()
128 cropped_image->reserve(crop_height * crop_width * kNumChannels); in Crop()
129 for (int in_h = start_h; in_h < start_h + crop_height; ++in_h) { in Crop()
136 image_data->height = crop_height; in Crop()
/external/webrtc/api/video/
Dvideo_frame.cc69 int crop_height, in ScaleWithFrame() argument
76 RTC_DCHECK_GT(crop_height, 0); in ScaleWithFrame()
79 RTC_DCHECK_LE(crop_height + crop_y, frame_height); in ScaleWithFrame()
105 y = y * scaled_height / crop_height; in ScaleWithFrame()
108 h = (h * scaled_height + crop_height - 1) / crop_height; in ScaleWithFrame()
128 if (scaled_width != crop_width || scaled_height != crop_height) { in ScaleWithFrame()
Di420_buffer.cc188 int crop_height) { in CropAndScaleFrom() argument
190 RTC_CHECK_LE(crop_height, src.height()); in CropAndScaleFrom()
192 RTC_CHECK_LE(crop_height + offset_y, src.height()); in CropAndScaleFrom()
209 src.StrideV(), crop_width, crop_height, MutableDataY(), in CropAndScaleFrom()
219 const int crop_height = in CropAndScaleFrom() local
223 (src.height() - crop_height) / 2, crop_width, crop_height); in CropAndScaleFrom()
Di010_buffer.cc215 int crop_height) { in CropAndScaleFrom() argument
217 RTC_CHECK_LE(crop_height, src.height()); in CropAndScaleFrom()
219 RTC_CHECK_LE(crop_height + offset_y, src.height()); in CropAndScaleFrom()
236 crop_width, crop_height, MutableDataY(), StrideY(), MutableDataU(), in CropAndScaleFrom()
/external/libyuv/files/source/
Dconvert_to_argb.cc49 int crop_height, in ConvertToARGB() argument
57 int inv_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
70 int abs_crop_height = (crop_height < 0) ? -crop_height : crop_height; in ConvertToARGB()
73 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/webrtc/sdk/android/src/jni/
Dandroid_video_track_source.cc112 int crop_height = 0; in AdaptFrame() local
122 &crop_width, &crop_height, &crop_x, &crop_y); in AdaptFrame()
127 &crop_height, &crop_width, &crop_y, &crop_x); in AdaptFrame()
131 env, crop_x, crop_y, crop_width, crop_height, adapted_width, in AdaptFrame()
Dnv12_buffer.cc27 jint crop_height, in JNI_NV12Buffer_CropAndScale() argument
46 const int crop_chroma_height = (crop_height + 1) / 2; in JNI_NV12Buffer_CropAndScale()
74 tmp_stride_v, crop_width, crop_height, dst_y, dst_stride_y, in JNI_NV12Buffer_CropAndScale()
Djava_i420_buffer.cc28 jint crop_height, in JNI_JavaI420Buffer_CropAndScaleI420() argument
57 crop_height, dst_y, dst_stride_y, dst_u, dst_stride_u, dst_v, in JNI_JavaI420Buffer_CropAndScaleI420()
Dnv21_buffer.cc28 jint crop_height, in JNI_NV21Buffer_CropAndScale() argument
65 crop_height, dst_y, dst_stride_y, dst_v, dst_stride_v, in JNI_NV21Buffer_CropAndScale()
/external/webrtc/media/base/
Dadapted_video_track_source.cc92 int* crop_height, in AdaptFrame() argument
106 crop_height, out_width, out_height)) { in AdaptFrame()
113 *crop_y = (height - *crop_height) / 2; in AdaptFrame()
/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].`
/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/libjpeg-turbo/
Ddjpeg.c103 JDIMENSION crop_x, crop_y, crop_width, crop_height; variable
425 if (sscanf(argv[argn], "%u%c%u+%u+%u", &crop_width, &c, &crop_height, in parse_switches()
427 (c != 'X' && c != 'x') || crop_width < 1 || crop_height < 1) in parse_switches()
767 crop_y + crop_height > cinfo.output_height) { in djpeg()
783 cinfo.output_height = crop_height; in djpeg()
793 while (cinfo.output_scanline < crop_y + crop_height) { in djpeg()
800 cinfo.output_height - crop_y - crop_height)) != in djpeg()
801 cinfo.output_height - crop_y - crop_height) { in djpeg()
803 progname, tmp, cinfo.output_height - crop_y - crop_height); in djpeg()
/external/webrtc/common_video/
Dvideo_frame_unittest.cc75 int crop_height) { in CropAndScaleFrom() argument
79 I420Buffer::Create(crop_width, crop_height); in CropAndScaleFrom()
81 crop_height); in CropAndScaleFrom()
86 I010Buffer::Create(crop_width, crop_height); in CropAndScaleFrom()
88 crop_height); in CropAndScaleFrom()
100 int crop_height) { in CropAndScaleFrom() argument
102 std::min(src.width(), crop_width * src.height() / crop_height); in CropAndScaleFrom()
104 std::min(src.height(), crop_height * src.width() / crop_width); in CropAndScaleFrom()
111 ScaleFrom(const VideoFrameBuffer& src, int crop_width, int crop_height) { in ScaleFrom() argument
115 I420Buffer::Create(crop_width, crop_height); in ScaleFrom()
[all …]
/external/webrtc/sdk/objc/native/src/
Dobjc_video_track_source.mm73 int crop_height;
82 &crop_height,
101 cropHeight:crop_height
109 i420_buffer->CropAndScaleFrom(*buffer->ToI420(), crop_x, crop_y, crop_width, crop_height);
/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,

123