feat: Split videoHdr
and photoHdr
into two settings (#2161)
* feat: Split `videoHdr` and `photoHdr` into two settings * fix: Rename all `hdr` * fix: Fix HDR on Android * Update CameraDeviceDetails.kt * Update CameraDeviceDetails.kt * fix: Correctly configure `pixelFormat` AFTER `format` * Update CameraSession+Configuration.swift * fix: Also after format changed
This commit is contained in:
@@ -116,7 +116,8 @@ export interface CameraProps extends ViewProps {
|
||||
*
|
||||
* The format defines the possible values for properties like:
|
||||
* - {@linkcode fps}: `format.minFps`...`format.maxFps`
|
||||
* - {@linkcode hdr}: `format.supportsVideoHDR`
|
||||
* - {@linkcode videoHdr}: `format.supportsVideoHdr`
|
||||
* - {@linkcode photoHdr}: `format.supportsPhotoHdr`
|
||||
* - {@linkcode pixelFormat}: `format.pixelFormats``
|
||||
* - {@linkcode enableDepthData}: `format.supportsDepthCapture``
|
||||
* - {@linkcode videoStabilizationMode}: `format.videoStabilizationModes``
|
||||
@@ -139,11 +140,17 @@ export interface CameraProps extends ViewProps {
|
||||
*/
|
||||
fps?: number
|
||||
/**
|
||||
* Enables or disables HDR streaming.
|
||||
* Enables or disables HDR Video Streaming for Preview, Video and Frame Processor via a 10-bit wide-color pixel format.
|
||||
*
|
||||
* Make sure the given {@linkcode format} supports HDR (see {@linkcode CameraDeviceFormat.supportsVideoHDR format.supportsVideoHDR}).
|
||||
* Make sure the given {@linkcode format} supports HDR (see {@linkcode CameraDeviceFormat.supportsVideoHdr format.supportsVideoHdr}).
|
||||
*/
|
||||
hdr?: boolean
|
||||
videoHdr?: boolean
|
||||
/**
|
||||
* Enables or disables HDR Photo Capture via a double capture routine that combines low- and high exposure photos.
|
||||
*
|
||||
* Make sure the given {@linkcode format} supports HDR (see {@linkcode CameraDeviceFormat.supportsPhotoHdr format.supportsPhotoHdr}).
|
||||
*/
|
||||
photoHdr?: boolean
|
||||
/**
|
||||
* Enables or disables lossless buffer compression for the video stream.
|
||||
* If you only use {@linkcode video} or a {@linkcode frameProcessor}, this
|
||||
|
Reference in New Issue
Block a user