Intended to let Vp8TemporalLayersFactory (an api/ target) reuse this function, without depending on the codec implementation, and without introducing a dependency cycle with the webrtc_vp8 build target. Bug: webrtc:11607 Change-Id: I671422e994e1005da8c7d768e8dd8ff795553e51 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/261308 Commit-Queue: Niels Moller <nisse@webrtc.org> Reviewed-by: Åsa Persson <asapersson@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36816}