/external/libvpx/libvpx/third_party/libyuv/source/ |
D | convert_to_argb.cc | 50 int crop_width, in ConvertToARGB() argument 74 if (dst_argb == NULL || sample == NULL || src_width <= 0 || crop_width <= 0 || in ConvertToARGB() 83 int argb_size = crop_width * 4 * abs_crop_height; in ConvertToARGB() 89 dst_stride_argb = crop_width * 4; in ConvertToARGB() 97 crop_width, inv_crop_height); in ConvertToARGB() 102 crop_width, inv_crop_height); in ConvertToARGB() 106 r = RGB24ToARGB(src, src_width * 3, dst_argb, dst_stride_argb, crop_width, in ConvertToARGB() 111 r = RAWToARGB(src, src_width * 3, dst_argb, dst_stride_argb, crop_width, in ConvertToARGB() 118 crop_width, inv_crop_height); in ConvertToARGB() 123 r = BGRAToARGB(src, src_width * 4, dst_argb, dst_stride_argb, crop_width, in ConvertToARGB() [all …]
|
D | convert_to_i420.cc | 40 int crop_width, in ConvertToI420() argument 67 crop_width <= 0 || src_height == 0 || crop_height == 0) { in ConvertToI420() 77 int y_size = crop_width * abs_crop_height; in ConvertToI420() 78 int uv_size = ((crop_width + 1) / 2) * ((abs_crop_height + 1) / 2); in ConvertToI420() 86 dst_stride_y = crop_width; in ConvertToI420() 87 dst_stride_u = dst_stride_v = ((crop_width + 1) / 2); in ConvertToI420() 95 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() 101 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() 107 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() 113 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() [all …]
|
/external/libaom/libaom/third_party/libyuv/source/ |
D | convert_to_argb.cc | 36 int crop_width, int crop_height, in ConvertToARGB() argument 60 src_width <= 0 || crop_width <= 0 || in ConvertToARGB() 69 int argb_size = crop_width * abs_crop_height * 4; in ConvertToARGB() 75 argb_stride = crop_width; in ConvertToARGB() 84 crop_width, inv_crop_height); in ConvertToARGB() 90 crop_width, inv_crop_height); in ConvertToARGB() 96 crop_width, inv_crop_height); in ConvertToARGB() 102 crop_width, inv_crop_height); in ConvertToARGB() 108 crop_width, inv_crop_height); in ConvertToARGB() 114 crop_width, inv_crop_height); in ConvertToARGB() [all …]
|
D | convert_to_i420.cc | 35 int crop_width, int crop_height, in ConvertToI420() argument 58 src_width <= 0 || crop_width <= 0 || in ConvertToI420() 72 int y_size = crop_width * abs_crop_height; in ConvertToI420() 73 int uv_size = ((crop_width + 1) / 2) * ((abs_crop_height + 1) / 2); in ConvertToI420() 81 y_stride = crop_width; in ConvertToI420() 82 u_stride = v_stride = ((crop_width + 1) / 2); in ConvertToI420() 93 crop_width, inv_crop_height); in ConvertToI420() 101 crop_width, inv_crop_height); in ConvertToI420() 109 crop_width, inv_crop_height); in ConvertToI420() 117 crop_width, inv_crop_height); in ConvertToI420() [all …]
|
/external/libyuv/files/source/ |
D | convert_to_argb.cc | 48 int crop_width, in ConvertToARGB() argument 72 if (dst_argb == NULL || sample == NULL || src_width <= 0 || crop_width <= 0 || in ConvertToARGB() 81 int argb_size = crop_width * 4 * abs_crop_height; in ConvertToARGB() 87 dst_stride_argb = crop_width * 4; in ConvertToARGB() 95 crop_width, inv_crop_height); in ConvertToARGB() 100 crop_width, inv_crop_height); in ConvertToARGB() 104 r = RGB24ToARGB(src, src_width * 3, dst_argb, dst_stride_argb, crop_width, in ConvertToARGB() 109 r = RAWToARGB(src, src_width * 3, dst_argb, dst_stride_argb, crop_width, in ConvertToARGB() 116 crop_width, inv_crop_height); in ConvertToARGB() 121 r = BGRAToARGB(src, src_width * 4, dst_argb, dst_stride_argb, crop_width, in ConvertToARGB() [all …]
|
D | convert_to_i420.cc | 40 int crop_width, in ConvertToI420() argument 67 crop_width <= 0 || src_height == 0 || crop_height == 0) { in ConvertToI420() 77 int y_size = crop_width * abs_crop_height; in ConvertToI420() 78 int uv_size = ((crop_width + 1) / 2) * ((abs_crop_height + 1) / 2); in ConvertToI420() 86 dst_stride_y = crop_width; in ConvertToI420() 87 dst_stride_u = dst_stride_v = ((crop_width + 1) / 2); in ConvertToI420() 95 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() 101 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() 107 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() 113 dst_stride_u, dst_v, dst_stride_v, crop_width, in ConvertToI420() [all …]
|
/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 51 const int x = idx % crop_width; in CropAndResizeKernel() 52 idx /= crop_width; in CropAndResizeKernel() 70 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) : 0; in CropAndResizeKernel() 80 const float in_x = (crop_width > 1) in CropAndResizeKernel() 137 int crop_height, int crop_width, int depth, T* __restrict__ grads_image_ptr, in CropAndResizeBackpropImageKernel() argument 144 const int x = idx % crop_width; in CropAndResizeBackpropImageKernel() 145 idx /= crop_width; in CropAndResizeBackpropImageKernel() 163 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) : 0; in CropAndResizeBackpropImageKernel() 172 const float in_x = (crop_width > 1) in CropAndResizeBackpropImageKernel() [all …]
|
D | crop_and_resize_op.cc | 167 const int crop_width = internal::SubtleMustCopy(crop_size_vec(1)); 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() 222 const int crop_width = crops.dimension(2); in operator ()() local 254 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) in operator ()() 262 for (int x = 0; x < crop_width; ++x) { in operator ()() 274 for (int x = 0; x < crop_width; ++x) { in operator ()() 275 const float in_x = (crop_width > 1) in operator ()() 304 for (int x = 0; x < crop_width; ++x) { in operator ()() 305 const float in_x = (crop_width > 1) in operator ()() [all …]
|
D | crop_and_resize_op_benchmark_test.cc | 25 int crop_height, int crop_width) { in CropAndResize() argument 43 crop_size_flat(1) = crop_width; in CropAndResize()
|
/external/webrtc/api/video/ |
D | video_frame.cc | 68 int crop_width, in ScaleWithFrame() argument 75 RTC_DCHECK_GT(crop_width, 0); in ScaleWithFrame() 78 RTC_DCHECK_LE(crop_width + crop_x, frame_width); in ScaleWithFrame() 85 if (offset_x + width < crop_x || offset_x > crop_x + crop_width || in ScaleWithFrame() 86 offset_y + height < crop_y || offset_y > crop_y + crop_width) { in ScaleWithFrame() 104 x = x * scaled_width / crop_width; in ScaleWithFrame() 107 w = (w * scaled_width + crop_width - 1) / crop_width; in ScaleWithFrame() 128 if (scaled_width != crop_width || scaled_height != crop_height) { in ScaleWithFrame()
|
D | i420_buffer.cc | 187 int crop_width, in CropAndScaleFrom() argument 189 RTC_CHECK_LE(crop_width, src.width()); in CropAndScaleFrom() 191 RTC_CHECK_LE(crop_width + offset_x, src.width()); in CropAndScaleFrom() 209 src.StrideV(), crop_width, crop_height, MutableDataY(), in CropAndScaleFrom() 217 const int crop_width = in CropAndScaleFrom() local 222 CropAndScaleFrom(src, (src.width() - crop_width) / 2, in CropAndScaleFrom() 223 (src.height() - crop_height) / 2, crop_width, crop_height); in CropAndScaleFrom()
|
D | i010_buffer.cc | 214 int crop_width, in CropAndScaleFrom() argument 216 RTC_CHECK_LE(crop_width, src.width()); in CropAndScaleFrom() 218 RTC_CHECK_LE(crop_width + offset_x, src.width()); in CropAndScaleFrom() 236 crop_width, crop_height, MutableDataY(), StrideY(), MutableDataU(), in CropAndScaleFrom()
|
/external/tensorflow/tensorflow/lite/tools/evaluation/stages/ |
D | image_preprocessing_stage.cc | 109 int crop_height, crop_width; in Crop() local 115 crop_width = in Crop() 119 crop_width = crop_params.target_size().width(); in Crop() 122 crop_height = std::min(crop_height, crop_width); in Crop() 123 crop_width = crop_height; in Crop() 125 int start_w = static_cast<int>(round((input_width - crop_width) / 2.0)); in Crop() 128 cropped_image->reserve(crop_height * crop_width * kNumChannels); in Crop() 130 for (int in_w = start_w; in_w < start_w + crop_width; ++in_w) { in Crop() 137 image_data->width = crop_width; in Crop()
|
/external/webrtc/sdk/android/src/jni/ |
D | android_video_track_source.cc | 111 int crop_width = 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 | 26 jint crop_width, in JNI_NV12Buffer_CropAndScale() argument 45 const int crop_chroma_width = (crop_width + 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 | 27 jint crop_width, in JNI_NV21Buffer_CropAndScale() argument 64 scaler.NV12ToI420Scale(src_y, src_stride_y, src_uv, src_stride_uv, crop_width, in JNI_NV21Buffer_CropAndScale()
|
D | java_i420_buffer.cc | 27 jint crop_width, in JNI_JavaI420Buffer_CropAndScaleI420() argument 56 src_y, src_stride_y, src_u, src_stride_u, src_v, src_stride_v, crop_width, in JNI_JavaI420Buffer_CropAndScaleI420()
|
/external/webrtc/media/base/ |
D | adapted_video_track_source.cc | 91 int* crop_width, in AdaptFrame() argument 105 width, height, time_us * rtc::kNumNanosecsPerMicrosec, crop_width, in AdaptFrame() 112 *crop_x = (width - *crop_width) / 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/webrtc/sdk/objc/native/src/ |
D | objc_video_track_source.mm | 72 int crop_width; 81 &crop_width, 100 cropWidth:crop_width 109 i420_buffer->CropAndScaleFrom(*buffer->ToI420(), crop_x, crop_y, crop_width, crop_height);
|
/external/webrtc/common_video/ |
D | video_frame_unittest.cc | 74 int crop_width, in CropAndScaleFrom() argument 79 I420Buffer::Create(crop_width, crop_height); in CropAndScaleFrom() 80 buffer->CropAndScaleFrom(*src.GetI420(), offset_x, offset_y, crop_width, in CropAndScaleFrom() 86 I010Buffer::Create(crop_width, crop_height); in CropAndScaleFrom() 87 buffer->CropAndScaleFrom(*src.GetI010(), offset_x, offset_y, crop_width, in CropAndScaleFrom() 99 int crop_width, 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/libvpx/libvpx/test/ |
D | vpx_scale_test.h | 115 static void ExtendPlane(uint8_t *buf, int crop_width, int crop_height, in ExtendPlane() argument 122 uint8_t *right = buf + crop_width; in ExtendPlane() 123 const int right_extend = padding + (width - crop_width); in ExtendPlane() 138 const int extend_width = padding + crop_width + right_extend; in ExtendPlane()
|
/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,
|
/external/tensorflow/tensorflow/core/lib/jpeg/ |
D | jpeg_mem.cc | 78 return flags.crop_width > 0 && flags.crop_height > 0 && flags.crop_x >= 0 && in IsCropWindowValid() 81 flags.crop_x + flags.crop_width <= input_image_width; in IsCropWindowValid() 196 target_output_width = flags.crop_width; in UncompressLow() 214 JDIMENSION crop_width = flags.crop_width; in UncompressLow() local 216 jpeg_crop_scanline(&cinfo, &crop_x, &crop_width); in UncompressLow() 443 target_output_width = flags.crop_width; in UncompressLow()
|