Re: [webrtc-stats] scalabilityMode: Same as in getParameters() or not? (#731)

I am unsure as to why L3T1_KEY is missing from the table? It is present in the diagrams https://www.w3.org/TR/webrtc-svc/#L3T1_KEY*

An algorithm for decrementing a spatial layer would be,

```
decrementSpatialLayer(svc)
  if (svc == LxTy) return L(x-1)Ty
  if (svc == SxTy) return S(x-1)Ty if (x-1 != 1) else L1Ty
  if (svc == LxTy_KEY or LxTy_KEY_SHIFT) return L(x-1)Ty_KEY(_SHIFT) if (x-1 != 1) else L1Ty
```

and for temporal layers

```
decrementTemporalLayer(svc)
  if (svc == LxTy) return LxT(y-1)
  if (svc == SxTy) return SxT(y-1)
  if (svc == LxTy_KEY) return LxT(y-1)_KEY
  if (svc == LxTy_KEY_SHIFT) return LxT(y-1)_KEY_SHIFT if (y-1 != 1) else LxT1_KEY
```

-- 
GitHub Notification of comment by eshrubs
Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/731#issuecomment-1422329236 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 8 February 2023 09:57:14 UTC