/external/openscreen/cast/streaming/ |
D | capture_recommendations.cc | 52 double aspect_ratio = 0.0; in ApplyDisplay() local 53 if (description.aspect_ratio) { in ApplyDisplay() 54 aspect_ratio = static_cast<double>(description.aspect_ratio->width) / in ApplyDisplay() 55 description.aspect_ratio->height; in ApplyDisplay() 61 if (!DoubleEquals(from_dims, aspect_ratio)) { in ApplyDisplay() 67 recommendations->video.maximum.height * aspect_ratio; in ApplyDisplay() 69 aspect_ratio = static_cast<double>(description.dimensions->width) / in ApplyDisplay() 75 recommendations->video.minimum.height * aspect_ratio; in ApplyDisplay()
|
D | answer_messages.cc | 124 Json::Value AspectRatioConstraintToJson(AspectRatioConstraint aspect_ratio) { in AspectRatioConstraintToJson() argument 125 switch (aspect_ratio) { in AspectRatioConstraintToJson() 141 std::string aspect_ratio; in AspectRatioConstraintParseAndValidate() local 142 if (!json::ParseAndValidateString(value, &aspect_ratio)) { in AspectRatioConstraintParseAndValidate() 145 if (aspect_ratio == kScalingReceiver) { in AspectRatioConstraintParseAndValidate() 148 } else if (aspect_ratio == kScalingSender) { in AspectRatioConstraintParseAndValidate() 351 !ParseOptional<AspectRatio>(root[kAspectRatio], &(out->aspect_ratio))) { in ParseAndValidate() 369 if (aspect_ratio.has_value() && !aspect_ratio->IsValid()) { in IsValid() 381 !dimensions.has_value() && !aspect_ratio.has_value()) { in IsValid() 384 return aspect_ratio.has_value() || dimensions.has_value() || in IsValid() [all …]
|
D | answer_messages_unittest.cc | 157 EXPECT_EQ((AspectRatio{64, 27}), display.aspect_ratio.value()); in ExpectEqualsValidAnswerJson() 310 invalid_display.display->aspect_ratio = {0, 0}; in TEST() 626 has_aspect_ratio.aspect_ratio = in TEST() 630 has_invalid_aspect_ratio.aspect_ratio = in TEST() 643 has_constraint_and_ratio.aspect_ratio = AspectRatio{4, 3}; in TEST()
|
D | answer_messages.h | 107 absl::optional<AspectRatio> aspect_ratio = {}; member
|
/external/tensorflow/tensorflow/core/kernels/image/ |
D | sample_distorted_bounding_box_op.cc | 117 float max_relative_crop_area, float aspect_ratio, in GenerateRandomCrop() argument 119 if (max_relative_crop_area <= 0.0 || aspect_ratio <= 0.0 || in GenerateRandomCrop() 130 int height = static_cast<int>(lrintf(std::sqrt(min_area / aspect_ratio))); in GenerateRandomCrop() 131 int max_height = static_cast<int>(lrintf(std::sqrt(max_area / aspect_ratio))); in GenerateRandomCrop() 135 if (lrintf(max_height * aspect_ratio) > original_width) { in GenerateRandomCrop() 139 max_height = static_cast<int>((original_width + 0.5 - kEps) / aspect_ratio); in GenerateRandomCrop() 143 if (lrintf(max_height * aspect_ratio) > original_width) { in GenerateRandomCrop() 161 int width = static_cast<int>(lrintf(height * aspect_ratio)); in GenerateRandomCrop() 170 width = static_cast<int>(lrintf(height * aspect_ratio)); in GenerateRandomCrop() 179 width = static_cast<int>(lrintf(height * aspect_ratio)); in GenerateRandomCrop()
|
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/h264/model/ |
D | VUIParameters.java | 62 public AspectRatio aspect_ratio; field in VUIParameters 91 ", aspect_ratio=" + aspect_ratio + "\n" + in toString()
|
D | SeqParameterSet.java | 198 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/ |
D | fpx.c | 249 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()
|
D | rla.c | 133 aspect_ratio[8+1], in ReadRLAImage() member 245 (void) ReadBlob(image,8,(unsigned char *) rla_info.aspect_ratio); in ReadRLAImage()
|
D | dpx.c | 270 aspect_ratio[2]; member 930 dpx.orientation.aspect_ratio[i]=ReadBlobLong(image); in ReadDPXImage() 933 if ((dpx.orientation.aspect_ratio[0] != ~0U) && in ReadDPXImage() 934 (dpx.orientation.aspect_ratio[1] != ~0U)) in ReadDPXImage() 936 "%ux%u",dpx.orientation.aspect_ratio[0], in ReadDPXImage() 937 dpx.orientation.aspect_ratio[1]); in ReadDPXImage() 1791 dpx.orientation.aspect_ratio[i]=0U; in WriteDPXImage() 1798 dpx.orientation.aspect_ratio[0]=(unsigned int) (geometry_info.rho+0.5); in WriteDPXImage() 1799 dpx.orientation.aspect_ratio[1]=(unsigned int) (geometry_info.sigma+0.5); in WriteDPXImage() 1802 offset+=WriteBlobLong(image,dpx.orientation.aspect_ratio[i]); in WriteDPXImage()
|
/external/kernel-headers/original/uapi/linux/dvb/ |
D | video.h | 51 video_format_t aspect_ratio; member
|
/external/igt-gpu-tools/tests/ |
D | kms_chamelium.c | 1053 get_infoframe_avi_picture_ar(uint32_t aspect_ratio) in get_infoframe_avi_picture_ar() argument 1056 switch (aspect_ratio) { in get_infoframe_avi_picture_ar() 1128 uint32_t aspect_ratio; in test_display_aspect_ratio() local 1141 aspect_ratio = vic_mode->picture_ar; in test_display_aspect_ratio() 1173 frame_ar = get_infoframe_avi_picture_ar(aspect_ratio); in test_display_aspect_ratio()
|
/external/libavc/fuzzer/ |
D | README.md | 108 30. Enable aspect_ratio info (parameter name: `u1_aspect_ratio_info_present_flag`)
|
/external/tensorflow/tensorflow/python/ops/ |
D | image_ops_test.py | 2296 aspect_ratio = float(crop_width) / float(crop_height) 2299 aspect_ratios.append(aspect_ratio) 2317 aspect_ratio = float(crop_width) / float(crop_height) 2320 aspect_ratios.append(aspect_ratio) 2501 aspect_ratio = float(crop_width) / float(crop_height) 2503 aspect_ratios.append(aspect_ratio)
|
/external/libpng/ |
D | libpng-manual.txt | 1639 aspect_ratio = png_get_pixel_aspect_ratio(png_ptr,
|