shiyinghan / UVCAndroid

Apache License 2.0
184 stars 50 forks source link

你好 我这边4800w的摄像头 预览的话 是600-600达到1:1效果 画面就卡住了 下面是报错日志 但是1200w与1600w摄像头就没有事情 #43

Open jy-98 opened 11 months ago

jy-98 commented 11 months ago

2023-09-14 14:12:08.036 32322-32584 BufferQueueProducer com.en.information E SurfaceTexture-0-32322-0 disconnect: not connected (req=1) 2023-09-14 14:12:08.036 32322-32584 libEGL com.en.information W EGLNativeWindowType 0xb4000073e69aa1c0 disconnect failed 2023-09-14 14:12:08.044 32322-32584 EGLEvn com.en.information I Release EGL Success! 2023-09-14 14:12:08.045 32322-32584 AbstractRender com.en.information I release surface texture render success! 2023-09-14 14:12:08.045 32322-32584 libEGL com.en.information E call to OpenGL ES API with no current context (logged once per thread) 2023-09-14 14:12:08.045 32322-32584 AbstractRender com.en.information I release surface texture render success! 2023-09-14 14:12:14.897 32322-32415 MultiCameraClient com.en.information I attach device name/pid/vid:/dev/bus/usb/001/010&18433&13028 2023-09-14 14:12:14.927 32322-32322 cameraFragment com.en.information I InformationFragment{72d8d2a} (23015aca-81f5-46a7-a004-f2911f3aebd1 tag=f0) fragment onPause 2023-09-14 14:12:15.206 32322-32415 MultiCameraClient com.en.information I attach device name/pid/vid:/dev/bus/usb/001/010&18433&13028 2023-09-14 14:12:19.015 447-19609 WindowManager system_server V getPackagePerformanceMode -- ComponentInfo{com.en.information/com.en.information.MainActivity} -- com.en.information -- mode=0 2023-09-14 14:12:19.067 32322-32415 UsbDeviceConnectionJNI com.en.information D close 2023-09-14 14:12:19.072 32322-32415 MultiCameraClient com.en.information I connect device name/pid/vid:/dev/bus/usb/001/010&18433&13028 2023-09-14 14:12:19.074 32322-32322 CameraFragment com.en.information I camera connection. pid: 18433, vid: 13028 2023-09-14 14:12:19.082 32322-32706 RenderManager com.en.information I create RenderManager, Open ES version is 3.2 2023-09-14 14:12:19.110 32322-32707 EGLEvn com.en.information I Init EGL Success! 2023-09-14 14:12:19.111 32322-32707 EGLEvn com.en.information I setupSurface Success! 2023-09-14 14:12:19.117 32322-32707 AbstractRender com.en.information I init surface texture render success! 2023-09-14 14:12:19.120 32322-32707 AbstractRender com.en.information I create external texture, id = 1 2023-09-14 14:12:19.121 32322-32707 AbstractRender com.en.information I init surface texture render success! 2023-09-14 14:12:19.127 32322-32707 AbstractRender com.en.information I init surface texture render success! 2023-09-14 14:12:19.136 32322-32706 UsbDeviceConnectionJNI com.en.information D close 2023-09-14 14:12:19.137 32322-32706 libusb/core com.en.information I [32706core.c:2085:libusb_init2]:libusb v1.0.19.10903 2023-09-14 14:12:19.137 32322-32706 libusb/usbfs com.en.information I [32706android_usbfs.c:504:op_init2]:start up hotplug event handler 2023-09-14 14:12:19.137 32322-32706 libusb/usbfs com.en.information I [32706android_usbfs.c:512:op_init2]:call android_scan_devices 2023-09-14 14:12:19.246 32322-32706 CameraUVC com.en.information I aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1920, height=1080), PreviewSize(width=800, height=600), PreviewSize(width=1920, height=1080), PreviewSize(width=640, height=480)], 2023-09-14 14:12:19.246 32322-32706 CameraUVC com.en.information I getSuitableSize: PreviewSize(width=640, height=480) 2023-09-14 14:12:19.248 32322-32706 CameraUVC com.en.information I aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1920, height=1080), PreviewSize(width=800, height=600), PreviewSize(width=1920, height=1080), PreviewSize(width=640, height=480)], 2023-09-14 14:12:19.248 32322-32706 MultiCameraClient com.en.information I Audio record by using system mic 2023-09-14 14:12:19.270 32322-32706 CameraUVC com.en.information I aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1920, height=1080), PreviewSize(width=800, height=600), PreviewSize(width=1920, height=1080), PreviewSize(width=640, height=480)], 2023-09-14 14:12:19.271 32322-32706 CameraUVC com.en.information I aspect ratio = null, getAllPreviewSizes = [PreviewSize(width=1920, height=1080), PreviewSize(width=800, height=600), PreviewSize(width=1920, height=1080), PreviewSize(width=640, height=480)], 2023-09-14 14:12:19.272 32322-32706 CameraUVC com.en.information E setPreviewSize failed, try to use yuv format... 2023-09-14 14:12:19.355 32322-32709 libUVCCamera com.en.information I [32709UVCPreview.cpp:509:prepare_preview]:frameSize=(640,480)@YUYV 2023-09-14 14:12:19.369 32322-32711 libUVCCamera com.en.information I [32711*UVCPreview.cpp:267:callbackPixelFormatChanged]:PIXEL_FORMAT_RAW: 2023-09-14 14:12:19.464 32322-32706 CameraUVC com.en.information I start preview, name = /dev/bus/usb/001/010, preview=PreviewSize(width=640, height=480) 2023-09-14 14:12:19.464 32322-32706 RenderManager com.en.information I create camera SurfaceTexture: android.graphics.SurfaceTexture@76d7017 2023-09-14 14:12:19.467 32322-32707 AbstractRender com.en.information I create texture, id = 2 2023-09-14 14:12:19.470 32322-32707 AbstractFboRender com.en.information I load fbo, textures: [I@a89ec04, buffers: [I@1bae5ed 2023-09-14 14:12:19.471 32322-32707 AbstractRender com.en.information I create texture, id = 3 2023-09-14 14:12:19.473 32322-32707 AbstractFboRender com.en.information I load fbo, textures: [I@f04c22, buffers: [I@1cef6b3

jy-98 commented 11 months ago

4800w出现setPreviewSize failed, try to use yuv format...