camera: manage picture width and height separately
required for 3264x2448 <-> 3264x1968 Change-Id: I729402e208dccee8cf1d1368c1d2d0dcd1f08a3d
This commit is contained in:
parent
93861e1fda
commit
8f1e7b0333
@ -587,15 +587,12 @@ int exynos_camera_params_apply(struct exynos_camera *exynos_camera)
|
||||
if (picture_size_string != NULL) {
|
||||
sscanf(picture_size_string, "%dx%d", &picture_width, &picture_height);
|
||||
|
||||
if (picture_width != 0 && picture_height != 0 &&
|
||||
picture_width != exynos_camera->picture_width &&
|
||||
picture_height != exynos_camera->picture_height) {
|
||||
if (picture_width != 0 && picture_width != exynos_camera->picture_width)
|
||||
exynos_camera->picture_width = picture_width;
|
||||
if (picture_height != 0 && picture_height != exynos_camera->picture_height)
|
||||
exynos_camera->picture_height = picture_height;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
picture_format_string = exynos_param_string_get(exynos_camera, "picture-format");
|
||||
if (picture_format_string != NULL) {
|
||||
if (strcmp(picture_format_string, "jpeg") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user