google / grafika

Grafika test app
Apache License 2.0
6.07k stars 1.46k forks source link

Decoding four video streams simultaneous on Google Pixel 2 phone #107

Open spaul13 opened 5 years ago

spaul13 commented 5 years ago

First of all thanks for this project. I am using the DoubleDecode application.

I have extended that to play four x264 video streams on to four texture views on Google Pixel 2 phone. I have seen four times OMX.qcom.video.decoder.avc (HW video decoder instance) has been created. Does it mean that four HW decoder instances can be possible by my android? Is there any way to check the configuration of maximum capabilities of hardware decoder (or max number of instances that can be created for hardware decoder)?

Then just want to know about the workflow does it means four different streams are decoded and displayed by four different instances of HW decoder in four different threads?

How to get the decoding and displaying time for each frame from MoviePlayer.java script?

Just curious on this context,