From 3da446303432e640c4c8240bbb2404f7c5dad97d Mon Sep 17 00:00:00 2001 From: Haynes Mathew George Date: Wed, 29 Aug 2012 22:58:51 +0300 Subject: 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 --- media/libmediaplayerservice/StagefrightRecorder.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'media') 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(); -- cgit v1.1