Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4fe1356 authored by SanthoshHE's avatar SanthoshHE Committed by Steve Kondik
Browse files

Camera: Video HDR Feature Integration.

Added framework support for camera applications to query supported
video HDR modes and set the required mode.

Change-Id: Ie318e586838a2f035e59e30fa51af35b52f7c886
parent 98d10e81
Loading
Loading
Loading
Loading
+30 −0
Original line number Diff line number Diff line
@@ -4075,6 +4075,7 @@ public class Camera {
        private static final String KEY_QC_ZSL = "zsl";
        private static final String KEY_QC_CAMERA_MODE = "camera-mode";
        private static final String KEY_QC_VIDEO_HIGH_FRAME_RATE = "video-hfr";
        private static final String KEY_QC_VIDEO_HDR = "video-hdr";
        /** @hide
        * KEY_QC_AE_BRACKET_HDR
        **/
@@ -4377,6 +4378,17 @@ public class Camera {
            return split(str);
         }

         /** @hide
         * Gets the supported Video HDR modes.
         *
         * @return a List of Video HDR_OFF/OFF string constants. null if
         * Video HDR mode setting is not supported.
         */
         public List<String> getSupportedVideoHDRModes() {
            String str = get(KEY_QC_VIDEO_HDR + SUPPORTED_VALUES_SUFFIX);
            return split(str);
         }

         /** @hide
         * Gets the supported HFR modes.
         *
@@ -4853,6 +4865,24 @@ public class Camera {
            set(KEY_QC_VIDEO_HIGH_FRAME_RATE, hfr);
         }

         /** @hide
         * Gets the current Video HDR Mode.
         *
         * @return Video HDR mode value
         */
         public String getVideoHDRMode() {
            return get(KEY_QC_VIDEO_HDR);
         }

         /** @hide
         * Sets the current Video HDR Mode.
         *
         * @return null
         */
         public void setVideoHDRMode(String videohdr) {
            set(KEY_QC_VIDEO_HDR, videohdr);
         }

         /** @hide
         * Gets the current DENOISE  setting.
         *