moonlight-stream / moonlight-common-android

Android common library - now embedded in Moonlight Android
GNU General Public License v3.0
115 stars 31 forks source link

Reassemble NAL's early #3

Closed irtimmer closed 10 years ago

irtimmer commented 10 years ago

I try to improve the latency and concluded the addInputData is buffering a whole frame. Which results in a extra latency of 16ms (60 fps) or 33ms (30 fps). Like the addInputDataO1 I now use the packets index to know when to reassemble NAL's. I'm not sure if this will break the other code to prevent artifects but at least on the Raspberry Pi I couldn't find any differences except for some improved latency.

cgutman commented 10 years ago

Thanks for the latency improvement. It doesn't seem to introduce any artifacts in my testing either