galaxys2: camera: add video snap param and set to "false"
Change-Id: I87e081f3269562df597c927537f270acdf8720c4
This commit is contained in:
parent
e4cfa197f1
commit
07a0b80580
@ -77,6 +77,9 @@ struct exynos_camera_preset exynos_camera_presets_galaxys2[] = {
|
|||||||
.jpeg_thumbnail_quality = 100,
|
.jpeg_thumbnail_quality = 100,
|
||||||
.jpeg_quality = 90,
|
.jpeg_quality = 90,
|
||||||
|
|
||||||
|
.video_snapshot_supported = 0,
|
||||||
|
.full_video_snap_supported = 0,
|
||||||
|
|
||||||
.recording_size = "720x480",
|
.recording_size = "720x480",
|
||||||
.recording_size_values = "1920x1080,1280x720,720x480,640x480",
|
.recording_size_values = "1920x1080,1280x720,720x480,640x480",
|
||||||
.recording_format = "yuv420sp",
|
.recording_format = "yuv420sp",
|
||||||
@ -146,6 +149,9 @@ struct exynos_camera_preset exynos_camera_presets_galaxys2[] = {
|
|||||||
.jpeg_thumbnail_quality = 100,
|
.jpeg_thumbnail_quality = 100,
|
||||||
.jpeg_quality = 90,
|
.jpeg_quality = 90,
|
||||||
|
|
||||||
|
.video_snapshot_supported = 0,
|
||||||
|
.full_video_snap_supported = 0,
|
||||||
|
|
||||||
.recording_size = "640x480",
|
.recording_size = "640x480",
|
||||||
.recording_size_values = "640x480",
|
.recording_size_values = "640x480",
|
||||||
.recording_format = "yuv420sp",
|
.recording_format = "yuv420sp",
|
||||||
@ -365,6 +371,16 @@ int exynos_camera_params_init(struct exynos_camera *exynos_camera, int id)
|
|||||||
exynos_param_int_set(exynos_camera, "jpeg-quality",
|
exynos_param_int_set(exynos_camera, "jpeg-quality",
|
||||||
exynos_camera->config->presets[id].params.jpeg_quality);
|
exynos_camera->config->presets[id].params.jpeg_quality);
|
||||||
|
|
||||||
|
if (exynos_camera->config->presets[id].params.video_snapshot_supported == 1)
|
||||||
|
exynos_param_string_set(exynos_camera, "video-snapshot-supported", "true");
|
||||||
|
else
|
||||||
|
exynos_param_string_set(exynos_camera, "video-snapshot-supported", "false");
|
||||||
|
|
||||||
|
if (exynos_camera->config->presets[id].params.full_video_snap_supported == 1)
|
||||||
|
exynos_param_string_set(exynos_camera, "full-video-snap-supported", "true");
|
||||||
|
else
|
||||||
|
exynos_param_string_set(exynos_camera, "full-video-snap-supported", "false");
|
||||||
|
|
||||||
// Recording
|
// Recording
|
||||||
exynos_param_string_set(exynos_camera, "video-size",
|
exynos_param_string_set(exynos_camera, "video-size",
|
||||||
exynos_camera->config->presets[id].params.recording_size);
|
exynos_camera->config->presets[id].params.recording_size);
|
||||||
|
@ -98,6 +98,9 @@ struct exynos_camera_params {
|
|||||||
int jpeg_thumbnail_quality;
|
int jpeg_thumbnail_quality;
|
||||||
int jpeg_quality;
|
int jpeg_quality;
|
||||||
|
|
||||||
|
int video_snapshot_supported;
|
||||||
|
int full_video_snap_supported;
|
||||||
|
|
||||||
char *recording_size;
|
char *recording_size;
|
||||||
char *recording_size_values;
|
char *recording_size_values;
|
||||||
char *recording_format;
|
char *recording_format;
|
||||||
|
Loading…
Reference in New Issue
Block a user