mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2025-07-01 07:15:34 +00:00
ferrarri: Update supported framerates for camera
* Stock oplus camera does not expose 480p videos on any cameras and they are not needed. * Rear Main camera: 60fps video is supported on oplus camera but unexposed, so lets expose it. * Front cam: Only HD and FHD qualities are exposed and only upto 30fps in oplus camera. The same modes are exposed properly. * UW: Supports upto HD FHD 30|60 fps but with shitty quality even in oplus camera. Oplus camera switches to main lens if 4k quality is selected. 60fps remains unexposed, so lets expose it * Microscope supports HD 30|60 FPS modes. But unsupported FHD quality is exposed too.
This commit is contained in:
parent
e8634805f3
commit
b6ee5b297f
@ -7,32 +7,39 @@
|
||||
<!-- Enable auxiliary cameras selector. -->
|
||||
<bool name="config_enableAuxCameras">true</bool>
|
||||
|
||||
<!-- An array of triplets made of (camera ID, qualities, framerates).
|
||||
<!-- An array of triplets made of (camera ID, qualities, frame rates).
|
||||
These video modes will be added to the available
|
||||
quality/framerate combinations of a camera device.
|
||||
quality/frame rate combinations of a camera device.
|
||||
Make sure the device is able to handle those configurations
|
||||
and maintain a stable framerate at any condition.
|
||||
and maintain a stable frame rate at any condition.
|
||||
Note that you can't add video qualities that aren't
|
||||
exposed by the camera, only new framerates.
|
||||
exposed by the camera, only new frame rates.
|
||||
Valid values of resolution are:
|
||||
- "sd" (480p)
|
||||
- "hd" (720p)
|
||||
- "fhd" (1080p)
|
||||
- "uhd" (2160p)
|
||||
Valid values of framerate are:
|
||||
Valid values of frame rate are:
|
||||
- "24"
|
||||
- "30"
|
||||
- "60"
|
||||
- "120"
|
||||
Additionally you can prepend `-` to frame rate to mark it as unsupported.
|
||||
Example:
|
||||
<string-array name="config_additionalVideoConfigurations">
|
||||
<item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
|
||||
<item>0</item> <item>uhd</item> <item>-60</item>
|
||||
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
|
||||
</string-array>
|
||||
-->
|
||||
<string-array name="config_additionalVideoConfigurations">
|
||||
<item>0</item> <item>sd|hd|fhd|uhd</item> <item>60|120</item>
|
||||
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
|
||||
<item>2</item> <item>sd|hd|fhd|uhd</item> <item>60</item>
|
||||
<!-- Rear -->
|
||||
<item>0</item> <item>sd|hd|fhd|uhd</item> <item>60</item>
|
||||
<!-- Front
|
||||
<item>1</item> <item>sd|hd|fhd</item> <item>30</item> -->
|
||||
<!-- UW -->
|
||||
<item>2</item> <item>sd|hd|fhd</item> <item>60</item>
|
||||
<!-- Microscope
|
||||
<item>3</item> <item>sd|hd</item> <item>30|60</item> -->
|
||||
</string-array>
|
||||
</resources>
|
||||
|
Loading…
x
Reference in New Issue
Block a user