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

Function unmapColorPrimaries

src/misc.ts:169–179  ·  view source on GitHub ↗
(primaries: number)

Source from the content-addressed store, hash-verified

167};
168
169export const unmapColorPrimaries = (primaries: number) => {
170 switch (primaries) {
171 case AVCOL_PRI_BT709: return 'bt709';
172 case AVCOL_PRI_BT470BG: return 'bt470bg';
173 case AVCOL_PRI_SMPTE170M: return 'smpte170m';
174 case AVCOL_PRI_BT2020: return 'bt2020';
175 case AVCOL_PRI_SMPTE432: return 'smpte432';
176 }
177
178 return null;
179};
180
181export const mapTransferCharacteristics = (transfer: string) => {
182 switch (transfer) {

Callers 2

outputChunkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected