mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Camera: Fix VTS failure for depth only camera
If the device is depth-only, use threshold with Y16 format rather than IMPLEMENTATION_DEFINED. This fixes the regression introduced by the fix for b/265984260. Bug: 276957901 Test: atest VtsAidlHalCameraProvider_TargetTest Change-Id: If9023f1ed17bb761abbb9be36e567264f8bf0689
This commit is contained in:
@@ -6346,7 +6346,7 @@ Status CameraHidlTest::getAvailableOutputStreams(const camera_metadata_t* static
|
||||
AvailableStream depthPreviewThreshold = {kMaxPreviewWidth, kMaxPreviewHeight,
|
||||
static_cast<int32_t>(PixelFormat::Y16)};
|
||||
const AvailableStream* depthThreshold =
|
||||
(threshold != nullptr) ? threshold : &depthPreviewThreshold;
|
||||
isDepthOnly(staticMeta) ? &depthPreviewThreshold : threshold;
|
||||
fillOutputStreams(&depthEntry, outputStreams, depthThreshold,
|
||||
ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT);
|
||||
}
|
||||
|
||||
@@ -779,7 +779,7 @@ Status CameraAidlTest::getAvailableOutputStreams(const camera_metadata_t* static
|
||||
AvailableStream depthPreviewThreshold = {kMaxPreviewWidth, kMaxPreviewHeight,
|
||||
static_cast<int32_t>(PixelFormat::Y16)};
|
||||
const AvailableStream* depthThreshold =
|
||||
(threshold != nullptr) ? threshold : &depthPreviewThreshold;
|
||||
isDepthOnly(staticMeta) ? &depthPreviewThreshold : threshold;
|
||||
fillOutputStreams(&depthEntry, outputStreams, depthThreshold,
|
||||
ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user