decord/source/__polyfill/05xxx/module_5311.js
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

61 lines
1.9 KiB
JavaScript

// Module ID: 5311
// Function ID: 5312
// Dependencies: [5299]
// Module 5311
import _modDef5299 from "module_5299" /* 5299 */;
importDefault = arg2;
const dependencyMap = arg6;
const typeSizes = { 1: 1, 2: 1, 3: 2, 4: 4, 5: 8, 7: 1, 9: 4, 10: 8, 13: 4 };
const obj2 = { BYTE: 1, ASCII: 2, SHORT: 3, LONG: 4, RATIONAL: 5, UNDEFINED: 7, SLONG: 9, SRATIONAL: 10, IFD: 13 };
export default {
getAsciiValue(items) {
return items.map((item) => String.fromCharCode(item));
},
getByteAt(getUint8, sum) {
return getUint8.getUint8(sum);
},
getAsciiAt(getUint8, sum) {
return getUint8.getUint8(sum);
},
getShortAt(dataView, sum, byteOrder) {
return dataView.getUint16(sum, byteOrder === _modDef5299.LITTLE_ENDIAN);
},
getLongAt(dataView, sum, byteOrder) {
return dataView.getUint32(sum, byteOrder === _modDef5299.LITTLE_ENDIAN);
},
getRationalAt(getUint32, sum, arg2) {
const items = [getUint32.getUint32(sum, arg2 === _modDef5299.LITTLE_ENDIAN), ];
sum = sum + 4;
items[1] = getUint32.getUint32(sum, arg2 === _modDef5299.LITTLE_ENDIAN);
return items;
},
getUndefinedAt(getUint8, sum) {
return getUint8.getUint8(sum);
},
getSlongAt(getInt32, sum, arg2) {
return getInt32.getInt32(sum, arg2 === _modDef5299.LITTLE_ENDIAN);
},
getSrationalAt(getInt32, sum, arg2) {
const items = [getInt32.getInt32(sum, arg2 === _modDef5299.LITTLE_ENDIAN), ];
sum = sum + 4;
items[1] = getInt32.getInt32(sum, arg2 === _modDef5299.LITTLE_ENDIAN);
return items;
},
getIfdPointerAt(getUint32, sum, arg2) {
return getUint32.getUint32(sum, arg2 === _modDef5299.LITTLE_ENDIAN);
},
typeSizes,
tagTypes: obj2,
getTypeSize(LONG) {
if (undefined === obj2[LONG]) {
const _Error = Error;
const error = new Error("No such type found.");
throw error;
} else {
return obj[tmp[LONG]];
}
}
};