Skip to content

Commit

Permalink
[opt] auto choose yuv or mjpeg frame format2
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangdg committed Jul 25, 2022
1 parent f9619d4 commit 3099d11
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ dependencies {
implementation "com.tencent.bugly:nativecrashreport:$bugly_native_version"

// For debug online
// implementation project(':libausbc')
implementation project(':libausbc')

// demo
implementation 'com.github.jiangdongguo.AndroidUSBCamera:libausbc:3.2.0'
// implementation 'com.github.jiangdongguo.AndroidUSBCamera:libausbc:3.2.0'
}
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ class MultiCameraClient(ctx: Context, callback: IDeviceConnectCallBack?) {
)
} catch (e: Exception) {
try {
val previewSize = getSuitableSize(request.previewWidth, request.previewHeight)
mPreviewFrameFormat = UVCCamera.FRAME_FORMAT_YUYV
val previewSize = getSuitableSize(request.previewWidth, request.previewHeight)
if (! isPreviewSizeSupported(previewSize)) {
mMainHandler.post {
mCameraStateCallback?.onCameraState(
Expand Down
10 changes: 5 additions & 5 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include ':app'

// For debug online
//include ':libausbc'
//include ':libuvc'
//include ':libpush'
//include ':libnative'
//include ':libuvccommon'
include ':libausbc'
include ':libuvc'
include ':libpush'
include ':libnative'
include ':libuvccommon'

0 comments on commit 3099d11

Please sign in to comment.