(cs: VideoColorSpace | null)
| 14 | * Re-exported from videoFrameExtractor for backward compatibility. |
| 15 | */ |
| 16 | export function isHdrColorSpace(cs: VideoColorSpace | null): boolean { |
| 17 | if (!cs) return false; |
| 18 | return ( |
| 19 | cs.colorPrimaries.includes("bt2020") || |
| 20 | cs.colorSpace.includes("bt2020") || |
| 21 | cs.colorTransfer === "smpte2084" || |
| 22 | cs.colorTransfer === "arib-std-b67" |
| 23 | ); |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Determine the HDR transfer function from a video's color space metadata. |
no outgoing calls
no test coverage detected