commit 1917616430ee66b8e2a73ee3a5ae2b8924dd40df parent a5d63f96caba2fc8b8e7084ea2e95b5ba63e46a1 Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Fri, 24 Nov 2023 22:34:52 +0100 feat(core/camera): hevc recording Diffstat:
3 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/common/src/main/assets/lang/en_US.json b/common/src/main/assets/lang/en_US.json @@ -497,6 +497,10 @@ "force_camera_source_encoding": { "name": "Force Camera Source Encoding", "description": "Forces the camera source encoding" + }, + "hevc_recording": { + "name": "HEVC Recording", + "description": "Uses HEVC (H.265) codec for video recording" } } }, diff --git a/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Camera.kt b/common/src/main/kotlin/me/rhunk/snapenhance/common/config/impl/Camera.kt @@ -44,6 +44,7 @@ class Camera : ConfigContainer() { val customFrameRate = unique("custom_frame_rate", "5", "10", "20", "25", "30", "48", "60", "90", "120" ) { addNotices(FeatureNotice.UNSTABLE); addFlags(ConfigFlag.NO_TRANSLATE) } + val hevcRecording = boolean("hevc_recording") { requireRestart(); addNotices(FeatureNotice.UNSTABLE) } val forceCameraSourceEncoding = boolean("force_camera_source_encoding") val overridePreviewResolution get() = _overridePreviewResolution val overridePictureResolution get() = _overridePictureResolution diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ConfigurationOverride.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/ConfigurationOverride.kt @@ -47,6 +47,7 @@ class ConfigurationOverride : Feature("Configuration Override", loadParams = Fea overrideProperty("STREAK_EXPIRATION_INFO", { context.config.userInterface.streakExpirationInfo.get() }, true) overrideProperty("TRANSCODING_MAX_QUALITY", { context.config.global.forceUploadSourceQuality.get() }, true, isAppExperiment = true) + overrideProperty("CAMERA_ME_ENABLE_HEVC_RECORDING", { context.config.camera.hevcRecording.get() }, true) overrideProperty("MEDIA_RECORDER_MAX_QUALITY_LEVEL", { context.config.camera.forceCameraSourceEncoding.get() }, true) overrideProperty("REDUCE_MY_PROFILE_UI_COMPLEXITY", { context.config.userInterface.mapFriendNameTags.get() }, true) overrideProperty("ENABLE_LONG_SNAP_SENDING", { context.config.global.disableSnapSplitting.get() }, true)