Skip to content

Commit

Permalink
Debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed Apr 6, 2021
1 parent d00f4be commit 8e04902
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class MultiHandActivity : AppCompatActivity() {

val packetCreator = processor.packetCreator
val inputSidePackets: MutableMap<String, Packet> = 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:
Expand Down Expand Up @@ -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)
}
})
Expand Down

0 comments on commit 8e04902

Please sign in to comment.