From 8e049022f7eb1e4663809cd787569644ee051513 Mon Sep 17 00:00:00 2001 From: Hannes Achleitner Date: Tue, 6 Apr 2021 15:09:46 +0200 Subject: [PATCH] Debug info --- .../mediapipe/app/multihand/MultiHandActivity.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/info/mediapipe/app/multihand/MultiHandActivity.kt b/app/src/main/java/info/mediapipe/app/multihand/MultiHandActivity.kt index ce115ca..041e26c 100644 --- a/app/src/main/java/info/mediapipe/app/multihand/MultiHandActivity.kt +++ b/app/src/main/java/info/mediapipe/app/multihand/MultiHandActivity.kt @@ -75,7 +75,9 @@ class MultiHandActivity : AppCompatActivity() { val packetCreator = processor.packetCreator val inputSidePackets: MutableMap = HashMap() + Timber.d("inputSidePackets1=${inputSidePackets.size}") inputSidePackets[INPUT_NUM_HANDS_SIDE_PACKET_NAME] = packetCreator.createInt32(NUM_HANDS) + Timber.d("inputSidePackets2=${inputSidePackets.size}") processor.setInputSidePackets(inputSidePackets) // To show verbose logging, run: @@ -126,19 +128,17 @@ class MultiHandActivity : AppCompatActivity() { viewGroup.addView(previewDisplayView) previewDisplayView?.holder?.addCallback(object : SurfaceHolder.Callback { override fun surfaceCreated(holder: SurfaceHolder) { + Timber.v("previewDisplayView created") processor.videoSurfaceOutput.setSurface(holder.surface) } - override fun surfaceChanged( - holder: SurfaceHolder, - format: Int, - width: Int, - height: Int - ) { + override fun surfaceChanged(holder: SurfaceHolder, format: Int, width: Int, height: Int) { + Timber.v("previewDisplayView changes") onPreviewDisplaySurfaceChanged(width, height) } override fun surfaceDestroyed(holder: SurfaceHolder) { + Timber.v("previewDisplayView destroyed") processor.videoSurfaceOutput.setSurface(null) } })