(cs: VideoColorSpace | null)
| 34 | * Returns "pq" for SMPTE 2084, "hlg" for ARIB STD-B67, defaults to "hlg". |
| 35 | */ |
| 36 | export function detectTransfer(cs: VideoColorSpace | null): HdrTransfer { |
| 37 | if (cs?.colorTransfer === "smpte2084") return "pq"; |
| 38 | return "hlg"; |
| 39 | } |
| 40 | |
| 41 | /** |
| 42 | * HDR static metadata for the encoded stream. |
no outgoing calls
no test coverage detected