Skip to content

Commit

Permalink
fix: Fix ImageAnalysis is not supported when Extension is enabled e…
Browse files Browse the repository at this point in the history
…rror (#2770)
  • Loading branch information
mrousavy authored Apr 21, 2024
1 parent fc6a19f commit aec14b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ class CameraSession(private val context: Context, private val callback: Callback

// Wrap input with a vendor extension if needed (see https://developer.android.com/media/camera/camera-extensions)
val isStreamingHDR = useCases.any { !it.currentConfig.dynamicRange.isSDR }
val needsImageAnalysis = codeScannerOutput != null
val needsImageAnalysis = codeScannerOutput != null || frameProcessorOutput != null
val photoOptions = configuration.photo as? CameraConfiguration.Output.Enabled<CameraConfiguration.Photo>
val enableHdrExtension = photoOptions != null && photoOptions.config.enableHdr
if (enableHdrExtension) {
Expand Down

0 comments on commit aec14b2

Please sign in to comment.