Merge "Camera VTS: Remove unnecessary test of Y16 depth format" into android13-tests-dev am: ca60e0b71f
am: 915fde07bd
am: f862766f37
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2402628 Change-Id: I7acb9527ae60468dcdf502aec8241a67c7992150 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
0dd6f62f61
2 changed files with 11 additions and 7 deletions
|
@ -6318,8 +6318,6 @@ Status CameraHidlTest::getAvailableOutputStreams(const camera_metadata_t* static
|
||||||
std::vector<AvailableStream>& outputStreams,
|
std::vector<AvailableStream>& outputStreams,
|
||||||
const AvailableStream* threshold,
|
const AvailableStream* threshold,
|
||||||
bool maxResolution) {
|
bool maxResolution) {
|
||||||
AvailableStream depthPreviewThreshold = {kMaxPreviewWidth, kMaxPreviewHeight,
|
|
||||||
static_cast<int32_t>(PixelFormat::Y16)};
|
|
||||||
if (nullptr == staticMeta) {
|
if (nullptr == staticMeta) {
|
||||||
return Status::ILLEGAL_ARGUMENT;
|
return Status::ILLEGAL_ARGUMENT;
|
||||||
}
|
}
|
||||||
|
@ -6345,8 +6343,12 @@ Status CameraHidlTest::getAvailableOutputStreams(const camera_metadata_t* static
|
||||||
}
|
}
|
||||||
|
|
||||||
if(foundDepth == 0 && (0 == (depthEntry.count % 4))) {
|
if(foundDepth == 0 && (0 == (depthEntry.count % 4))) {
|
||||||
fillOutputStreams(&depthEntry, outputStreams, &depthPreviewThreshold,
|
AvailableStream depthPreviewThreshold = {kMaxPreviewWidth, kMaxPreviewHeight,
|
||||||
ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT);
|
static_cast<int32_t>(PixelFormat::Y16)};
|
||||||
|
const AvailableStream* depthThreshold =
|
||||||
|
(threshold != nullptr) ? threshold : &depthPreviewThreshold;
|
||||||
|
fillOutputStreams(&depthEntry, outputStreams, depthThreshold,
|
||||||
|
ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status::OK;
|
return Status::OK;
|
||||||
|
|
|
@ -751,8 +751,6 @@ Status CameraAidlTest::getAvailableOutputStreams(const camera_metadata_t* static
|
||||||
std::vector<AvailableStream>& outputStreams,
|
std::vector<AvailableStream>& outputStreams,
|
||||||
const AvailableStream* threshold,
|
const AvailableStream* threshold,
|
||||||
bool maxResolution) {
|
bool maxResolution) {
|
||||||
AvailableStream depthPreviewThreshold = {kMaxPreviewWidth, kMaxPreviewHeight,
|
|
||||||
static_cast<int32_t>(PixelFormat::Y16)};
|
|
||||||
if (nullptr == staticMeta) {
|
if (nullptr == staticMeta) {
|
||||||
return Status::ILLEGAL_ARGUMENT;
|
return Status::ILLEGAL_ARGUMENT;
|
||||||
}
|
}
|
||||||
|
@ -778,7 +776,11 @@ Status CameraAidlTest::getAvailableOutputStreams(const camera_metadata_t* static
|
||||||
}
|
}
|
||||||
|
|
||||||
if (foundDepth == 0 && (0 == (depthEntry.count % 4))) {
|
if (foundDepth == 0 && (0 == (depthEntry.count % 4))) {
|
||||||
fillOutputStreams(&depthEntry, outputStreams, &depthPreviewThreshold,
|
AvailableStream depthPreviewThreshold = {kMaxPreviewWidth, kMaxPreviewHeight,
|
||||||
|
static_cast<int32_t>(PixelFormat::Y16)};
|
||||||
|
const AvailableStream* depthThreshold =
|
||||||
|
(threshold != nullptr) ? threshold : &depthPreviewThreshold;
|
||||||
|
fillOutputStreams(&depthEntry, outputStreams, depthThreshold,
|
||||||
ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT);
|
ANDROID_DEPTH_AVAILABLE_DEPTH_STREAM_CONFIGURATIONS_OUTPUT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue