summaryrefslogtreecommitdiffstats
path: root/camera/BaseCameraAdapter.cpp
diff options
context:
space:
mode:
authorKyle Repinski <repinski23@gmail.com>2015-01-07 17:12:43 -0600
committerZiyan <jaraidaniel@gmail.com>2015-04-11 20:24:52 +0200
commit0ebe625decc5a52c5534bedc5ed31da332f42f80 (patch)
treefcc961a8fb7015cc1f606b9d9c7c062931e457cc /camera/BaseCameraAdapter.cpp
parentc9ee5c0371fb6ca892f80f1725100ad03c8a2a2c (diff)
downloaddevice_samsung_tuna-0ebe625decc5a52c5534bedc5ed31da332f42f80.zip
device_samsung_tuna-0ebe625decc5a52c5534bedc5ed31da332f42f80.tar.gz
device_samsung_tuna-0ebe625decc5a52c5534bedc5ed31da332f42f80.tar.bz2
camera: Fix more tuna issues, spruce up debugging.
- Move very verbose logs under new CAMERAHAL_SUPERVERBOSE and co. - Add back 'default focal length', as tuna just reports '.' when trying to auto-fetch it. - Hardcode camera facing values in insertFacing (sensor ID 305 is rear, the other (306) is front). - ifdef out more things that will cause tuna to... lose its gills. - 'Fix' preview resolutions not being inserted. - Enable a few built-in workarounds that were under the 'CAMERAHAL_TUNA' define. At this point, a few intelligent camera apps can handle the camera 'OK'. AF is very spotty. Signed-off-by: Kyle Repinski <repinski23@gmail.com>
Diffstat (limited to 'camera/BaseCameraAdapter.cpp')
-rw-r--r--camera/BaseCameraAdapter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/camera/BaseCameraAdapter.cpp b/camera/BaseCameraAdapter.cpp
index 4e315b6..ad56691 100644
--- a/camera/BaseCameraAdapter.cpp
+++ b/camera/BaseCameraAdapter.cpp
@@ -382,7 +382,7 @@ void BaseCameraAdapter::returnFrame(CameraBuffer * frameBuf, CameraFrame::FrameT
}
}
- CAMHAL_LOGVB("REFCOUNT 0x%x %d", frameBuf, refCount);
+ CAMHAL_LOGSVB("REFCOUNT 0x%x %d", frameBuf, refCount);
if ( NO_ERROR == res )
{
@@ -395,7 +395,7 @@ void BaseCameraAdapter::returnFrame(CameraBuffer * frameBuf, CameraFrame::FrameT
(CameraFrame::SNAPSHOT_FRAME == frameType)))
{
CAMHAL_LOGE("Buffer already with Ducati!! 0x%x", frameBuf);
- for(int i=0;i<mBuffersWithDucati.size();i++) CAMHAL_LOGE("0x%x", mBuffersWithDucati.keyAt(i));
+ for(int i=0;i<mBuffersWithDucati.size();i++) CAMHAL_LOGSV("0x%x", mBuffersWithDucati.keyAt(i));
}
mBuffersWithDucati.add((int)camera_buffer_get_omx_ptr(frameBuf),1);
#endif
@@ -1399,7 +1399,7 @@ status_t BaseCameraAdapter::__sendFrameToSubscribers(CameraFrame* frame,
return -EINVAL;
}
- CAMHAL_LOGVB("Type of Frame: 0x%x address: 0x%x refCount start %d",
+ CAMHAL_LOGSVB("Type of Frame: 0x%x address: 0x%x refCount start %d",
frame->mFrameType,
( uint32_t ) frame->mBuffer,
refCount);