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

Function unmapTransferCharacteristics

src/misc.ts:194–205  ·  view source on GitHub ↗
(transfer: number)

Source from the content-addressed store, hash-verified

192};
193
194export const unmapTransferCharacteristics = (transfer: number) => {
195 switch (transfer) {
196 case AVCOL_TRC_BT709: return 'bt709';
197 case AVCOL_TRC_SMPTE170M: return 'smpte170m';
198 case AVCOL_TRC_IEC61966_2_1: return 'iec61966-2-1';
199 case AVCOL_TRC_LINEAR: return 'linear';
200 case AVCOL_TRC_SMPTE2084: return 'pq';
201 case AVCOL_TRC_ARIB_STD_B67: return 'hlg';
202 }
203
204 return null;
205};
206
207export const mapMatrixCoefficients = (matrix: string) => {
208 switch (matrix) {

Callers 2

outputChunkMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected