diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2012-08-26 14:44:38 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-08-26 14:44:38 -0700 |
commit | dde2a9d4b5129fa836d211a75f0040bf552c94c9 (patch) | |
tree | 483225aa0dd123a84bf5f2219a3bf93d104e19d0 /tests/camera2 | |
parent | d959ec5297c19b9b8f1760c9237030bf931b5803 (diff) | |
download | hardware_libhardware-dde2a9d4b5129fa836d211a75f0040bf552c94c9.zip hardware_libhardware-dde2a9d4b5129fa836d211a75f0040bf552c94c9.tar.gz hardware_libhardware-dde2a9d4b5129fa836d211a75f0040bf552c94c9.tar.bz2 |
Revert "Camera2: Make static_camera_characteristics const."
Needs a third change that's not yet done with review.
This reverts commit c9ec8a656b59912f496880d3a63c0decd490f09d
Change-Id: Ic3e465e1308cbf107a250ec17b73a59a35e52f9f
Diffstat (limited to 'tests/camera2')
-rw-r--r-- | tests/camera2/camera2.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/camera2/camera2.cpp b/tests/camera2/camera2.cpp index 29eef68..05f61ef 100644 --- a/tests/camera2/camera2.cpp +++ b/tests/camera2/camera2.cpp @@ -236,13 +236,13 @@ class Camera2Test: public testing::Test { } void getResolutionList(int32_t format, - const int32_t **list, + int32_t **list, size_t *count) { ALOGV("Getting resolutions for format %x", format); status_t res; if (format != CAMERA2_HAL_PIXEL_FORMAT_OPAQUE) { - camera_metadata_ro_entry_t availableFormats; - res = find_camera_metadata_ro_entry(mStaticInfo, + camera_metadata_entry_t availableFormats; + res = find_camera_metadata_entry(mStaticInfo, ANDROID_SCALER_AVAILABLE_FORMATS, &availableFormats); ASSERT_EQ(OK, res); @@ -255,17 +255,17 @@ class Camera2Test: public testing::Test { << "No support found for format 0x" << std::hex << format; } - camera_metadata_ro_entry_t availableSizes; + camera_metadata_entry_t availableSizes; if (format == HAL_PIXEL_FORMAT_RAW_SENSOR) { - res = find_camera_metadata_ro_entry(mStaticInfo, + res = find_camera_metadata_entry(mStaticInfo, ANDROID_SCALER_AVAILABLE_RAW_SIZES, &availableSizes); } else if (format == HAL_PIXEL_FORMAT_BLOB) { - res = find_camera_metadata_ro_entry(mStaticInfo, + res = find_camera_metadata_entry(mStaticInfo, ANDROID_SCALER_AVAILABLE_JPEG_SIZES, &availableSizes); } else { - res = find_camera_metadata_ro_entry(mStaticInfo, + res = find_camera_metadata_entry(mStaticInfo, ANDROID_SCALER_AVAILABLE_PROCESSED_SIZES, &availableSizes); } @@ -293,7 +293,7 @@ class Camera2Test: public testing::Test { } camera2_device *mDevice; - const camera_metadata_t *mStaticInfo; + camera_metadata_t *mStaticInfo; MetadataQueue mRequests; MetadataQueue mFrames; @@ -342,7 +342,7 @@ TEST_F(Camera2Test, Capture1Raw) { sp<FrameWaiter> rawWaiter = new FrameWaiter(); rawConsumer->setFrameAvailableListener(rawWaiter); - const int32_t *rawResolutions; + int32_t *rawResolutions; size_t rawResolutionsCount; int format = HAL_PIXEL_FORMAT_RAW_SENSOR; @@ -456,7 +456,7 @@ TEST_F(Camera2Test, CaptureBurstRaw) { sp<FrameWaiter> rawWaiter = new FrameWaiter(); rawConsumer->setFrameAvailableListener(rawWaiter); - const int32_t *rawResolutions; + int32_t *rawResolutions; size_t rawResolutionsCount; int format = HAL_PIXEL_FORMAT_RAW_SENSOR; @@ -618,7 +618,7 @@ TEST_F(Camera2Test, Capture1Jpeg) { sp<FrameWaiter> jpegWaiter = new FrameWaiter(); jpegConsumer->setFrameAvailableListener(jpegWaiter); - const int32_t *jpegResolutions; + int32_t *jpegResolutions; size_t jpegResolutionsCount; int format = HAL_PIXEL_FORMAT_BLOB; |