frameworks/base
修订版 | 29cf527717c2af2863b8edb9d65fa759d008677f (tree) |
---|---|
时间 | 2010-02-27 17:47:44 |
作者 | Wallace.Wang <Wallace1.Wang@gmai...> |
Commiter | Chih-Wei Huang |
make the record colorful and show the preview when recording
@@ -126,7 +126,7 @@ int CameraHardware::previewThread() | ||
126 | 126 | camera.GrabRawFrame(mRawHeap->getBase()); |
127 | 127 | |
128 | 128 | if (mRecordingCallback) { |
129 | - yuyv422_to_yuv420sp((unsigned char *)mRawHeap->getBase(), | |
129 | + yuyv422_to_yuv420((unsigned char *)mRawHeap->getBase(), | |
130 | 130 | (unsigned char *)mRecordingHeap->getBase(), |
131 | 131 | PREVIEW_WIDTH, PREVIEW_HEIGHT); |
132 | 132 | nsecs_t timeStamp = systemTime(SYSTEM_TIME_MONOTONIC); |
@@ -135,6 +135,7 @@ int CameraHardware::previewThread() | ||
135 | 135 | camera.convert((unsigned char *) mRawHeap->getBase(), |
136 | 136 | (unsigned char *) mPreviewHeap->getBase(), |
137 | 137 | PREVIEW_WIDTH, PREVIEW_HEIGHT); |
138 | + mPreviewCallback(mRecordingBuffer, mPreviewCallbackCookie); | |
138 | 139 | |
139 | 140 | if (UNLIKELY(mDebugFps)) { |
140 | 141 | showFPS("Recording"); |