Home
last modified time | relevance | path

Searched refs:crop_width (Results 1 – 25 of 38) sorted by relevance

12

/external/libvpx/libvpx/third_party/libyuv/source/
Dconvert_to_argb.cc50 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 …]
Dconvert_to_i420.cc40 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/libyuv/files/source/
Dconvert_to_argb.cc40 int crop_width, in ConvertToARGB() argument
65 crop_width <= 0 || src_height == 0 || crop_height == 0) { in ConvertToARGB()
73 int argb_size = crop_width * 4 * abs_crop_height; in ConvertToARGB()
79 argb_stride = crop_width * 4; in ConvertToARGB()
87 crop_width, inv_crop_height); in ConvertToARGB()
92 crop_width, inv_crop_height); in ConvertToARGB()
96 r = RGB24ToARGB(src, src_width * 3, crop_argb, argb_stride, crop_width, in ConvertToARGB()
101 r = RAWToARGB(src, src_width * 3, crop_argb, argb_stride, crop_width, in ConvertToARGB()
107 r = ARGBToARGB(src, src_width * 4, crop_argb, argb_stride, crop_width, in ConvertToARGB()
113 r = BGRAToARGB(src, src_width * 4, crop_argb, argb_stride, crop_width, in ConvertToARGB()
[all …]
Dconvert_to_i420.cc40 int crop_width, in ConvertToI420() argument
66 if (!y || !u || !v || !sample || src_width <= 0 || crop_width <= 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 y_stride = crop_width; in ConvertToI420()
87 u_stride = v_stride = ((crop_width + 1) / 2); in ConvertToI420()
95 v_stride, crop_width, inv_crop_height); in ConvertToI420()
100 v_stride, crop_width, inv_crop_height); in ConvertToI420()
105 v_stride, crop_width, inv_crop_height); in ConvertToI420()
110 v_stride, crop_width, inv_crop_height); in ConvertToI420()
[all …]
/external/libaom/libaom/third_party/libyuv/source/
Dconvert_to_argb.cc36 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 …]
Dconvert_to_i420.cc35 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/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
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()
136 int image_width, int crop_height, int crop_width, int depth, in CropAndResizeBackpropImageKernel() argument
143 const int x = idx % crop_width; in CropAndResizeBackpropImageKernel()
144 idx /= crop_width; in CropAndResizeBackpropImageKernel()
162 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) : 0; in CropAndResizeBackpropImageKernel()
171 const float in_x = (crop_width > 1) in CropAndResizeBackpropImageKernel()
[all …]
Dcrop_and_resize_op.cc161 const int crop_width = internal::SubtleMustCopy(crop_size_vec(1)); 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()
215 const int crop_width = crops.dimension(2); in operator ()() local
236 (crop_width > 1) ? (x2 - x1) * (image_width - 1) / (crop_width - 1) in operator ()()
244 for (int x = 0; x < crop_width; ++x) { in operator ()()
256 for (int x = 0; x < crop_width; ++x) { in operator ()()
257 const float in_x = (crop_width > 1) in operator ()()
286 for (int x = 0; x < crop_width; ++x) { in operator ()()
287 const float in_x = (crop_width > 1) in operator ()()
[all …]
Dcrop_and_resize_op_benchmark_test.cc25 int crop_height, int crop_width) { in BM_CropAndResize() argument
43 crop_size_flat(1) = crop_width; in BM_CropAndResize()
/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/libvpx/libvpx/test/
Dvpx_scale_test.h115 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/
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/core/lib/jpeg/
Djpeg_mem.cc78 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()
Djpeg_mem_unittest.cc131 auto check_crop_and_decode_func = [&](int crop_x, int crop_y, int crop_width, in TestCropAndDecodeJpeg()
139 flags.crop_width = crop_width; in TestCropAndDecodeJpeg()
156 ASSERT_EQ(w, crop_width); in TestCropAndDecodeJpeg()
252 flags.crop_width = w; in CheckInvalidCropWindowFailed()
Djpeg_mem.h72 int crop_width = 0; member
/external/tensorflow/tensorflow/python/ops/
Dimage_grad_test.py334 crop_width = 5
339 crop_size = [crop_height, crop_width]
340 crops_shape = [num_boxes, crop_height, crop_width, depth]
412 for crop_width in range(2, 4):
418 crop_size = [crop_height, crop_width]
419 crops_shape = [num_boxes, crop_height, crop_width, depth]
/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()
723 if (crop_x + crop_width > cinfo.output_width || in main()
730 jpeg_crop_scanline(&cinfo, &crop_x, &crop_width); in main()
Dtransupp.c809 if (!jt_read_integer(&spec, &info->crop_width)) in jtransform_parse_crop_spec()
992 info->crop_width = info->output_width - info->crop_xoffset; in jtransform_request_workspace()
996 if (info->crop_width <= 0 || info->crop_width > info->output_width || in jtransform_request_workspace()
998 info->crop_xoffset > info->output_width - info->crop_width || in jtransform_request_workspace()
1003 xoffset = info->output_width - info->crop_width - info->crop_xoffset; in jtransform_request_workspace()
1012 info->output_width = info->crop_width; in jtransform_request_workspace()
1015 info->crop_width + (xoffset % info->iMCU_sample_width); in jtransform_request_workspace()
Dtransupp.h135 JDIMENSION crop_width; /* Width of selected region */ member
/external/libaom/libaom/third_party/libyuv/include/libyuv/
Dconvert_argb.h223 int crop_width, int crop_height,
/external/libyuv/files/include/libyuv/
Dconvert.h356 int crop_width,

12