Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea0bf32a authored by Emilian Peev's avatar Emilian Peev
Browse files

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
parent 1c74123a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -419,7 +419,7 @@ extern "C" int processDepthPhotoFrame(DepthPhotoInputFrame inputFrame, size_t de

    std::vector<std::unique_ptr<Item>> items;
    std::vector<std::unique_ptr<Camera>> cameraList;
    auto image = Image::FromDataForPrimaryImage("android/mainimage", &items);
    auto image = Image::FromDataForPrimaryImage("image/jpeg", &items);
    std::unique_ptr<CameraParams> cameraParams(new CameraParams(std::move(image)));
    if (cameraParams == nullptr) {
        ALOGE("%s: Failed to initialize camera parameters", __FUNCTION__);