Update supported frame sizes for fake camera

Camera framework requires 352x288, and 320x240 frames for video preview and video
recording. If these dimensions are missing in camera properties the camera app
may abort when entering video mode, or start video recording.

Also truned off switching fake frames, leaving only the checker board.

Change-Id: I63d145c967f1ba83992141ec97700f094a9d53a7
This commit is contained in:
Vladimir Chtchetkine
2011-11-22 15:11:29 -08:00
parent bbd339a3d3
commit 6f00e7fc48
2 changed files with 7 additions and 3 deletions

View File

@@ -96,8 +96,12 @@ status_t EmulatedFakeCamera::Initialize()
* Parameters provided by the camera device.
*/
mParameters.set(CameraParameters::KEY_SUPPORTED_PICTURE_SIZES, "640x480");
mParameters.set(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES, "640x480");
/* 352x288 and 320x240 frame dimensions are required by the framework for
* video mode preview and video recording. */
mParameters.set(CameraParameters::KEY_SUPPORTED_PICTURE_SIZES,
"640x480,352x288,320x240");
mParameters.set(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZES,
"640x480,352x288,320x240");
mParameters.setPreviewSize(640, 480);
mParameters.setPictureSize(640, 480);