Skip to content

🐛 Android: Camera preview aliased/distorted when using Format + Frame Processor simultaneously #3718

@antek-p

Description

@antek-p

What's happening?

When combining a custom format (via useCameraFormat) with a Frame Processor, the camera preview becomes aliased/distorted and loses quality on android. I could reproduce it on two devices.

  • If I remove the useCameraFormat and let the frame processor -> preview looks sharp and correct.
  • If I remove the frame processor & let the useCameraFormat -> preview looks sharp and correct
  • If I use both -> aliasing/distorted

I first noticed this issue in my own app (Expo SDK53, latest version of Vision Camera). To confirm it wasn't specific to my setup, I also built and ran the official example app — and was able to reproduce the exact same aliasing issue there too with the same devices.

See images below (both have a frame processor & format).

Image
Image

Reproduceable Code

import * as React from 'react'
import { useRef, useState, useCallback, useMemo } from 'react'
import type { GestureResponderEvent } from 'react-native'
import { StyleSheet, Text, View } from 'react-native'
import type { PinchGestureHandlerGestureEvent } from 'react-native-gesture-handler'
import { PinchGestureHandler, TapGestureHandler } from 'react-native-gesture-handler'
import type { CameraProps, CameraRuntimeError, PhotoFile, VideoFile } from 'react-native-vision-camera'
import {
  runAtTargetFps,
  useCameraDevice,
  useCameraFormat,
  useFrameProcessor,
  useLocationPermission,
  useMicrophonePermission,
} from 'react-native-vision-camera'
import { Camera } from 'react-native-vision-camera'
import { CONTENT_SPACING, CONTROL_BUTTON_SIZE, MAX_ZOOM_FACTOR, SAFE_AREA_PADDING, SCREEN_HEIGHT, SCREEN_WIDTH } from './Constants'
import Reanimated, { Extrapolate, interpolate, useAnimatedGestureHandler, useAnimatedProps, useSharedValue } from 'react-native-reanimated'
import { useEffect } from 'react'
import { useIsForeground } from './hooks/useIsForeground'
import { StatusBarBlurBackground } from './views/StatusBarBlurBackground'
import { CaptureButton } from './views/CaptureButton'
import { PressableOpacity } from 'react-native-pressable-opacity'
import MaterialIcon from 'react-native-vector-icons/MaterialCommunityIcons'
import IonIcon from 'react-native-vector-icons/Ionicons'
import type { Routes } from './Routes'
import type { NativeStackScreenProps } from '@react-navigation/native-stack'
import { useIsFocused } from '@react-navigation/core'
import { usePreferredCameraDevice } from './hooks/usePreferredCameraDevice'
import { examplePlugin } from './frame-processors/ExamplePlugin'
import { exampleKotlinSwiftPlugin } from './frame-processors/ExampleKotlinSwiftPlugin'

const ReanimatedCamera = Reanimated.createAnimatedComponent(Camera)
Reanimated.addWhitelistedNativeProps({
  zoom: true,
})

const SCALE_FULL_ZOOM = 3

type Props = NativeStackScreenProps<Routes, 'CameraPage'>
export function CameraPage({ navigation }: Props): React.ReactElement {
  const camera = useRef<Camera>(null)
  const [isCameraInitialized, setIsCameraInitialized] = useState(false)
  const microphone = useMicrophonePermission()
  const location = useLocationPermission()
  const zoom = useSharedValue(1)
  const isPressingButton = useSharedValue(false)

  // check if camera page is active
  const isFocussed = useIsFocused()
  const isForeground = useIsForeground()
  const isActive = isFocussed && isForeground

  const [cameraPosition, setCameraPosition] = useState<'front' | 'back'>('back')
  const [enableHdr, setEnableHdr] = useState(false)
  const [flash, setFlash] = useState<'off' | 'on'>('off')
  const [enableNightMode, setEnableNightMode] = useState(false)

  // camera device settings
  const [preferredDevice] = usePreferredCameraDevice()
  let device = useCameraDevice(cameraPosition)

  if (preferredDevice != null && preferredDevice.position === cameraPosition) {
    // override default device with the one selected by the user in settings
    device = preferredDevice
  }

  const [targetFps, setTargetFps] = useState(60)

  const screenAspectRatio = SCREEN_HEIGHT / SCREEN_WIDTH
  const format = useCameraFormat(device, [
    { fps: targetFps },
    { videoAspectRatio: screenAspectRatio },
    { videoResolution: 'max' },
    { photoAspectRatio: screenAspectRatio },
    { photoResolution: 'max' },
  ])

  const fps = Math.min(format?.maxFps ?? 1, targetFps)

  const supportsFlash = device?.hasFlash ?? false
  const supportsHdr = format?.supportsPhotoHdr
  const supports60Fps = useMemo(() => device?.formats.some((f) => f.maxFps >= 60), [device?.formats])
  const canToggleNightMode = device?.supportsLowLightBoost ?? false

  //#region Animated Zoom
  const minZoom = device?.minZoom ?? 1
  const maxZoom = Math.min(device?.maxZoom ?? 1, MAX_ZOOM_FACTOR)

  const cameraAnimatedProps = useAnimatedProps<CameraProps>(() => {
    const z = Math.max(Math.min(zoom.value, maxZoom), minZoom)
    return {
      zoom: z,
    }
  }, [maxZoom, minZoom, zoom])
  //#endregion

  //#region Callbacks
  const setIsPressingButton = useCallback(
    (_isPressingButton: boolean) => {
      isPressingButton.value = _isPressingButton
    },
    [isPressingButton],
  )
  const onError = useCallback((error: CameraRuntimeError) => {
    console.error(error)
  }, [])
  const onInitialized = useCallback(() => {
    console.log('Camera initialized!')
    setIsCameraInitialized(true)
  }, [])
  const onMediaCaptured = useCallback(
    (media: PhotoFile | VideoFile, type: 'photo' | 'video') => {
      console.log(`Media captured! ${JSON.stringify(media)}`)
      navigation.navigate('MediaPage', {
        path: media.path,
        type: type,
      })
    },
    [navigation],
  )
  const onFlipCameraPressed = useCallback(() => {
    setCameraPosition((p) => (p === 'back' ? 'front' : 'back'))
  }, [])
  const onFlashPressed = useCallback(() => {
    setFlash((f) => (f === 'off' ? 'on' : 'off'))
  }, [])
  //#endregion

  //#region Tap Gesture
  const onFocusTap = useCallback(
    ({ nativeEvent: event }: GestureResponderEvent) => {
      if (!device?.supportsFocus) return
      camera.current?.focus({
        x: event.locationX,
        y: event.locationY,
      })
    },
    [device?.supportsFocus],
  )
  const onDoubleTap = useCallback(() => {
    onFlipCameraPressed()
  }, [onFlipCameraPressed])
  //#endregion

  //#region Effects
  useEffect(() => {
    // Reset zoom to it's default everytime the `device` changes.
    zoom.value = device?.neutralZoom ?? 1
  }, [zoom, device])
  //#endregion

  //#region Pinch to Zoom Gesture
  // The gesture handler maps the linear pinch gesture (0 - 1) to an exponential curve since a camera's zoom
  // function does not appear linear to the user. (aka zoom 0.1 -> 0.2 does not look equal in difference as 0.8 -> 0.9)
  const onPinchGesture = useAnimatedGestureHandler<PinchGestureHandlerGestureEvent, { startZoom?: number }>({
    onStart: (_, context) => {
      context.startZoom = zoom.value
    },
    onActive: (event, context) => {
      // we're trying to map the scale gesture to a linear zoom here
      const startZoom = context.startZoom ?? 0
      const scale = interpolate(event.scale, [1 - 1 / SCALE_FULL_ZOOM, 1, SCALE_FULL_ZOOM], [-1, 0, 1], Extrapolate.CLAMP)
      zoom.value = interpolate(scale, [-1, 0, 1], [minZoom, startZoom, maxZoom], Extrapolate.CLAMP)
    },
  })
  //#endregion

  useEffect(() => {
    const f =
      format != null
        ? `(${format.photoWidth}x${format.photoHeight} photo / ${format.videoWidth}x${format.videoHeight}@${format.maxFps} video @ ${fps}fps)`
        : undefined
    console.log(`Camera: ${device?.name} | Format: ${f}`)
  }, [device?.name, format, fps])

  useEffect(() => {
    location.requestPermission()
  }, [location])

  const frameProcessor = useFrameProcessor((frame) => {
    'worklet'

    runAtTargetFps(10, () => {
      'worklet'
      console.log(`${frame.timestamp}: ${frame.width}x${frame.height} ${frame.pixelFormat} Frame (${frame.orientation})`)
      examplePlugin(frame)
      exampleKotlinSwiftPlugin(frame)
    })
  }, [])

  const videoHdr = format?.supportsVideoHdr && enableHdr
  const photoHdr = format?.supportsPhotoHdr && enableHdr && !videoHdr

  return (
    <View style={styles.container}>
      {device != null ? (
        <PinchGestureHandler onGestureEvent={onPinchGesture} enabled={isActive}>
          <Reanimated.View onTouchEnd={onFocusTap} style={StyleSheet.absoluteFill}>
            <TapGestureHandler onEnded={onDoubleTap} numberOfTaps={2}>
              <ReanimatedCamera
                style={StyleSheet.absoluteFill}
                device={device}
                isActive={isActive}
                ref={camera}
                onInitialized={onInitialized}
                onError={onError}
                onBytesWrittenVideo={(bytes) => console.log(`Bytes written: ${bytes / 1024 / 1024} MB!`)}
                onStarted={() => console.log('Camera started!')}
                onStopped={() => console.log('Camera stopped!')}
                onPreviewStarted={() => console.log('Preview started!')}
                onPreviewStopped={() => console.log('Preview stopped!')}
                onOutputOrientationChanged={(o) => console.log(`Output orientation changed to ${o}!`)}
                onPreviewOrientationChanged={(o) => console.log(`Preview orientation changed to ${o}!`)}
                onUIRotationChanged={(degrees) => console.log(`UI Rotation changed: ${degrees}°`)}
                format={format}
                fps={fps}
                photoHdr={photoHdr}
                videoHdr={videoHdr}
                photoQualityBalance="quality"
                lowLightBoost={device.supportsLowLightBoost && enableNightMode}
                enableZoomGesture={false}
                animatedProps={cameraAnimatedProps}
                exposure={0}
                enableFpsGraph={true}
                outputOrientation="device"
                photo={true}
                video={true}
                audio={microphone.hasPermission}
                enableLocation={location.hasPermission}
                frameProcessor={frameProcessor}
              />
            </TapGestureHandler>
          </Reanimated.View>
        </PinchGestureHandler>
      ) : (
        <View style={styles.emptyContainer}>
          <Text style={styles.text}>Your phone does not have a Camera.</Text>
        </View>
      )}

      <CaptureButton
        style={styles.captureButton}
        camera={camera}
        onMediaCaptured={onMediaCaptured}
        cameraZoom={zoom}
        minZoom={minZoom}
        maxZoom={maxZoom}
        flash={supportsFlash ? flash : 'off'}
        enabled={isCameraInitialized && isActive}
        setIsPressingButton={setIsPressingButton}
      />

      <StatusBarBlurBackground />

      <View style={styles.rightButtonRow}>
        <PressableOpacity style={styles.button} onPress={onFlipCameraPressed} disabledOpacity={0.4}>
          <IonIcon name="camera-reverse" color="white" size={24} />
        </PressableOpacity>
        {supportsFlash && (
          <PressableOpacity style={styles.button} onPress={onFlashPressed} disabledOpacity={0.4}>
            <IonIcon name={flash === 'on' ? 'flash' : 'flash-off'} color="white" size={24} />
          </PressableOpacity>
        )}
        {supports60Fps && (
          <PressableOpacity style={styles.button} onPress={() => setTargetFps((t) => (t === 30 ? 60 : 30))}>
            <Text style={styles.text}>{`${targetFps}\nFPS`}</Text>
          </PressableOpacity>
        )}
        {supportsHdr && (
          <PressableOpacity style={styles.button} onPress={() => setEnableHdr((h) => !h)}>
            <MaterialIcon name={enableHdr ? 'hdr' : 'hdr-off'} color="white" size={24} />
          </PressableOpacity>
        )}
        {canToggleNightMode && (
          <PressableOpacity style={styles.button} onPress={() => setEnableNightMode(!enableNightMode)} disabledOpacity={0.4}>
            <IonIcon name={enableNightMode ? 'moon' : 'moon-outline'} color="white" size={24} />
          </PressableOpacity>
        )}
        <PressableOpacity style={styles.button} onPress={() => navigation.navigate('Devices')}>
          <IonIcon name="settings-outline" color="white" size={24} />
        </PressableOpacity>
        <PressableOpacity style={styles.button} onPress={() => navigation.navigate('CodeScannerPage')}>
          <IonIcon name="qr-code-outline" color="white" size={24} />
        </PressableOpacity>
      </View>
    </View>
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: 'black',
  },
  captureButton: {
    position: 'absolute',
    alignSelf: 'center',
    bottom: SAFE_AREA_PADDING.paddingBottom,
  },
  button: {
    marginBottom: CONTENT_SPACING,
    width: CONTROL_BUTTON_SIZE,
    height: CONTROL_BUTTON_SIZE,
    borderRadius: CONTROL_BUTTON_SIZE / 2,
    backgroundColor: 'rgba(140, 140, 140, 0.3)',
    justifyContent: 'center',
    alignItems: 'center',
  },
  rightButtonRow: {
    position: 'absolute',
    right: SAFE_AREA_PADDING.paddingRight,
    top: SAFE_AREA_PADDING.paddingTop,
  },
  text: {
    color: 'white',
    fontSize: 11,
    fontWeight: 'bold',
    textAlign: 'center',
  },
  emptyContainer: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
  },
})

Relevant log output

Initializing VisionCameraProxy...
2026-03-11 10:56:45.961 26770-26855 VisionCameraProxy       com.mrousavy.camera.example          I  Creating Worklet Context...
2026-03-11 10:56:45.962 26770-26855 VisionCameraProxy       com.mrousavy.camera.example          I  Worklet Context created!
2026-03-11 10:56:45.964 26770-26855 ReactNativeJS           com.mrousavy.camera.example          I  Re-rendering Navigator. Camera: granted | Microphone: granted
2026-03-11 10:56:46.014 26770-26855 nativeloader            com.mrousavy.camera.example          D  Load /data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!/lib/arm64-v8a/libreanimated.so using class loader ns clns-10 (caller=/data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!classes6.dex): ok
2026-03-11 10:56:46.014 26770-26855 .camera.example         com.mrousavy.camera.example          W  CheckJNI: method to register "installJSIBindings" not in the given class. This is slow, consider changing your RegisterNatives calls.
2026-03-11 10:56:46.096 26770-26770 nativeloader            com.mrousavy.camera.example          D  Load /data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!/lib/arm64-v8a/libreact_featureflagsjni.so using class loader ns clns-10 (caller=/data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!classes6.dex): ok
2026-03-11 10:56:46.097 26770-26855 nativeloader            com.mrousavy.camera.example          D  Load /data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!/lib/arm64-v8a/librnscreens.so using class loader ns clns-10 (caller=/data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!classes2.dex): ok
2026-03-11 10:56:46.120 26770-26855 MMKV                    com.mrousavy.camera.example          I  Loading C++ library...
2026-03-11 10:56:46.120 26770-26855 nativeloader            com.mrousavy.camera.example          D  Load /data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!/lib/arm64-v8a/libreactnativemmkv.so using class loader ns clns-10 (caller=/data/app/~~Yj8EHcAzSMnVgvrsCtb8Og==/com.mrousavy.camera.example-ZDvHeQv6HL50Ru1wOevAhA==/base.apk!classes2.dex): ok
2026-03-11 10:56:46.120 26770-26855 MMKV                    com.mrousavy.camera.example          I  Installing MMKV JSI Bindings for MMKV root directory: /data/user/0/com.mrousavy.camera.example/files/mmkv
2026-03-11 10:56:46.121 26770-26855 MMKV                    com.mrousavy.camera.example          I  Successfully installed MMKV JSI Bindings!
2026-03-11 10:56:46.121 26770-26855 RNMMKV                  com.mrousavy.camera.example          I  Creating MMKV instance "mmkv.default"... (Path: , Encrypted: 0)
2026-03-11 10:56:46.122 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(48000000bps) * Bit Depth Ratio (10 / 8) = 60000000
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=60000000, frameRate=30, width=3840, height=2160, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.122 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(17000000bps) * Bit Depth Ratio (10 / 8) = 21250000
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=21250000, frameRate=30, width=1920, height=1080, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.122 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(12000000bps) * Bit Depth Ratio (10 / 8) = 15000000
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=15000000, frameRate=30, width=1280, height=720, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.122 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(3449000bps) * Bit Depth Ratio (10 / 8) = 4311250
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=4311250, frameRate=30, width=720, height=480, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=48000000, frameRate=30, width=3840, height=2160, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=40800000, frameRate=30, width=3840, height=2160, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=17000000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=14400000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=12000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=10000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.122 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=3449000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=2940000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.122 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 202) : false
2026-03-11 10:56:46.122 26770-26855 cx/HdrExt#12            com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 0, false
2026-03-11 10:56:46.123 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 201) : false
2026-03-11 10:56:46.123 26770-26855 cx/NightExt#13          com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 0, false
2026-03-11 10:56:46.123 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 203) : true
2026-03-11 10:56:46.124 26770-26855 cx/SuperNightExt#14     com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 0, true
2026-03-11 10:56:46.149 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(48000000bps) * Bit Depth Ratio (10 / 8) = 60000000
2026-03-11 10:56:46.149 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=60000000, frameRate=30, width=3840, height=2160, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.149 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(17000000bps) * Bit Depth Ratio (10 / 8) = 21250000
2026-03-11 10:56:46.149 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=21250000, frameRate=30, width=1920, height=1080, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.149 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(12000000bps) * Bit Depth Ratio (10 / 8) = 15000000
2026-03-11 10:56:46.149 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=15000000, frameRate=30, width=1280, height=720, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.150 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(3449000bps) * Bit Depth Ratio (10 / 8) = 4311250
2026-03-11 10:56:46.150 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=4311250, frameRate=30, width=720, height=480, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.150 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=48000000, frameRate=30, width=3840, height=2160, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=40800000, frameRate=30, width=3840, height=2160, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.150 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=17000000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=14400000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.150 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=12000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=10000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.150 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=3449000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=2940000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.150 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 202) : false
2026-03-11 10:56:46.150 26770-26855 cx/HdrExt#15            com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 1, false
2026-03-11 10:56:46.150 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 201) : false
2026-03-11 10:56:46.150 26770-26855 cx/NightExt#16          com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 1, false
2026-03-11 10:56:46.150 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 203) : true
2026-03-11 10:56:46.152 26770-26855 cx/SuperNightExt#17     com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 1, true
2026-03-11 10:56:46.171 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(17000000bps) * Bit Depth Ratio (10 / 8) = 21250000
2026-03-11 10:56:46.171 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=21250000, frameRate=30, width=1920, height=1080, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.171 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(12000000bps) * Bit Depth Ratio (10 / 8) = 15000000
2026-03-11 10:56:46.171 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=15000000, frameRate=30, width=1280, height=720, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.171 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(3449000bps) * Bit Depth Ratio (10 / 8) = 4311250
2026-03-11 10:56:46.171 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=4311250, frameRate=30, width=720, height=480, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.171 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=17000000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=14400000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.171 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=12000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=10000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.171 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=3449000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=2940000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.171 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 202) : false
2026-03-11 10:56:46.171 26770-26855 cx/HdrExt#18            com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 2, false
2026-03-11 10:56:46.172 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 201) : false
2026-03-11 10:56:46.172 26770-26855 cx/NightExt#19          com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 2, false
2026-03-11 10:56:46.172 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 203) : true
2026-03-11 10:56:46.173 26770-26855 cx/SuperNightExt#20     com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 2, true
2026-03-11 10:56:46.190 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(17000000bps) * Bit Depth Ratio (10 / 8) = 21250000
2026-03-11 10:56:46.190 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=21250000, frameRate=30, width=1920, height=1080, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.190 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(12000000bps) * Bit Depth Ratio (10 / 8) = 15000000
2026-03-11 10:56:46.190 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=15000000, frameRate=30, width=1280, height=720, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.190 26770-26855 BackupHdrP...esProvider com.mrousavy.camera.example          D  Base Bitrate(3449000bps) * Bit Depth Ratio (10 / 8) = 4311250
2026-03-11 10:56:46.190 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=4311250, frameRate=30, width=720, height=480, profile=2, bitDepth=10, chromaSubsampling=0, hdrFormat=1}]}
2026-03-11 10:56:46.190 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=17000000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=14400000, frameRate=30, width=1920, height=1080, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.190 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=12000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=10000000, frameRate=30, width=1280, height=720, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.190 26770-26855 CapabilitiesByQuality   com.mrousavy.camera.example          D  profiles = ImmutableEncoderProfilesProxy{defaultDurationSeconds=30, recommendedFileFormat=2, audioProfiles=[AudioProfileProxy{codec=3, mediaType=audio/mp4a-latm, bitrate=256000, sampleRate=48000, channels=2, profile=1}], videoProfiles=[VideoProfileProxy{codec=2, mediaType=video/avc, bitrate=3449000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}, VideoProfileProxy{codec=5, mediaType=video/hevc, bitrate=2940000, frameRate=30, width=720, height=480, profile=-1, bitDepth=8, chromaSubsampling=0, hdrFormat=0}]}
2026-03-11 10:56:46.190 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 202) : false
2026-03-11 10:56:46.190 26770-26855 cx/HdrExt#21            com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 3, false
2026-03-11 10:56:46.190 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 201) : false
2026-03-11 10:56:46.190 26770-26855 cx/NightExt#22          com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 3, false
2026-03-11 10:56:46.190 26770-26855 CameraChar...isticsUtil com.mrousavy.camera.example          D  isAvailableFeature(mode 203) : true
2026-03-11 10:56:46.192 26770-26855 cx/SuperNightExt#23     com.mrousavy.camera.example          I  isExtensionAvailable: cameraId = 3, true
2026-03-11 10:56:46.295 26770-26855 FrameProce...inRegistry com.mrousavy.camera.example          I  Looking up Frame Processor Plugin "example_plugin"...
2026-03-11 10:56:46.295 26770-26855 FrameProce...inRegistry com.mrousavy.camera.example          I  Frame Processor Plugin "example_plugin" found! Initializing...
2026-03-11 10:56:46.295 26770-26855 SharedArray             com.mrousavy.camera.example          I  Wrapping Java ByteBuffer with size 5...
2026-03-11 10:56:46.295 26770-26855 SharedArray             com.mrousavy.camera.example          I  Allocating SharedArray with size 5...
2026-03-11 10:56:46.295 26770-26855 ExamplePlugin           com.mrousavy.camera.example          D  Successfully allocated SharedArray! Size: 5
2026-03-11 10:56:46.295 26770-26855 SharedArray             com.mrousavy.camera.example          I  Wrapping Java ByteBuffer with size 10...
2026-03-11 10:56:46.295 26770-26855 ExamplePlugin           com.mrousavy.camera.example          D  Successfully wrapped SharedArray in ByteBuffer! Size: 10
2026-03-11 10:56:46.295 26770-26855 ExamplePlugin           com.mrousavy.camera.example          D  ExampleFrameProcessorPlugin initialized with options: {}
2026-03-11 10:56:46.295 26770-26855 FrameProce...inRegistry com.mrousavy.camera.example          I  Looking up Frame Processor Plugin "example_kotlin_swift_plugin"...
2026-03-11 10:56:46.295 26770-26855 FrameProce...inRegistry com.mrousavy.camera.example          I  Frame Processor Plugin "example_kotlin_swift_plugin" found! Initializing...
2026-03-11 10:56:46.295 26770-26855 ExampleKotlinPlugin     com.mrousavy.camera.example          D  ExampleKotlinFrameProcessorPlugin initialized with options: {foo=bar}
2026-03-11 10:56:46.296 26770-26855 ReactNativeJS           com.mrousavy.camera.example          I  {
                                                                                                      "formats": [],
                                                                                                      "sensorOrientation": "landscape-left",
                                                                                                      "hardwareLevel": "full",
                                                                                                      "maxZoom": 10,
                                                                                                      "minZoom": 0.6000000238418579,
                                                                                                      "maxExposure": 20,
                                                                                                      "supportsLowLightBoost": true,
                                                                                                      "neutralZoom": 1,
                                                                                                      "physicalDevices": [
                                                                                                        "wide-angle-camera",
                                                                                                        "ultra-wide-angle-camera",
                                                                                                        "wide-angle-camera",
                                                                                                        "telephoto-camera",
                                                                                                        "telephoto-camera"
                                                                                                      ],
                                                                                                      "supportsFocus": true,
                                                                                                      "supportsRawCapture": false,
                                                                                                      "isMultiCam": true,
                                                                                                      "minFocusDistance": 10,
                                                                                                      "minExposure": -20,
                                                                                                      "name": "0 (BACK) androidx.camera.camera2",
                                                                                                      "hasFlash": true,
                                                                                                      "hasTorch": true,
                                                                                                      "position": "back",
                                                                                                      "id": "0"
                                                                                                    }
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraStarted'->'onStarted'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraViewReady'->'onViewReady'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraOutputOrientationChanged'->'onOutputOrientationChanged'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraPreviewOrientationChanged'->'onPreviewOrientationChanged'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraPreviewStarted'->'onPreviewStarted'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraError'->'onError'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraAverageFpsChanged'->'onAverageFpsChanged'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraShutter'->'onShutter'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraInitialized'->'onInitialized'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraCodeScanned'->'onCodeScanned'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraStopped'->'onStopped'
2026-03-11 10:56:46.324 26770-26855 unknown:UI...antsHelper com.mrousavy.camera.example          E  Direct event name for 'CameraView' doesn't correspond to the naming convention, expected 'topEventName'->'onEventName', got 'topCameraPreviewStopped'->'onPreviewStopped'
2026-03-11 10:56:46.343 26770-26770 CameraSession           com.mrousavy.camera.example          I  Camera Lifecycle changed to CREATED!
2026-03-11 10:56:46.344 26770-26770 CameraView              com.mrousavy.camera.example          I  Updating CameraSession...
2026-03-11 10:56:46.348 26770-26770 CameraView              com.mrousavy.camera.example          I  Updating CameraSession...
2026-03-11 10:56:46.348 26770-26770 CameraView              com.mrousavy.camera.example          I  Updating CameraSession...
2026-03-11 10:56:46.348 26770-26770 CameraSession           com.mrousavy.camera.example          I  configure { ... }: Waiting for lock...
2026-03-11 10:56:46.348 26770-26770 CameraView              com.mrousavy.camera.example          I  A new configure { ... } call arrived, aborting this one...
2026-03-11 10:56:46.349 26770-26770 CameraSession           com.mrousavy.camera.example          I  configure { ... }: Waiting for lock...
2026-03-11 10:56:46.349 26770-26770 CameraSession           com.mrousavy.camera.example          I  configure { ... }: Updating CameraSession Configuration... Difference(deviceChanged=true, outputsChanged=true, sidePropsChanged=true, isActiveChanged=true, orientationChanged=true, locationChanged=true)
2026-03-11 10:56:46.350 26770-26770 CameraSession           com.mrousavy.camera.example          I  Creating new Outputs for Camera #0...
2026-03-11 10:56:46.350 26770-26770 CameraSession           com.mrousavy.camera.example          I  Using FPS Range: [30, 30]
2026-03-11 10:56:46.350 26770-26770 CameraSession           com.mrousavy.camera.example          I  Creating Preview output...
2026-03-11 10:56:46.353 26770-26770 CameraSession           com.mrousavy.camera.example          I  Creating Photo output...
2026-03-11 10:56:46.353 26770-26770 CameraSession           com.mrousavy.camera.example          I  Photo size: 4000x1848
2026-03-11 10:56:46.354 26770-26770 CameraSession           com.mrousavy.camera.example          I  Creating Video output...
2026-03-11 10:56:46.355 26770-26770 CameraSession           com.mrousavy.camera.example          I  Creating new Recorder...
2026-03-11 10:56:46.356 26770-26770 Recorder                com.mrousavy.camera.example          D  mRequiredFreeStorageBytes = 50 MB
2026-03-11 10:56:46.356 26770-26770 CameraSession           com.mrousavy.camera.example          I  Video size: 3840x2160
2026-03-11 10:56:46.357 26770-26770 CameraSession           com.mrousavy.camera.example          I  Creating YUV Frame Processor output...
2026-03-11 10:56:46.358 26770-26770 CameraSession           com.mrousavy.camera.example          I  Frame Processor size: 3840x2160
2026-03-11 10:56:46.359 26770-26770 CameraSession           com.mrousavy.camera.example          I  Successfully created new Outputs for Camera #0!
2026-03-11 10:56:46.359 26770-26770 CameraSession           com.mrousavy.camera.example          I  Binding Camera #0...
2026-03-11 10:56:46.359 26770-26770 CameraSession           com.mrousavy.camera.example          I  Binding 4 use-cases...

Camera Device

{
                                                                                                      "formats": [],
                                                                                                      "sensorOrientation": "landscape-left",
                                                                                                      "hardwareLevel": "full",
                                                                                                      "maxZoom": 10,
                                                                                                      "minZoom": 0.6000000238418579,
                                                                                                      "maxExposure": 20,
                                                                                                      "supportsLowLightBoost": true,
                                                                                                      "neutralZoom": 1,
                                                                                                      "physicalDevices": [
                                                                                                        "wide-angle-camera",
                                                                                                        "ultra-wide-angle-camera",
                                                                                                        "wide-angle-camera",
                                                                                                        "telephoto-camera",
                                                                                                        "telephoto-camera"
                                                                                                      ],
                                                                                                      "supportsFocus": true,
                                                                                                      "supportsRawCapture": false,
                                                                                                      "isMultiCam": true,
                                                                                                      "minFocusDistance": 10,
                                                                                                      "minExposure": -20,
                                                                                                      "name": "0 (BACK) androidx.camera.camera2",
                                                                                                      "hasFlash": true,
                                                                                                      "hasTorch": true,
                                                                                                      "position": "back",
                                                                                                      "id": "0"
                                                                                                    }

Device

Samsung Galaxy S24 Ultra (Android 16), Huawei P30 Lite (EMUI12)

VisionCamera Version

4.7.3

Can you reproduce this issue in the VisionCamera Example app?

Yes, I can reproduce the same issue in the Example app here

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions