| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| .settings | ||
| java/com/google/android/exoplayer | ||
| res | ||
| .classpath | ||
| .project | ||
| AndroidManifest.xml | ||
| project.properties |
I'm not really a fan of micro-optimizations, but given this method scans through every H264 frame in the HLS case, it seems worthwhile. The trick here is to examine the first 7 bits of the third byte first. If they're not all 0s, then we know that we haven't found a NAL unit, and also that we wont find one at the next two positions. This allows the loop to increment 3 bytes at a time. Speedup is around 60% on Art according to some ad-hoc benchmarking.
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| .settings | Loading commit data... | |
| java/com/google/android/exoplayer | Loading commit data... | |
| res | Loading commit data... | |
| .classpath | Loading commit data... | |
| .project | Loading commit data... | |
| AndroidManifest.xml | Loading commit data... | |
| project.properties | Loading commit data... |