From ea0bf32a189b3998880181118caf6016ed4b7d0f Mon Sep 17 00:00:00 2001 From: Emilian Peev Date: Thu, 25 Jul 2019 15:12:39 -0700 Subject: [PATCH] Camera: Update depth photo container item MIME type Replace the item MIME type with value supported by the dynamic depth specification. Bug: 138399780 Test: runtest -x cts/tests/camera/src/android/hardware/camera2/cts/ImageReaderTest.java -m testDynamicDepth Change-Id: Ib51dd69e6de7da3269eccfa6b671fe95a269b4d6 --- services/camera/libcameraservice/common/DepthPhotoProcessor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/camera/libcameraservice/common/DepthPhotoProcessor.cpp b/services/camera/libcameraservice/common/DepthPhotoProcessor.cpp index 3c90de0d6e..94541d87a9 100644 --- a/services/camera/libcameraservice/common/DepthPhotoProcessor.cpp +++ b/services/camera/libcameraservice/common/DepthPhotoProcessor.cpp @@ -419,7 +419,7 @@ extern "C" int processDepthPhotoFrame(DepthPhotoInputFrame inputFrame, size_t de std::vector> items; std::vector> cameraList; - auto image = Image::FromDataForPrimaryImage("android/mainimage", &items); + auto image = Image::FromDataForPrimaryImage("image/jpeg", &items); std::unique_ptr cameraParams(new CameraParams(std::move(image))); if (cameraParams == nullptr) { ALOGE("%s: Failed to initialize camera parameters", __FUNCTION__);