summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2011-10-18 18:09:46 -0700
committerEino-Ville Talvala <etalvala@google.com>2011-10-18 18:09:46 -0700
commita9b3f482c555729ee87daa2055eec19f1290e1e0 (patch)
tree9dda21f24b26154cba75466767e94130793bc1ef /src/com/android/camera
parent967d36c02eca4ae3af6dcd93ac9c7ffd6401aea5 (diff)
downloadLegacyCamera-a9b3f482c555729ee87daa2055eec19f1290e1e0.zip
LegacyCamera-a9b3f482c555729ee87daa2055eec19f1290e1e0.tar.gz
LegacyCamera-a9b3f482c555729ee87daa2055eec19f1290e1e0.tar.bz2
Use video capture intent quality when recording with effects.
Previously, effects always used 480p quality. When used for messaging, the intent requests a lower quality, and it needs to be used instead. Bug: 5465146 Change-Id: Ib2ae772de35ad84b8c19f961c71fd9ae43dd4426
Diffstat (limited to 'src/com/android/camera')
-rwxr-xr-xsrc/com/android/camera/VideoCamera.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 6a251d4..353b540 100755
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -723,8 +723,10 @@ public class VideoCamera extends ActivityBase
null);
}
} else {
- // Set quality to 480p for effects
- quality = CamcorderProfile.QUALITY_480P;
+ // Set quality to 480p for effects, unless intent is overriding it
+ if (!intent.hasExtra(MediaStore.EXTRA_VIDEO_QUALITY)) {
+ quality = CamcorderProfile.QUALITY_480P;
+ }
// On initial startup, can get here before indicator control is
// enabled. In that case, UI quality override handled in
// initializeIndicatorControl.