DescriptionReland: vea_unittest: Calculate per-frame encode latency
This is a reland of https://crrev.com/1117853002, which failed to compile
in CHECK_GT(size_t var, 0), and CHECK_LE(size_t var, 100) because the compiler
handles the numeric literals as signed. So compiler complained about comparing
signed and unsigned. This is fixed by using unsigned numeric literals like 0UL
and 100UL.
Calculates per-frame encode latency, which is basically the time delay from
input of each VideoFrame (VEA::Encode()) to output of the corresponding
BitstreamBuffer (VEA::Client::BitstreamBufferReady()).
It calculates encode latency values at the 50th(median), 75th, and 95th percentiles.
Also fix a wrong comment.
BUG=345181
TEST=Check "Encode latency for the 50%/75%/95%" in output logs.
Committed: https://crrev.com/5118a5b3cbe6f33936ebe320da56c7b84f339eb5
Cr-Commit-Position: refs/heads/master@{#330060}
Patch Set 1 : Direct cherrypick from 1117853002 #Patch Set 2 : Change 100 to 100UL #Messages
Total messages: 7 (2 generated)
|