/external/tensorflow/tensorflow/core/kernels/image/ |
D | crop_and_resize_op_gpu.cu.cc | 44 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 …]
|
D | crop_and_resize_op.cc | 166 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 …]
|
D | crop_and_resize_op_benchmark_test.cc | 25 int crop_height, int crop_width) { in CropAndResize() argument 42 crop_size_flat(0) = crop_height; in CropAndResize()
|
/external/libvpx/libvpx/third_party/libyuv/source/ |
D | convert_to_argb.cc | 51 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()
|
D | convert_to_i420.cc | 41 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/ |
D | convert_to_argb.cc | 36 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()
|
D | convert_to_i420.cc | 35 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/tensorflow/tensorflow/lite/tools/evaluation/stages/ |
D | image_preprocessing_stage.cc | 109 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/ |
D | i420_buffer.cc | 188 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()
|
D | video_frame.cc | 69 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()
|
D | i010_buffer.cc | 215 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/ |
D | convert_to_argb.cc | 49 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()
|
D | convert_to_i420.cc | 41 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/ |
D | android_video_track_source.cc | 112 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()
|
D | nv12_buffer.cc | 27 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()
|
D | nv21_buffer.cc | 28 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()
|
D | java_i420_buffer.cc | 28 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()
|
/external/webrtc/media/base/ |
D | adapted_video_track_source.cc | 92 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/ |
D | api_def_CropAndResize.pbtxt | 35 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.
|
D | api_def_RandomCrop.pbtxt | 12 1-D of length 2 containing: `crop_height`, `crop_width`.. 18 3-D of shape `[crop_height, crop_width, channels].`
|
/external/libvpx/libvpx/test/ |
D | vpx_scale_test.h | 115 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/ |
D | djpeg.c | 103 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/sdk/objc/native/src/ |
D | objc_video_track_source.mm | 73 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/webrtc/common_video/ |
D | video_frame_unittest.cc | 75 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/libyuv/files/docs/ |
D | rotation.md | 13 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,
|