MCPcopy Create free account
hub / github.com/Vanilagy/webcodecs-polyfill / unmapMatrixCoefficients

Function unmapMatrixCoefficients

src/misc.ts:219–229  ·  view source on GitHub ↗
(matrix: number)

Source from the content-addressed store, hash-verified

217};
218
219export const unmapMatrixCoefficients = (matrix: number) => {
220 switch (matrix) {
221 case AVCOL_SPC_RGB: return 'rgb';
222 case AVCOL_SPC_BT709: return 'bt709';
223 case AVCOL_SPC_BT470BG: return 'bt470bg';
224 case AVCOL_SPC_SMPTE170M: return 'smpte170m';
225 case AVCOL_SPC_BT2020_NCL: return 'bt2020-ncl';
226 }
227
228 return null;
229};
230
231export const toPixelFormat = (ffmpegPixelFormat: AVPixelFormat) => {
232 switch (ffmpegPixelFormat) {

Callers 2

outputChunkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected