summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorJaimin Bhise <jbhise@codeaurora.org>2015-07-15 12:58:58 +0530
committerJaimin Bhise <jbhise@codeaurora.org>2015-10-29 13:57:25 -0700
commitc1263820a5d1aa97e6427cb6af07bd6af76fcfe8 (patch)
treeed48ccf72262a23e5dc177b8ce1e6bb36ac8957b /src/com/android/camera/VideoModule.java
parentcf50c164afdcb43aa8cb03eb5e450568d6b33512 (diff)
downloadandroid_packages_apps_Snap-c1263820a5d1aa97e6427cb6af07bd6af76fcfe8.tar.gz
android_packages_apps_Snap-c1263820a5d1aa97e6427cb6af07bd6af76fcfe8.tar.bz2
android_packages_apps_Snap-c1263820a5d1aa97e6427cb6af07bd6af76fcfe8.zip
SnapdragonCamera: Fix compilation
1. Address compilation due to compiler upgrade. 2. Comment out video dependencies to enable camera. 3. Fix compilation issue due to IMountService interface change. 4. Comment out ExtendedFace. 5. Remove non-standard video resolutions. 6. Revert "camera: override shutter sound volume" commit 8a50cda8f72738e943904fdf7cae189b2b0a8ea8. Change-Id: I167ab5ff399c4f1d306a1a7ddf94896565c9625a
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index f9a924f4e..489585042 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -294,7 +294,8 @@ public class VideoModule implements CameraModule,
VIDEO_ENCODER_TABLE.put("h263", MediaRecorder.VideoEncoder.H263);
VIDEO_ENCODER_TABLE.put("h264", MediaRecorder.VideoEncoder.H264);
- VIDEO_ENCODER_TABLE.put("h265", MediaRecorder.VideoEncoder.H265);
+//TODO: Add dependency
+// VIDEO_ENCODER_TABLE.put("h265", MediaRecorder.VideoEncoder.H265);
VIDEO_ENCODER_TABLE.put("m4v", MediaRecorder.VideoEncoder.MPEG_4_SP);
VIDEO_ENCODER_TABLE.putDefault(MediaRecorder.VideoEncoder.DEFAULT);
@@ -847,8 +848,8 @@ public class VideoModule implements CameraModule,
}
private boolean is4KEnabled() {
- if (mProfile.quality == CamcorderProfile.QUALITY_2160P ||
- mProfile.quality == CamcorderProfile.QUALITY_4kDCI) {
+ if (mProfile.quality == CamcorderProfile.QUALITY_2160P /*||
+ mProfile.quality == CamcorderProfile.QUALITY_4kDCI*/) {
return true;
} else {
return false;
@@ -910,7 +911,8 @@ public class VideoModule implements CameraModule,
boolean supported = false;
List<VideoEncoderCap> videoEncoders = EncoderCapabilities.getVideoEncoders();
for (VideoEncoderCap videoEncoder: videoEncoders) {
- if (videoEncoder.mCodec == mVideoEncoder) {
+//TODO: How to handle HFRFrameWidth and HFRFrameHeight
+/* if (videoEncoder.mCodec == mVideoEncoder) {
int maxBitrate = (videoEncoder.mMaxHFRFrameWidth *
videoEncoder.mMaxHFRFrameHeight *
videoEncoder.mMaxHFRMode);
@@ -919,6 +921,7 @@ public class VideoModule implements CameraModule,
}
break;
}
+*/
}
return supported;
@@ -1749,7 +1752,7 @@ public class VideoModule implements CameraModule,
Log.v(TAG, "pauseVideoRecording");
mMediaRecorderPausing = true;
mRecordingTotalTime += SystemClock.uptimeMillis() - mRecordingStartTime;
- mMediaRecorder.pause();
+ //mMediaRecorder.pause();
}
private void resumeVideoRecording() {
@@ -2128,6 +2131,7 @@ public class VideoModule implements CameraModule,
List<VideoEncoderCap> videoEncoders = EncoderCapabilities.getVideoEncoders();
for (VideoEncoderCap videoEncoder: videoEncoders) {
if (videoEncoder.mCodec == mVideoEncoder){
+/* TODO:
int maxBitrate = (videoEncoder.mMaxHFRFrameWidth *
videoEncoder.mMaxHFRFrameHeight *
videoEncoder.mMaxHFRMode);
@@ -2146,6 +2150,7 @@ public class VideoModule implements CameraModule,
}
}
break;
+*/
}
}
if ("hfr".equals(HighFrameRate.substring(0,3))) {