Lines Matching refs:constraint
21 // Constraint keys. Specified by draft-alvestrand-constraints-resolution-00b
53 // Returns true if |constraint| has mandatory constraints.
63 // If either max width or height is set as a mandatory constraint, the optional
92 // If either min or max aspect ratio is set as a mandatory constraint, the
122 // Returns true if |constraint| is fulfilled. |format| can be changed by a
123 // constraint, e.g. the frame rate can be changed by setting maxFrameRate.
125 const blink::WebMediaConstraint& constraint,
133 std::string constraint_name = constraint.m_name.utf8();
134 std::string constraint_value = constraint.m_value.utf8();
143 // This is a constraint that doesn't affect the format.
162 DLOG(WARNING) << "Can't parse MediaStream constraint. Name:"
179 // The frame rate is set by constraint.
180 // Don't allow 0 as frame rate if it is a mandatory constraint.
192 LOG(WARNING) << "Found unknown MediaStream constraint. Name:"
199 // |constraint|.
201 const blink::WebMediaConstraint& constraint,
205 << "{ constraint.m_name = " << constraint.m_name.utf8()
206 << " constraint.m_value = " << constraint.m_value.utf8()
210 // Modify the format_it to fulfill the constraint if possible.
212 if (!UpdateFormatForConstraint(constraint, mandatory, &(*format_it))) {
288 // But if a constraint produce zero candidates, the constraint is ignored and
289 // the next constraint is tested.