decord/source/module_4952.js
2026-08-15 05:55:55 +00:00

392 lines
8.8 KiB
JavaScript

// Module ID: 4952
// Function ID: 4953
// Dependencies: [4910]
// Module 4952
const require = arg1;
const dependencyMap = arg6;
obj = { 4: null, 8: null, 12: null, 16: null, 20: obj, 24: null, 36: null, 40: null, 48: obj, 52: null, 64: null, 80: null };
obj = {
name: "Preferred CMM type",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
},
description(str) {
if (null === str) {
return "";
} else {
const formatted = str.toLowerCase();
if ("appl" === formatted) {
let str6 = "Apple";
} else if ("adbe" === formatted) {
str6 = "Adobe";
} else if ("msft" === formatted) {
str6 = "Microsoft";
} else {
if ("sunw" === formatted) {
str6 = "Sun Microsystems";
} else if ("sgi" !== formatted) {
str6 = "Taligent";
if ("tgnt" !== formatted) {
str6 = str;
}
}
str6 = "Silicon Graphics";
}
}
}
};
obj = {
name: "Profile Version",
value(getUint8, sum) {
const str = getUint8.getUint8(sum);
const text = `${str.toString(10)}.`;
const str2 = getUint8.getUint8(sum + 1) >> 4;
const text1 = `${str.toString(10)}.${str2.toString(10)}`;
return `${str.toString(10)}.${str2.toString(10)}` + "." + getUint8.getUint8(sum + 1) % 16.toString(10);
}
};
obj[12] = {
name: "Profile/Device class",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
},
description(str) {
switch (str.toLowerCase()) {
case "to":
break;
case "Date":
break;
case "TypeError":
break;
case "Error":
break;
case "HTTP":
break;
case "T":
break;
case "HermesInternal":
break;
case "Icon":
break;
case "IconComponent":
break;
case "c":
break;
case "p":
break;
case "LIGHT":
break;
case "LengthDelimited":
break;
case "limit":
break;
case "i":
break;
case "it":
break;
case "d":
break;
case "Map":
break;
case "Math":
break;
case "h":
break;
case "Number":
break;
case "Object":
break;
case "ct":
break;
case "PX_16":
break;
case "flex":
return "Input Device profile";
case "flexDirection":
break;
case "PX_8":
return "Display Device profile";
case "Path":
break;
case "Promise":
return "Output Device profile";
case "s":
break;
case "Reflect":
return "DeviceLink profile";
case "Set":
break;
case "format":
return "Abstract profile";
case "formatToPlainString":
break;
case "String":
return "ColorSpace profile";
case "Symbol":
break;
case "Text":
return "NamedColor profile";
case "x":
break;
case "View":
return "ColorEncodingSpace profile";
case "w":
break;
case "WireType":
return "MultiplexIdentification profile";
case "__closure":
break;
case "__d":
return "MultiplexLink profile";
case "__esModule":
break;
case "__initData":
return "MultiplexVisualization profile";
case "filter":
break;
case "__packager_asset":
break;
case "k":
break;
case "set":
break;
case "__workletHash":
break;
case "_desired":
break;
case "_distance":
break;
case "st":
break;
case "accessibilityLabel":
break;
case "accessibilityRole":
break;
case "accessible":
break;
case "padding":
break;
case "paddingHorizontal":
break;
case "add":
break;
case "alignItems":
break;
case "ao":
break;
case "applicationId":
break;
case "ti":
break;
case "apply":
break;
case "backgroundColor":
break;
case "round":
break;
case "bm":
break;
case "body":
break;
case "borderRadius":
break;
case "bottom":
break;
case "call":
break;
case "channel":
break;
case "channelId":
break;
case "channel_id":
break;
case "id":
break;
case "children":
break;
case "cix":
break;
case "ix":
break;
case "unicodeVersion":
break;
case "code":
break;
case "color":
break;
case "colors":
break;
case "concat":
break;
case "constructor":
break;
case "container":
break;
case "content":
break;
case "context":
break;
case "text":
break;
case "count":
break;
case "create":
break;
case "createStyles":
break;
case "ty":
break;
case "current":
break;
case "cursor":
break;
case "data":
break;
case "ddd":
break;
case "default":
break;
case "defineProperty":
break;
case "op":
break;
case "delete":
break;
case "description":
break;
case "ip":
break;
case "disabled":
break;
case "sa":
break;
case "dispatch":
break;
case "displayName":
break;
case "diversity":
break;
case "v":
break;
default:
return str;
}
}
};
obj[16] = {
name: "Color Space",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
}
};
obj[20] = {
name: "Connection Space",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
}
};
obj[24] = {
name: "ICC Profile Date",
value(getUint16, sum) {
const uint16 = getUint16.getUint16(sum);
const diff = getUint16.getUint16(sum + 2) - 1;
const uint161 = getUint16.getUint16(sum + 4);
const uint162 = getUint16.getUint16(sum + 6);
const uint163 = getUint16.getUint16(sum + 8);
return new Date(Date.UTC(uint16, diff, uint161, uint162, uint163, getUint16.getUint16(sum + 10))).toISOString();
}
};
obj[36] = {
name: "ICC Signature",
value(buffer) {
buffer = buffer.buffer;
const uint8Array = new Uint8Array(buffer.slice(arg1, arg1 + 4));
return fromCharCode.apply(null, uint8Array);
}
};
obj[40] = {
name: "Primary Platform",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
},
description(str) {
const formatted = str.toLowerCase();
if ("appl" === formatted) {
let str5 = "Apple";
} else if ("adbe" === formatted) {
str5 = "Adobe";
} else if ("msft" === formatted) {
str5 = "Microsoft";
} else if ("sunw" === formatted) {
str5 = "Sun Microsystems";
} else if ("sgi" === formatted) {
str5 = "Silicon Graphics";
} else {
str5 = "Taligent";
if ("tgnt" !== formatted) {
str5 = str;
}
}
return str5;
}
};
obj[48] = {
name: "Device Manufacturer",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
},
description(str) {
const formatted = str.toLowerCase();
if ("appl" === formatted) {
let str5 = "Apple";
} else if ("adbe" === formatted) {
str5 = "Adobe";
} else if ("msft" === formatted) {
str5 = "Microsoft";
} else if ("sunw" === formatted) {
str5 = "Sun Microsystems";
} else if ("sgi" === formatted) {
str5 = "Silicon Graphics";
} else {
str5 = "Taligent";
if ("tgnt" !== formatted) {
str5 = str;
}
}
return str5;
}
};
obj[52] = {
name: "Device Model Number",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
}
};
obj[64] = {
name: "Rendering Intent",
value(getUint32, sum) {
return getUint32.getUint32(sum);
},
description(arg0) {
if (0 === arg0) {
return "Perceptual";
} else if (1 === arg0) {
return "Relative Colorimetric";
} else if (2 === arg0) {
return "Saturation";
} else if (3 === arg0) {
return "Absolute Colorimetric";
} else {
return arg0;
}
}
};
obj[80] = {
name: "Profile Creator",
value(dataView, sum) {
return require(4910) /* getDataView */.getStringFromDataView(dataView, sum, 4);
}
};
arg5.iccTags = { desc: { name: "ICC Description" }, cprt: { name: "ICC Copyright" }, dmdd: { name: "ICC Device Model Description" }, vued: { name: "ICC Viewing Conditions Description" }, dmnd: { name: "ICC Device Manufacturer for Display" }, tech: { name: "Technology" } };
arg5.iccProfile = obj;