Set more camera parameters initial values.

We will need those values for new camera framework. And change the canned jpeg
image to match the new width and height setting.

Change-Id: I49f8fb63d2b859b9e9f1c5d27657a10203315bb6
This commit is contained in:
Owen Lin
2009-11-24 16:50:54 +08:00
parent 429a8eaccc
commit d82f452fdc
2 changed files with 747 additions and 1558 deletions

View File

@@ -47,11 +47,13 @@ void CameraHardwareStub::initDefaultParameters()
{ {
CameraParameters p; CameraParameters p;
p.setPreviewSize(176, 144); p.set("preview-size-values","320x240");
p.setPreviewSize(320, 240);
p.setPreviewFrameRate(15); p.setPreviewFrameRate(15);
p.setPreviewFormat("yuv422sp"); p.setPreviewFormat("yuv422sp");
p.setPictureSize(kCannedJpegWidth, kCannedJpegHeight); p.set("picture-size-values", "320x240");
p.setPictureSize(320, 240);
p.setPictureFormat("jpeg"); p.setPictureFormat("jpeg");
if (setParameters(p) != NO_ERROR) { if (setParameters(p) != NO_ERROR) {
@@ -356,7 +358,6 @@ status_t CameraHardwareStub::setParameters(const CameraParameters& params)
} }
mParameters = params; mParameters = params;
initHeapLocked(); initHeapLocked();
return NO_ERROR; return NO_ERROR;

File diff suppressed because it is too large Load Diff