diff options
author | Nipun Kwatra <nkwatra@google.com> | 2010-08-05 21:17:04 -0700 |
---|---|---|
committer | Nipun Kwatra <nkwatra@google.com> | 2010-08-10 16:13:31 -0700 |
commit | 6227fa641518492a6b660c78463da18d9ec8fcd8 (patch) | |
tree | 5a1e119ce65e88fb8a04a8f0f2e235973344d448 /res/drawable-hdpi | |
parent | 80a188c1743205093794a81b021b2ca232423d36 (diff) | |
download | packages_apps_LegacyCamera-6227fa641518492a6b660c78463da18d9ec8fcd8.zip packages_apps_LegacyCamera-6227fa641518492a6b660c78463da18d9ec8fcd8.tar.gz packages_apps_LegacyCamera-6227fa641518492a6b660c78463da18d9ec8fcd8.tar.bz2 |
Added support for time lapse video capture.
Changes in individual files:
VideoCamera.java:
- Added swith to time lapse option in Menu.
- initializeHeadUpDisplay(): sets up display according to the
current mode (timelapse/no timelapse).
- readTimeLapseVideoPreferences(): sets parameters according to
the chosen quality. Eventually this should move to CamcorderProfile
through media_profiles.xml files.
- switchTimeLapseMode(): handles switching between time lapse mode
normal mode.
- Since preview size may be different from video size for HD time lapse
capture, we save the desired preview size in mDesiredPreviewWidth,
mDesiredPreviewHeight and use it for comparison in
resetCameraParameters().
- Time lapse mode is enabled/disabled by calling
mMediaRecorder.setTimeLapseParameters().
CamcorderHeadUpDisplay.java: Constructor now takes in a boolean
(captureTimeLapse) telling whether to enable time lapse quality
options or the normal camcorder quality options.
Camera.java: Moved getOptimalPreviewSize() to Util.java to enable
use from VideoCamera.java. Also needed to pass activity, so that can
use getWindowManager(), getSystemService().
CameraSettings.java: added support for time lapse parameters. The
function getVideoTimeLapseQuality() returns the quality identifier
from the passed in string.
res/: added string, array values for time lapse.
res/xml/video_time_lapse_preferences.xml: contains all the preferences
for time lapse mode.
Change-Id: I194e7bc0b6218aa742d91c859a122de2b953a314
Diffstat (limited to 'res/drawable-hdpi')
-rw-r--r-- | res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_1080p.png | bin | 0 -> 561 bytes |
-rw-r--r-- | res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_720p.png | bin | 0 -> 553 bytes |
-rw-r--r-- | res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_high.png | bin | 0 -> 422 bytes |
-rw-r--r-- | res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_low.png | bin | 0 -> 518 bytes |
4 files changed, 0 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_1080p.png b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_1080p.png Binary files differnew file mode 100644 index 0000000..d2a39e4 --- /dev/null +++ b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_1080p.png diff --git a/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_720p.png b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_720p.png Binary files differnew file mode 100644 index 0000000..5567eb0 --- /dev/null +++ b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_720p.png diff --git a/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_high.png b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_high.png Binary files differnew file mode 100644 index 0000000..ce0cf42 --- /dev/null +++ b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_high.png diff --git a/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_low.png b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_low.png Binary files differnew file mode 100644 index 0000000..cb66c52 --- /dev/null +++ b/res/drawable-hdpi/ic_viewfinder_video_time_lapse_quality_low.png |