Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b34f581c authored by Apurva Rajguru's avatar Apurva Rajguru Committed by Steve Kondik
Browse files

Camera: Extend few data structures for QCom features.

Add message type for STATS_DATA and also the commands
which the application sends to start/stop histogram.
Also add few members to the face structure to extend
the face detection feature.

Change-Id: I3cc1c99ce40b58a029b1e048e6f84265833ac372
parent 557183c9
Loading
Loading
Loading
Loading
+26 −1
Original line number Diff line number Diff line
@@ -197,8 +197,18 @@ enum {
     * count is non-positive or too big to be realized.
     */
    CAMERA_CMD_SET_VIDEO_BUFFER_COUNT = 10,
#endif

    /**
     * Commands to enable/disable preview histogram
     *
     * Based on user's input to enable/disable histogram from the camera
     * UI, send the appropriate command to the HAL to turn on/off the histogram
     * stats and start sending the data to the application.
     */
    CAMERA_CMD_HISTOGRAM_ON     = 11,
    CAMERA_CMD_HISTOGRAM_OFF     = 12,
    CAMERA_CMD_HISTOGRAM_SEND_DATA  = 13,
#endif
};

/** camera fatal errors */
@@ -289,6 +299,21 @@ typedef struct camera_face {
     */
    int32_t mouth[2];

#ifdef QCOM_HARDWARE
    int32_t smile_degree;
    int32_t smile_score;
    int32_t blink_detected;
    int32_t face_recognised;
    int32_t gaze_angle;
    int32_t updown_dir;
    int32_t leftright_dir;
    int32_t roll_dir;
    int32_t left_right_gaze;
    int32_t top_bottom_gaze;
    int32_t leye_blink;
    int32_t reye_blink;
#endif

} camera_face_t;

/**