const TIMESTAMP_TRUNCATE_FACTOR: u64 = 1_000_000_000;
Expand description

Since libvda only accepts 32-bit timestamps, we are going to truncate the frame 64-bit timestamp (of nanosecond granularity) to only keep seconds granularity. This would result in information being lost on a regular client, but the Android C2 decoder only sends timestamps with second granularity, so this approach is going to work there. However, this means that this backend is very unlikely to work with any other guest software. We accept this fact because it is impossible to use outside of ChromeOS anyway.