webrtc/api/units
Sebastian Jansson cf41eb1ce1 Reland "Cleanup of video packet overhead calculation."
This is a reland of 890bc3069c

Zero bitrate caused division by zero in DCHECK for max bitrate.
Added unit tests to ensure that setting zero bitrate does not crash.

> Original change's description:
> > Cleanup of video packet overhead calculation.
> >
> > This CL updates the video packet overhead calculation to make it more
> > clear. This prepares for future work on improving the accuracy of the
> > calculation.
> >
> > Bug: webrtc:9883
> > Change-Id: I1d623a3e0de45be7b6e4a1f9e3cbe54fd2b8a45a
> > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/138077
> > Commit-Queue: Sebastian Jansson <srte@webrtc.org>
> > Reviewed-by: Erik Språng <sprang@webrtc.org>
> > Cr-Commit-Position: refs/heads/master@{#28040}

Bug: webrtc:10674
Change-Id: I156d1ee5546ede7e43ae1d9a298dcaba6071230f
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/140890
Reviewed-by: Niels Moller <nisse@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Commit-Queue: Sebastian Jansson <srte@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#28212}
2019-06-10 15:47:48 +00:00
..
BUILD.gn Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
data_rate.cc Include sign for infinity in ToString for data units. 2019-03-05 09:42:08 +00:00
data_rate.h Reland "Cleanup of video packet overhead calculation." 2019-06-10 15:47:48 +00:00
data_rate_unittest.cc Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
data_size.cc Include sign for infinity in ToString for data units. 2019-03-05 09:42:08 +00:00
data_size.h Allow log print of data units. 2019-04-12 07:36:49 +00:00
data_size_unittest.cc Adds constexpr create functions for units. 2018-08-08 07:38:14 +00:00
frequency.cc Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
frequency.h Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
frequency_unittest.cc Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
OWNERS Adds srte@ as OWNER of units. 2019-06-05 15:08:57 +00:00
time_delta.cc Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
time_delta.h Adds Frequency unit type. 2019-06-07 09:54:02 +00:00
time_delta_unittest.cc Adds shared base class for data units. 2018-11-19 12:41:33 +00:00
timestamp.cc Include sign for infinity in ToString for data units. 2019-03-05 09:42:08 +00:00
timestamp.h Allow log print of data units. 2019-04-12 07:36:49 +00:00
timestamp_unittest.cc Adds signed infinity to timestamps. 2018-09-04 17:14:05 +00:00