Skip to content

Commit

Permalink
smdk4412-common: camera: Handle preview_video_size seperately
Browse files Browse the repository at this point in the history
Thanks Haxynox/device_samsung_smdk4412-common@0159df9

Change-Id: I028c27d1570a0e0c93264068509c0fab3bea0815
Signed-off-by: filiprrs <[email protected]>
  • Loading branch information
filiprrs committed Aug 2, 2017
1 parent 5989a07 commit 7fa112b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions camera/exynos_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ struct exynos_camera_preset exynos_camera_presets_smdk4x12[] = {
.metering = METERING_CENTER,
.params = {
.preview_size_values = "960x720,1280x720,640x480,352x288,320x240",
.preview_size = "1280x720",
.preview_size = "960x720",
.preview_video_size = "1280x720",
.preview_format_values = "yuv420sp,rgb565",
.preview_format = "yuv420sp",
.preview_frame_rate_values = "30,20,15",
Expand Down Expand Up @@ -180,7 +181,8 @@ struct exynos_camera_preset exynos_camera_presets_smdk4x12[] = {
.metering = METERING_CENTER,
.params = {
.preview_size_values = "1280x720,960x720,640x480,320x240,704x704,320x320",
.preview_size = "1280x720",
.preview_size = "960x720",
.preview_video_size = "1280x720",
.preview_format_values = "yuv420sp,rgb565",
.preview_format = "yuv420sp",
.preview_frame_rate_values = "30,20,15,8",
Expand Down Expand Up @@ -421,7 +423,7 @@ int exynos_camera_params_init(struct exynos_camera *exynos_camera, int id)
// Recording preview

exynos_param_string_set(exynos_camera, "preferred-preview-size-for-video",
exynos_camera->config->presets[id].params.preview_size);
exynos_camera->config->presets[id].params.preview_video_size);

// Preview

Expand Down
1 change: 1 addition & 0 deletions camera/exynos_camera.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ struct exynos_camera_videosnapshot_resolution {
struct exynos_camera_params {
char *preview_size_values;
char *preview_size;
char *preview_video_size;
char *preview_format_values;
char *preview_format;
char *preview_frame_rate_values;
Expand Down

0 comments on commit 7fa112b

Please sign in to comment.