Some minor polishing.
Change-Id: I2e8f2bf3671e9676f115aaa894684618087e979d
This commit is contained in:
@@ -234,7 +234,8 @@ void CallbackNotifier::onNextFrameAvailable(const void* frame,
|
|||||||
mNotifyCB(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mCBOpaque);
|
mNotifyCB(CAMERA_MSG_RAW_IMAGE_NOTIFY, 0, 0, mCBOpaque);
|
||||||
}
|
}
|
||||||
if (isMessageEnabled(CAMERA_MSG_COMPRESSED_IMAGE)) {
|
if (isMessageEnabled(CAMERA_MSG_COMPRESSED_IMAGE)) {
|
||||||
/* Compress the frame to JPEG. TODO: Make sure that frame is NV21! */
|
/* Compress the frame to JPEG. Note that when taking pictures, we
|
||||||
|
* have requested camera device to provide us with NV21 frames. */
|
||||||
NV21JpegCompressor compressor;
|
NV21JpegCompressor compressor;
|
||||||
status_t res =
|
status_t res =
|
||||||
compressor.compressRawImage(frame, camera_dev->getFrameWidth(),
|
compressor.compressRawImage(frame, camera_dev->getFrameWidth(),
|
||||||
|
|||||||
Reference in New Issue
Block a user