Dear all:
I am using UVC that support YUY2 and MJPG format on the iMX8QM with Android9.
It's working fine with YUY2, but I got a problem with MJPG format.
I set the parameter configUseMJPG as "1" in the libcamera3/Camera.cpp for use MJPG format, and then I got this issue:
03-28 08:00:04.189 4294 4294 D CAM_CaptureModule: Ready for capture.
03-28 08:00:04.189 4294 4294 V CAM_CameraAppUI: onPreviewStarted
03-28 08:00:04.200 4294 4359 D CAM_CommandExecutor: Executing command: com.android.camera.one.v2.commands.PreviewCommand@2cc9ed END
03-28 08:00:04.200 3190 3301 I FslCameraHAL: configureStreams:0: stream_config 0xef0ff4c8, num 2, streams 0xeef85008, mode 0
03-28 08:00:04.200 3190 3301 I FslCameraHAL: config 0, type 0, res 1920x1080, fmt 0x21, usage 0x3, maxbufs 1, priv 0xeefc7000, rotation 0
03-28 08:00:04.200 3190 3301 I FslCameraHAL: config 1, type 0, res 1920x1080, fmt 0x103, usage 0x100, maxbufs 2, priv 0xeefc70e0, rotation 0
03-28 08:00:04.201 3220 4354 D Camera3-Device: Set real time priority for request queue thread (tid 4354)
03-28 08:00:04.276 3190 3301 I FslCameraHAL: configure: w:1920, h:1080, sensor format:0x10, stream format:0x103, fps:30, num:3
03-28 08:00:04.277 3190 3298 I FslCameraHAL: onDeviceConfigureLocked
03-28 08:00:04.277 3190 3298 I FslCameraHAL: onDeviceConfigureLocked
03-28 08:00:04.277 3190 3298 I FslCameraHAL: Width * Height 1920 x 1080 format MJPG, fps: 30
03-28 08:00:04.280 3190 3298 I FslCameraHAL: Special handling for MJPG on Stride 1920, size 3110400
03-28 08:00:04.282 3190 3298 I FslCameraHAL: onDeviceStartLocked
03-28 08:00:04.291 3190 3298 I FslCameraHAL: UvcMJPGDevice::VPUInit
03-28 08:00:04.295 3190 3298 I FslCameraHAL: vpu lib version : major.minor.rel=1.1.1
03-28 08:00:04.296 3190 3298 I FslCameraHAL: vpu fw version : major.minor.rel_rcode=1.1.1_r0
03-28 08:00:04.296 3190 3298 I FslCameraHAL: vpu wrapper version : major.minor.rel=3.0.0: VPUWRAPPER_ARM64_LINUX Build on Mar 25 2022 14:17:55
03-28 08:00:04.296 3190 3298 E FslCameraHAL: MallocMemBlock: get vpu memory failure, size=12582928, ret=1
03-28 08:00:04.296 3190 3298 E FslCameraHAL: VPUInit: malloc memory failure:
03-28 08:00:04.339 4364 4364 F DEBUG : pid: 3190, tid: 3298, name: MessageThread >>> /vendor/bin/hw/android.hardware.camera.provider@2.4-service <<<
03-28 08:00:04.443 3220 4354 E Camera3-Device: processBatchCaptureRequests: Transaction error: Status(EX_TRANSACTION_FAILED): 'DEAD_OBJECT: '
03-28 08:00:04.443 3220 3297 I CameraProviderManager: Camera provider 'legacy/0' has died; removing it
03-28 08:00:04.443 3220 3297 I CameraService: onDeviceStatusChanged: Status changed for cameraId=0, newStatus=0
03-28 08:00:04.443 3220 4354 E Camera3-Device: Camera 0: sendRequestsBatch: RequestThread: Unable to submit capture request 1 to HAL device: Broken pipe (-32)
03-28 08:00:04.445 3220 3297 I CameraService: onDeviceStatusChanged: Client for camera ID 0 evicted due to device status change from HAL
03-28 08:00:04.445 4294 4329 E CAM_FatalErrorHandler: Handling Camera Access Failure:
03-28 08:00:04.445 4294 4329 E CAM_FatalErrorHandler: java.lang.Exception
03-28 08:00:04.445 4294 4329 E CAM_FatalErrorHandler: at com.android.camera.FatalErrorHandlerImpl.onGenericCameraAccessFailure(FatalErrorHandlerImpl.java:84)
03-28 08:00:04.445 4294 4329 E CAM_FatalErrorHandler: at com.android.camera.one.v2.Camera2OneCameraOpenerImpl$1.onError(Camera2OneCameraOpenerImpl.java:154)
03-28 08:00:04.445 4294 4329 E CAM_FatalErrorHandler: at
... ...
It looks VPU related, does anyone have any idea on this?
Thanks