forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cast: Use difference encoding on RTP timestamps for serializing events
Previously during serialization of raw event logs we write out RTP timestamp of each frame as a relative value to the first RTP timestamp seen. This number can get large for later frames. This patch changes the serialization logic so it writes out the RTP timestamp of each frame as a relative value to the previous frame. This results in smaller values being written out for each frame, which results in a smaller serialization length due to variable length encoding. The result of this change is that serialized length with compression is now 19% shorter. (86.5kb vs 70kb for 30 seconds of data) Test: SerializeDeserializeTest still passes BUG=338574,301920 Review URL: https://codereview.chromium.org/195943011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257035 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information
imcheng@chromium.org
committed
Mar 14, 2014
1 parent
c6b10ca
commit b804aac
Showing
2 changed files
with
33 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters