Permalink
Browse files

fix camera preview on qsd8k

Change-Id: I0b89becf976d32da8e6738de0bd0948b43cbb2e3
  • Loading branch information...
1 parent 5d6c883 commit 88cca5b5247c706a3e0b652679727fcdd8d50734 @kushdeck kushdeck committed with drewis Mar 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 QcomCamera.cpp
View
@@ -210,7 +210,7 @@ CameraHAL_HandlePreviewData(const sp<IMemory>& dataPtr,
ssize_t offset;
size_t size;
int32_t previewFormat = MDP_Y_CBCR_H2V2;
- int32_t destFormat = MDP_RGBA_8888;
+ int32_t destFormat = MDP_RGBX_8888;
status_t retVal;
sp<IMemoryHeap> mHeap = dataPtr->getMemory(&offset,
@@ -222,7 +222,7 @@ CameraHAL_HandlePreviewData(const sp<IMemory>& dataPtr,
retVal = mWindow->set_buffers_geometry(mWindow,
previewWidth, previewHeight,
- HAL_PIXEL_FORMAT_RGBA_8888);
+ HAL_PIXEL_FORMAT_RGBX_8888);
if (retVal == NO_ERROR) {
int32_t stride;
buffer_handle_t *bufHandle = NULL;

0 comments on commit 88cca5b

Please sign in to comment.