CamAp 是app log
1、创建surface
04-15 20:36:05.793 2535 2535 I SurfaceView: 219976603 Changes: creating=true format=true size=true visible=true left=true top=true
04-15 20:36:05.803 2535 2535 I SurfaceView: 219976603 Cur surface: Surface(name=null)/@0x190d29d
04-15 20:36:05.804 2535 2535 I SurfaceView: 219976603 visibleChanged -- surfaceCreated
04-15 20:36:05.804 2535 2535 D CamAp_CameraSurfaceView: [surfaceCreated]
04-15 20:36:05.804 2535 2535 I SurfaceView: 219976603 surfaceChanged -- format=4 w=960 h=720
04-15 20:36:05.804 2535 2535 I CamAp_CameraSurfaceView: [surfaceChanged] surface size = 960x720
04-15 20:36:05.805 2535 2535 D CamAp_CameraSurfaceView: [tryNoticeSize] : size:720, 960
04-15 20:36:05.805 2535 2535 D CamAp_device1.PhotoMode: [onPreviewSurfaceAvailable] android.view.SurfaceView$4@d43b312 width=720 height=960
2、配置会话
04-15 20:36:05.805 2535 2535 I CamAp_device1.Device2ControllerImpl: mCameraState = 1
04-15 20:36:05.806 2535 2535 E CamAp_device1.Device2ControllerImpl: [updatePreviewSurface]: configureSession for valid surface
04-15 20:36:05.806 2535 2535 I CamAp_device1.Device2ControllerImpl: [configureSession]: ++
这里有三个surface对应后面三种配置流
04-15 20:36:05.806 2535 2535 I CamAp_device1.Device2ControllerImpl: [configureSession]: -- surfaces: [Surface(name=null)/@0x190d29d, Surface(name=null)/@0x84eeae3, Surface(name=null)/@0x3bd5ce0]
04-15 20:36:05.807 2535 2535 I SurfaceView: 219976603 surfaceRedrawNeeded
04-15 20:36:05.807 2535 2535 D SurfaceCallbackHelper: dispatchSurfaceRedrawNeededAsync, callbacks=[Landroid.view.SurfaceHolder$Callback;@f2cfb99, callbacks.length=1
04-15 20:36:05.807 2535 2535 D SurfaceCallbackHelper: mFinishDrawingRunnable, mFinishDrawingCollected=1, mFinishDrawingExpected=1
04-15 20:36:05.807 2
1.2 createCaptureSession log分析
最新推荐文章于 2023-09-11 21:03:42 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)