summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorTyler Luu <tluu@ti.com>2011-11-10 22:00:08 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-10 22:00:08 +0000
commit2f2b0c51d518e35eac8aa2d4dc23e8eeaba9e039 (patch)
tree8564ca03b053d55632da6a5d773de8d01755a722 /camera
parent8ba45d28a233a7a51c2c70f30c8a5e99c6d02deb (diff)
parent8a2c7a2d44408aea33beef1775c7b925211d1aae (diff)
downloadhardware_ti_omap4xxx-2f2b0c51d518e35eac8aa2d4dc23e8eeaba9e039.zip
hardware_ti_omap4xxx-2f2b0c51d518e35eac8aa2d4dc23e8eeaba9e039.tar.gz
hardware_ti_omap4xxx-2f2b0c51d518e35eac8aa2d4dc23e8eeaba9e039.tar.bz2
am 8a2c7a2d: am 8eedae16: am 50f5c8a3: CameraHal: WA for green thumbnail for video snapshot
* commit '8a2c7a2d44408aea33beef1775c7b925211d1aae': CameraHal: WA for green thumbnail for video snapshot
Diffstat (limited to 'camera')
-rwxr-xr-xcamera/OMXCameraAdapter/OMXCameraAdapter.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
index 1fa1607..b0e1088 100755
--- a/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
+++ b/camera/OMXCameraAdapter/OMXCameraAdapter.cpp
@@ -2969,7 +2969,11 @@ OMX_ERRORTYPE OMXCameraAdapter::OMXCameraAdapterFillBufferDone(OMX_IN OMX_HANDLE
}
///Prepare the frames to be sent - initialize CameraFrame object and reference count
- if( mWaitingForSnapshot && (mCapturedFrames > 0) && snapshotFrame )
+ // TODO(XXX): ancillary data for snapshot frame is not being sent for video snapshot
+ // if we are waiting for a snapshot and in video mode...go ahead and send
+ // this frame as a snapshot
+ if( mWaitingForSnapshot && (mCapturedFrames > 0) &&
+ (snapshotFrame || (mCapMode == VIDEO_MODE)))
{
typeOfFrame = CameraFrame::SNAPSHOT_FRAME;
mask = (unsigned int)CameraFrame::SNAPSHOT_FRAME;