@predy-js/render-interface 0.3.3-beta.34 → 0.3.3-beta.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +34 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +35 -16
- package/dist/index.mjs.map +1 -1
- package/dist/statistic.js +1 -1
- package/dist/types/constants.d.ts +16 -0
- package/dist/types/native/PredyNativeInternal.d.ts +21 -14
- package/dist/types/native/TextureInternal.d.ts +1 -0
- package/dist/types/native/VideoDecoder.d.ts +77 -0
- package/dist/types/native/index.d.ts +1 -0
- package/package.json +1 -1
- package/types/constants.ts +20 -0
- package/types/native/PredyNativeInternal.ts +23 -24
- package/types/native/TextureInternal.ts +2 -0
- package/types/native/VideoDecoder.ts +87 -0
- package/types/native/index.ts +1 -0
package/dist/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* Name: @predy-js/render-interface
|
3
3
|
* Description: undefined
|
4
4
|
* Author: undefined
|
5
|
-
* Version: v0.3.3-beta.
|
5
|
+
* Version: v0.3.3-beta.35
|
6
6
|
*/
|
7
7
|
|
8
8
|
'use strict';
|
@@ -95,6 +95,25 @@ exports.DestroyOptions = void 0;
|
|
95
95
|
DestroyOptions[DestroyOptions["keep"] = 1] = "keep";
|
96
96
|
DestroyOptions[DestroyOptions["force"] = 0] = "force";
|
97
97
|
})(exports.DestroyOptions || (exports.DestroyOptions = {}));
|
98
|
+
exports.PredyTextEncoding = void 0;
|
99
|
+
(function (PredyTextEncoding) {
|
100
|
+
PredyTextEncoding[PredyTextEncoding["utf8"] = 0] = "utf8";
|
101
|
+
PredyTextEncoding[PredyTextEncoding["ascii"] = 1] = "ascii";
|
102
|
+
})(exports.PredyTextEncoding || (exports.PredyTextEncoding = {}));
|
103
|
+
exports.PredyVideoCodec = void 0;
|
104
|
+
(function (PredyVideoCodec) {
|
105
|
+
PredyVideoCodec["h264"] = "avc1";
|
106
|
+
PredyVideoCodec["h265"] = "hev1";
|
107
|
+
PredyVideoCodec["av1"] = "av1";
|
108
|
+
})(exports.PredyVideoCodec || (exports.PredyVideoCodec = {}));
|
109
|
+
exports.PredyResourceCacheStatus = void 0;
|
110
|
+
(function (PredyResourceCacheStatus) {
|
111
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["noCache"] = 0] = "noCache";
|
112
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["cached"] = 1] = "cached";
|
113
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["preloaded"] = 2] = "preloaded";
|
114
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["hitCDN"] = 3] = "hitCDN";
|
115
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["missCDN"] = 4] = "missCDN";
|
116
|
+
})(exports.PredyResourceCacheStatus || (exports.PredyResourceCacheStatus = {}));
|
98
117
|
|
99
118
|
exports.RenderPassDestroyAttachmentType = void 0;
|
100
119
|
(function (RenderPassDestroyAttachmentType) {
|
@@ -3147,19 +3166,16 @@ var ResourcePlatform;
|
|
3147
3166
|
ResourcePlatform[ResourcePlatform["android"] = 2] = "android";
|
3148
3167
|
})(ResourcePlatform || (ResourcePlatform = {}));
|
3149
3168
|
|
3150
|
-
var
|
3151
|
-
(function (
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
|
3156
|
-
|
3157
|
-
|
3158
|
-
|
3159
|
-
(
|
3160
|
-
PredyTextEncoding[PredyTextEncoding["utf8"] = 0] = "utf8";
|
3161
|
-
PredyTextEncoding[PredyTextEncoding["ascii"] = 1] = "ascii";
|
3162
|
-
})(PredyTextEncoding || (PredyTextEncoding = {}));
|
3169
|
+
var PredyVideoDecoderStatus;
|
3170
|
+
(function (PredyVideoDecoderStatus) {
|
3171
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["init"] = 0] = "init";
|
3172
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["loading"] = 1] = "loading";
|
3173
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["metadataReady"] = 2] = "metadataReady";
|
3174
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["seekingFrame"] = 3] = "seekingFrame";
|
3175
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["frameReady"] = 4] = "frameReady";
|
3176
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["destroyed"] = 5] = "destroyed";
|
3177
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["error"] = 44] = "error";
|
3178
|
+
})(PredyVideoDecoderStatus || (PredyVideoDecoderStatus = {}));
|
3163
3179
|
|
3164
3180
|
var GLRenderBuffer = /** @class */ (function () {
|
3165
3181
|
function GLRenderBuffer(renderer, options) {
|
@@ -5897,7 +5913,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5897
5913
|
return MarsSharedGeometry;
|
5898
5914
|
}(MarsGeometry));
|
5899
5915
|
|
5900
|
-
consoleLog('version: ' + "0.3.3-beta.
|
5916
|
+
consoleLog('version: ' + "0.3.3-beta.35");
|
5901
5917
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5902
5918
|
|
5903
5919
|
var RI = /*#__PURE__*/Object.freeze({
|
@@ -5919,6 +5935,9 @@ var RI = /*#__PURE__*/Object.freeze({
|
|
5919
5935
|
setDefaultTextureFactory: setDefaultTextureFactory,
|
5920
5936
|
MarsTextureFactory: MarsTextureFactory,
|
5921
5937
|
get DestroyOptions () { return exports.DestroyOptions; },
|
5938
|
+
get PredyTextEncoding () { return exports.PredyTextEncoding; },
|
5939
|
+
get PredyVideoCodec () { return exports.PredyVideoCodec; },
|
5940
|
+
get PredyResourceCacheStatus () { return exports.PredyResourceCacheStatus; },
|
5922
5941
|
get RenderPassDestroyAttachmentType () { return exports.RenderPassDestroyAttachmentType; },
|
5923
5942
|
RenderPassPriorityPrepare: RenderPassPriorityPrepare,
|
5924
5943
|
RenderPassPriorityNormal: RenderPassPriorityNormal,
|