summaryrefslogtreecommitdiffstats
path: root/services/camera
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-09-17 18:25:29 -0700
committerEino-Ville Talvala <etalvala@google.com>2012-09-17 18:25:29 -0700
commit0e0a14013dc3c0c02f96ec486d70d0871747062c (patch)
treea114c0798c2960e9532a4a591b4916530903841e /services/camera
parent55619ef9beb0383b383f185f2e1b61a82745dbcd (diff)
downloadframeworks_av-0e0a14013dc3c0c02f96ec486d70d0871747062c.zip
frameworks_av-0e0a14013dc3c0c02f96ec486d70d0871747062c.tar.gz
frameworks_av-0e0a14013dc3c0c02f96ec486d70d0871747062c.tar.bz2
Camera2: Don't be bothered by lack of faces.
Sometimes, people might want to photograph scenes with no faces. And not have their log fill with errors when they do. Bug: 7078231 Change-Id: Ibe5c08d51b49a3ea14203416fe7803a58de08dda
Diffstat (limited to 'services/camera')
-rw-r--r--services/camera/libcameraservice/camera2/FrameProcessor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/camera2/FrameProcessor.cpp b/services/camera/libcameraservice/camera2/FrameProcessor.cpp
index df5e11f..a7d19aa 100644
--- a/services/camera/libcameraservice/camera2/FrameProcessor.cpp
+++ b/services/camera/libcameraservice/camera2/FrameProcessor.cpp
@@ -174,8 +174,7 @@ status_t FrameProcessor::processFaceDetect(const CameraMetadata &frame,
SharedParameters::Lock l(client->getParameters());
entry = frame.find(ANDROID_STATS_FACE_RECTANGLES);
if (entry.count == 0) {
- ALOGE("%s: Camera %d: Unable to read face rectangles",
- __FUNCTION__, client->getCameraId());
+ // No faces this frame
return res;
}
metadata.number_of_faces = entry.count / 4;