Lines Matching refs:aspect_ratio
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()
391 if (aspect_ratio.has_value()) { in ToJson()
393 aspect_ratio->width, kAspectRatioDelimiter, aspect_ratio->height); in ToJson()