@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.mjs
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
|
/******************************************************************************
|
@@ -91,6 +91,25 @@ var DestroyOptions;
|
|
91
91
|
DestroyOptions[DestroyOptions["keep"] = 1] = "keep";
|
92
92
|
DestroyOptions[DestroyOptions["force"] = 0] = "force";
|
93
93
|
})(DestroyOptions || (DestroyOptions = {}));
|
94
|
+
var PredyTextEncoding;
|
95
|
+
(function (PredyTextEncoding) {
|
96
|
+
PredyTextEncoding[PredyTextEncoding["utf8"] = 0] = "utf8";
|
97
|
+
PredyTextEncoding[PredyTextEncoding["ascii"] = 1] = "ascii";
|
98
|
+
})(PredyTextEncoding || (PredyTextEncoding = {}));
|
99
|
+
var PredyVideoCodec;
|
100
|
+
(function (PredyVideoCodec) {
|
101
|
+
PredyVideoCodec["h264"] = "avc1";
|
102
|
+
PredyVideoCodec["h265"] = "hev1";
|
103
|
+
PredyVideoCodec["av1"] = "av1";
|
104
|
+
})(PredyVideoCodec || (PredyVideoCodec = {}));
|
105
|
+
var PredyResourceCacheStatus;
|
106
|
+
(function (PredyResourceCacheStatus) {
|
107
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["noCache"] = 0] = "noCache";
|
108
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["cached"] = 1] = "cached";
|
109
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["preloaded"] = 2] = "preloaded";
|
110
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["hitCDN"] = 3] = "hitCDN";
|
111
|
+
PredyResourceCacheStatus[PredyResourceCacheStatus["missCDN"] = 4] = "missCDN";
|
112
|
+
})(PredyResourceCacheStatus || (PredyResourceCacheStatus = {}));
|
94
113
|
|
95
114
|
var RenderPassDestroyAttachmentType;
|
96
115
|
(function (RenderPassDestroyAttachmentType) {
|
@@ -3143,19 +3162,16 @@ var ResourcePlatform;
|
|
3143
3162
|
ResourcePlatform[ResourcePlatform["android"] = 2] = "android";
|
3144
3163
|
})(ResourcePlatform || (ResourcePlatform = {}));
|
3145
3164
|
|
3146
|
-
var
|
3147
|
-
(function (
|
3148
|
-
|
3149
|
-
|
3150
|
-
|
3151
|
-
|
3152
|
-
|
3153
|
-
|
3154
|
-
|
3155
|
-
(
|
3156
|
-
PredyTextEncoding[PredyTextEncoding["utf8"] = 0] = "utf8";
|
3157
|
-
PredyTextEncoding[PredyTextEncoding["ascii"] = 1] = "ascii";
|
3158
|
-
})(PredyTextEncoding || (PredyTextEncoding = {}));
|
3165
|
+
var PredyVideoDecoderStatus;
|
3166
|
+
(function (PredyVideoDecoderStatus) {
|
3167
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["init"] = 0] = "init";
|
3168
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["loading"] = 1] = "loading";
|
3169
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["metadataReady"] = 2] = "metadataReady";
|
3170
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["seekingFrame"] = 3] = "seekingFrame";
|
3171
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["frameReady"] = 4] = "frameReady";
|
3172
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["destroyed"] = 5] = "destroyed";
|
3173
|
+
PredyVideoDecoderStatus[PredyVideoDecoderStatus["error"] = 44] = "error";
|
3174
|
+
})(PredyVideoDecoderStatus || (PredyVideoDecoderStatus = {}));
|
3159
3175
|
|
3160
3176
|
var GLRenderBuffer = /** @class */ (function () {
|
3161
3177
|
function GLRenderBuffer(renderer, options) {
|
@@ -5893,7 +5909,7 @@ var MarsSharedGeometry = /** @class */ (function (_super) {
|
|
5893
5909
|
return MarsSharedGeometry;
|
5894
5910
|
}(MarsGeometry));
|
5895
5911
|
|
5896
|
-
consoleLog('version: ' + "0.3.3-beta.
|
5912
|
+
consoleLog('version: ' + "0.3.3-beta.35");
|
5897
5913
|
var ModuleMsg = 'RI Package: @predy-js/render-interface';
|
5898
5914
|
|
5899
5915
|
var RI = /*#__PURE__*/Object.freeze({
|
@@ -5915,6 +5931,9 @@ var RI = /*#__PURE__*/Object.freeze({
|
|
5915
5931
|
setDefaultTextureFactory: setDefaultTextureFactory,
|
5916
5932
|
MarsTextureFactory: MarsTextureFactory,
|
5917
5933
|
get DestroyOptions () { return DestroyOptions; },
|
5934
|
+
get PredyTextEncoding () { return PredyTextEncoding; },
|
5935
|
+
get PredyVideoCodec () { return PredyVideoCodec; },
|
5936
|
+
get PredyResourceCacheStatus () { return PredyResourceCacheStatus; },
|
5918
5937
|
get RenderPassDestroyAttachmentType () { return RenderPassDestroyAttachmentType; },
|
5919
5938
|
RenderPassPriorityPrepare: RenderPassPriorityPrepare,
|
5920
5939
|
RenderPassPriorityNormal: RenderPassPriorityNormal,
|
@@ -5936,5 +5955,5 @@ else if (typeof global === 'object') {
|
|
5936
5955
|
global.PredyRI = RI;
|
5937
5956
|
}
|
5938
5957
|
|
5939
|
-
export { DestroyOptions, GPUBufferOptionsMemoryShared, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, ModuleMsg, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
|
5958
|
+
export { DestroyOptions, GPUBufferOptionsMemoryShared, MarsGeometry as Geometry, MarsInstancedMesh as InstancedMesh, MarsTextureFactory, MarsMaterial as Material, MarsMaterialDataBlock as MaterialDataBlock, MarsMesh as Mesh, ModuleMsg, PredyResourceCacheStatus, PredyTextEncoding, PredyVideoCodec, MarsRenderFrame as RenderFrame, MarsRenderPass as RenderPass, RenderPassAttachmentStorageType, RenderPassDestroyAttachmentType, RenderPassMeshOrder, RenderPassPriorityNormal, RenderPassPriorityPostprocess, RenderPassPriorityPrepare, MarsRenderer as Renderer, ShaderCompileResultStatus, ShaderLibraryEmpty, MarsSharedGeometry as SharedGeometry, MarsTexture as Texture, TextureLoadAction, TextureSourceType, TextureStoreAction, constants, getDefaultGPUCapability, getDefaultTextureFactory, setDefaultTextureFactory };
|
5940
5959
|
//# sourceMappingURL=index.mjs.map
|