Skip to content

Commit

Permalink
Camera: Enable Histogram feature.
Browse files Browse the repository at this point in the history
Link the histogram enable/disable commands from
application to the HAL layer.

Change-Id: I510c4e1798285ed1315bfb0d234fa76090659ba2
  • Loading branch information
Sunid Wilson authored and Linux Build Service Account committed Nov 4, 2014
1 parent 9f7a9f7 commit 5b2ef3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/camera/libcameraservice/api1/CameraClient.cpp
Expand Up @@ -650,6 +650,10 @@ status_t CameraClient::sendCommand(int32_t cmd, int32_t arg1, int32_t arg2) {
} else if (cmd == CAMERA_CMD_PING) {
// If mHardware is 0, checkPidAndHardware will return error.
return OK;
} else if (cmd == CAMERA_CMD_HISTOGRAM_ON) {
enableMsgType(CAMERA_MSG_STATS_DATA);
} else if (cmd == CAMERA_CMD_HISTOGRAM_OFF) {
disableMsgType(CAMERA_MSG_STATS_DATA);
}

return mHardware->sendCommand(cmd, arg1, arg2);
Expand Down

0 comments on commit 5b2ef3b

Please sign in to comment.