From e69efbbabf26569ddd0ca12dda44d830a251a07f Mon Sep 17 00:00:00 2001 From: Eino-Ville Talvala Date: Fri, 6 Mar 2015 13:19:36 -0800 Subject: Replace/rename old HAL graphics formats - Replace RAW_SENSOR with RAW16 - Remove sRGB formats Change-Id: Ic5c44878c638c3d3559495ea5685e10fcc2c39e1 --- tests/camera2/CameraMetadataTests.cpp | 2 +- tests/camera2/CameraStreamTests.cpp | 6 +++--- tests/camera2/camera2.cpp | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/camera2/CameraMetadataTests.cpp b/tests/camera2/CameraMetadataTests.cpp index 94fa911..da5b748 100644 --- a/tests/camera2/CameraMetadataTests.cpp +++ b/tests/camera2/CameraMetadataTests.cpp @@ -169,7 +169,7 @@ TEST_F(CameraMetadataTest, SaneResolutions) { if (rawResolutionsCount > 0) { EXPECT_TRUE( HasElementInArrayFromStaticTag(ANDROID_SCALER_AVAILABLE_FORMATS, - HAL_PIXEL_FORMAT_RAW_SENSOR)); + HAL_PIXEL_FORMAT_RAW16)); } // Required processed sizes. diff --git a/tests/camera2/CameraStreamTests.cpp b/tests/camera2/CameraStreamTests.cpp index 69ee274..a3b8c47 100644 --- a/tests/camera2/CameraStreamTests.cpp +++ b/tests/camera2/CameraStreamTests.cpp @@ -166,15 +166,15 @@ static CameraStreamParams TestParameters[] = { /*mHeapCount*/ 3 }, { - /*mFormat*/ HAL_PIXEL_FORMAT_RAW_SENSOR, + /*mFormat*/ HAL_PIXEL_FORMAT_RAW16, /*mHeapCount*/ 1 }, { - /*mFormat*/ HAL_PIXEL_FORMAT_RAW_SENSOR, + /*mFormat*/ HAL_PIXEL_FORMAT_RAW16, /*mHeapCount*/ 2 }, { - /*mFormat*/ HAL_PIXEL_FORMAT_RAW_SENSOR, + /*mFormat*/ HAL_PIXEL_FORMAT_RAW16, /*mHeapCount*/ 3 }, }; diff --git a/tests/camera2/camera2.cpp b/tests/camera2/camera2.cpp index 72b7b61..8d637d4 100644 --- a/tests/camera2/camera2.cpp +++ b/tests/camera2/camera2.cpp @@ -305,7 +305,7 @@ class Camera2Test: public testing::Test { } camera_metadata_ro_entry_t availableSizes; - if (format == HAL_PIXEL_FORMAT_RAW_SENSOR) { + if (format == HAL_PIXEL_FORMAT_RAW16) { res = find_camera_metadata_ro_entry(mStaticInfo, ANDROID_SCALER_AVAILABLE_RAW_SIZES, &availableSizes); @@ -445,7 +445,7 @@ TEST_F(Camera2Test, Capture1Raw) { const int32_t *rawResolutions; size_t rawResolutionsCount; - int format = HAL_PIXEL_FORMAT_RAW_SENSOR; + int format = HAL_PIXEL_FORMAT_RAW16; getResolutionList(format, &rawResolutions, &rawResolutionsCount); @@ -457,7 +457,7 @@ TEST_F(Camera2Test, Capture1Raw) { << test_info->test_case_name() << "." << test_info->name() << " because the optional format was not available: " - << "RAW_SENSOR" << std::endl; + << "RAW16" << std::endl; return; } @@ -581,7 +581,7 @@ TEST_F(Camera2Test, CaptureBurstRaw) { const int32_t *rawResolutions; size_t rawResolutionsCount; - int format = HAL_PIXEL_FORMAT_RAW_SENSOR; + int format = HAL_PIXEL_FORMAT_RAW16; getResolutionList(format, &rawResolutions, &rawResolutionsCount); @@ -593,7 +593,7 @@ TEST_F(Camera2Test, CaptureBurstRaw) { << test_info->test_case_name() << "." << test_info->name() << " because the optional format was not available: " - << "RAW_SENSOR" << std::endl; + << "RAW16" << std::endl; return; } -- cgit v1.1