Switching to layer based quality for camera tracks also. (#1520)

There are cases where the layer bit rate configuration is such that
the expected bitrate difference is very high. For example,
setting up layer 2 (f) layer for 1.7 Mbps and layer 1 (h) for 180 kbps.
With bitrate based quality, a layer drop results in going to `POOR`
quality rating. With layer based, it will drop one level only.

Also, cleaning up the distance to desired calculation a bit.
This commit is contained in:
Raja Subramanian
2023-03-15 11:51:14 +05:30
committed by GitHub
parent 6c0ca1b165
commit 5bef98dc2a
8 changed files with 94 additions and 95 deletions
-1
View File
@@ -79,7 +79,6 @@ type Snapshot struct {
}
type SnInfo struct {
pktTime int64
hdrSize uint16
pktSize uint16
isPaddingOnly bool