(rotation?: number)
| 850 | }; |
| 851 | |
| 852 | const ParseRotation = (rotation?: number): number => { |
| 853 | if (rotation === undefined) return 0; |
| 854 | // Let alignedRotation be the nearest multiple of 90 to rotation, rounding ties towards positive infinity. |
| 855 | const alignedRotation = Math.ceil(rotation / 90) * 90; |
| 856 | // Let fullTurns be the greatest multiple of 360 less than or equal to alignedRotation. |
| 857 | const fullTurns = Math.floor(alignedRotation / 360) * 360; |
| 858 | // Return |alignedRotation| - |fullTurns|. |
| 859 | return Math.abs(alignedRotation) - Math.abs(fullTurns); |
| 860 | }; |
| 861 | |
| 862 | const PickColorSpace = ( |
| 863 | overrideColorSpace: VideoColorSpaceInit | undefined, |
no outgoing calls
no test coverage detected