Loading _docs/history.html +1 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ Version 1.43.3 (Work in progress) FIXED Fixed some crashes. ADDED Added video capture rate, capture rate factor and high speed info to About debug dialog. UPDATED Fix toast message if slow motion video fails. Version 1.43.2 (2018/04/13) Loading app/src/main/java/net/sourceforge/opencamera/Preview/Preview.java +16 −4 Original line number Diff line number Diff line Loading @@ -2796,7 +2796,10 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu CamcorderProfile cam_profile; int cameraId = camera_controller.getCameraId(); if( force4k ) { // video_high_speed should only be for Camera2, where we don't support force4k option, but // put the check here just in case - don't want to be forcing 4K resolution if high speed // frame rate! if( force4k && !video_high_speed ) { if( MyDebug.LOG ) Log.d(TAG, "force 4K UHD video"); cam_profile = CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); Loading Loading @@ -4034,7 +4037,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu } public String getErrorFeatures(VideoProfile profile) { boolean was_4k = false, was_bitrate = false, was_fps = false; boolean was_4k = false, was_bitrate = false, was_fps = false, was_slow_motion = false; if( profile.videoFrameWidth == 3840 && profile.videoFrameHeight == 2160 && applicationInterface.getForce4KPref() ) { was_4k = true; } Loading @@ -4043,11 +4046,14 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu was_bitrate = true; } String fps_value = applicationInterface.getVideoFPSPref(); if( !fps_value.equals("default") ) { if( applicationInterface.getVideoCaptureRateFactor() < 1.0f-1.0e-5f ) { was_slow_motion = true; } else if( !fps_value.equals("default") ) { was_fps = true; } String features = ""; if( was_4k || was_bitrate || was_fps ) { if( was_4k || was_bitrate || was_fps || was_slow_motion ) { if( was_4k ) { features = "4K UHD"; } Loading @@ -4063,6 +4069,12 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu else features += "/Frame rate"; } if( was_slow_motion ) { if( features.length() == 0 ) features = "Slow motion"; else features += "/Slow motion"; } } return features; } Loading Loading
_docs/history.html +1 −0 Original line number Diff line number Diff line Loading @@ -45,6 +45,7 @@ Version 1.43.3 (Work in progress) FIXED Fixed some crashes. ADDED Added video capture rate, capture rate factor and high speed info to About debug dialog. UPDATED Fix toast message if slow motion video fails. Version 1.43.2 (2018/04/13) Loading
app/src/main/java/net/sourceforge/opencamera/Preview/Preview.java +16 −4 Original line number Diff line number Diff line Loading @@ -2796,7 +2796,10 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu CamcorderProfile cam_profile; int cameraId = camera_controller.getCameraId(); if( force4k ) { // video_high_speed should only be for Camera2, where we don't support force4k option, but // put the check here just in case - don't want to be forcing 4K resolution if high speed // frame rate! if( force4k && !video_high_speed ) { if( MyDebug.LOG ) Log.d(TAG, "force 4K UHD video"); cam_profile = CamcorderProfile.get(cameraId, CamcorderProfile.QUALITY_HIGH); Loading Loading @@ -4034,7 +4037,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu } public String getErrorFeatures(VideoProfile profile) { boolean was_4k = false, was_bitrate = false, was_fps = false; boolean was_4k = false, was_bitrate = false, was_fps = false, was_slow_motion = false; if( profile.videoFrameWidth == 3840 && profile.videoFrameHeight == 2160 && applicationInterface.getForce4KPref() ) { was_4k = true; } Loading @@ -4043,11 +4046,14 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu was_bitrate = true; } String fps_value = applicationInterface.getVideoFPSPref(); if( !fps_value.equals("default") ) { if( applicationInterface.getVideoCaptureRateFactor() < 1.0f-1.0e-5f ) { was_slow_motion = true; } else if( !fps_value.equals("default") ) { was_fps = true; } String features = ""; if( was_4k || was_bitrate || was_fps ) { if( was_4k || was_bitrate || was_fps || was_slow_motion ) { if( was_4k ) { features = "4K UHD"; } Loading @@ -4063,6 +4069,12 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu else features += "/Frame rate"; } if( was_slow_motion ) { if( features.length() == 0 ) features = "Slow motion"; else features += "/Slow motion"; } } return features; } Loading