@@ -34,6 +34,7 @@ enum ControlType {
ControlTypeString,
ControlTypeRectangle,
ControlTypeSize,
+ ControlTypePoint,
};
namespace details {
@@ -87,6 +88,11 @@ struct control_type<Size> {
static constexpr ControlType value = ControlTypeSize;
};
+template<>
+struct control_type<Point> {
+ static constexpr ControlType value = ControlTypePoint;
+};
+
template<typename T, std::size_t N>
struct control_type<Span<T, N>> : public control_type<std::remove_cv_t<T>> {
};
@@ -860,6 +860,48 @@ controls:
No further state changes or lens movements will occur until the
AfPauseResume control is sent.
+ - FaceDetectMode:
+ type: uint8_t
+ description: |
+ Reporting mode of face detection.
+
+ enum:
+ - name: FaceDetectModeOff
+ value: 0
+ description: |
+ Pipeline should not report face detection result.
+ - name: FaceDetectModeSimple
+ value: 1
+ description: |
+ Pipeline should at least report faces boundary rectangles and
+ confidence score for each of them.
+
+ - FaceDetectFaceRectangles:
+ type: Rectangle
+ description: |
+ Boundary rectangle of the detected faces.
+
+ size: [n]
+
+ - FaceDetectFaceScores:
+ type: uint8_t
+ description: |
+ Confidence score of each of the detected faces by face detector.
+ The range of score is [0, 100], but usually those with low confidence
+ scores will not be included.
+ Currently identical to ANDROID_STATISTICS_FACE_SCORES.
+
+ size: [n]
+
+ - FaceDetectFaceLandmark:
+ type: Point
+ description: |
+ Array of human face landmark coordinates in format:
+ [..., left_eye_i, right_eye_i, mouth_i, left_eye_i+1, ...],
+ with i = index of face.
+
+ size: [n]
+
- HdrMode:
type: int32_t
description: |
@@ -61,6 +61,7 @@ static constexpr size_t ControlValueSize[] = {
[ControlTypeString] = sizeof(char),
[ControlTypeRectangle] = sizeof(Rectangle),
[ControlTypeSize] = sizeof(Size),
+ [ControlTypePoint] = sizeof(Point),
};
} /* namespace */
@@ -255,6 +256,11 @@ std::string ControlValue::toString() const
str += value->toString();
break;
}
+ case ControlTypePoint: {
+ const Point *value = reinterpret_cast<const Point *>(data);
+ str += value->toString();
+ break;
+ }
case ControlTypeNone:
case ControlTypeString:
break;