jiangdongguo / AndroidUSBCamera

🔥🔥🔥Flexible and useful UVC camera engine on Android platform, supporting multi-road cameras!
https://juejin.cn/post/7115229806844706847
Apache License 2.0
2.35k stars 803 forks source link

1080p high resolution problem #275

Open heaveninfosoft opened 4 years ago

heaveninfosoft commented 4 years ago

1080p high resolution work some time then gray some part in screen

https://drive.google.com/file/d/1TVjQUHuTqXqg9iIAnmvXtwFsvvqTgoKU/view?usp=sharing

idr-pt commented 4 years ago

Same problem here . But Changing to YUYV frame format its solved . But cant Capture Pics With it

heaveninfosoft commented 4 years ago

@idr-pt what need changes code can you show me?

idr-pt commented 4 years ago

in Oncreate add code like this

    ```

mCameraHelper?.setDefaultFrameFormat(UVCCameraHelper.FRAME_FORMAT_YUYV) mCameraHelper?.initUSBMonitor(this, mUVCCameraView, listener) mCameraHelper?.updateResolution(1024, 768)

heaveninfosoft commented 4 years ago

but then we cant get previewListernerFrame right???

idr-pt commented 4 years ago

i think we can . but cant capture photo

wsl1015310333 commented 4 years ago

I had the same problem . Have you solved the problem?

wsl1015310333 commented 3 years ago

but mCameraHelper?.setDefaultFrameFormat(UVCCameraHelper.FRAME_FORMAT_YUYV) is No video preview at android 10 ,mCameraHelper?.setDefaultFrameFormat(UVCCameraHelper.FRAME_FORMAT_MJPEG) can has video preview at android 10