mirror of
https://github.com/pjgowtham/android_device_realme_ferrarri.git
synced 2025-07-01 23:35:40 +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. -->
|
<!-- Enable auxiliary cameras selector. -->
|
||||||
<bool name="config_enableAuxCameras">true</bool>
|
<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
|
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
|
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
|
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:
|
Valid values of resolution are:
|
||||||
- "sd" (480p)
|
- "sd" (480p)
|
||||||
- "hd" (720p)
|
- "hd" (720p)
|
||||||
- "fhd" (1080p)
|
- "fhd" (1080p)
|
||||||
- "uhd" (2160p)
|
- "uhd" (2160p)
|
||||||
Valid values of framerate are:
|
Valid values of frame rate are:
|
||||||
- "24"
|
- "24"
|
||||||
- "30"
|
- "30"
|
||||||
- "60"
|
- "60"
|
||||||
- "120"
|
- "120"
|
||||||
|
Additionally you can prepend `-` to frame rate to mark it as unsupported.
|
||||||
Example:
|
Example:
|
||||||
<string-array name="config_additionalVideoConfigurations">
|
<string-array name="config_additionalVideoConfigurations">
|
||||||
<item>0</item> <item>sd|hd|fhd</item> <item>60|120</item>
|
<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>
|
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
-->
|
-->
|
||||||
<string-array name="config_additionalVideoConfigurations">
|
<string-array name="config_additionalVideoConfigurations">
|
||||||
<item>0</item> <item>sd|hd|fhd|uhd</item> <item>60|120</item>
|
<!-- Rear -->
|
||||||
<item>1</item> <item>sd|hd|fhd</item> <item>60</item>
|
<item>0</item> <item>sd|hd|fhd|uhd</item> <item>60</item>
|
||||||
<item>2</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>
|
</string-array>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user