summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaynes Mathew George <hgeorge@codeaurora.org>2012-08-29 22:58:51 +0300
committerRicardo Cerqueira <cyanogenmod@cerqueira.org>2013-06-11 12:37:06 +0100
commit3da446303432e640c4c8240bbb2404f7c5dad97d (patch)
treee3eca962dfbd22ddb653fa92d1b704d101bb8589
parent0dcf5b32a1bfe723568ee16d1155db668a2e0f4c (diff)
downloadframeworks_av-3da446303432e640c4c8240bbb2404f7c5dad97d.zip
frameworks_av-3da446303432e640c4c8240bbb2404f7c5dad97d.tar.gz
frameworks_av-3da446303432e640c4c8240bbb2404f7c5dad97d.tar.bz2
libstagefright: support for disabling buffer metadata
- Metada mode video recording is enabled by default. - use setprop debug.camcorder.disablemeta 1 to disable metadata mode recording. Change-Id: I422c49c0ace0c3a3e1f4459c7e4bf29e70af763a
-rw-r--r--media/libmediaplayerservice/StagefrightRecorder.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp
index ad6d1cc..0036819 100644
--- a/media/libmediaplayerservice/StagefrightRecorder.cpp
+++ b/media/libmediaplayerservice/StagefrightRecorder.cpp
@@ -1460,9 +1460,17 @@ status_t StagefrightRecorder::setupCameraSource(
mTimeBetweenTimeLapseFrameCaptureUs);
*cameraSource = mCameraSourceTimeLapse;
} else {
+ bool useMeta = true;
+#ifdef QCOM_HARDWARE
+ char value[PROPERTY_VALUE_MAX];
+ if (property_get("debug.camcorder.disablemeta", value, NULL) &&
+ atoi(value)) {
+ useMeta = false;
+ }
+#endif
*cameraSource = CameraSource::CreateFromCamera(
mCamera, mCameraProxy, mCameraId, videoSize, mFrameRate,
- mPreviewSurface, true /*storeMetaDataInVideoBuffers*/);
+ mPreviewSurface, useMeta /*storeMetaDataInVideoBuffers*/);
}
mCamera.clear();
mCameraProxy.clear();