Home
last modified time | relevance | path

Searched refs:aspect_ratio (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/
Dsample_distorted_bounding_box_op.cc112 float max_relative_crop_area, float aspect_ratio, in GenerateRandomCrop() argument
114 if (max_relative_crop_area <= 0.0 || aspect_ratio <= 0.0 || in GenerateRandomCrop()
125 int height = static_cast<int>(lrintf(sqrt(min_area / aspect_ratio))); in GenerateRandomCrop()
126 int max_height = static_cast<int>(lrintf(sqrt(max_area / aspect_ratio))); in GenerateRandomCrop()
128 if (lrintf(max_height * aspect_ratio) > original_width) { in GenerateRandomCrop()
132 max_height = static_cast<int>((original_width + 0.5 - kEps) / aspect_ratio); in GenerateRandomCrop()
148 int width = static_cast<int>(lrintf(height * aspect_ratio)); in GenerateRandomCrop()
157 width = static_cast<int>(lrintf(height * aspect_ratio)); in GenerateRandomCrop()
166 width = static_cast<int>(lrintf(height * aspect_ratio)); in GenerateRandomCrop()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/model/
DVUIParameters.java62 public AspectRatio aspect_ratio; field in VUIParameters
91 ", aspect_ratio=" + aspect_ratio + "\n" + in toString()
DSeqParameterSet.java198 vuip.aspect_ratio = AspectRatio.fromValue((int) reader.readNBit(8, in ReadVUIParameters()
200 if (vuip.aspect_ratio == AspectRatio.Extended_SAR) { in ReadVUIParameters()
406 writer.writeNBit(vuip.aspect_ratio.getValue(), 8, in writeVUIParameters()
408 if (vuip.aspect_ratio == AspectRatio.Extended_SAR) { in writeVUIParameters()
/external/ImageMagick/coders/
Dfpx.c249 aspect_ratio; in ReadFPXImage() local
254 aspect_ratio=(float) width/height; in ReadFPXImage()
255 fpx_status=FPX_GetImageResultAspectRatio(flashpix,&aspect_ratio); in ReadFPXImage()
258 if (width != (size_t) floor((aspect_ratio*height)+0.5)) in ReadFPXImage()
997 aspect_ratio; in WriteFPXImage() local
1034 aspect_ratio=(double) image->columns/image->rows; in WriteFPXImage()
1037 view_rect.width=aspect_ratio-0.2; in WriteFPXImage()
1076 fpx_status=FPX_SetImageResultAspectRatio(flashpix,&aspect_ratio); in WriteFPXImage()
Drla.c133 aspect_ratio[8+1], in ReadRLAImage() member
245 (void) ReadBlob(image,8,(unsigned char *) rla_info.aspect_ratio); in ReadRLAImage()
Ddpx.c268 aspect_ratio[2]; member
938 dpx.orientation.aspect_ratio[i]=ReadBlobLong(image); in ReadDPXImage()
941 if ((dpx.orientation.aspect_ratio[0] != ~0U) && in ReadDPXImage()
942 (dpx.orientation.aspect_ratio[1] != ~0U)) in ReadDPXImage()
944 "%ux%u",dpx.orientation.aspect_ratio[0], in ReadDPXImage()
945 dpx.orientation.aspect_ratio[1]); in ReadDPXImage()
1794 dpx.orientation.aspect_ratio[i]=0U; in WriteDPXImage()
1801 dpx.orientation.aspect_ratio[0]=(unsigned int) (geometry_info.rho+0.5); in WriteDPXImage()
1802 dpx.orientation.aspect_ratio[1]=(unsigned int) (geometry_info.sigma+0.5); in WriteDPXImage()
1805 offset+=WriteBlobLong(image,dpx.orientation.aspect_ratio[i]); in WriteDPXImage()
/external/webrtc/talk/app/webrtc/
Dvideosource_unittest.cc328 double aspect_ratio = static_cast<double>(format->width) / format->height; in TEST_F() local
329 EXPECT_LT(aspect_ratio, 2); in TEST_F()
363 double aspect_ratio = static_cast<double>(format->width) / format->height; in TEST_F() local
364 EXPECT_LE(requested_aspect_ratio, aspect_ratio); in TEST_F()
/external/kernel-headers/original/uapi/linux/dvb/
Dvideo.h49 video_format_t aspect_ratio; member
/external/autotest/client/site_tests/camera_V4L2/src/
Dmedia_v4l2_test.cc211 float aspect_ratio = static_cast<float>(format.width) / format.height; in GetResolutionForCropping() local
212 if (std::fabs(sensor_aspect_ratio - aspect_ratio) < kAspectRatioMargin) { in GetResolutionForCropping()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py2056 aspect_ratio = float(crop_width) / float(crop_height)
2059 aspect_ratios.append(aspect_ratio)
2079 aspect_ratio = float(crop_width) / float(crop_height)
2082 aspect_ratios.append(aspect_ratio)
/external/libpng/
Dlibpng-manual.txt1638 aspect_ratio = png_get_pixel_aspect_ratio(png_ptr,