@stinkycomputing/sesame-api-client 1.6.0 → 1.9.0-alpha.1
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/README.md +14 -2
- package/dist/command-list.d.ts +25 -1
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +2652 -568
- package/dist/index.browser.mjs.map +3 -3
- package/dist/index.cjs +2655 -568
- package/dist/index.cjs.map +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2652 -568
- package/dist/index.mjs.map +3 -3
- package/dist/proto/api.d.ts +1167 -59
- package/dist/proto/api.js +3311 -64
- package/dist/sesame-wire-protocol.d.ts +34 -0
- package/dist/sesame-wire-protocol.d.ts.map +1 -1
- package/docs/protocol-reference.md +259 -7
- package/package.json +1 -1
package/dist/index.browser.mjs
CHANGED
|
@@ -3915,11 +3915,14 @@ var sesame = $root.sesame = (() => {
|
|
|
3915
3915
|
CommandListItem.prototype.updateEncoder = null;
|
|
3916
3916
|
CommandListItem.prototype.removeEncoder = null;
|
|
3917
3917
|
CommandListItem.prototype.takePlaylist = null;
|
|
3918
|
+
CommandListItem.prototype.outputControl = null;
|
|
3919
|
+
CommandListItem.prototype.setSideData = null;
|
|
3920
|
+
CommandListItem.prototype.removeSideData = null;
|
|
3918
3921
|
CommandListItem.prototype.transactionId = null;
|
|
3919
3922
|
CommandListItem.prototype.transactionDeps = $util.emptyArray;
|
|
3920
3923
|
let $oneOfFields;
|
|
3921
3924
|
Object.defineProperty(CommandListItem.prototype, "item", {
|
|
3922
|
-
get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist"]),
|
|
3925
|
+
get: $util.oneOfGetter($oneOfFields = ["addSource", "updateSource", "removeSource", "addOutput", "updateOutput", "removeOutput", "addCompositor", "removeCompositor", "clearCompositor", "addNode", "removeNode", "setProperty", "animateProperty", "addAudioMixer", "updateAudioMixer", "removeAudioMixer", "addAudioChannel", "removeAudioChannel", "updateSourceTransport", "loadPlaylist", "ejectPlaylist", "callback", "setSourceMetadata", "setMetadataBindings", "addEncoder", "updateEncoder", "removeEncoder", "takePlaylist", "outputControl", "setSideData", "removeSideData"]),
|
|
3923
3926
|
set: $util.oneOfSetter($oneOfFields)
|
|
3924
3927
|
});
|
|
3925
3928
|
Object.defineProperty(CommandListItem.prototype, "_transactionId", {
|
|
@@ -4091,6 +4094,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4091
4094
|
/* id 31, wireType 2 =*/
|
|
4092
4095
|
250
|
|
4093
4096
|
).fork()).ldelim();
|
|
4097
|
+
if (message.outputControl != null && Object.hasOwnProperty.call(message, "outputControl"))
|
|
4098
|
+
$root.sesame.v1.outputs.OutputControlRequest.encode(message.outputControl, writer.uint32(
|
|
4099
|
+
/* id 32, wireType 2 =*/
|
|
4100
|
+
258
|
|
4101
|
+
).fork()).ldelim();
|
|
4102
|
+
if (message.setSideData != null && Object.hasOwnProperty.call(message, "setSideData"))
|
|
4103
|
+
$root.sesame.v1.compositor.SideDataSetRequest.encode(message.setSideData, writer.uint32(
|
|
4104
|
+
/* id 33, wireType 2 =*/
|
|
4105
|
+
266
|
|
4106
|
+
).fork()).ldelim();
|
|
4107
|
+
if (message.removeSideData != null && Object.hasOwnProperty.call(message, "removeSideData"))
|
|
4108
|
+
$root.sesame.v1.compositor.SideDataRemoveRequest.encode(message.removeSideData, writer.uint32(
|
|
4109
|
+
/* id 34, wireType 2 =*/
|
|
4110
|
+
274
|
|
4111
|
+
).fork()).ldelim();
|
|
4094
4112
|
return writer;
|
|
4095
4113
|
};
|
|
4096
4114
|
CommandListItem.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -4221,6 +4239,18 @@ var sesame = $root.sesame = (() => {
|
|
|
4221
4239
|
message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.decode(reader, reader.uint32());
|
|
4222
4240
|
break;
|
|
4223
4241
|
}
|
|
4242
|
+
case 32: {
|
|
4243
|
+
message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.decode(reader, reader.uint32());
|
|
4244
|
+
break;
|
|
4245
|
+
}
|
|
4246
|
+
case 33: {
|
|
4247
|
+
message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.decode(reader, reader.uint32());
|
|
4248
|
+
break;
|
|
4249
|
+
}
|
|
4250
|
+
case 34: {
|
|
4251
|
+
message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.decode(reader, reader.uint32());
|
|
4252
|
+
break;
|
|
4253
|
+
}
|
|
4224
4254
|
case 25: {
|
|
4225
4255
|
message.transactionId = reader.uint32();
|
|
4226
4256
|
break;
|
|
@@ -4534,6 +4564,36 @@ var sesame = $root.sesame = (() => {
|
|
|
4534
4564
|
return "takePlaylist." + error;
|
|
4535
4565
|
}
|
|
4536
4566
|
}
|
|
4567
|
+
if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
|
|
4568
|
+
if (properties.item === 1)
|
|
4569
|
+
return "item: multiple values";
|
|
4570
|
+
properties.item = 1;
|
|
4571
|
+
{
|
|
4572
|
+
let error = $root.sesame.v1.outputs.OutputControlRequest.verify(message.outputControl);
|
|
4573
|
+
if (error)
|
|
4574
|
+
return "outputControl." + error;
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
|
|
4578
|
+
if (properties.item === 1)
|
|
4579
|
+
return "item: multiple values";
|
|
4580
|
+
properties.item = 1;
|
|
4581
|
+
{
|
|
4582
|
+
let error = $root.sesame.v1.compositor.SideDataSetRequest.verify(message.setSideData);
|
|
4583
|
+
if (error)
|
|
4584
|
+
return "setSideData." + error;
|
|
4585
|
+
}
|
|
4586
|
+
}
|
|
4587
|
+
if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
|
|
4588
|
+
if (properties.item === 1)
|
|
4589
|
+
return "item: multiple values";
|
|
4590
|
+
properties.item = 1;
|
|
4591
|
+
{
|
|
4592
|
+
let error = $root.sesame.v1.compositor.SideDataRemoveRequest.verify(message.removeSideData);
|
|
4593
|
+
if (error)
|
|
4594
|
+
return "removeSideData." + error;
|
|
4595
|
+
}
|
|
4596
|
+
}
|
|
4537
4597
|
if (message.transactionId != null && message.hasOwnProperty("transactionId")) {
|
|
4538
4598
|
properties._transactionId = 1;
|
|
4539
4599
|
if (!$util.isInteger(message.transactionId))
|
|
@@ -4702,6 +4762,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4702
4762
|
throw TypeError(".sesame.v1.commands.CommandListItem.takePlaylist: object expected");
|
|
4703
4763
|
message.takePlaylist = $root.sesame.v1.sources.TakePlaylistRequest.fromObject(object.takePlaylist);
|
|
4704
4764
|
}
|
|
4765
|
+
if (object.outputControl != null) {
|
|
4766
|
+
if (typeof object.outputControl !== "object")
|
|
4767
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.outputControl: object expected");
|
|
4768
|
+
message.outputControl = $root.sesame.v1.outputs.OutputControlRequest.fromObject(object.outputControl);
|
|
4769
|
+
}
|
|
4770
|
+
if (object.setSideData != null) {
|
|
4771
|
+
if (typeof object.setSideData !== "object")
|
|
4772
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.setSideData: object expected");
|
|
4773
|
+
message.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.fromObject(object.setSideData);
|
|
4774
|
+
}
|
|
4775
|
+
if (object.removeSideData != null) {
|
|
4776
|
+
if (typeof object.removeSideData !== "object")
|
|
4777
|
+
throw TypeError(".sesame.v1.commands.CommandListItem.removeSideData: object expected");
|
|
4778
|
+
message.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.fromObject(object.removeSideData);
|
|
4779
|
+
}
|
|
4705
4780
|
if (object.transactionId != null)
|
|
4706
4781
|
message.transactionId = object.transactionId >>> 0;
|
|
4707
4782
|
if (object.transactionDeps) {
|
|
@@ -4880,6 +4955,21 @@ var sesame = $root.sesame = (() => {
|
|
|
4880
4955
|
if (options.oneofs)
|
|
4881
4956
|
object.item = "takePlaylist";
|
|
4882
4957
|
}
|
|
4958
|
+
if (message.outputControl != null && message.hasOwnProperty("outputControl")) {
|
|
4959
|
+
object.outputControl = $root.sesame.v1.outputs.OutputControlRequest.toObject(message.outputControl, options);
|
|
4960
|
+
if (options.oneofs)
|
|
4961
|
+
object.item = "outputControl";
|
|
4962
|
+
}
|
|
4963
|
+
if (message.setSideData != null && message.hasOwnProperty("setSideData")) {
|
|
4964
|
+
object.setSideData = $root.sesame.v1.compositor.SideDataSetRequest.toObject(message.setSideData, options);
|
|
4965
|
+
if (options.oneofs)
|
|
4966
|
+
object.item = "setSideData";
|
|
4967
|
+
}
|
|
4968
|
+
if (message.removeSideData != null && message.hasOwnProperty("removeSideData")) {
|
|
4969
|
+
object.removeSideData = $root.sesame.v1.compositor.SideDataRemoveRequest.toObject(message.removeSideData, options);
|
|
4970
|
+
if (options.oneofs)
|
|
4971
|
+
object.item = "removeSideData";
|
|
4972
|
+
}
|
|
4883
4973
|
return object;
|
|
4884
4974
|
};
|
|
4885
4975
|
CommandListItem.prototype.toJSON = function toJSON() {
|
|
@@ -5351,6 +5441,7 @@ var sesame = $root.sesame = (() => {
|
|
|
5351
5441
|
values[valuesById[4] = "CONNECTION_STATE_DEGRADED"] = 4;
|
|
5352
5442
|
values[valuesById[5] = "CONNECTION_STATE_OFFLINE"] = 5;
|
|
5353
5443
|
values[valuesById[6] = "CONNECTION_STATE_ERROR"] = 6;
|
|
5444
|
+
values[valuesById[7] = "CONNECTION_STATE_DISABLED"] = 7;
|
|
5354
5445
|
return values;
|
|
5355
5446
|
}();
|
|
5356
5447
|
common.VideoFormat = function() {
|
|
@@ -7744,6 +7835,13 @@ var sesame = $root.sesame = (() => {
|
|
|
7744
7835
|
values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
|
|
7745
7836
|
return values;
|
|
7746
7837
|
}();
|
|
7838
|
+
sources.SignalGeneratorTimecodeMode = function() {
|
|
7839
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
7840
|
+
values[valuesById[0] = "SIGNAL_GENERATOR_TIMECODE_MODE_NONE"] = 0;
|
|
7841
|
+
values[valuesById[1] = "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN"] = 1;
|
|
7842
|
+
values[valuesById[2] = "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY"] = 2;
|
|
7843
|
+
return values;
|
|
7844
|
+
}();
|
|
7747
7845
|
sources.SignalGeneratorSourceConfig = function() {
|
|
7748
7846
|
function SignalGeneratorSourceConfig(properties) {
|
|
7749
7847
|
if (properties) {
|
|
@@ -7755,6 +7853,8 @@ var sesame = $root.sesame = (() => {
|
|
|
7755
7853
|
SignalGeneratorSourceConfig.prototype.freeze = false;
|
|
7756
7854
|
SignalGeneratorSourceConfig.prototype.videoPattern = 0;
|
|
7757
7855
|
SignalGeneratorSourceConfig.prototype.audioMode = 0;
|
|
7856
|
+
SignalGeneratorSourceConfig.prototype.timecodeMode = 0;
|
|
7857
|
+
SignalGeneratorSourceConfig.prototype.timecodeStartFrame = 0;
|
|
7758
7858
|
SignalGeneratorSourceConfig.create = function create(properties) {
|
|
7759
7859
|
return new SignalGeneratorSourceConfig(properties);
|
|
7760
7860
|
};
|
|
@@ -7776,6 +7876,16 @@ var sesame = $root.sesame = (() => {
|
|
|
7776
7876
|
/* id 3, wireType 0 =*/
|
|
7777
7877
|
24
|
|
7778
7878
|
).int32(message.audioMode);
|
|
7879
|
+
if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
|
|
7880
|
+
writer.uint32(
|
|
7881
|
+
/* id 4, wireType 0 =*/
|
|
7882
|
+
32
|
|
7883
|
+
).int32(message.timecodeMode);
|
|
7884
|
+
if (message.timecodeStartFrame != null && Object.hasOwnProperty.call(message, "timecodeStartFrame"))
|
|
7885
|
+
writer.uint32(
|
|
7886
|
+
/* id 5, wireType 0 =*/
|
|
7887
|
+
40
|
|
7888
|
+
).uint32(message.timecodeStartFrame);
|
|
7779
7889
|
return writer;
|
|
7780
7890
|
};
|
|
7781
7891
|
SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -7802,6 +7912,14 @@ var sesame = $root.sesame = (() => {
|
|
|
7802
7912
|
message.audioMode = reader.int32();
|
|
7803
7913
|
break;
|
|
7804
7914
|
}
|
|
7915
|
+
case 4: {
|
|
7916
|
+
message.timecodeMode = reader.int32();
|
|
7917
|
+
break;
|
|
7918
|
+
}
|
|
7919
|
+
case 5: {
|
|
7920
|
+
message.timecodeStartFrame = reader.uint32();
|
|
7921
|
+
break;
|
|
7922
|
+
}
|
|
7805
7923
|
default:
|
|
7806
7924
|
reader.skipType(tag & 7);
|
|
7807
7925
|
break;
|
|
@@ -7841,6 +7959,19 @@ var sesame = $root.sesame = (() => {
|
|
|
7841
7959
|
case 3:
|
|
7842
7960
|
break;
|
|
7843
7961
|
}
|
|
7962
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
7963
|
+
switch (message.timecodeMode) {
|
|
7964
|
+
default:
|
|
7965
|
+
return "timecodeMode: enum value expected";
|
|
7966
|
+
case 0:
|
|
7967
|
+
case 1:
|
|
7968
|
+
case 2:
|
|
7969
|
+
break;
|
|
7970
|
+
}
|
|
7971
|
+
if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame")) {
|
|
7972
|
+
if (!$util.isInteger(message.timecodeStartFrame))
|
|
7973
|
+
return "timecodeStartFrame: integer expected";
|
|
7974
|
+
}
|
|
7844
7975
|
return null;
|
|
7845
7976
|
};
|
|
7846
7977
|
SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
|
|
@@ -7897,6 +8028,28 @@ var sesame = $root.sesame = (() => {
|
|
|
7897
8028
|
message.audioMode = 3;
|
|
7898
8029
|
break;
|
|
7899
8030
|
}
|
|
8031
|
+
switch (object.timecodeMode) {
|
|
8032
|
+
default:
|
|
8033
|
+
if (typeof object.timecodeMode === "number") {
|
|
8034
|
+
message.timecodeMode = object.timecodeMode;
|
|
8035
|
+
break;
|
|
8036
|
+
}
|
|
8037
|
+
break;
|
|
8038
|
+
case "SIGNAL_GENERATOR_TIMECODE_MODE_NONE":
|
|
8039
|
+
case 0:
|
|
8040
|
+
message.timecodeMode = 0;
|
|
8041
|
+
break;
|
|
8042
|
+
case "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN":
|
|
8043
|
+
case 1:
|
|
8044
|
+
message.timecodeMode = 1;
|
|
8045
|
+
break;
|
|
8046
|
+
case "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY":
|
|
8047
|
+
case 2:
|
|
8048
|
+
message.timecodeMode = 2;
|
|
8049
|
+
break;
|
|
8050
|
+
}
|
|
8051
|
+
if (object.timecodeStartFrame != null)
|
|
8052
|
+
message.timecodeStartFrame = object.timecodeStartFrame >>> 0;
|
|
7900
8053
|
return message;
|
|
7901
8054
|
};
|
|
7902
8055
|
SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
|
|
@@ -7907,6 +8060,8 @@ var sesame = $root.sesame = (() => {
|
|
|
7907
8060
|
object.freeze = false;
|
|
7908
8061
|
object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
|
|
7909
8062
|
object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
|
|
8063
|
+
object.timecodeMode = options.enums === String ? "SIGNAL_GENERATOR_TIMECODE_MODE_NONE" : 0;
|
|
8064
|
+
object.timecodeStartFrame = 0;
|
|
7910
8065
|
}
|
|
7911
8066
|
if (message.freeze != null && message.hasOwnProperty("freeze"))
|
|
7912
8067
|
object.freeze = message.freeze;
|
|
@@ -7914,6 +8069,10 @@ var sesame = $root.sesame = (() => {
|
|
|
7914
8069
|
object.videoPattern = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] === void 0 ? message.videoPattern : $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] : message.videoPattern;
|
|
7915
8070
|
if (message.audioMode != null && message.hasOwnProperty("audioMode"))
|
|
7916
8071
|
object.audioMode = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] === void 0 ? message.audioMode : $root.sesame.v1.sources.SignalGeneratorAudioMode[message.audioMode] : message.audioMode;
|
|
8072
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
8073
|
+
object.timecodeMode = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorTimecodeMode[message.timecodeMode] === void 0 ? message.timecodeMode : $root.sesame.v1.sources.SignalGeneratorTimecodeMode[message.timecodeMode] : message.timecodeMode;
|
|
8074
|
+
if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame"))
|
|
8075
|
+
object.timecodeStartFrame = message.timecodeStartFrame;
|
|
7917
8076
|
return object;
|
|
7918
8077
|
};
|
|
7919
8078
|
SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -9454,6 +9613,7 @@ var sesame = $root.sesame = (() => {
|
|
|
9454
9613
|
case 4:
|
|
9455
9614
|
case 5:
|
|
9456
9615
|
case 6:
|
|
9616
|
+
case 7:
|
|
9457
9617
|
break;
|
|
9458
9618
|
}
|
|
9459
9619
|
if (message.transportState != null && message.hasOwnProperty("transportState"))
|
|
@@ -9634,6 +9794,10 @@ var sesame = $root.sesame = (() => {
|
|
|
9634
9794
|
case 6:
|
|
9635
9795
|
message.state = 6;
|
|
9636
9796
|
break;
|
|
9797
|
+
case "CONNECTION_STATE_DISABLED":
|
|
9798
|
+
case 7:
|
|
9799
|
+
message.state = 7;
|
|
9800
|
+
break;
|
|
9637
9801
|
}
|
|
9638
9802
|
switch (object.transportState) {
|
|
9639
9803
|
default:
|
|
@@ -15040,6 +15204,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15040
15204
|
SystemStatus.prototype.gpuName = "";
|
|
15041
15205
|
SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
15042
15206
|
SystemStatus.prototype.version = "";
|
|
15207
|
+
SystemStatus.prototype.nvencSessions = 0;
|
|
15208
|
+
SystemStatus.prototype.nvdecSessions = 0;
|
|
15043
15209
|
SystemStatus.create = function create(properties) {
|
|
15044
15210
|
return new SystemStatus(properties);
|
|
15045
15211
|
};
|
|
@@ -15136,6 +15302,16 @@ var sesame = $root.sesame = (() => {
|
|
|
15136
15302
|
/* id 18, wireType 2 =*/
|
|
15137
15303
|
146
|
|
15138
15304
|
).string(message.version);
|
|
15305
|
+
if (message.nvencSessions != null && Object.hasOwnProperty.call(message, "nvencSessions"))
|
|
15306
|
+
writer.uint32(
|
|
15307
|
+
/* id 19, wireType 0 =*/
|
|
15308
|
+
152
|
|
15309
|
+
).uint32(message.nvencSessions);
|
|
15310
|
+
if (message.nvdecSessions != null && Object.hasOwnProperty.call(message, "nvdecSessions"))
|
|
15311
|
+
writer.uint32(
|
|
15312
|
+
/* id 20, wireType 0 =*/
|
|
15313
|
+
160
|
|
15314
|
+
).uint32(message.nvdecSessions);
|
|
15139
15315
|
return writer;
|
|
15140
15316
|
};
|
|
15141
15317
|
SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -15222,6 +15398,14 @@ var sesame = $root.sesame = (() => {
|
|
|
15222
15398
|
message.version = reader.string();
|
|
15223
15399
|
break;
|
|
15224
15400
|
}
|
|
15401
|
+
case 19: {
|
|
15402
|
+
message.nvencSessions = reader.uint32();
|
|
15403
|
+
break;
|
|
15404
|
+
}
|
|
15405
|
+
case 20: {
|
|
15406
|
+
message.nvdecSessions = reader.uint32();
|
|
15407
|
+
break;
|
|
15408
|
+
}
|
|
15225
15409
|
default:
|
|
15226
15410
|
reader.skipType(tag & 7);
|
|
15227
15411
|
break;
|
|
@@ -15313,6 +15497,14 @@ var sesame = $root.sesame = (() => {
|
|
|
15313
15497
|
if (!$util.isString(message.version))
|
|
15314
15498
|
return "version: string expected";
|
|
15315
15499
|
}
|
|
15500
|
+
if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions")) {
|
|
15501
|
+
if (!$util.isInteger(message.nvencSessions))
|
|
15502
|
+
return "nvencSessions: integer expected";
|
|
15503
|
+
}
|
|
15504
|
+
if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions")) {
|
|
15505
|
+
if (!$util.isInteger(message.nvdecSessions))
|
|
15506
|
+
return "nvdecSessions: integer expected";
|
|
15507
|
+
}
|
|
15316
15508
|
return null;
|
|
15317
15509
|
};
|
|
15318
15510
|
SystemStatus.fromObject = function fromObject(object) {
|
|
@@ -15415,6 +15607,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15415
15607
|
}
|
|
15416
15608
|
if (object.version != null)
|
|
15417
15609
|
message.version = String(object.version);
|
|
15610
|
+
if (object.nvencSessions != null)
|
|
15611
|
+
message.nvencSessions = object.nvencSessions >>> 0;
|
|
15612
|
+
if (object.nvdecSessions != null)
|
|
15613
|
+
message.nvdecSessions = object.nvdecSessions >>> 0;
|
|
15418
15614
|
return message;
|
|
15419
15615
|
};
|
|
15420
15616
|
SystemStatus.toObject = function toObject(message, options) {
|
|
@@ -15464,6 +15660,8 @@ var sesame = $root.sesame = (() => {
|
|
|
15464
15660
|
} else
|
|
15465
15661
|
object.vmaBytes = options.longs === String ? "0" : 0;
|
|
15466
15662
|
object.version = "";
|
|
15663
|
+
object.nvencSessions = 0;
|
|
15664
|
+
object.nvdecSessions = 0;
|
|
15467
15665
|
}
|
|
15468
15666
|
if (message.uptime != null && message.hasOwnProperty("uptime"))
|
|
15469
15667
|
if (typeof message.uptime === "number")
|
|
@@ -15519,6 +15717,10 @@ var sesame = $root.sesame = (() => {
|
|
|
15519
15717
|
object.vmaBytes = options.longs === String ? $util.Long.prototype.toString.call(message.vmaBytes) : options.longs === Number ? new $util.LongBits(message.vmaBytes.low >>> 0, message.vmaBytes.high >>> 0).toNumber(true) : message.vmaBytes;
|
|
15520
15718
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
15521
15719
|
object.version = message.version;
|
|
15720
|
+
if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions"))
|
|
15721
|
+
object.nvencSessions = message.nvencSessions;
|
|
15722
|
+
if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions"))
|
|
15723
|
+
object.nvdecSessions = message.nvdecSessions;
|
|
15522
15724
|
return object;
|
|
15523
15725
|
};
|
|
15524
15726
|
SystemStatus.prototype.toJSON = function toJSON() {
|
|
@@ -17572,117 +17774,219 @@ var sesame = $root.sesame = (() => {
|
|
|
17572
17774
|
values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
|
|
17573
17775
|
return values;
|
|
17574
17776
|
}();
|
|
17575
|
-
outputs.
|
|
17777
|
+
outputs.EncoderTuning = function() {
|
|
17576
17778
|
const valuesById = {}, values = Object.create(valuesById);
|
|
17577
|
-
values[valuesById[0] = "
|
|
17578
|
-
values[valuesById[1] = "
|
|
17579
|
-
values[valuesById[2] = "
|
|
17580
|
-
values[valuesById[3] = "
|
|
17779
|
+
values[valuesById[0] = "ENCODER_TUNING_UNSPECIFIED"] = 0;
|
|
17780
|
+
values[valuesById[1] = "ENCODER_TUNING_ULTRA_LOW_LATENCY"] = 1;
|
|
17781
|
+
values[valuesById[2] = "ENCODER_TUNING_LOW_LATENCY"] = 2;
|
|
17782
|
+
values[valuesById[3] = "ENCODER_TUNING_HIGH_QUALITY"] = 3;
|
|
17581
17783
|
return values;
|
|
17582
17784
|
}();
|
|
17583
|
-
outputs.
|
|
17785
|
+
outputs.EncoderRateControl = function() {
|
|
17584
17786
|
const valuesById = {}, values = Object.create(valuesById);
|
|
17585
|
-
values[valuesById[0] = "
|
|
17586
|
-
values[valuesById[1] = "
|
|
17587
|
-
values[valuesById[2] = "
|
|
17787
|
+
values[valuesById[0] = "ENCODER_RATE_CONTROL_UNSPECIFIED"] = 0;
|
|
17788
|
+
values[valuesById[1] = "ENCODER_RATE_CONTROL_CBR"] = 1;
|
|
17789
|
+
values[valuesById[2] = "ENCODER_RATE_CONTROL_VBR"] = 2;
|
|
17588
17790
|
return values;
|
|
17589
17791
|
}();
|
|
17590
|
-
outputs.
|
|
17591
|
-
|
|
17792
|
+
outputs.EncoderProfile = function() {
|
|
17793
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17794
|
+
values[valuesById[0] = "ENCODER_PROFILE_AUTO"] = 0;
|
|
17795
|
+
values[valuesById[1] = "ENCODER_PROFILE_BASELINE"] = 1;
|
|
17796
|
+
values[valuesById[2] = "ENCODER_PROFILE_MAIN"] = 2;
|
|
17797
|
+
values[valuesById[3] = "ENCODER_PROFILE_MAIN10"] = 3;
|
|
17798
|
+
values[valuesById[4] = "ENCODER_PROFILE_HIGH"] = 4;
|
|
17799
|
+
return values;
|
|
17800
|
+
}();
|
|
17801
|
+
outputs.EncoderMultipass = function() {
|
|
17802
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17803
|
+
values[valuesById[0] = "ENCODER_MULTIPASS_DISABLED"] = 0;
|
|
17804
|
+
values[valuesById[1] = "ENCODER_MULTIPASS_QUARTER_RESOLUTION"] = 1;
|
|
17805
|
+
values[valuesById[2] = "ENCODER_MULTIPASS_FULL_RESOLUTION"] = 2;
|
|
17806
|
+
return values;
|
|
17807
|
+
}();
|
|
17808
|
+
outputs.EncoderChromaFormat = function() {
|
|
17809
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17810
|
+
values[valuesById[0] = "ENCODER_CHROMA_FORMAT_420"] = 0;
|
|
17811
|
+
values[valuesById[1] = "ENCODER_CHROMA_FORMAT_444"] = 1;
|
|
17812
|
+
return values;
|
|
17813
|
+
}();
|
|
17814
|
+
outputs.EncoderSettings = function() {
|
|
17815
|
+
function EncoderSettings(properties) {
|
|
17592
17816
|
if (properties) {
|
|
17593
17817
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17594
17818
|
if (properties[keys[i]] != null)
|
|
17595
17819
|
this[keys[i]] = properties[keys[i]];
|
|
17596
17820
|
}
|
|
17597
17821
|
}
|
|
17598
|
-
|
|
17599
|
-
|
|
17600
|
-
|
|
17601
|
-
|
|
17602
|
-
|
|
17603
|
-
|
|
17604
|
-
|
|
17605
|
-
|
|
17606
|
-
|
|
17607
|
-
|
|
17608
|
-
|
|
17822
|
+
EncoderSettings.prototype.tuning = 0;
|
|
17823
|
+
EncoderSettings.prototype.effort = 0;
|
|
17824
|
+
EncoderSettings.prototype.rateControl = 0;
|
|
17825
|
+
EncoderSettings.prototype.maxBitrateKbps = 0;
|
|
17826
|
+
EncoderSettings.prototype.profile = 0;
|
|
17827
|
+
EncoderSettings.prototype.bframes = 0;
|
|
17828
|
+
EncoderSettings.prototype.idrOnly = false;
|
|
17829
|
+
EncoderSettings.prototype.spatialAq = false;
|
|
17830
|
+
EncoderSettings.prototype.multipass = 0;
|
|
17831
|
+
EncoderSettings.prototype.lookaheadDepth = 0;
|
|
17832
|
+
EncoderSettings.prototype.zeroReorderDelay = false;
|
|
17833
|
+
EncoderSettings.prototype.bitDepth = 0;
|
|
17834
|
+
EncoderSettings.prototype.chromaFormat = 0;
|
|
17835
|
+
EncoderSettings.prototype.outputAud = false;
|
|
17836
|
+
EncoderSettings.prototype.level = "";
|
|
17837
|
+
EncoderSettings.create = function create(properties) {
|
|
17838
|
+
return new EncoderSettings(properties);
|
|
17839
|
+
};
|
|
17840
|
+
EncoderSettings.encode = function encode(message, writer) {
|
|
17609
17841
|
if (!writer)
|
|
17610
17842
|
writer = $Writer.create();
|
|
17611
|
-
if (message.
|
|
17843
|
+
if (message.tuning != null && Object.hasOwnProperty.call(message, "tuning"))
|
|
17612
17844
|
writer.uint32(
|
|
17613
17845
|
/* id 1, wireType 0 =*/
|
|
17614
17846
|
8
|
|
17615
|
-
).int32(message.
|
|
17616
|
-
if (message.
|
|
17847
|
+
).int32(message.tuning);
|
|
17848
|
+
if (message.effort != null && Object.hasOwnProperty.call(message, "effort"))
|
|
17617
17849
|
writer.uint32(
|
|
17618
17850
|
/* id 2, wireType 0 =*/
|
|
17619
17851
|
16
|
|
17620
|
-
).
|
|
17621
|
-
if (message.
|
|
17852
|
+
).uint32(message.effort);
|
|
17853
|
+
if (message.rateControl != null && Object.hasOwnProperty.call(message, "rateControl"))
|
|
17622
17854
|
writer.uint32(
|
|
17623
17855
|
/* id 3, wireType 0 =*/
|
|
17624
17856
|
24
|
|
17625
|
-
).
|
|
17626
|
-
if (message.
|
|
17857
|
+
).int32(message.rateControl);
|
|
17858
|
+
if (message.maxBitrateKbps != null && Object.hasOwnProperty.call(message, "maxBitrateKbps"))
|
|
17627
17859
|
writer.uint32(
|
|
17628
17860
|
/* id 4, wireType 0 =*/
|
|
17629
17861
|
32
|
|
17630
|
-
).uint32(message.
|
|
17631
|
-
if (message.
|
|
17862
|
+
).uint32(message.maxBitrateKbps);
|
|
17863
|
+
if (message.profile != null && Object.hasOwnProperty.call(message, "profile"))
|
|
17632
17864
|
writer.uint32(
|
|
17633
17865
|
/* id 5, wireType 0 =*/
|
|
17634
17866
|
40
|
|
17635
|
-
).
|
|
17636
|
-
if (message.
|
|
17867
|
+
).int32(message.profile);
|
|
17868
|
+
if (message.bframes != null && Object.hasOwnProperty.call(message, "bframes"))
|
|
17637
17869
|
writer.uint32(
|
|
17638
17870
|
/* id 6, wireType 0 =*/
|
|
17639
17871
|
48
|
|
17640
|
-
).uint32(message.
|
|
17641
|
-
if (message.
|
|
17872
|
+
).uint32(message.bframes);
|
|
17873
|
+
if (message.idrOnly != null && Object.hasOwnProperty.call(message, "idrOnly"))
|
|
17642
17874
|
writer.uint32(
|
|
17643
|
-
/* id 7, wireType
|
|
17644
|
-
|
|
17645
|
-
).
|
|
17875
|
+
/* id 7, wireType 0 =*/
|
|
17876
|
+
56
|
|
17877
|
+
).bool(message.idrOnly);
|
|
17878
|
+
if (message.spatialAq != null && Object.hasOwnProperty.call(message, "spatialAq"))
|
|
17879
|
+
writer.uint32(
|
|
17880
|
+
/* id 8, wireType 0 =*/
|
|
17881
|
+
64
|
|
17882
|
+
).bool(message.spatialAq);
|
|
17883
|
+
if (message.multipass != null && Object.hasOwnProperty.call(message, "multipass"))
|
|
17884
|
+
writer.uint32(
|
|
17885
|
+
/* id 9, wireType 0 =*/
|
|
17886
|
+
72
|
|
17887
|
+
).int32(message.multipass);
|
|
17888
|
+
if (message.lookaheadDepth != null && Object.hasOwnProperty.call(message, "lookaheadDepth"))
|
|
17889
|
+
writer.uint32(
|
|
17890
|
+
/* id 10, wireType 0 =*/
|
|
17891
|
+
80
|
|
17892
|
+
).uint32(message.lookaheadDepth);
|
|
17893
|
+
if (message.zeroReorderDelay != null && Object.hasOwnProperty.call(message, "zeroReorderDelay"))
|
|
17894
|
+
writer.uint32(
|
|
17895
|
+
/* id 11, wireType 0 =*/
|
|
17896
|
+
88
|
|
17897
|
+
).bool(message.zeroReorderDelay);
|
|
17898
|
+
if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
|
|
17899
|
+
writer.uint32(
|
|
17900
|
+
/* id 12, wireType 0 =*/
|
|
17901
|
+
96
|
|
17902
|
+
).uint32(message.bitDepth);
|
|
17903
|
+
if (message.chromaFormat != null && Object.hasOwnProperty.call(message, "chromaFormat"))
|
|
17904
|
+
writer.uint32(
|
|
17905
|
+
/* id 13, wireType 0 =*/
|
|
17906
|
+
104
|
|
17907
|
+
).int32(message.chromaFormat);
|
|
17908
|
+
if (message.outputAud != null && Object.hasOwnProperty.call(message, "outputAud"))
|
|
17909
|
+
writer.uint32(
|
|
17910
|
+
/* id 14, wireType 0 =*/
|
|
17911
|
+
112
|
|
17912
|
+
).bool(message.outputAud);
|
|
17913
|
+
if (message.level != null && Object.hasOwnProperty.call(message, "level"))
|
|
17914
|
+
writer.uint32(
|
|
17915
|
+
/* id 15, wireType 2 =*/
|
|
17916
|
+
122
|
|
17917
|
+
).string(message.level);
|
|
17646
17918
|
return writer;
|
|
17647
17919
|
};
|
|
17648
|
-
|
|
17920
|
+
EncoderSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17649
17921
|
return this.encode(message, writer).ldelim();
|
|
17650
17922
|
};
|
|
17651
|
-
|
|
17923
|
+
EncoderSettings.decode = function decode(reader, length, error) {
|
|
17652
17924
|
if (!(reader instanceof $Reader))
|
|
17653
17925
|
reader = $Reader.create(reader);
|
|
17654
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
17926
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderSettings();
|
|
17655
17927
|
while (reader.pos < end) {
|
|
17656
17928
|
let tag = reader.uint32();
|
|
17657
17929
|
if (tag === error)
|
|
17658
17930
|
break;
|
|
17659
17931
|
switch (tag >>> 3) {
|
|
17660
17932
|
case 1: {
|
|
17661
|
-
message.
|
|
17933
|
+
message.tuning = reader.int32();
|
|
17662
17934
|
break;
|
|
17663
17935
|
}
|
|
17664
17936
|
case 2: {
|
|
17665
|
-
message.
|
|
17937
|
+
message.effort = reader.uint32();
|
|
17666
17938
|
break;
|
|
17667
17939
|
}
|
|
17668
17940
|
case 3: {
|
|
17669
|
-
message.
|
|
17941
|
+
message.rateControl = reader.int32();
|
|
17670
17942
|
break;
|
|
17671
17943
|
}
|
|
17672
17944
|
case 4: {
|
|
17673
|
-
message.
|
|
17945
|
+
message.maxBitrateKbps = reader.uint32();
|
|
17674
17946
|
break;
|
|
17675
17947
|
}
|
|
17676
17948
|
case 5: {
|
|
17677
|
-
message.
|
|
17949
|
+
message.profile = reader.int32();
|
|
17678
17950
|
break;
|
|
17679
17951
|
}
|
|
17680
17952
|
case 6: {
|
|
17681
|
-
message.
|
|
17953
|
+
message.bframes = reader.uint32();
|
|
17682
17954
|
break;
|
|
17683
17955
|
}
|
|
17684
17956
|
case 7: {
|
|
17685
|
-
message.
|
|
17957
|
+
message.idrOnly = reader.bool();
|
|
17958
|
+
break;
|
|
17959
|
+
}
|
|
17960
|
+
case 8: {
|
|
17961
|
+
message.spatialAq = reader.bool();
|
|
17962
|
+
break;
|
|
17963
|
+
}
|
|
17964
|
+
case 9: {
|
|
17965
|
+
message.multipass = reader.int32();
|
|
17966
|
+
break;
|
|
17967
|
+
}
|
|
17968
|
+
case 10: {
|
|
17969
|
+
message.lookaheadDepth = reader.uint32();
|
|
17970
|
+
break;
|
|
17971
|
+
}
|
|
17972
|
+
case 11: {
|
|
17973
|
+
message.zeroReorderDelay = reader.bool();
|
|
17974
|
+
break;
|
|
17975
|
+
}
|
|
17976
|
+
case 12: {
|
|
17977
|
+
message.bitDepth = reader.uint32();
|
|
17978
|
+
break;
|
|
17979
|
+
}
|
|
17980
|
+
case 13: {
|
|
17981
|
+
message.chromaFormat = reader.int32();
|
|
17982
|
+
break;
|
|
17983
|
+
}
|
|
17984
|
+
case 14: {
|
|
17985
|
+
message.outputAud = reader.bool();
|
|
17986
|
+
break;
|
|
17987
|
+
}
|
|
17988
|
+
case 15: {
|
|
17989
|
+
message.level = reader.string();
|
|
17686
17990
|
break;
|
|
17687
17991
|
}
|
|
17688
17992
|
default:
|
|
@@ -17692,256 +17996,431 @@ var sesame = $root.sesame = (() => {
|
|
|
17692
17996
|
}
|
|
17693
17997
|
return message;
|
|
17694
17998
|
};
|
|
17695
|
-
|
|
17999
|
+
EncoderSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
17696
18000
|
if (!(reader instanceof $Reader))
|
|
17697
18001
|
reader = new $Reader(reader);
|
|
17698
18002
|
return this.decode(reader, reader.uint32());
|
|
17699
18003
|
};
|
|
17700
|
-
|
|
18004
|
+
EncoderSettings.verify = function verify(message) {
|
|
17701
18005
|
if (typeof message !== "object" || message === null)
|
|
17702
18006
|
return "object expected";
|
|
17703
|
-
if (message.
|
|
17704
|
-
switch (message.
|
|
18007
|
+
if (message.tuning != null && message.hasOwnProperty("tuning"))
|
|
18008
|
+
switch (message.tuning) {
|
|
17705
18009
|
default:
|
|
17706
|
-
return "
|
|
18010
|
+
return "tuning: enum value expected";
|
|
17707
18011
|
case 0:
|
|
17708
18012
|
case 1:
|
|
17709
18013
|
case 2:
|
|
17710
18014
|
case 3:
|
|
17711
|
-
case 4:
|
|
17712
|
-
case 5:
|
|
17713
|
-
case 6:
|
|
17714
|
-
case 7:
|
|
17715
|
-
case 64:
|
|
17716
|
-
case 65:
|
|
17717
|
-
case 66:
|
|
17718
|
-
case 67:
|
|
17719
18015
|
break;
|
|
17720
18016
|
}
|
|
17721
|
-
if (message.
|
|
17722
|
-
|
|
18017
|
+
if (message.effort != null && message.hasOwnProperty("effort")) {
|
|
18018
|
+
if (!$util.isInteger(message.effort))
|
|
18019
|
+
return "effort: integer expected";
|
|
18020
|
+
}
|
|
18021
|
+
if (message.rateControl != null && message.hasOwnProperty("rateControl"))
|
|
18022
|
+
switch (message.rateControl) {
|
|
18023
|
+
default:
|
|
18024
|
+
return "rateControl: enum value expected";
|
|
18025
|
+
case 0:
|
|
18026
|
+
case 1:
|
|
18027
|
+
case 2:
|
|
18028
|
+
break;
|
|
18029
|
+
}
|
|
18030
|
+
if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps")) {
|
|
18031
|
+
if (!$util.isInteger(message.maxBitrateKbps))
|
|
18032
|
+
return "maxBitrateKbps: integer expected";
|
|
18033
|
+
}
|
|
18034
|
+
if (message.profile != null && message.hasOwnProperty("profile"))
|
|
18035
|
+
switch (message.profile) {
|
|
17723
18036
|
default:
|
|
17724
|
-
return "
|
|
18037
|
+
return "profile: enum value expected";
|
|
17725
18038
|
case 0:
|
|
17726
18039
|
case 1:
|
|
17727
18040
|
case 2:
|
|
17728
18041
|
case 3:
|
|
18042
|
+
case 4:
|
|
17729
18043
|
break;
|
|
17730
18044
|
}
|
|
17731
|
-
if (message.
|
|
17732
|
-
if (!$util.isInteger(message.
|
|
17733
|
-
return "
|
|
18045
|
+
if (message.bframes != null && message.hasOwnProperty("bframes")) {
|
|
18046
|
+
if (!$util.isInteger(message.bframes))
|
|
18047
|
+
return "bframes: integer expected";
|
|
17734
18048
|
}
|
|
17735
|
-
if (message.
|
|
17736
|
-
if (
|
|
17737
|
-
return "
|
|
18049
|
+
if (message.idrOnly != null && message.hasOwnProperty("idrOnly")) {
|
|
18050
|
+
if (typeof message.idrOnly !== "boolean")
|
|
18051
|
+
return "idrOnly: boolean expected";
|
|
17738
18052
|
}
|
|
17739
|
-
if (message.
|
|
17740
|
-
if (
|
|
17741
|
-
return "
|
|
18053
|
+
if (message.spatialAq != null && message.hasOwnProperty("spatialAq")) {
|
|
18054
|
+
if (typeof message.spatialAq !== "boolean")
|
|
18055
|
+
return "spatialAq: boolean expected";
|
|
17742
18056
|
}
|
|
17743
|
-
if (message.
|
|
17744
|
-
|
|
17745
|
-
|
|
18057
|
+
if (message.multipass != null && message.hasOwnProperty("multipass"))
|
|
18058
|
+
switch (message.multipass) {
|
|
18059
|
+
default:
|
|
18060
|
+
return "multipass: enum value expected";
|
|
18061
|
+
case 0:
|
|
18062
|
+
case 1:
|
|
18063
|
+
case 2:
|
|
18064
|
+
break;
|
|
18065
|
+
}
|
|
18066
|
+
if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth")) {
|
|
18067
|
+
if (!$util.isInteger(message.lookaheadDepth))
|
|
18068
|
+
return "lookaheadDepth: integer expected";
|
|
17746
18069
|
}
|
|
17747
|
-
if (message.
|
|
17748
|
-
if (typeof message.
|
|
17749
|
-
return "
|
|
18070
|
+
if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay")) {
|
|
18071
|
+
if (typeof message.zeroReorderDelay !== "boolean")
|
|
18072
|
+
return "zeroReorderDelay: boolean expected";
|
|
17750
18073
|
}
|
|
17751
|
-
|
|
17752
|
-
|
|
17753
|
-
|
|
17754
|
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
|
|
17759
|
-
|
|
17760
|
-
|
|
17761
|
-
break;
|
|
17762
|
-
|
|
18074
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth")) {
|
|
18075
|
+
if (!$util.isInteger(message.bitDepth))
|
|
18076
|
+
return "bitDepth: integer expected";
|
|
18077
|
+
}
|
|
18078
|
+
if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
|
|
18079
|
+
switch (message.chromaFormat) {
|
|
18080
|
+
default:
|
|
18081
|
+
return "chromaFormat: enum value expected";
|
|
18082
|
+
case 0:
|
|
18083
|
+
case 1:
|
|
18084
|
+
break;
|
|
18085
|
+
}
|
|
18086
|
+
if (message.outputAud != null && message.hasOwnProperty("outputAud")) {
|
|
18087
|
+
if (typeof message.outputAud !== "boolean")
|
|
18088
|
+
return "outputAud: boolean expected";
|
|
18089
|
+
}
|
|
18090
|
+
if (message.level != null && message.hasOwnProperty("level")) {
|
|
18091
|
+
if (!$util.isString(message.level))
|
|
18092
|
+
return "level: string expected";
|
|
18093
|
+
}
|
|
18094
|
+
return null;
|
|
18095
|
+
};
|
|
18096
|
+
EncoderSettings.fromObject = function fromObject(object) {
|
|
18097
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderSettings)
|
|
18098
|
+
return object;
|
|
18099
|
+
let message = new $root.sesame.v1.outputs.EncoderSettings();
|
|
18100
|
+
switch (object.tuning) {
|
|
18101
|
+
default:
|
|
18102
|
+
if (typeof object.tuning === "number") {
|
|
18103
|
+
message.tuning = object.tuning;
|
|
18104
|
+
break;
|
|
18105
|
+
}
|
|
17763
18106
|
break;
|
|
17764
|
-
case "
|
|
18107
|
+
case "ENCODER_TUNING_UNSPECIFIED":
|
|
17765
18108
|
case 0:
|
|
17766
|
-
message.
|
|
18109
|
+
message.tuning = 0;
|
|
17767
18110
|
break;
|
|
17768
|
-
case "
|
|
18111
|
+
case "ENCODER_TUNING_ULTRA_LOW_LATENCY":
|
|
17769
18112
|
case 1:
|
|
17770
|
-
message.
|
|
18113
|
+
message.tuning = 1;
|
|
17771
18114
|
break;
|
|
17772
|
-
case "
|
|
18115
|
+
case "ENCODER_TUNING_LOW_LATENCY":
|
|
17773
18116
|
case 2:
|
|
17774
|
-
message.
|
|
18117
|
+
message.tuning = 2;
|
|
17775
18118
|
break;
|
|
17776
|
-
case "
|
|
18119
|
+
case "ENCODER_TUNING_HIGH_QUALITY":
|
|
17777
18120
|
case 3:
|
|
17778
|
-
message.
|
|
18121
|
+
message.tuning = 3;
|
|
17779
18122
|
break;
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
18123
|
+
}
|
|
18124
|
+
if (object.effort != null)
|
|
18125
|
+
message.effort = object.effort >>> 0;
|
|
18126
|
+
switch (object.rateControl) {
|
|
18127
|
+
default:
|
|
18128
|
+
if (typeof object.rateControl === "number") {
|
|
18129
|
+
message.rateControl = object.rateControl;
|
|
18130
|
+
break;
|
|
18131
|
+
}
|
|
17783
18132
|
break;
|
|
17784
|
-
case "
|
|
17785
|
-
case
|
|
17786
|
-
message.
|
|
18133
|
+
case "ENCODER_RATE_CONTROL_UNSPECIFIED":
|
|
18134
|
+
case 0:
|
|
18135
|
+
message.rateControl = 0;
|
|
17787
18136
|
break;
|
|
17788
|
-
case "
|
|
17789
|
-
case
|
|
17790
|
-
message.
|
|
18137
|
+
case "ENCODER_RATE_CONTROL_CBR":
|
|
18138
|
+
case 1:
|
|
18139
|
+
message.rateControl = 1;
|
|
17791
18140
|
break;
|
|
17792
|
-
case "
|
|
17793
|
-
case
|
|
17794
|
-
message.
|
|
18141
|
+
case "ENCODER_RATE_CONTROL_VBR":
|
|
18142
|
+
case 2:
|
|
18143
|
+
message.rateControl = 2;
|
|
17795
18144
|
break;
|
|
17796
|
-
|
|
17797
|
-
|
|
17798
|
-
|
|
18145
|
+
}
|
|
18146
|
+
if (object.maxBitrateKbps != null)
|
|
18147
|
+
message.maxBitrateKbps = object.maxBitrateKbps >>> 0;
|
|
18148
|
+
switch (object.profile) {
|
|
18149
|
+
default:
|
|
18150
|
+
if (typeof object.profile === "number") {
|
|
18151
|
+
message.profile = object.profile;
|
|
18152
|
+
break;
|
|
18153
|
+
}
|
|
17799
18154
|
break;
|
|
17800
|
-
case "
|
|
17801
|
-
case
|
|
17802
|
-
message.
|
|
18155
|
+
case "ENCODER_PROFILE_AUTO":
|
|
18156
|
+
case 0:
|
|
18157
|
+
message.profile = 0;
|
|
17803
18158
|
break;
|
|
17804
|
-
case "
|
|
17805
|
-
case
|
|
17806
|
-
message.
|
|
18159
|
+
case "ENCODER_PROFILE_BASELINE":
|
|
18160
|
+
case 1:
|
|
18161
|
+
message.profile = 1;
|
|
17807
18162
|
break;
|
|
17808
|
-
case "
|
|
17809
|
-
case
|
|
17810
|
-
message.
|
|
18163
|
+
case "ENCODER_PROFILE_MAIN":
|
|
18164
|
+
case 2:
|
|
18165
|
+
message.profile = 2;
|
|
18166
|
+
break;
|
|
18167
|
+
case "ENCODER_PROFILE_MAIN10":
|
|
18168
|
+
case 3:
|
|
18169
|
+
message.profile = 3;
|
|
18170
|
+
break;
|
|
18171
|
+
case "ENCODER_PROFILE_HIGH":
|
|
18172
|
+
case 4:
|
|
18173
|
+
message.profile = 4;
|
|
17811
18174
|
break;
|
|
17812
18175
|
}
|
|
17813
|
-
|
|
18176
|
+
if (object.bframes != null)
|
|
18177
|
+
message.bframes = object.bframes >>> 0;
|
|
18178
|
+
if (object.idrOnly != null)
|
|
18179
|
+
message.idrOnly = Boolean(object.idrOnly);
|
|
18180
|
+
if (object.spatialAq != null)
|
|
18181
|
+
message.spatialAq = Boolean(object.spatialAq);
|
|
18182
|
+
switch (object.multipass) {
|
|
17814
18183
|
default:
|
|
17815
|
-
if (typeof object.
|
|
17816
|
-
message.
|
|
18184
|
+
if (typeof object.multipass === "number") {
|
|
18185
|
+
message.multipass = object.multipass;
|
|
17817
18186
|
break;
|
|
17818
18187
|
}
|
|
17819
18188
|
break;
|
|
17820
|
-
case "
|
|
18189
|
+
case "ENCODER_MULTIPASS_DISABLED":
|
|
17821
18190
|
case 0:
|
|
17822
|
-
message.
|
|
18191
|
+
message.multipass = 0;
|
|
17823
18192
|
break;
|
|
17824
|
-
case "
|
|
18193
|
+
case "ENCODER_MULTIPASS_QUARTER_RESOLUTION":
|
|
17825
18194
|
case 1:
|
|
17826
|
-
message.
|
|
18195
|
+
message.multipass = 1;
|
|
17827
18196
|
break;
|
|
17828
|
-
case "
|
|
18197
|
+
case "ENCODER_MULTIPASS_FULL_RESOLUTION":
|
|
17829
18198
|
case 2:
|
|
17830
|
-
message.
|
|
18199
|
+
message.multipass = 2;
|
|
17831
18200
|
break;
|
|
17832
|
-
|
|
17833
|
-
|
|
17834
|
-
|
|
18201
|
+
}
|
|
18202
|
+
if (object.lookaheadDepth != null)
|
|
18203
|
+
message.lookaheadDepth = object.lookaheadDepth >>> 0;
|
|
18204
|
+
if (object.zeroReorderDelay != null)
|
|
18205
|
+
message.zeroReorderDelay = Boolean(object.zeroReorderDelay);
|
|
18206
|
+
if (object.bitDepth != null)
|
|
18207
|
+
message.bitDepth = object.bitDepth >>> 0;
|
|
18208
|
+
switch (object.chromaFormat) {
|
|
18209
|
+
default:
|
|
18210
|
+
if (typeof object.chromaFormat === "number") {
|
|
18211
|
+
message.chromaFormat = object.chromaFormat;
|
|
18212
|
+
break;
|
|
18213
|
+
}
|
|
18214
|
+
break;
|
|
18215
|
+
case "ENCODER_CHROMA_FORMAT_420":
|
|
18216
|
+
case 0:
|
|
18217
|
+
message.chromaFormat = 0;
|
|
18218
|
+
break;
|
|
18219
|
+
case "ENCODER_CHROMA_FORMAT_444":
|
|
18220
|
+
case 1:
|
|
18221
|
+
message.chromaFormat = 1;
|
|
17835
18222
|
break;
|
|
17836
18223
|
}
|
|
17837
|
-
if (object.
|
|
17838
|
-
message.
|
|
17839
|
-
if (object.
|
|
17840
|
-
message.
|
|
17841
|
-
if (object.width != null)
|
|
17842
|
-
message.width = object.width >>> 0;
|
|
17843
|
-
if (object.height != null)
|
|
17844
|
-
message.height = object.height >>> 0;
|
|
17845
|
-
if (object.fps != null)
|
|
17846
|
-
message.fps = Number(object.fps);
|
|
18224
|
+
if (object.outputAud != null)
|
|
18225
|
+
message.outputAud = Boolean(object.outputAud);
|
|
18226
|
+
if (object.level != null)
|
|
18227
|
+
message.level = String(object.level);
|
|
17847
18228
|
return message;
|
|
17848
18229
|
};
|
|
17849
|
-
|
|
18230
|
+
EncoderSettings.toObject = function toObject(message, options) {
|
|
17850
18231
|
if (!options)
|
|
17851
18232
|
options = {};
|
|
17852
18233
|
let object = {};
|
|
17853
18234
|
if (options.defaults) {
|
|
17854
|
-
object.
|
|
17855
|
-
object.
|
|
17856
|
-
object.
|
|
17857
|
-
object.
|
|
17858
|
-
object.
|
|
17859
|
-
object.
|
|
17860
|
-
object.
|
|
18235
|
+
object.tuning = options.enums === String ? "ENCODER_TUNING_UNSPECIFIED" : 0;
|
|
18236
|
+
object.effort = 0;
|
|
18237
|
+
object.rateControl = options.enums === String ? "ENCODER_RATE_CONTROL_UNSPECIFIED" : 0;
|
|
18238
|
+
object.maxBitrateKbps = 0;
|
|
18239
|
+
object.profile = options.enums === String ? "ENCODER_PROFILE_AUTO" : 0;
|
|
18240
|
+
object.bframes = 0;
|
|
18241
|
+
object.idrOnly = false;
|
|
18242
|
+
object.spatialAq = false;
|
|
18243
|
+
object.multipass = options.enums === String ? "ENCODER_MULTIPASS_DISABLED" : 0;
|
|
18244
|
+
object.lookaheadDepth = 0;
|
|
18245
|
+
object.zeroReorderDelay = false;
|
|
18246
|
+
object.bitDepth = 0;
|
|
18247
|
+
object.chromaFormat = options.enums === String ? "ENCODER_CHROMA_FORMAT_420" : 0;
|
|
18248
|
+
object.outputAud = false;
|
|
18249
|
+
object.level = "";
|
|
17861
18250
|
}
|
|
17862
|
-
if (message.
|
|
17863
|
-
object.
|
|
17864
|
-
if (message.
|
|
17865
|
-
object.
|
|
17866
|
-
if (message.
|
|
17867
|
-
object.
|
|
17868
|
-
if (message.
|
|
17869
|
-
object.
|
|
17870
|
-
if (message.
|
|
17871
|
-
object.
|
|
17872
|
-
if (message.
|
|
17873
|
-
object.
|
|
17874
|
-
if (message.
|
|
17875
|
-
object.
|
|
18251
|
+
if (message.tuning != null && message.hasOwnProperty("tuning"))
|
|
18252
|
+
object.tuning = options.enums === String ? $root.sesame.v1.outputs.EncoderTuning[message.tuning] === void 0 ? message.tuning : $root.sesame.v1.outputs.EncoderTuning[message.tuning] : message.tuning;
|
|
18253
|
+
if (message.effort != null && message.hasOwnProperty("effort"))
|
|
18254
|
+
object.effort = message.effort;
|
|
18255
|
+
if (message.rateControl != null && message.hasOwnProperty("rateControl"))
|
|
18256
|
+
object.rateControl = options.enums === String ? $root.sesame.v1.outputs.EncoderRateControl[message.rateControl] === void 0 ? message.rateControl : $root.sesame.v1.outputs.EncoderRateControl[message.rateControl] : message.rateControl;
|
|
18257
|
+
if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps"))
|
|
18258
|
+
object.maxBitrateKbps = message.maxBitrateKbps;
|
|
18259
|
+
if (message.profile != null && message.hasOwnProperty("profile"))
|
|
18260
|
+
object.profile = options.enums === String ? $root.sesame.v1.outputs.EncoderProfile[message.profile] === void 0 ? message.profile : $root.sesame.v1.outputs.EncoderProfile[message.profile] : message.profile;
|
|
18261
|
+
if (message.bframes != null && message.hasOwnProperty("bframes"))
|
|
18262
|
+
object.bframes = message.bframes;
|
|
18263
|
+
if (message.idrOnly != null && message.hasOwnProperty("idrOnly"))
|
|
18264
|
+
object.idrOnly = message.idrOnly;
|
|
18265
|
+
if (message.spatialAq != null && message.hasOwnProperty("spatialAq"))
|
|
18266
|
+
object.spatialAq = message.spatialAq;
|
|
18267
|
+
if (message.multipass != null && message.hasOwnProperty("multipass"))
|
|
18268
|
+
object.multipass = options.enums === String ? $root.sesame.v1.outputs.EncoderMultipass[message.multipass] === void 0 ? message.multipass : $root.sesame.v1.outputs.EncoderMultipass[message.multipass] : message.multipass;
|
|
18269
|
+
if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth"))
|
|
18270
|
+
object.lookaheadDepth = message.lookaheadDepth;
|
|
18271
|
+
if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay"))
|
|
18272
|
+
object.zeroReorderDelay = message.zeroReorderDelay;
|
|
18273
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
18274
|
+
object.bitDepth = message.bitDepth;
|
|
18275
|
+
if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
|
|
18276
|
+
object.chromaFormat = options.enums === String ? $root.sesame.v1.outputs.EncoderChromaFormat[message.chromaFormat] === void 0 ? message.chromaFormat : $root.sesame.v1.outputs.EncoderChromaFormat[message.chromaFormat] : message.chromaFormat;
|
|
18277
|
+
if (message.outputAud != null && message.hasOwnProperty("outputAud"))
|
|
18278
|
+
object.outputAud = message.outputAud;
|
|
18279
|
+
if (message.level != null && message.hasOwnProperty("level"))
|
|
18280
|
+
object.level = message.level;
|
|
17876
18281
|
return object;
|
|
17877
18282
|
};
|
|
17878
|
-
|
|
18283
|
+
EncoderSettings.prototype.toJSON = function toJSON() {
|
|
17879
18284
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17880
18285
|
};
|
|
17881
|
-
|
|
18286
|
+
EncoderSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17882
18287
|
if (typeUrlPrefix === void 0) {
|
|
17883
18288
|
typeUrlPrefix = "type.googleapis.com";
|
|
17884
18289
|
}
|
|
17885
|
-
return typeUrlPrefix + "/sesame.v1.outputs.
|
|
18290
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderSettings";
|
|
17886
18291
|
};
|
|
17887
|
-
return
|
|
18292
|
+
return EncoderSettings;
|
|
17888
18293
|
}();
|
|
17889
|
-
outputs.
|
|
17890
|
-
|
|
18294
|
+
outputs.RecorderType = function() {
|
|
18295
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
18296
|
+
values[valuesById[0] = "RECORDER_TYPE_UNSPECIFIED"] = 0;
|
|
18297
|
+
values[valuesById[1] = "RECORDER_TYPE_LIVE"] = 1;
|
|
18298
|
+
values[valuesById[2] = "RECORDER_TYPE_CLIPS"] = 2;
|
|
18299
|
+
return values;
|
|
18300
|
+
}();
|
|
18301
|
+
outputs.TimecodeMode = function() {
|
|
18302
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
18303
|
+
values[valuesById[0] = "TIMECODE_MODE_UNSPECIFIED"] = 0;
|
|
18304
|
+
values[valuesById[1] = "TIMECODE_MODE_WALLCLOCK"] = 1;
|
|
18305
|
+
values[valuesById[2] = "TIMECODE_MODE_SOURCE"] = 2;
|
|
18306
|
+
return values;
|
|
18307
|
+
}();
|
|
18308
|
+
outputs.EncoderConfig = function() {
|
|
18309
|
+
function EncoderConfig(properties) {
|
|
17891
18310
|
if (properties) {
|
|
17892
18311
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17893
18312
|
if (properties[keys[i]] != null)
|
|
17894
18313
|
this[keys[i]] = properties[keys[i]];
|
|
17895
18314
|
}
|
|
17896
18315
|
}
|
|
17897
|
-
|
|
17898
|
-
|
|
17899
|
-
|
|
17900
|
-
|
|
17901
|
-
|
|
18316
|
+
EncoderConfig.prototype.codec = 0;
|
|
18317
|
+
EncoderConfig.prototype.bitrateKbps = 0;
|
|
18318
|
+
EncoderConfig.prototype.keyframeInterval = 0;
|
|
18319
|
+
EncoderConfig.prototype.width = 0;
|
|
18320
|
+
EncoderConfig.prototype.height = 0;
|
|
18321
|
+
EncoderConfig.prototype.fps = 0;
|
|
18322
|
+
EncoderConfig.prototype.timecodeMode = 0;
|
|
18323
|
+
EncoderConfig.prototype.timecodeSourceId = "";
|
|
18324
|
+
EncoderConfig.prototype.settings = null;
|
|
18325
|
+
EncoderConfig.create = function create(properties) {
|
|
18326
|
+
return new EncoderConfig(properties);
|
|
17902
18327
|
};
|
|
17903
|
-
|
|
18328
|
+
EncoderConfig.encode = function encode(message, writer) {
|
|
17904
18329
|
if (!writer)
|
|
17905
18330
|
writer = $Writer.create();
|
|
17906
|
-
if (message.
|
|
18331
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
17907
18332
|
writer.uint32(
|
|
17908
|
-
/* id 1, wireType
|
|
17909
|
-
|
|
17910
|
-
).
|
|
17911
|
-
if (message.
|
|
18333
|
+
/* id 1, wireType 0 =*/
|
|
18334
|
+
8
|
|
18335
|
+
).int32(message.codec);
|
|
18336
|
+
if (message.bitrateKbps != null && Object.hasOwnProperty.call(message, "bitrateKbps"))
|
|
17912
18337
|
writer.uint32(
|
|
17913
|
-
/* id
|
|
17914
|
-
|
|
17915
|
-
).
|
|
17916
|
-
if (message.
|
|
17917
|
-
|
|
17918
|
-
/* id
|
|
17919
|
-
|
|
18338
|
+
/* id 3, wireType 0 =*/
|
|
18339
|
+
24
|
|
18340
|
+
).uint32(message.bitrateKbps);
|
|
18341
|
+
if (message.keyframeInterval != null && Object.hasOwnProperty.call(message, "keyframeInterval"))
|
|
18342
|
+
writer.uint32(
|
|
18343
|
+
/* id 4, wireType 0 =*/
|
|
18344
|
+
32
|
|
18345
|
+
).uint32(message.keyframeInterval);
|
|
18346
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
18347
|
+
writer.uint32(
|
|
18348
|
+
/* id 5, wireType 0 =*/
|
|
18349
|
+
40
|
|
18350
|
+
).uint32(message.width);
|
|
18351
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
18352
|
+
writer.uint32(
|
|
18353
|
+
/* id 6, wireType 0 =*/
|
|
18354
|
+
48
|
|
18355
|
+
).uint32(message.height);
|
|
18356
|
+
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
18357
|
+
writer.uint32(
|
|
18358
|
+
/* id 7, wireType 5 =*/
|
|
18359
|
+
61
|
|
18360
|
+
).float(message.fps);
|
|
18361
|
+
if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
|
|
18362
|
+
writer.uint32(
|
|
18363
|
+
/* id 8, wireType 0 =*/
|
|
18364
|
+
64
|
|
18365
|
+
).int32(message.timecodeMode);
|
|
18366
|
+
if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
|
|
18367
|
+
writer.uint32(
|
|
18368
|
+
/* id 9, wireType 2 =*/
|
|
18369
|
+
74
|
|
18370
|
+
).string(message.timecodeSourceId);
|
|
18371
|
+
if (message.settings != null && Object.hasOwnProperty.call(message, "settings"))
|
|
18372
|
+
$root.sesame.v1.outputs.EncoderSettings.encode(message.settings, writer.uint32(
|
|
18373
|
+
/* id 10, wireType 2 =*/
|
|
18374
|
+
82
|
|
17920
18375
|
).fork()).ldelim();
|
|
17921
18376
|
return writer;
|
|
17922
18377
|
};
|
|
17923
|
-
|
|
18378
|
+
EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17924
18379
|
return this.encode(message, writer).ldelim();
|
|
17925
18380
|
};
|
|
17926
|
-
|
|
18381
|
+
EncoderConfig.decode = function decode(reader, length, error) {
|
|
17927
18382
|
if (!(reader instanceof $Reader))
|
|
17928
18383
|
reader = $Reader.create(reader);
|
|
17929
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
18384
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
17930
18385
|
while (reader.pos < end) {
|
|
17931
18386
|
let tag = reader.uint32();
|
|
17932
18387
|
if (tag === error)
|
|
17933
18388
|
break;
|
|
17934
18389
|
switch (tag >>> 3) {
|
|
17935
18390
|
case 1: {
|
|
17936
|
-
message.
|
|
18391
|
+
message.codec = reader.int32();
|
|
17937
18392
|
break;
|
|
17938
18393
|
}
|
|
17939
|
-
case
|
|
17940
|
-
message.
|
|
18394
|
+
case 3: {
|
|
18395
|
+
message.bitrateKbps = reader.uint32();
|
|
17941
18396
|
break;
|
|
17942
18397
|
}
|
|
17943
|
-
case
|
|
17944
|
-
message.
|
|
18398
|
+
case 4: {
|
|
18399
|
+
message.keyframeInterval = reader.uint32();
|
|
18400
|
+
break;
|
|
18401
|
+
}
|
|
18402
|
+
case 5: {
|
|
18403
|
+
message.width = reader.uint32();
|
|
18404
|
+
break;
|
|
18405
|
+
}
|
|
18406
|
+
case 6: {
|
|
18407
|
+
message.height = reader.uint32();
|
|
18408
|
+
break;
|
|
18409
|
+
}
|
|
18410
|
+
case 7: {
|
|
18411
|
+
message.fps = reader.float();
|
|
18412
|
+
break;
|
|
18413
|
+
}
|
|
18414
|
+
case 8: {
|
|
18415
|
+
message.timecodeMode = reader.int32();
|
|
18416
|
+
break;
|
|
18417
|
+
}
|
|
18418
|
+
case 9: {
|
|
18419
|
+
message.timecodeSourceId = reader.string();
|
|
18420
|
+
break;
|
|
18421
|
+
}
|
|
18422
|
+
case 10: {
|
|
18423
|
+
message.settings = $root.sesame.v1.outputs.EncoderSettings.decode(reader, reader.uint32());
|
|
17945
18424
|
break;
|
|
17946
18425
|
}
|
|
17947
18426
|
default:
|
|
@@ -17951,22 +18430,298 @@ var sesame = $root.sesame = (() => {
|
|
|
17951
18430
|
}
|
|
17952
18431
|
return message;
|
|
17953
18432
|
};
|
|
17954
|
-
|
|
18433
|
+
EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
17955
18434
|
if (!(reader instanceof $Reader))
|
|
17956
18435
|
reader = new $Reader(reader);
|
|
17957
18436
|
return this.decode(reader, reader.uint32());
|
|
17958
18437
|
};
|
|
17959
|
-
|
|
18438
|
+
EncoderConfig.verify = function verify(message) {
|
|
17960
18439
|
if (typeof message !== "object" || message === null)
|
|
17961
18440
|
return "object expected";
|
|
17962
|
-
if (message.
|
|
17963
|
-
|
|
17964
|
-
|
|
17965
|
-
|
|
17966
|
-
|
|
17967
|
-
|
|
17968
|
-
|
|
17969
|
-
|
|
18441
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
18442
|
+
switch (message.codec) {
|
|
18443
|
+
default:
|
|
18444
|
+
return "codec: enum value expected";
|
|
18445
|
+
case 0:
|
|
18446
|
+
case 1:
|
|
18447
|
+
case 2:
|
|
18448
|
+
case 3:
|
|
18449
|
+
case 4:
|
|
18450
|
+
case 5:
|
|
18451
|
+
case 6:
|
|
18452
|
+
case 7:
|
|
18453
|
+
case 64:
|
|
18454
|
+
case 65:
|
|
18455
|
+
case 66:
|
|
18456
|
+
case 67:
|
|
18457
|
+
break;
|
|
18458
|
+
}
|
|
18459
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
|
|
18460
|
+
if (!$util.isInteger(message.bitrateKbps))
|
|
18461
|
+
return "bitrateKbps: integer expected";
|
|
18462
|
+
}
|
|
18463
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
|
|
18464
|
+
if (!$util.isInteger(message.keyframeInterval))
|
|
18465
|
+
return "keyframeInterval: integer expected";
|
|
18466
|
+
}
|
|
18467
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
18468
|
+
if (!$util.isInteger(message.width))
|
|
18469
|
+
return "width: integer expected";
|
|
18470
|
+
}
|
|
18471
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
18472
|
+
if (!$util.isInteger(message.height))
|
|
18473
|
+
return "height: integer expected";
|
|
18474
|
+
}
|
|
18475
|
+
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
18476
|
+
if (typeof message.fps !== "number")
|
|
18477
|
+
return "fps: number expected";
|
|
18478
|
+
}
|
|
18479
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
18480
|
+
switch (message.timecodeMode) {
|
|
18481
|
+
default:
|
|
18482
|
+
return "timecodeMode: enum value expected";
|
|
18483
|
+
case 0:
|
|
18484
|
+
case 1:
|
|
18485
|
+
case 2:
|
|
18486
|
+
break;
|
|
18487
|
+
}
|
|
18488
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
|
|
18489
|
+
if (!$util.isString(message.timecodeSourceId))
|
|
18490
|
+
return "timecodeSourceId: string expected";
|
|
18491
|
+
}
|
|
18492
|
+
if (message.settings != null && message.hasOwnProperty("settings")) {
|
|
18493
|
+
let error = $root.sesame.v1.outputs.EncoderSettings.verify(message.settings);
|
|
18494
|
+
if (error)
|
|
18495
|
+
return "settings." + error;
|
|
18496
|
+
}
|
|
18497
|
+
return null;
|
|
18498
|
+
};
|
|
18499
|
+
EncoderConfig.fromObject = function fromObject(object) {
|
|
18500
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
18501
|
+
return object;
|
|
18502
|
+
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
18503
|
+
switch (object.codec) {
|
|
18504
|
+
default:
|
|
18505
|
+
if (typeof object.codec === "number") {
|
|
18506
|
+
message.codec = object.codec;
|
|
18507
|
+
break;
|
|
18508
|
+
}
|
|
18509
|
+
break;
|
|
18510
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
18511
|
+
case 0:
|
|
18512
|
+
message.codec = 0;
|
|
18513
|
+
break;
|
|
18514
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
18515
|
+
case 1:
|
|
18516
|
+
message.codec = 1;
|
|
18517
|
+
break;
|
|
18518
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
18519
|
+
case 2:
|
|
18520
|
+
message.codec = 2;
|
|
18521
|
+
break;
|
|
18522
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
18523
|
+
case 3:
|
|
18524
|
+
message.codec = 3;
|
|
18525
|
+
break;
|
|
18526
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
18527
|
+
case 4:
|
|
18528
|
+
message.codec = 4;
|
|
18529
|
+
break;
|
|
18530
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
18531
|
+
case 5:
|
|
18532
|
+
message.codec = 5;
|
|
18533
|
+
break;
|
|
18534
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
18535
|
+
case 6:
|
|
18536
|
+
message.codec = 6;
|
|
18537
|
+
break;
|
|
18538
|
+
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
18539
|
+
case 7:
|
|
18540
|
+
message.codec = 7;
|
|
18541
|
+
break;
|
|
18542
|
+
case "CODEC_TYPE_AUDIO_OPUS":
|
|
18543
|
+
case 64:
|
|
18544
|
+
message.codec = 64;
|
|
18545
|
+
break;
|
|
18546
|
+
case "CODEC_TYPE_AUDIO_AAC":
|
|
18547
|
+
case 65:
|
|
18548
|
+
message.codec = 65;
|
|
18549
|
+
break;
|
|
18550
|
+
case "CODEC_TYPE_AUDIO_PCM":
|
|
18551
|
+
case 66:
|
|
18552
|
+
message.codec = 66;
|
|
18553
|
+
break;
|
|
18554
|
+
case "CODEC_TYPE_AUDIO_PCM_S24LE":
|
|
18555
|
+
case 67:
|
|
18556
|
+
message.codec = 67;
|
|
18557
|
+
break;
|
|
18558
|
+
}
|
|
18559
|
+
if (object.bitrateKbps != null)
|
|
18560
|
+
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
18561
|
+
if (object.keyframeInterval != null)
|
|
18562
|
+
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
18563
|
+
if (object.width != null)
|
|
18564
|
+
message.width = object.width >>> 0;
|
|
18565
|
+
if (object.height != null)
|
|
18566
|
+
message.height = object.height >>> 0;
|
|
18567
|
+
if (object.fps != null)
|
|
18568
|
+
message.fps = Number(object.fps);
|
|
18569
|
+
switch (object.timecodeMode) {
|
|
18570
|
+
default:
|
|
18571
|
+
if (typeof object.timecodeMode === "number") {
|
|
18572
|
+
message.timecodeMode = object.timecodeMode;
|
|
18573
|
+
break;
|
|
18574
|
+
}
|
|
18575
|
+
break;
|
|
18576
|
+
case "TIMECODE_MODE_UNSPECIFIED":
|
|
18577
|
+
case 0:
|
|
18578
|
+
message.timecodeMode = 0;
|
|
18579
|
+
break;
|
|
18580
|
+
case "TIMECODE_MODE_WALLCLOCK":
|
|
18581
|
+
case 1:
|
|
18582
|
+
message.timecodeMode = 1;
|
|
18583
|
+
break;
|
|
18584
|
+
case "TIMECODE_MODE_SOURCE":
|
|
18585
|
+
case 2:
|
|
18586
|
+
message.timecodeMode = 2;
|
|
18587
|
+
break;
|
|
18588
|
+
}
|
|
18589
|
+
if (object.timecodeSourceId != null)
|
|
18590
|
+
message.timecodeSourceId = String(object.timecodeSourceId);
|
|
18591
|
+
if (object.settings != null) {
|
|
18592
|
+
if (typeof object.settings !== "object")
|
|
18593
|
+
throw TypeError(".sesame.v1.outputs.EncoderConfig.settings: object expected");
|
|
18594
|
+
message.settings = $root.sesame.v1.outputs.EncoderSettings.fromObject(object.settings);
|
|
18595
|
+
}
|
|
18596
|
+
return message;
|
|
18597
|
+
};
|
|
18598
|
+
EncoderConfig.toObject = function toObject(message, options) {
|
|
18599
|
+
if (!options)
|
|
18600
|
+
options = {};
|
|
18601
|
+
let object = {};
|
|
18602
|
+
if (options.defaults) {
|
|
18603
|
+
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
18604
|
+
object.bitrateKbps = 0;
|
|
18605
|
+
object.keyframeInterval = 0;
|
|
18606
|
+
object.width = 0;
|
|
18607
|
+
object.height = 0;
|
|
18608
|
+
object.fps = 0;
|
|
18609
|
+
object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
|
|
18610
|
+
object.timecodeSourceId = "";
|
|
18611
|
+
object.settings = null;
|
|
18612
|
+
}
|
|
18613
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
18614
|
+
object.codec = options.enums === String ? $root.sesame.v1.common.CodecType[message.codec] === void 0 ? message.codec : $root.sesame.v1.common.CodecType[message.codec] : message.codec;
|
|
18615
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
18616
|
+
object.bitrateKbps = message.bitrateKbps;
|
|
18617
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
18618
|
+
object.keyframeInterval = message.keyframeInterval;
|
|
18619
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
18620
|
+
object.width = message.width;
|
|
18621
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
18622
|
+
object.height = message.height;
|
|
18623
|
+
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
18624
|
+
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
18625
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
18626
|
+
object.timecodeMode = options.enums === String ? $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] === void 0 ? message.timecodeMode : $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] : message.timecodeMode;
|
|
18627
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
|
|
18628
|
+
object.timecodeSourceId = message.timecodeSourceId;
|
|
18629
|
+
if (message.settings != null && message.hasOwnProperty("settings"))
|
|
18630
|
+
object.settings = $root.sesame.v1.outputs.EncoderSettings.toObject(message.settings, options);
|
|
18631
|
+
return object;
|
|
18632
|
+
};
|
|
18633
|
+
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
18634
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18635
|
+
};
|
|
18636
|
+
EncoderConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18637
|
+
if (typeUrlPrefix === void 0) {
|
|
18638
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18639
|
+
}
|
|
18640
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderConfig";
|
|
18641
|
+
};
|
|
18642
|
+
return EncoderConfig;
|
|
18643
|
+
}();
|
|
18644
|
+
outputs.EncoderAddRequest = function() {
|
|
18645
|
+
function EncoderAddRequest(properties) {
|
|
18646
|
+
if (properties) {
|
|
18647
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18648
|
+
if (properties[keys[i]] != null)
|
|
18649
|
+
this[keys[i]] = properties[keys[i]];
|
|
18650
|
+
}
|
|
18651
|
+
}
|
|
18652
|
+
EncoderAddRequest.prototype.id = "";
|
|
18653
|
+
EncoderAddRequest.prototype.compositionId = "";
|
|
18654
|
+
EncoderAddRequest.prototype.encoder = null;
|
|
18655
|
+
EncoderAddRequest.create = function create(properties) {
|
|
18656
|
+
return new EncoderAddRequest(properties);
|
|
18657
|
+
};
|
|
18658
|
+
EncoderAddRequest.encode = function encode(message, writer) {
|
|
18659
|
+
if (!writer)
|
|
18660
|
+
writer = $Writer.create();
|
|
18661
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
18662
|
+
writer.uint32(
|
|
18663
|
+
/* id 1, wireType 2 =*/
|
|
18664
|
+
10
|
|
18665
|
+
).string(message.id);
|
|
18666
|
+
if (message.compositionId != null && Object.hasOwnProperty.call(message, "compositionId"))
|
|
18667
|
+
writer.uint32(
|
|
18668
|
+
/* id 2, wireType 2 =*/
|
|
18669
|
+
18
|
|
18670
|
+
).string(message.compositionId);
|
|
18671
|
+
if (message.encoder != null && Object.hasOwnProperty.call(message, "encoder"))
|
|
18672
|
+
$root.sesame.v1.outputs.EncoderConfig.encode(message.encoder, writer.uint32(
|
|
18673
|
+
/* id 3, wireType 2 =*/
|
|
18674
|
+
26
|
|
18675
|
+
).fork()).ldelim();
|
|
18676
|
+
return writer;
|
|
18677
|
+
};
|
|
18678
|
+
EncoderAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18679
|
+
return this.encode(message, writer).ldelim();
|
|
18680
|
+
};
|
|
18681
|
+
EncoderAddRequest.decode = function decode(reader, length, error) {
|
|
18682
|
+
if (!(reader instanceof $Reader))
|
|
18683
|
+
reader = $Reader.create(reader);
|
|
18684
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderAddRequest();
|
|
18685
|
+
while (reader.pos < end) {
|
|
18686
|
+
let tag = reader.uint32();
|
|
18687
|
+
if (tag === error)
|
|
18688
|
+
break;
|
|
18689
|
+
switch (tag >>> 3) {
|
|
18690
|
+
case 1: {
|
|
18691
|
+
message.id = reader.string();
|
|
18692
|
+
break;
|
|
18693
|
+
}
|
|
18694
|
+
case 2: {
|
|
18695
|
+
message.compositionId = reader.string();
|
|
18696
|
+
break;
|
|
18697
|
+
}
|
|
18698
|
+
case 3: {
|
|
18699
|
+
message.encoder = $root.sesame.v1.outputs.EncoderConfig.decode(reader, reader.uint32());
|
|
18700
|
+
break;
|
|
18701
|
+
}
|
|
18702
|
+
default:
|
|
18703
|
+
reader.skipType(tag & 7);
|
|
18704
|
+
break;
|
|
18705
|
+
}
|
|
18706
|
+
}
|
|
18707
|
+
return message;
|
|
18708
|
+
};
|
|
18709
|
+
EncoderAddRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
18710
|
+
if (!(reader instanceof $Reader))
|
|
18711
|
+
reader = new $Reader(reader);
|
|
18712
|
+
return this.decode(reader, reader.uint32());
|
|
18713
|
+
};
|
|
18714
|
+
EncoderAddRequest.verify = function verify(message) {
|
|
18715
|
+
if (typeof message !== "object" || message === null)
|
|
18716
|
+
return "object expected";
|
|
18717
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
18718
|
+
if (!$util.isString(message.id))
|
|
18719
|
+
return "id: string expected";
|
|
18720
|
+
}
|
|
18721
|
+
if (message.compositionId != null && message.hasOwnProperty("compositionId")) {
|
|
18722
|
+
if (!$util.isString(message.compositionId))
|
|
18723
|
+
return "compositionId: string expected";
|
|
18724
|
+
}
|
|
17970
18725
|
if (message.encoder != null && message.hasOwnProperty("encoder")) {
|
|
17971
18726
|
let error = $root.sesame.v1.outputs.EncoderConfig.verify(message.encoder);
|
|
17972
18727
|
if (error)
|
|
@@ -18247,6 +19002,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18247
19002
|
DecklinkOutputConfig.prototype.deviceIndex = 0;
|
|
18248
19003
|
DecklinkOutputConfig.prototype.videoFormat = 0;
|
|
18249
19004
|
DecklinkOutputConfig.prototype.keyAndFill = false;
|
|
19005
|
+
DecklinkOutputConfig.prototype.timecodeMode = 0;
|
|
19006
|
+
DecklinkOutputConfig.prototype.timecodeSourceId = "";
|
|
18250
19007
|
DecklinkOutputConfig.create = function create(properties) {
|
|
18251
19008
|
return new DecklinkOutputConfig(properties);
|
|
18252
19009
|
};
|
|
@@ -18268,11 +19025,21 @@ var sesame = $root.sesame = (() => {
|
|
|
18268
19025
|
/* id 3, wireType 0 =*/
|
|
18269
19026
|
24
|
|
18270
19027
|
).bool(message.keyAndFill);
|
|
18271
|
-
|
|
18272
|
-
|
|
18273
|
-
|
|
18274
|
-
|
|
18275
|
-
|
|
19028
|
+
if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
|
|
19029
|
+
writer.uint32(
|
|
19030
|
+
/* id 4, wireType 0 =*/
|
|
19031
|
+
32
|
|
19032
|
+
).int32(message.timecodeMode);
|
|
19033
|
+
if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
|
|
19034
|
+
writer.uint32(
|
|
19035
|
+
/* id 5, wireType 2 =*/
|
|
19036
|
+
42
|
|
19037
|
+
).string(message.timecodeSourceId);
|
|
19038
|
+
return writer;
|
|
19039
|
+
};
|
|
19040
|
+
DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19041
|
+
return this.encode(message, writer).ldelim();
|
|
19042
|
+
};
|
|
18276
19043
|
DecklinkOutputConfig.decode = function decode(reader, length, error) {
|
|
18277
19044
|
if (!(reader instanceof $Reader))
|
|
18278
19045
|
reader = $Reader.create(reader);
|
|
@@ -18294,6 +19061,14 @@ var sesame = $root.sesame = (() => {
|
|
|
18294
19061
|
message.keyAndFill = reader.bool();
|
|
18295
19062
|
break;
|
|
18296
19063
|
}
|
|
19064
|
+
case 4: {
|
|
19065
|
+
message.timecodeMode = reader.int32();
|
|
19066
|
+
break;
|
|
19067
|
+
}
|
|
19068
|
+
case 5: {
|
|
19069
|
+
message.timecodeSourceId = reader.string();
|
|
19070
|
+
break;
|
|
19071
|
+
}
|
|
18297
19072
|
default:
|
|
18298
19073
|
reader.skipType(tag & 7);
|
|
18299
19074
|
break;
|
|
@@ -18328,6 +19103,19 @@ var sesame = $root.sesame = (() => {
|
|
|
18328
19103
|
if (typeof message.keyAndFill !== "boolean")
|
|
18329
19104
|
return "keyAndFill: boolean expected";
|
|
18330
19105
|
}
|
|
19106
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
19107
|
+
switch (message.timecodeMode) {
|
|
19108
|
+
default:
|
|
19109
|
+
return "timecodeMode: enum value expected";
|
|
19110
|
+
case 0:
|
|
19111
|
+
case 1:
|
|
19112
|
+
case 2:
|
|
19113
|
+
break;
|
|
19114
|
+
}
|
|
19115
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
|
|
19116
|
+
if (!$util.isString(message.timecodeSourceId))
|
|
19117
|
+
return "timecodeSourceId: string expected";
|
|
19118
|
+
}
|
|
18331
19119
|
return null;
|
|
18332
19120
|
};
|
|
18333
19121
|
DecklinkOutputConfig.fromObject = function fromObject(object) {
|
|
@@ -18366,6 +19154,28 @@ var sesame = $root.sesame = (() => {
|
|
|
18366
19154
|
}
|
|
18367
19155
|
if (object.keyAndFill != null)
|
|
18368
19156
|
message.keyAndFill = Boolean(object.keyAndFill);
|
|
19157
|
+
switch (object.timecodeMode) {
|
|
19158
|
+
default:
|
|
19159
|
+
if (typeof object.timecodeMode === "number") {
|
|
19160
|
+
message.timecodeMode = object.timecodeMode;
|
|
19161
|
+
break;
|
|
19162
|
+
}
|
|
19163
|
+
break;
|
|
19164
|
+
case "TIMECODE_MODE_UNSPECIFIED":
|
|
19165
|
+
case 0:
|
|
19166
|
+
message.timecodeMode = 0;
|
|
19167
|
+
break;
|
|
19168
|
+
case "TIMECODE_MODE_WALLCLOCK":
|
|
19169
|
+
case 1:
|
|
19170
|
+
message.timecodeMode = 1;
|
|
19171
|
+
break;
|
|
19172
|
+
case "TIMECODE_MODE_SOURCE":
|
|
19173
|
+
case 2:
|
|
19174
|
+
message.timecodeMode = 2;
|
|
19175
|
+
break;
|
|
19176
|
+
}
|
|
19177
|
+
if (object.timecodeSourceId != null)
|
|
19178
|
+
message.timecodeSourceId = String(object.timecodeSourceId);
|
|
18369
19179
|
return message;
|
|
18370
19180
|
};
|
|
18371
19181
|
DecklinkOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -18376,6 +19186,8 @@ var sesame = $root.sesame = (() => {
|
|
|
18376
19186
|
object.deviceIndex = 0;
|
|
18377
19187
|
object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
|
|
18378
19188
|
object.keyAndFill = false;
|
|
19189
|
+
object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
|
|
19190
|
+
object.timecodeSourceId = "";
|
|
18379
19191
|
}
|
|
18380
19192
|
if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
|
|
18381
19193
|
object.deviceIndex = message.deviceIndex;
|
|
@@ -18383,6 +19195,10 @@ var sesame = $root.sesame = (() => {
|
|
|
18383
19195
|
object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
|
|
18384
19196
|
if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
|
|
18385
19197
|
object.keyAndFill = message.keyAndFill;
|
|
19198
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
19199
|
+
object.timecodeMode = options.enums === String ? $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] === void 0 ? message.timecodeMode : $root.sesame.v1.outputs.TimecodeMode[message.timecodeMode] : message.timecodeMode;
|
|
19200
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
|
|
19201
|
+
object.timecodeSourceId = message.timecodeSourceId;
|
|
18386
19202
|
return object;
|
|
18387
19203
|
};
|
|
18388
19204
|
DecklinkOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -18989,6 +19805,13 @@ var sesame = $root.sesame = (() => {
|
|
|
18989
19805
|
};
|
|
18990
19806
|
return EncodedSuperSlowMoRecorderOutputConfig;
|
|
18991
19807
|
}();
|
|
19808
|
+
outputs.SrtStreamControl = function() {
|
|
19809
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
19810
|
+
values[valuesById[0] = "SRT_STREAM_CONTROL_UNSPECIFIED"] = 0;
|
|
19811
|
+
values[valuesById[1] = "SRT_STREAM_CONTROL_STARTED"] = 1;
|
|
19812
|
+
values[valuesById[2] = "SRT_STREAM_CONTROL_MANUAL"] = 2;
|
|
19813
|
+
return values;
|
|
19814
|
+
}();
|
|
18992
19815
|
outputs.EncodedSrtOutputConfig = function() {
|
|
18993
19816
|
function EncodedSrtOutputConfig(properties) {
|
|
18994
19817
|
if (properties) {
|
|
@@ -18999,6 +19822,7 @@ var sesame = $root.sesame = (() => {
|
|
|
18999
19822
|
}
|
|
19000
19823
|
EncodedSrtOutputConfig.prototype.url = "";
|
|
19001
19824
|
EncodedSrtOutputConfig.prototype.encoderId = "";
|
|
19825
|
+
EncodedSrtOutputConfig.prototype.control = 0;
|
|
19002
19826
|
EncodedSrtOutputConfig.create = function create(properties) {
|
|
19003
19827
|
return new EncodedSrtOutputConfig(properties);
|
|
19004
19828
|
};
|
|
@@ -19015,6 +19839,11 @@ var sesame = $root.sesame = (() => {
|
|
|
19015
19839
|
/* id 2, wireType 2 =*/
|
|
19016
19840
|
18
|
|
19017
19841
|
).string(message.encoderId);
|
|
19842
|
+
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
19843
|
+
writer.uint32(
|
|
19844
|
+
/* id 3, wireType 0 =*/
|
|
19845
|
+
24
|
|
19846
|
+
).int32(message.control);
|
|
19018
19847
|
return writer;
|
|
19019
19848
|
};
|
|
19020
19849
|
EncodedSrtOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -19037,6 +19866,10 @@ var sesame = $root.sesame = (() => {
|
|
|
19037
19866
|
message.encoderId = reader.string();
|
|
19038
19867
|
break;
|
|
19039
19868
|
}
|
|
19869
|
+
case 3: {
|
|
19870
|
+
message.control = reader.int32();
|
|
19871
|
+
break;
|
|
19872
|
+
}
|
|
19040
19873
|
default:
|
|
19041
19874
|
reader.skipType(tag & 7);
|
|
19042
19875
|
break;
|
|
@@ -19060,6 +19893,15 @@ var sesame = $root.sesame = (() => {
|
|
|
19060
19893
|
if (!$util.isString(message.encoderId))
|
|
19061
19894
|
return "encoderId: string expected";
|
|
19062
19895
|
}
|
|
19896
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
19897
|
+
switch (message.control) {
|
|
19898
|
+
default:
|
|
19899
|
+
return "control: enum value expected";
|
|
19900
|
+
case 0:
|
|
19901
|
+
case 1:
|
|
19902
|
+
case 2:
|
|
19903
|
+
break;
|
|
19904
|
+
}
|
|
19063
19905
|
return null;
|
|
19064
19906
|
};
|
|
19065
19907
|
EncodedSrtOutputConfig.fromObject = function fromObject(object) {
|
|
@@ -19070,6 +19912,26 @@ var sesame = $root.sesame = (() => {
|
|
|
19070
19912
|
message.url = String(object.url);
|
|
19071
19913
|
if (object.encoderId != null)
|
|
19072
19914
|
message.encoderId = String(object.encoderId);
|
|
19915
|
+
switch (object.control) {
|
|
19916
|
+
default:
|
|
19917
|
+
if (typeof object.control === "number") {
|
|
19918
|
+
message.control = object.control;
|
|
19919
|
+
break;
|
|
19920
|
+
}
|
|
19921
|
+
break;
|
|
19922
|
+
case "SRT_STREAM_CONTROL_UNSPECIFIED":
|
|
19923
|
+
case 0:
|
|
19924
|
+
message.control = 0;
|
|
19925
|
+
break;
|
|
19926
|
+
case "SRT_STREAM_CONTROL_STARTED":
|
|
19927
|
+
case 1:
|
|
19928
|
+
message.control = 1;
|
|
19929
|
+
break;
|
|
19930
|
+
case "SRT_STREAM_CONTROL_MANUAL":
|
|
19931
|
+
case 2:
|
|
19932
|
+
message.control = 2;
|
|
19933
|
+
break;
|
|
19934
|
+
}
|
|
19073
19935
|
return message;
|
|
19074
19936
|
};
|
|
19075
19937
|
EncodedSrtOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -19079,11 +19941,14 @@ var sesame = $root.sesame = (() => {
|
|
|
19079
19941
|
if (options.defaults) {
|
|
19080
19942
|
object.url = "";
|
|
19081
19943
|
object.encoderId = "";
|
|
19944
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
19082
19945
|
}
|
|
19083
19946
|
if (message.url != null && message.hasOwnProperty("url"))
|
|
19084
19947
|
object.url = message.url;
|
|
19085
19948
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
19086
19949
|
object.encoderId = message.encoderId;
|
|
19950
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
19951
|
+
object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
|
|
19087
19952
|
return object;
|
|
19088
19953
|
};
|
|
19089
19954
|
EncodedSrtOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -20206,6 +21071,144 @@ var sesame = $root.sesame = (() => {
|
|
|
20206
21071
|
};
|
|
20207
21072
|
return OutputRemoveRequest;
|
|
20208
21073
|
}();
|
|
21074
|
+
outputs.OutputControlAction = function() {
|
|
21075
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
21076
|
+
values[valuesById[0] = "OUTPUT_CONTROL_ACTION_UNSPECIFIED"] = 0;
|
|
21077
|
+
values[valuesById[1] = "OUTPUT_CONTROL_ACTION_START"] = 1;
|
|
21078
|
+
values[valuesById[2] = "OUTPUT_CONTROL_ACTION_STOP"] = 2;
|
|
21079
|
+
return values;
|
|
21080
|
+
}();
|
|
21081
|
+
outputs.OutputControlRequest = function() {
|
|
21082
|
+
function OutputControlRequest(properties) {
|
|
21083
|
+
if (properties) {
|
|
21084
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21085
|
+
if (properties[keys[i]] != null)
|
|
21086
|
+
this[keys[i]] = properties[keys[i]];
|
|
21087
|
+
}
|
|
21088
|
+
}
|
|
21089
|
+
OutputControlRequest.prototype.id = "";
|
|
21090
|
+
OutputControlRequest.prototype.action = 0;
|
|
21091
|
+
OutputControlRequest.create = function create(properties) {
|
|
21092
|
+
return new OutputControlRequest(properties);
|
|
21093
|
+
};
|
|
21094
|
+
OutputControlRequest.encode = function encode(message, writer) {
|
|
21095
|
+
if (!writer)
|
|
21096
|
+
writer = $Writer.create();
|
|
21097
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
21098
|
+
writer.uint32(
|
|
21099
|
+
/* id 1, wireType 2 =*/
|
|
21100
|
+
10
|
|
21101
|
+
).string(message.id);
|
|
21102
|
+
if (message.action != null && Object.hasOwnProperty.call(message, "action"))
|
|
21103
|
+
writer.uint32(
|
|
21104
|
+
/* id 2, wireType 0 =*/
|
|
21105
|
+
16
|
|
21106
|
+
).int32(message.action);
|
|
21107
|
+
return writer;
|
|
21108
|
+
};
|
|
21109
|
+
OutputControlRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21110
|
+
return this.encode(message, writer).ldelim();
|
|
21111
|
+
};
|
|
21112
|
+
OutputControlRequest.decode = function decode(reader, length, error) {
|
|
21113
|
+
if (!(reader instanceof $Reader))
|
|
21114
|
+
reader = $Reader.create(reader);
|
|
21115
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.OutputControlRequest();
|
|
21116
|
+
while (reader.pos < end) {
|
|
21117
|
+
let tag = reader.uint32();
|
|
21118
|
+
if (tag === error)
|
|
21119
|
+
break;
|
|
21120
|
+
switch (tag >>> 3) {
|
|
21121
|
+
case 1: {
|
|
21122
|
+
message.id = reader.string();
|
|
21123
|
+
break;
|
|
21124
|
+
}
|
|
21125
|
+
case 2: {
|
|
21126
|
+
message.action = reader.int32();
|
|
21127
|
+
break;
|
|
21128
|
+
}
|
|
21129
|
+
default:
|
|
21130
|
+
reader.skipType(tag & 7);
|
|
21131
|
+
break;
|
|
21132
|
+
}
|
|
21133
|
+
}
|
|
21134
|
+
return message;
|
|
21135
|
+
};
|
|
21136
|
+
OutputControlRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
21137
|
+
if (!(reader instanceof $Reader))
|
|
21138
|
+
reader = new $Reader(reader);
|
|
21139
|
+
return this.decode(reader, reader.uint32());
|
|
21140
|
+
};
|
|
21141
|
+
OutputControlRequest.verify = function verify(message) {
|
|
21142
|
+
if (typeof message !== "object" || message === null)
|
|
21143
|
+
return "object expected";
|
|
21144
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
21145
|
+
if (!$util.isString(message.id))
|
|
21146
|
+
return "id: string expected";
|
|
21147
|
+
}
|
|
21148
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
21149
|
+
switch (message.action) {
|
|
21150
|
+
default:
|
|
21151
|
+
return "action: enum value expected";
|
|
21152
|
+
case 0:
|
|
21153
|
+
case 1:
|
|
21154
|
+
case 2:
|
|
21155
|
+
break;
|
|
21156
|
+
}
|
|
21157
|
+
return null;
|
|
21158
|
+
};
|
|
21159
|
+
OutputControlRequest.fromObject = function fromObject(object) {
|
|
21160
|
+
if (object instanceof $root.sesame.v1.outputs.OutputControlRequest)
|
|
21161
|
+
return object;
|
|
21162
|
+
let message = new $root.sesame.v1.outputs.OutputControlRequest();
|
|
21163
|
+
if (object.id != null)
|
|
21164
|
+
message.id = String(object.id);
|
|
21165
|
+
switch (object.action) {
|
|
21166
|
+
default:
|
|
21167
|
+
if (typeof object.action === "number") {
|
|
21168
|
+
message.action = object.action;
|
|
21169
|
+
break;
|
|
21170
|
+
}
|
|
21171
|
+
break;
|
|
21172
|
+
case "OUTPUT_CONTROL_ACTION_UNSPECIFIED":
|
|
21173
|
+
case 0:
|
|
21174
|
+
message.action = 0;
|
|
21175
|
+
break;
|
|
21176
|
+
case "OUTPUT_CONTROL_ACTION_START":
|
|
21177
|
+
case 1:
|
|
21178
|
+
message.action = 1;
|
|
21179
|
+
break;
|
|
21180
|
+
case "OUTPUT_CONTROL_ACTION_STOP":
|
|
21181
|
+
case 2:
|
|
21182
|
+
message.action = 2;
|
|
21183
|
+
break;
|
|
21184
|
+
}
|
|
21185
|
+
return message;
|
|
21186
|
+
};
|
|
21187
|
+
OutputControlRequest.toObject = function toObject(message, options) {
|
|
21188
|
+
if (!options)
|
|
21189
|
+
options = {};
|
|
21190
|
+
let object = {};
|
|
21191
|
+
if (options.defaults) {
|
|
21192
|
+
object.id = "";
|
|
21193
|
+
object.action = options.enums === String ? "OUTPUT_CONTROL_ACTION_UNSPECIFIED" : 0;
|
|
21194
|
+
}
|
|
21195
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
21196
|
+
object.id = message.id;
|
|
21197
|
+
if (message.action != null && message.hasOwnProperty("action"))
|
|
21198
|
+
object.action = options.enums === String ? $root.sesame.v1.outputs.OutputControlAction[message.action] === void 0 ? message.action : $root.sesame.v1.outputs.OutputControlAction[message.action] : message.action;
|
|
21199
|
+
return object;
|
|
21200
|
+
};
|
|
21201
|
+
OutputControlRequest.prototype.toJSON = function toJSON() {
|
|
21202
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21203
|
+
};
|
|
21204
|
+
OutputControlRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21205
|
+
if (typeUrlPrefix === void 0) {
|
|
21206
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
21207
|
+
}
|
|
21208
|
+
return typeUrlPrefix + "/sesame.v1.outputs.OutputControlRequest";
|
|
21209
|
+
};
|
|
21210
|
+
return OutputControlRequest;
|
|
21211
|
+
}();
|
|
20209
21212
|
outputs.KeyframeRequest = function() {
|
|
20210
21213
|
function KeyframeRequest(properties) {
|
|
20211
21214
|
if (properties) {
|
|
@@ -20310,6 +21313,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20310
21313
|
OutputStatus.prototype.bufferSize = 0;
|
|
20311
21314
|
OutputStatus.prototype.srtStats = null;
|
|
20312
21315
|
OutputStatus.prototype.encoderId = "";
|
|
21316
|
+
OutputStatus.prototype.control = 0;
|
|
20313
21317
|
let $oneOfFields;
|
|
20314
21318
|
Object.defineProperty(OutputStatus.prototype, "_msg", {
|
|
20315
21319
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -20365,6 +21369,11 @@ var sesame = $root.sesame = (() => {
|
|
|
20365
21369
|
/* id 8, wireType 2 =*/
|
|
20366
21370
|
66
|
|
20367
21371
|
).string(message.encoderId);
|
|
21372
|
+
if (message.control != null && Object.hasOwnProperty.call(message, "control"))
|
|
21373
|
+
writer.uint32(
|
|
21374
|
+
/* id 9, wireType 0 =*/
|
|
21375
|
+
72
|
|
21376
|
+
).int32(message.control);
|
|
20368
21377
|
return writer;
|
|
20369
21378
|
};
|
|
20370
21379
|
OutputStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -20411,6 +21420,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20411
21420
|
message.encoderId = reader.string();
|
|
20412
21421
|
break;
|
|
20413
21422
|
}
|
|
21423
|
+
case 9: {
|
|
21424
|
+
message.control = reader.int32();
|
|
21425
|
+
break;
|
|
21426
|
+
}
|
|
20414
21427
|
default:
|
|
20415
21428
|
reader.skipType(tag & 7);
|
|
20416
21429
|
break;
|
|
@@ -20456,6 +21469,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20456
21469
|
case 4:
|
|
20457
21470
|
case 5:
|
|
20458
21471
|
case 6:
|
|
21472
|
+
case 7:
|
|
20459
21473
|
break;
|
|
20460
21474
|
}
|
|
20461
21475
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -20483,6 +21497,15 @@ var sesame = $root.sesame = (() => {
|
|
|
20483
21497
|
if (!$util.isString(message.encoderId))
|
|
20484
21498
|
return "encoderId: string expected";
|
|
20485
21499
|
}
|
|
21500
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
21501
|
+
switch (message.control) {
|
|
21502
|
+
default:
|
|
21503
|
+
return "control: enum value expected";
|
|
21504
|
+
case 0:
|
|
21505
|
+
case 1:
|
|
21506
|
+
case 2:
|
|
21507
|
+
break;
|
|
21508
|
+
}
|
|
20486
21509
|
return null;
|
|
20487
21510
|
};
|
|
20488
21511
|
OutputStatus.fromObject = function fromObject(object) {
|
|
@@ -20566,6 +21589,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20566
21589
|
case 6:
|
|
20567
21590
|
message.state = 6;
|
|
20568
21591
|
break;
|
|
21592
|
+
case "CONNECTION_STATE_DISABLED":
|
|
21593
|
+
case 7:
|
|
21594
|
+
message.state = 7;
|
|
21595
|
+
break;
|
|
20569
21596
|
}
|
|
20570
21597
|
if (object.msg != null)
|
|
20571
21598
|
message.msg = String(object.msg);
|
|
@@ -20580,6 +21607,26 @@ var sesame = $root.sesame = (() => {
|
|
|
20580
21607
|
}
|
|
20581
21608
|
if (object.encoderId != null)
|
|
20582
21609
|
message.encoderId = String(object.encoderId);
|
|
21610
|
+
switch (object.control) {
|
|
21611
|
+
default:
|
|
21612
|
+
if (typeof object.control === "number") {
|
|
21613
|
+
message.control = object.control;
|
|
21614
|
+
break;
|
|
21615
|
+
}
|
|
21616
|
+
break;
|
|
21617
|
+
case "SRT_STREAM_CONTROL_UNSPECIFIED":
|
|
21618
|
+
case 0:
|
|
21619
|
+
message.control = 0;
|
|
21620
|
+
break;
|
|
21621
|
+
case "SRT_STREAM_CONTROL_STARTED":
|
|
21622
|
+
case 1:
|
|
21623
|
+
message.control = 1;
|
|
21624
|
+
break;
|
|
21625
|
+
case "SRT_STREAM_CONTROL_MANUAL":
|
|
21626
|
+
case 2:
|
|
21627
|
+
message.control = 2;
|
|
21628
|
+
break;
|
|
21629
|
+
}
|
|
20583
21630
|
return message;
|
|
20584
21631
|
};
|
|
20585
21632
|
OutputStatus.toObject = function toObject(message, options) {
|
|
@@ -20593,6 +21640,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20593
21640
|
object.url = "";
|
|
20594
21641
|
object.bufferSize = 0;
|
|
20595
21642
|
object.encoderId = "";
|
|
21643
|
+
object.control = options.enums === String ? "SRT_STREAM_CONTROL_UNSPECIFIED" : 0;
|
|
20596
21644
|
}
|
|
20597
21645
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
20598
21646
|
object.id = message.id;
|
|
@@ -20616,6 +21664,8 @@ var sesame = $root.sesame = (() => {
|
|
|
20616
21664
|
}
|
|
20617
21665
|
if (message.encoderId != null && message.hasOwnProperty("encoderId"))
|
|
20618
21666
|
object.encoderId = message.encoderId;
|
|
21667
|
+
if (message.control != null && message.hasOwnProperty("control"))
|
|
21668
|
+
object.control = options.enums === String ? $root.sesame.v1.outputs.SrtStreamControl[message.control] === void 0 ? message.control : $root.sesame.v1.outputs.SrtStreamControl[message.control] : message.control;
|
|
20619
21669
|
return object;
|
|
20620
21670
|
};
|
|
20621
21671
|
OutputStatus.prototype.toJSON = function toJSON() {
|
|
@@ -20642,6 +21692,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20642
21692
|
EncoderStatus.prototype.state = 0;
|
|
20643
21693
|
EncoderStatus.prototype.msg = null;
|
|
20644
21694
|
EncoderStatus.prototype.compositionId = "";
|
|
21695
|
+
EncoderStatus.prototype.droppedFrames = 0;
|
|
20645
21696
|
let $oneOfFields;
|
|
20646
21697
|
Object.defineProperty(EncoderStatus.prototype, "_msg", {
|
|
20647
21698
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -20678,6 +21729,11 @@ var sesame = $root.sesame = (() => {
|
|
|
20678
21729
|
/* id 5, wireType 2 =*/
|
|
20679
21730
|
42
|
|
20680
21731
|
).string(message.compositionId);
|
|
21732
|
+
if (message.droppedFrames != null && Object.hasOwnProperty.call(message, "droppedFrames"))
|
|
21733
|
+
writer.uint32(
|
|
21734
|
+
/* id 6, wireType 0 =*/
|
|
21735
|
+
48
|
|
21736
|
+
).uint32(message.droppedFrames);
|
|
20681
21737
|
return writer;
|
|
20682
21738
|
};
|
|
20683
21739
|
EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -20712,6 +21768,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20712
21768
|
message.compositionId = reader.string();
|
|
20713
21769
|
break;
|
|
20714
21770
|
}
|
|
21771
|
+
case 6: {
|
|
21772
|
+
message.droppedFrames = reader.uint32();
|
|
21773
|
+
break;
|
|
21774
|
+
}
|
|
20715
21775
|
default:
|
|
20716
21776
|
reader.skipType(tag & 7);
|
|
20717
21777
|
break;
|
|
@@ -20751,6 +21811,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20751
21811
|
case 4:
|
|
20752
21812
|
case 5:
|
|
20753
21813
|
case 6:
|
|
21814
|
+
case 7:
|
|
20754
21815
|
break;
|
|
20755
21816
|
}
|
|
20756
21817
|
if (message.msg != null && message.hasOwnProperty("msg")) {
|
|
@@ -20762,6 +21823,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20762
21823
|
if (!$util.isString(message.compositionId))
|
|
20763
21824
|
return "compositionId: string expected";
|
|
20764
21825
|
}
|
|
21826
|
+
if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames")) {
|
|
21827
|
+
if (!$util.isInteger(message.droppedFrames))
|
|
21828
|
+
return "droppedFrames: integer expected";
|
|
21829
|
+
}
|
|
20765
21830
|
return null;
|
|
20766
21831
|
};
|
|
20767
21832
|
EncoderStatus.fromObject = function fromObject(object) {
|
|
@@ -20821,11 +21886,17 @@ var sesame = $root.sesame = (() => {
|
|
|
20821
21886
|
case 6:
|
|
20822
21887
|
message.state = 6;
|
|
20823
21888
|
break;
|
|
21889
|
+
case "CONNECTION_STATE_DISABLED":
|
|
21890
|
+
case 7:
|
|
21891
|
+
message.state = 7;
|
|
21892
|
+
break;
|
|
20824
21893
|
}
|
|
20825
21894
|
if (object.msg != null)
|
|
20826
21895
|
message.msg = String(object.msg);
|
|
20827
21896
|
if (object.compositionId != null)
|
|
20828
21897
|
message.compositionId = String(object.compositionId);
|
|
21898
|
+
if (object.droppedFrames != null)
|
|
21899
|
+
message.droppedFrames = object.droppedFrames >>> 0;
|
|
20829
21900
|
return message;
|
|
20830
21901
|
};
|
|
20831
21902
|
EncoderStatus.toObject = function toObject(message, options) {
|
|
@@ -20837,6 +21908,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20837
21908
|
object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
|
|
20838
21909
|
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
20839
21910
|
object.compositionId = "";
|
|
21911
|
+
object.droppedFrames = 0;
|
|
20840
21912
|
}
|
|
20841
21913
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
20842
21914
|
object.id = message.id;
|
|
@@ -20851,6 +21923,8 @@ var sesame = $root.sesame = (() => {
|
|
|
20851
21923
|
}
|
|
20852
21924
|
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
20853
21925
|
object.compositionId = message.compositionId;
|
|
21926
|
+
if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames"))
|
|
21927
|
+
object.droppedFrames = message.droppedFrames;
|
|
20854
21928
|
return object;
|
|
20855
21929
|
};
|
|
20856
21930
|
EncoderStatus.prototype.toJSON = function toJSON() {
|
|
@@ -21538,83 +22612,1051 @@ var sesame = $root.sesame = (() => {
|
|
|
21538
22612
|
}
|
|
21539
22613
|
return message;
|
|
21540
22614
|
};
|
|
21541
|
-
NodeAddRequest.toObject = function toObject(message, options) {
|
|
22615
|
+
NodeAddRequest.toObject = function toObject(message, options) {
|
|
22616
|
+
if (!options)
|
|
22617
|
+
options = {};
|
|
22618
|
+
let object = {};
|
|
22619
|
+
if (options.defaults) {
|
|
22620
|
+
object.compositorId = "";
|
|
22621
|
+
object.parentAddress = "";
|
|
22622
|
+
object.nodeId = "";
|
|
22623
|
+
object.nodeType = options.enums === String ? "NODE_TYPE_UNSPECIFIED" : 0;
|
|
22624
|
+
}
|
|
22625
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
22626
|
+
object.compositorId = message.compositorId;
|
|
22627
|
+
if (message.parentAddress != null && message.hasOwnProperty("parentAddress"))
|
|
22628
|
+
object.parentAddress = message.parentAddress;
|
|
22629
|
+
if (message.nodeId != null && message.hasOwnProperty("nodeId"))
|
|
22630
|
+
object.nodeId = message.nodeId;
|
|
22631
|
+
if (message.nodeType != null && message.hasOwnProperty("nodeType"))
|
|
22632
|
+
object.nodeType = options.enums === String ? $root.sesame.v1.compositor.NodeType[message.nodeType] === void 0 ? message.nodeType : $root.sesame.v1.compositor.NodeType[message.nodeType] : message.nodeType;
|
|
22633
|
+
return object;
|
|
22634
|
+
};
|
|
22635
|
+
NodeAddRequest.prototype.toJSON = function toJSON() {
|
|
22636
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22637
|
+
};
|
|
22638
|
+
NodeAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22639
|
+
if (typeUrlPrefix === void 0) {
|
|
22640
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22641
|
+
}
|
|
22642
|
+
return typeUrlPrefix + "/sesame.v1.compositor.NodeAddRequest";
|
|
22643
|
+
};
|
|
22644
|
+
return NodeAddRequest;
|
|
22645
|
+
}();
|
|
22646
|
+
compositor.NodeRemoveRequest = function() {
|
|
22647
|
+
function NodeRemoveRequest(properties) {
|
|
22648
|
+
if (properties) {
|
|
22649
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22650
|
+
if (properties[keys[i]] != null)
|
|
22651
|
+
this[keys[i]] = properties[keys[i]];
|
|
22652
|
+
}
|
|
22653
|
+
}
|
|
22654
|
+
NodeRemoveRequest.prototype.compositorId = "";
|
|
22655
|
+
NodeRemoveRequest.prototype.address = "";
|
|
22656
|
+
NodeRemoveRequest.create = function create(properties) {
|
|
22657
|
+
return new NodeRemoveRequest(properties);
|
|
22658
|
+
};
|
|
22659
|
+
NodeRemoveRequest.encode = function encode(message, writer) {
|
|
22660
|
+
if (!writer)
|
|
22661
|
+
writer = $Writer.create();
|
|
22662
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
22663
|
+
writer.uint32(
|
|
22664
|
+
/* id 1, wireType 2 =*/
|
|
22665
|
+
10
|
|
22666
|
+
).string(message.compositorId);
|
|
22667
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
22668
|
+
writer.uint32(
|
|
22669
|
+
/* id 2, wireType 2 =*/
|
|
22670
|
+
18
|
|
22671
|
+
).string(message.address);
|
|
22672
|
+
return writer;
|
|
22673
|
+
};
|
|
22674
|
+
NodeRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22675
|
+
return this.encode(message, writer).ldelim();
|
|
22676
|
+
};
|
|
22677
|
+
NodeRemoveRequest.decode = function decode(reader, length, error) {
|
|
22678
|
+
if (!(reader instanceof $Reader))
|
|
22679
|
+
reader = $Reader.create(reader);
|
|
22680
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.NodeRemoveRequest();
|
|
22681
|
+
while (reader.pos < end) {
|
|
22682
|
+
let tag = reader.uint32();
|
|
22683
|
+
if (tag === error)
|
|
22684
|
+
break;
|
|
22685
|
+
switch (tag >>> 3) {
|
|
22686
|
+
case 1: {
|
|
22687
|
+
message.compositorId = reader.string();
|
|
22688
|
+
break;
|
|
22689
|
+
}
|
|
22690
|
+
case 2: {
|
|
22691
|
+
message.address = reader.string();
|
|
22692
|
+
break;
|
|
22693
|
+
}
|
|
22694
|
+
default:
|
|
22695
|
+
reader.skipType(tag & 7);
|
|
22696
|
+
break;
|
|
22697
|
+
}
|
|
22698
|
+
}
|
|
22699
|
+
return message;
|
|
22700
|
+
};
|
|
22701
|
+
NodeRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22702
|
+
if (!(reader instanceof $Reader))
|
|
22703
|
+
reader = new $Reader(reader);
|
|
22704
|
+
return this.decode(reader, reader.uint32());
|
|
22705
|
+
};
|
|
22706
|
+
NodeRemoveRequest.verify = function verify(message) {
|
|
22707
|
+
if (typeof message !== "object" || message === null)
|
|
22708
|
+
return "object expected";
|
|
22709
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
|
|
22710
|
+
if (!$util.isString(message.compositorId))
|
|
22711
|
+
return "compositorId: string expected";
|
|
22712
|
+
}
|
|
22713
|
+
if (message.address != null && message.hasOwnProperty("address")) {
|
|
22714
|
+
if (!$util.isString(message.address))
|
|
22715
|
+
return "address: string expected";
|
|
22716
|
+
}
|
|
22717
|
+
return null;
|
|
22718
|
+
};
|
|
22719
|
+
NodeRemoveRequest.fromObject = function fromObject(object) {
|
|
22720
|
+
if (object instanceof $root.sesame.v1.compositor.NodeRemoveRequest)
|
|
22721
|
+
return object;
|
|
22722
|
+
let message = new $root.sesame.v1.compositor.NodeRemoveRequest();
|
|
22723
|
+
if (object.compositorId != null)
|
|
22724
|
+
message.compositorId = String(object.compositorId);
|
|
22725
|
+
if (object.address != null)
|
|
22726
|
+
message.address = String(object.address);
|
|
22727
|
+
return message;
|
|
22728
|
+
};
|
|
22729
|
+
NodeRemoveRequest.toObject = function toObject(message, options) {
|
|
22730
|
+
if (!options)
|
|
22731
|
+
options = {};
|
|
22732
|
+
let object = {};
|
|
22733
|
+
if (options.defaults) {
|
|
22734
|
+
object.compositorId = "";
|
|
22735
|
+
object.address = "";
|
|
22736
|
+
}
|
|
22737
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
22738
|
+
object.compositorId = message.compositorId;
|
|
22739
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
22740
|
+
object.address = message.address;
|
|
22741
|
+
return object;
|
|
22742
|
+
};
|
|
22743
|
+
NodeRemoveRequest.prototype.toJSON = function toJSON() {
|
|
22744
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22745
|
+
};
|
|
22746
|
+
NodeRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22747
|
+
if (typeUrlPrefix === void 0) {
|
|
22748
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22749
|
+
}
|
|
22750
|
+
return typeUrlPrefix + "/sesame.v1.compositor.NodeRemoveRequest";
|
|
22751
|
+
};
|
|
22752
|
+
return NodeRemoveRequest;
|
|
22753
|
+
}();
|
|
22754
|
+
compositor.SideDataSetRequest = function() {
|
|
22755
|
+
function SideDataSetRequest(properties) {
|
|
22756
|
+
if (properties) {
|
|
22757
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22758
|
+
if (properties[keys[i]] != null)
|
|
22759
|
+
this[keys[i]] = properties[keys[i]];
|
|
22760
|
+
}
|
|
22761
|
+
}
|
|
22762
|
+
SideDataSetRequest.prototype.compositorId = "";
|
|
22763
|
+
SideDataSetRequest.prototype.sideData = null;
|
|
22764
|
+
SideDataSetRequest.create = function create(properties) {
|
|
22765
|
+
return new SideDataSetRequest(properties);
|
|
22766
|
+
};
|
|
22767
|
+
SideDataSetRequest.encode = function encode(message, writer) {
|
|
22768
|
+
if (!writer)
|
|
22769
|
+
writer = $Writer.create();
|
|
22770
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
22771
|
+
writer.uint32(
|
|
22772
|
+
/* id 1, wireType 2 =*/
|
|
22773
|
+
10
|
|
22774
|
+
).string(message.compositorId);
|
|
22775
|
+
if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
|
|
22776
|
+
$root.sesame.v1.sidedata.SideData.encode(message.sideData, writer.uint32(
|
|
22777
|
+
/* id 2, wireType 2 =*/
|
|
22778
|
+
18
|
|
22779
|
+
).fork()).ldelim();
|
|
22780
|
+
return writer;
|
|
22781
|
+
};
|
|
22782
|
+
SideDataSetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22783
|
+
return this.encode(message, writer).ldelim();
|
|
22784
|
+
};
|
|
22785
|
+
SideDataSetRequest.decode = function decode(reader, length, error) {
|
|
22786
|
+
if (!(reader instanceof $Reader))
|
|
22787
|
+
reader = $Reader.create(reader);
|
|
22788
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
22789
|
+
while (reader.pos < end) {
|
|
22790
|
+
let tag = reader.uint32();
|
|
22791
|
+
if (tag === error)
|
|
22792
|
+
break;
|
|
22793
|
+
switch (tag >>> 3) {
|
|
22794
|
+
case 1: {
|
|
22795
|
+
message.compositorId = reader.string();
|
|
22796
|
+
break;
|
|
22797
|
+
}
|
|
22798
|
+
case 2: {
|
|
22799
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32());
|
|
22800
|
+
break;
|
|
22801
|
+
}
|
|
22802
|
+
default:
|
|
22803
|
+
reader.skipType(tag & 7);
|
|
22804
|
+
break;
|
|
22805
|
+
}
|
|
22806
|
+
}
|
|
22807
|
+
return message;
|
|
22808
|
+
};
|
|
22809
|
+
SideDataSetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22810
|
+
if (!(reader instanceof $Reader))
|
|
22811
|
+
reader = new $Reader(reader);
|
|
22812
|
+
return this.decode(reader, reader.uint32());
|
|
22813
|
+
};
|
|
22814
|
+
SideDataSetRequest.verify = function verify(message) {
|
|
22815
|
+
if (typeof message !== "object" || message === null)
|
|
22816
|
+
return "object expected";
|
|
22817
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
|
|
22818
|
+
if (!$util.isString(message.compositorId))
|
|
22819
|
+
return "compositorId: string expected";
|
|
22820
|
+
}
|
|
22821
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
22822
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.sideData);
|
|
22823
|
+
if (error)
|
|
22824
|
+
return "sideData." + error;
|
|
22825
|
+
}
|
|
22826
|
+
return null;
|
|
22827
|
+
};
|
|
22828
|
+
SideDataSetRequest.fromObject = function fromObject(object) {
|
|
22829
|
+
if (object instanceof $root.sesame.v1.compositor.SideDataSetRequest)
|
|
22830
|
+
return object;
|
|
22831
|
+
let message = new $root.sesame.v1.compositor.SideDataSetRequest();
|
|
22832
|
+
if (object.compositorId != null)
|
|
22833
|
+
message.compositorId = String(object.compositorId);
|
|
22834
|
+
if (object.sideData != null) {
|
|
22835
|
+
if (typeof object.sideData !== "object")
|
|
22836
|
+
throw TypeError(".sesame.v1.compositor.SideDataSetRequest.sideData: object expected");
|
|
22837
|
+
message.sideData = $root.sesame.v1.sidedata.SideData.fromObject(object.sideData);
|
|
22838
|
+
}
|
|
22839
|
+
return message;
|
|
22840
|
+
};
|
|
22841
|
+
SideDataSetRequest.toObject = function toObject(message, options) {
|
|
22842
|
+
if (!options)
|
|
22843
|
+
options = {};
|
|
22844
|
+
let object = {};
|
|
22845
|
+
if (options.defaults) {
|
|
22846
|
+
object.compositorId = "";
|
|
22847
|
+
object.sideData = null;
|
|
22848
|
+
}
|
|
22849
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
22850
|
+
object.compositorId = message.compositorId;
|
|
22851
|
+
if (message.sideData != null && message.hasOwnProperty("sideData"))
|
|
22852
|
+
object.sideData = $root.sesame.v1.sidedata.SideData.toObject(message.sideData, options);
|
|
22853
|
+
return object;
|
|
22854
|
+
};
|
|
22855
|
+
SideDataSetRequest.prototype.toJSON = function toJSON() {
|
|
22856
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22857
|
+
};
|
|
22858
|
+
SideDataSetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22859
|
+
if (typeUrlPrefix === void 0) {
|
|
22860
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22861
|
+
}
|
|
22862
|
+
return typeUrlPrefix + "/sesame.v1.compositor.SideDataSetRequest";
|
|
22863
|
+
};
|
|
22864
|
+
return SideDataSetRequest;
|
|
22865
|
+
}();
|
|
22866
|
+
compositor.SideDataRemoveRequest = function() {
|
|
22867
|
+
function SideDataRemoveRequest(properties) {
|
|
22868
|
+
if (properties) {
|
|
22869
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22870
|
+
if (properties[keys[i]] != null)
|
|
22871
|
+
this[keys[i]] = properties[keys[i]];
|
|
22872
|
+
}
|
|
22873
|
+
}
|
|
22874
|
+
SideDataRemoveRequest.prototype.compositorId = "";
|
|
22875
|
+
SideDataRemoveRequest.prototype.id = "";
|
|
22876
|
+
SideDataRemoveRequest.create = function create(properties) {
|
|
22877
|
+
return new SideDataRemoveRequest(properties);
|
|
22878
|
+
};
|
|
22879
|
+
SideDataRemoveRequest.encode = function encode(message, writer) {
|
|
22880
|
+
if (!writer)
|
|
22881
|
+
writer = $Writer.create();
|
|
22882
|
+
if (message.compositorId != null && Object.hasOwnProperty.call(message, "compositorId"))
|
|
22883
|
+
writer.uint32(
|
|
22884
|
+
/* id 1, wireType 2 =*/
|
|
22885
|
+
10
|
|
22886
|
+
).string(message.compositorId);
|
|
22887
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
22888
|
+
writer.uint32(
|
|
22889
|
+
/* id 2, wireType 2 =*/
|
|
22890
|
+
18
|
|
22891
|
+
).string(message.id);
|
|
22892
|
+
return writer;
|
|
22893
|
+
};
|
|
22894
|
+
SideDataRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
22895
|
+
return this.encode(message, writer).ldelim();
|
|
22896
|
+
};
|
|
22897
|
+
SideDataRemoveRequest.decode = function decode(reader, length, error) {
|
|
22898
|
+
if (!(reader instanceof $Reader))
|
|
22899
|
+
reader = $Reader.create(reader);
|
|
22900
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
|
|
22901
|
+
while (reader.pos < end) {
|
|
22902
|
+
let tag = reader.uint32();
|
|
22903
|
+
if (tag === error)
|
|
22904
|
+
break;
|
|
22905
|
+
switch (tag >>> 3) {
|
|
22906
|
+
case 1: {
|
|
22907
|
+
message.compositorId = reader.string();
|
|
22908
|
+
break;
|
|
22909
|
+
}
|
|
22910
|
+
case 2: {
|
|
22911
|
+
message.id = reader.string();
|
|
22912
|
+
break;
|
|
22913
|
+
}
|
|
22914
|
+
default:
|
|
22915
|
+
reader.skipType(tag & 7);
|
|
22916
|
+
break;
|
|
22917
|
+
}
|
|
22918
|
+
}
|
|
22919
|
+
return message;
|
|
22920
|
+
};
|
|
22921
|
+
SideDataRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
22922
|
+
if (!(reader instanceof $Reader))
|
|
22923
|
+
reader = new $Reader(reader);
|
|
22924
|
+
return this.decode(reader, reader.uint32());
|
|
22925
|
+
};
|
|
22926
|
+
SideDataRemoveRequest.verify = function verify(message) {
|
|
22927
|
+
if (typeof message !== "object" || message === null)
|
|
22928
|
+
return "object expected";
|
|
22929
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId")) {
|
|
22930
|
+
if (!$util.isString(message.compositorId))
|
|
22931
|
+
return "compositorId: string expected";
|
|
22932
|
+
}
|
|
22933
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
22934
|
+
if (!$util.isString(message.id))
|
|
22935
|
+
return "id: string expected";
|
|
22936
|
+
}
|
|
22937
|
+
return null;
|
|
22938
|
+
};
|
|
22939
|
+
SideDataRemoveRequest.fromObject = function fromObject(object) {
|
|
22940
|
+
if (object instanceof $root.sesame.v1.compositor.SideDataRemoveRequest)
|
|
22941
|
+
return object;
|
|
22942
|
+
let message = new $root.sesame.v1.compositor.SideDataRemoveRequest();
|
|
22943
|
+
if (object.compositorId != null)
|
|
22944
|
+
message.compositorId = String(object.compositorId);
|
|
22945
|
+
if (object.id != null)
|
|
22946
|
+
message.id = String(object.id);
|
|
22947
|
+
return message;
|
|
22948
|
+
};
|
|
22949
|
+
SideDataRemoveRequest.toObject = function toObject(message, options) {
|
|
22950
|
+
if (!options)
|
|
22951
|
+
options = {};
|
|
22952
|
+
let object = {};
|
|
22953
|
+
if (options.defaults) {
|
|
22954
|
+
object.compositorId = "";
|
|
22955
|
+
object.id = "";
|
|
22956
|
+
}
|
|
22957
|
+
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
22958
|
+
object.compositorId = message.compositorId;
|
|
22959
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
22960
|
+
object.id = message.id;
|
|
22961
|
+
return object;
|
|
22962
|
+
};
|
|
22963
|
+
SideDataRemoveRequest.prototype.toJSON = function toJSON() {
|
|
22964
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22965
|
+
};
|
|
22966
|
+
SideDataRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22967
|
+
if (typeUrlPrefix === void 0) {
|
|
22968
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
22969
|
+
}
|
|
22970
|
+
return typeUrlPrefix + "/sesame.v1.compositor.SideDataRemoveRequest";
|
|
22971
|
+
};
|
|
22972
|
+
return SideDataRemoveRequest;
|
|
22973
|
+
}();
|
|
22974
|
+
compositor.PropertySetRequest = function() {
|
|
22975
|
+
function PropertySetRequest(properties) {
|
|
22976
|
+
if (properties) {
|
|
22977
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
22978
|
+
if (properties[keys[i]] != null)
|
|
22979
|
+
this[keys[i]] = properties[keys[i]];
|
|
22980
|
+
}
|
|
22981
|
+
}
|
|
22982
|
+
PropertySetRequest.prototype.domain = null;
|
|
22983
|
+
PropertySetRequest.prototype.address = "";
|
|
22984
|
+
PropertySetRequest.prototype.property = "";
|
|
22985
|
+
PropertySetRequest.prototype.value = null;
|
|
22986
|
+
PropertySetRequest.create = function create(properties) {
|
|
22987
|
+
return new PropertySetRequest(properties);
|
|
22988
|
+
};
|
|
22989
|
+
PropertySetRequest.encode = function encode(message, writer) {
|
|
22990
|
+
if (!writer)
|
|
22991
|
+
writer = $Writer.create();
|
|
22992
|
+
if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
|
|
22993
|
+
$root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
|
|
22994
|
+
/* id 1, wireType 2 =*/
|
|
22995
|
+
10
|
|
22996
|
+
).fork()).ldelim();
|
|
22997
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
22998
|
+
writer.uint32(
|
|
22999
|
+
/* id 2, wireType 2 =*/
|
|
23000
|
+
18
|
|
23001
|
+
).string(message.address);
|
|
23002
|
+
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
23003
|
+
writer.uint32(
|
|
23004
|
+
/* id 3, wireType 2 =*/
|
|
23005
|
+
26
|
|
23006
|
+
).string(message.property);
|
|
23007
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
23008
|
+
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
23009
|
+
/* id 4, wireType 2 =*/
|
|
23010
|
+
34
|
|
23011
|
+
).fork()).ldelim();
|
|
23012
|
+
return writer;
|
|
23013
|
+
};
|
|
23014
|
+
PropertySetRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23015
|
+
return this.encode(message, writer).ldelim();
|
|
23016
|
+
};
|
|
23017
|
+
PropertySetRequest.decode = function decode(reader, length, error) {
|
|
23018
|
+
if (!(reader instanceof $Reader))
|
|
23019
|
+
reader = $Reader.create(reader);
|
|
23020
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertySetRequest();
|
|
23021
|
+
while (reader.pos < end) {
|
|
23022
|
+
let tag = reader.uint32();
|
|
23023
|
+
if (tag === error)
|
|
23024
|
+
break;
|
|
23025
|
+
switch (tag >>> 3) {
|
|
23026
|
+
case 1: {
|
|
23027
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
|
|
23028
|
+
break;
|
|
23029
|
+
}
|
|
23030
|
+
case 2: {
|
|
23031
|
+
message.address = reader.string();
|
|
23032
|
+
break;
|
|
23033
|
+
}
|
|
23034
|
+
case 3: {
|
|
23035
|
+
message.property = reader.string();
|
|
23036
|
+
break;
|
|
23037
|
+
}
|
|
23038
|
+
case 4: {
|
|
23039
|
+
message.value = $root.sesame.v1.common.PropValue.decode(reader, reader.uint32());
|
|
23040
|
+
break;
|
|
23041
|
+
}
|
|
23042
|
+
default:
|
|
23043
|
+
reader.skipType(tag & 7);
|
|
23044
|
+
break;
|
|
23045
|
+
}
|
|
23046
|
+
}
|
|
23047
|
+
return message;
|
|
23048
|
+
};
|
|
23049
|
+
PropertySetRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
23050
|
+
if (!(reader instanceof $Reader))
|
|
23051
|
+
reader = new $Reader(reader);
|
|
23052
|
+
return this.decode(reader, reader.uint32());
|
|
23053
|
+
};
|
|
23054
|
+
PropertySetRequest.verify = function verify(message) {
|
|
23055
|
+
if (typeof message !== "object" || message === null)
|
|
23056
|
+
return "object expected";
|
|
23057
|
+
if (message.domain != null && message.hasOwnProperty("domain")) {
|
|
23058
|
+
let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
|
|
23059
|
+
if (error)
|
|
23060
|
+
return "domain." + error;
|
|
23061
|
+
}
|
|
23062
|
+
if (message.address != null && message.hasOwnProperty("address")) {
|
|
23063
|
+
if (!$util.isString(message.address))
|
|
23064
|
+
return "address: string expected";
|
|
23065
|
+
}
|
|
23066
|
+
if (message.property != null && message.hasOwnProperty("property")) {
|
|
23067
|
+
if (!$util.isString(message.property))
|
|
23068
|
+
return "property: string expected";
|
|
23069
|
+
}
|
|
23070
|
+
if (message.value != null && message.hasOwnProperty("value")) {
|
|
23071
|
+
let error = $root.sesame.v1.common.PropValue.verify(message.value);
|
|
23072
|
+
if (error)
|
|
23073
|
+
return "value." + error;
|
|
23074
|
+
}
|
|
23075
|
+
return null;
|
|
23076
|
+
};
|
|
23077
|
+
PropertySetRequest.fromObject = function fromObject(object) {
|
|
23078
|
+
if (object instanceof $root.sesame.v1.compositor.PropertySetRequest)
|
|
23079
|
+
return object;
|
|
23080
|
+
let message = new $root.sesame.v1.compositor.PropertySetRequest();
|
|
23081
|
+
if (object.domain != null) {
|
|
23082
|
+
if (typeof object.domain !== "object")
|
|
23083
|
+
throw TypeError(".sesame.v1.compositor.PropertySetRequest.domain: object expected");
|
|
23084
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
|
|
23085
|
+
}
|
|
23086
|
+
if (object.address != null)
|
|
23087
|
+
message.address = String(object.address);
|
|
23088
|
+
if (object.property != null)
|
|
23089
|
+
message.property = String(object.property);
|
|
23090
|
+
if (object.value != null) {
|
|
23091
|
+
if (typeof object.value !== "object")
|
|
23092
|
+
throw TypeError(".sesame.v1.compositor.PropertySetRequest.value: object expected");
|
|
23093
|
+
message.value = $root.sesame.v1.common.PropValue.fromObject(object.value);
|
|
23094
|
+
}
|
|
23095
|
+
return message;
|
|
23096
|
+
};
|
|
23097
|
+
PropertySetRequest.toObject = function toObject(message, options) {
|
|
23098
|
+
if (!options)
|
|
23099
|
+
options = {};
|
|
23100
|
+
let object = {};
|
|
23101
|
+
if (options.defaults) {
|
|
23102
|
+
object.domain = null;
|
|
23103
|
+
object.address = "";
|
|
23104
|
+
object.property = "";
|
|
23105
|
+
object.value = null;
|
|
23106
|
+
}
|
|
23107
|
+
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
23108
|
+
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
23109
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
23110
|
+
object.address = message.address;
|
|
23111
|
+
if (message.property != null && message.hasOwnProperty("property"))
|
|
23112
|
+
object.property = message.property;
|
|
23113
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
23114
|
+
object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
|
|
23115
|
+
return object;
|
|
23116
|
+
};
|
|
23117
|
+
PropertySetRequest.prototype.toJSON = function toJSON() {
|
|
23118
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23119
|
+
};
|
|
23120
|
+
PropertySetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23121
|
+
if (typeUrlPrefix === void 0) {
|
|
23122
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23123
|
+
}
|
|
23124
|
+
return typeUrlPrefix + "/sesame.v1.compositor.PropertySetRequest";
|
|
23125
|
+
};
|
|
23126
|
+
return PropertySetRequest;
|
|
23127
|
+
}();
|
|
23128
|
+
compositor.PropertyAnimateRequest = function() {
|
|
23129
|
+
function PropertyAnimateRequest(properties) {
|
|
23130
|
+
this.keyframes = [];
|
|
23131
|
+
if (properties) {
|
|
23132
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23133
|
+
if (properties[keys[i]] != null)
|
|
23134
|
+
this[keys[i]] = properties[keys[i]];
|
|
23135
|
+
}
|
|
23136
|
+
}
|
|
23137
|
+
PropertyAnimateRequest.prototype.domain = null;
|
|
23138
|
+
PropertyAnimateRequest.prototype.address = "";
|
|
23139
|
+
PropertyAnimateRequest.prototype.property = "";
|
|
23140
|
+
PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
|
|
23141
|
+
PropertyAnimateRequest.prototype.before = 0;
|
|
23142
|
+
PropertyAnimateRequest.prototype.after = 0;
|
|
23143
|
+
PropertyAnimateRequest.create = function create(properties) {
|
|
23144
|
+
return new PropertyAnimateRequest(properties);
|
|
23145
|
+
};
|
|
23146
|
+
PropertyAnimateRequest.encode = function encode(message, writer) {
|
|
23147
|
+
if (!writer)
|
|
23148
|
+
writer = $Writer.create();
|
|
23149
|
+
if (message.domain != null && Object.hasOwnProperty.call(message, "domain"))
|
|
23150
|
+
$root.sesame.v1.common.PropertyDomain.encode(message.domain, writer.uint32(
|
|
23151
|
+
/* id 1, wireType 2 =*/
|
|
23152
|
+
10
|
|
23153
|
+
).fork()).ldelim();
|
|
23154
|
+
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
23155
|
+
writer.uint32(
|
|
23156
|
+
/* id 2, wireType 2 =*/
|
|
23157
|
+
18
|
|
23158
|
+
).string(message.address);
|
|
23159
|
+
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
23160
|
+
writer.uint32(
|
|
23161
|
+
/* id 3, wireType 2 =*/
|
|
23162
|
+
26
|
|
23163
|
+
).string(message.property);
|
|
23164
|
+
if (message.keyframes != null && message.keyframes.length)
|
|
23165
|
+
for (let i = 0; i < message.keyframes.length; ++i)
|
|
23166
|
+
$root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
|
|
23167
|
+
/* id 4, wireType 2 =*/
|
|
23168
|
+
34
|
|
23169
|
+
).fork()).ldelim();
|
|
23170
|
+
if (message.before != null && Object.hasOwnProperty.call(message, "before"))
|
|
23171
|
+
writer.uint32(
|
|
23172
|
+
/* id 5, wireType 0 =*/
|
|
23173
|
+
40
|
|
23174
|
+
).int32(message.before);
|
|
23175
|
+
if (message.after != null && Object.hasOwnProperty.call(message, "after"))
|
|
23176
|
+
writer.uint32(
|
|
23177
|
+
/* id 6, wireType 0 =*/
|
|
23178
|
+
48
|
|
23179
|
+
).int32(message.after);
|
|
23180
|
+
return writer;
|
|
23181
|
+
};
|
|
23182
|
+
PropertyAnimateRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23183
|
+
return this.encode(message, writer).ldelim();
|
|
23184
|
+
};
|
|
23185
|
+
PropertyAnimateRequest.decode = function decode(reader, length, error) {
|
|
23186
|
+
if (!(reader instanceof $Reader))
|
|
23187
|
+
reader = $Reader.create(reader);
|
|
23188
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
|
|
23189
|
+
while (reader.pos < end) {
|
|
23190
|
+
let tag = reader.uint32();
|
|
23191
|
+
if (tag === error)
|
|
23192
|
+
break;
|
|
23193
|
+
switch (tag >>> 3) {
|
|
23194
|
+
case 1: {
|
|
23195
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.decode(reader, reader.uint32());
|
|
23196
|
+
break;
|
|
23197
|
+
}
|
|
23198
|
+
case 2: {
|
|
23199
|
+
message.address = reader.string();
|
|
23200
|
+
break;
|
|
23201
|
+
}
|
|
23202
|
+
case 3: {
|
|
23203
|
+
message.property = reader.string();
|
|
23204
|
+
break;
|
|
23205
|
+
}
|
|
23206
|
+
case 4: {
|
|
23207
|
+
if (!(message.keyframes && message.keyframes.length))
|
|
23208
|
+
message.keyframes = [];
|
|
23209
|
+
message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
|
|
23210
|
+
break;
|
|
23211
|
+
}
|
|
23212
|
+
case 5: {
|
|
23213
|
+
message.before = reader.int32();
|
|
23214
|
+
break;
|
|
23215
|
+
}
|
|
23216
|
+
case 6: {
|
|
23217
|
+
message.after = reader.int32();
|
|
23218
|
+
break;
|
|
23219
|
+
}
|
|
23220
|
+
default:
|
|
23221
|
+
reader.skipType(tag & 7);
|
|
23222
|
+
break;
|
|
23223
|
+
}
|
|
23224
|
+
}
|
|
23225
|
+
return message;
|
|
23226
|
+
};
|
|
23227
|
+
PropertyAnimateRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
23228
|
+
if (!(reader instanceof $Reader))
|
|
23229
|
+
reader = new $Reader(reader);
|
|
23230
|
+
return this.decode(reader, reader.uint32());
|
|
23231
|
+
};
|
|
23232
|
+
PropertyAnimateRequest.verify = function verify(message) {
|
|
23233
|
+
if (typeof message !== "object" || message === null)
|
|
23234
|
+
return "object expected";
|
|
23235
|
+
if (message.domain != null && message.hasOwnProperty("domain")) {
|
|
23236
|
+
let error = $root.sesame.v1.common.PropertyDomain.verify(message.domain);
|
|
23237
|
+
if (error)
|
|
23238
|
+
return "domain." + error;
|
|
23239
|
+
}
|
|
23240
|
+
if (message.address != null && message.hasOwnProperty("address")) {
|
|
23241
|
+
if (!$util.isString(message.address))
|
|
23242
|
+
return "address: string expected";
|
|
23243
|
+
}
|
|
23244
|
+
if (message.property != null && message.hasOwnProperty("property")) {
|
|
23245
|
+
if (!$util.isString(message.property))
|
|
23246
|
+
return "property: string expected";
|
|
23247
|
+
}
|
|
23248
|
+
if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
|
|
23249
|
+
if (!Array.isArray(message.keyframes))
|
|
23250
|
+
return "keyframes: array expected";
|
|
23251
|
+
for (let i = 0; i < message.keyframes.length; ++i) {
|
|
23252
|
+
let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
|
|
23253
|
+
if (error)
|
|
23254
|
+
return "keyframes." + error;
|
|
23255
|
+
}
|
|
23256
|
+
}
|
|
23257
|
+
if (message.before != null && message.hasOwnProperty("before"))
|
|
23258
|
+
switch (message.before) {
|
|
23259
|
+
default:
|
|
23260
|
+
return "before: enum value expected";
|
|
23261
|
+
case 0:
|
|
23262
|
+
case 1:
|
|
23263
|
+
case 2:
|
|
23264
|
+
case 3:
|
|
23265
|
+
break;
|
|
23266
|
+
}
|
|
23267
|
+
if (message.after != null && message.hasOwnProperty("after"))
|
|
23268
|
+
switch (message.after) {
|
|
23269
|
+
default:
|
|
23270
|
+
return "after: enum value expected";
|
|
23271
|
+
case 0:
|
|
23272
|
+
case 1:
|
|
23273
|
+
case 2:
|
|
23274
|
+
case 3:
|
|
23275
|
+
break;
|
|
23276
|
+
}
|
|
23277
|
+
return null;
|
|
23278
|
+
};
|
|
23279
|
+
PropertyAnimateRequest.fromObject = function fromObject(object) {
|
|
23280
|
+
if (object instanceof $root.sesame.v1.compositor.PropertyAnimateRequest)
|
|
23281
|
+
return object;
|
|
23282
|
+
let message = new $root.sesame.v1.compositor.PropertyAnimateRequest();
|
|
23283
|
+
if (object.domain != null) {
|
|
23284
|
+
if (typeof object.domain !== "object")
|
|
23285
|
+
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.domain: object expected");
|
|
23286
|
+
message.domain = $root.sesame.v1.common.PropertyDomain.fromObject(object.domain);
|
|
23287
|
+
}
|
|
23288
|
+
if (object.address != null)
|
|
23289
|
+
message.address = String(object.address);
|
|
23290
|
+
if (object.property != null)
|
|
23291
|
+
message.property = String(object.property);
|
|
23292
|
+
if (object.keyframes) {
|
|
23293
|
+
if (!Array.isArray(object.keyframes))
|
|
23294
|
+
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
|
|
23295
|
+
message.keyframes = [];
|
|
23296
|
+
for (let i = 0; i < object.keyframes.length; ++i) {
|
|
23297
|
+
if (typeof object.keyframes[i] !== "object")
|
|
23298
|
+
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
|
|
23299
|
+
message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
|
|
23300
|
+
}
|
|
23301
|
+
}
|
|
23302
|
+
switch (object.before) {
|
|
23303
|
+
default:
|
|
23304
|
+
if (typeof object.before === "number") {
|
|
23305
|
+
message.before = object.before;
|
|
23306
|
+
break;
|
|
23307
|
+
}
|
|
23308
|
+
break;
|
|
23309
|
+
case "ANIM_MODE_CONSTANT":
|
|
23310
|
+
case 0:
|
|
23311
|
+
message.before = 0;
|
|
23312
|
+
break;
|
|
23313
|
+
case "ANIM_MODE_STATE_FROM":
|
|
23314
|
+
case 1:
|
|
23315
|
+
message.before = 1;
|
|
23316
|
+
break;
|
|
23317
|
+
case "ANIM_MODE_LOOP":
|
|
23318
|
+
case 2:
|
|
23319
|
+
message.before = 2;
|
|
23320
|
+
break;
|
|
23321
|
+
case "ANIM_MODE_BOUNCE":
|
|
23322
|
+
case 3:
|
|
23323
|
+
message.before = 3;
|
|
23324
|
+
break;
|
|
23325
|
+
}
|
|
23326
|
+
switch (object.after) {
|
|
23327
|
+
default:
|
|
23328
|
+
if (typeof object.after === "number") {
|
|
23329
|
+
message.after = object.after;
|
|
23330
|
+
break;
|
|
23331
|
+
}
|
|
23332
|
+
break;
|
|
23333
|
+
case "ANIM_MODE_CONSTANT":
|
|
23334
|
+
case 0:
|
|
23335
|
+
message.after = 0;
|
|
23336
|
+
break;
|
|
23337
|
+
case "ANIM_MODE_STATE_FROM":
|
|
23338
|
+
case 1:
|
|
23339
|
+
message.after = 1;
|
|
23340
|
+
break;
|
|
23341
|
+
case "ANIM_MODE_LOOP":
|
|
23342
|
+
case 2:
|
|
23343
|
+
message.after = 2;
|
|
23344
|
+
break;
|
|
23345
|
+
case "ANIM_MODE_BOUNCE":
|
|
23346
|
+
case 3:
|
|
23347
|
+
message.after = 3;
|
|
23348
|
+
break;
|
|
23349
|
+
}
|
|
23350
|
+
return message;
|
|
23351
|
+
};
|
|
23352
|
+
PropertyAnimateRequest.toObject = function toObject(message, options) {
|
|
23353
|
+
if (!options)
|
|
23354
|
+
options = {};
|
|
23355
|
+
let object = {};
|
|
23356
|
+
if (options.arrays || options.defaults)
|
|
23357
|
+
object.keyframes = [];
|
|
23358
|
+
if (options.defaults) {
|
|
23359
|
+
object.domain = null;
|
|
23360
|
+
object.address = "";
|
|
23361
|
+
object.property = "";
|
|
23362
|
+
object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
23363
|
+
object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
23364
|
+
}
|
|
23365
|
+
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
23366
|
+
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
23367
|
+
if (message.address != null && message.hasOwnProperty("address"))
|
|
23368
|
+
object.address = message.address;
|
|
23369
|
+
if (message.property != null && message.hasOwnProperty("property"))
|
|
23370
|
+
object.property = message.property;
|
|
23371
|
+
if (message.keyframes && message.keyframes.length) {
|
|
23372
|
+
object.keyframes = [];
|
|
23373
|
+
for (let j = 0; j < message.keyframes.length; ++j)
|
|
23374
|
+
object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
|
|
23375
|
+
}
|
|
23376
|
+
if (message.before != null && message.hasOwnProperty("before"))
|
|
23377
|
+
object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
|
|
23378
|
+
if (message.after != null && message.hasOwnProperty("after"))
|
|
23379
|
+
object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
|
|
23380
|
+
return object;
|
|
23381
|
+
};
|
|
23382
|
+
PropertyAnimateRequest.prototype.toJSON = function toJSON() {
|
|
23383
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23384
|
+
};
|
|
23385
|
+
PropertyAnimateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
23386
|
+
if (typeUrlPrefix === void 0) {
|
|
23387
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
23388
|
+
}
|
|
23389
|
+
return typeUrlPrefix + "/sesame.v1.compositor.PropertyAnimateRequest";
|
|
23390
|
+
};
|
|
23391
|
+
return PropertyAnimateRequest;
|
|
23392
|
+
}();
|
|
23393
|
+
return compositor;
|
|
23394
|
+
}();
|
|
23395
|
+
v1.sidedata = function() {
|
|
23396
|
+
const sidedata = {};
|
|
23397
|
+
sidedata.AtlasEntry = function() {
|
|
23398
|
+
function AtlasEntry(properties) {
|
|
23399
|
+
if (properties) {
|
|
23400
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23401
|
+
if (properties[keys[i]] != null)
|
|
23402
|
+
this[keys[i]] = properties[keys[i]];
|
|
23403
|
+
}
|
|
23404
|
+
}
|
|
23405
|
+
AtlasEntry.prototype.sourceId = "";
|
|
23406
|
+
AtlasEntry.prototype.x = 0;
|
|
23407
|
+
AtlasEntry.prototype.y = 0;
|
|
23408
|
+
AtlasEntry.prototype.width = 0;
|
|
23409
|
+
AtlasEntry.prototype.height = 0;
|
|
23410
|
+
AtlasEntry.prototype.sourceWidth = 0;
|
|
23411
|
+
AtlasEntry.prototype.sourceHeight = 0;
|
|
23412
|
+
AtlasEntry.create = function create(properties) {
|
|
23413
|
+
return new AtlasEntry(properties);
|
|
23414
|
+
};
|
|
23415
|
+
AtlasEntry.encode = function encode(message, writer) {
|
|
23416
|
+
if (!writer)
|
|
23417
|
+
writer = $Writer.create();
|
|
23418
|
+
if (message.sourceId != null && Object.hasOwnProperty.call(message, "sourceId"))
|
|
23419
|
+
writer.uint32(
|
|
23420
|
+
/* id 1, wireType 2 =*/
|
|
23421
|
+
10
|
|
23422
|
+
).string(message.sourceId);
|
|
23423
|
+
if (message.x != null && Object.hasOwnProperty.call(message, "x"))
|
|
23424
|
+
writer.uint32(
|
|
23425
|
+
/* id 2, wireType 0 =*/
|
|
23426
|
+
16
|
|
23427
|
+
).uint32(message.x);
|
|
23428
|
+
if (message.y != null && Object.hasOwnProperty.call(message, "y"))
|
|
23429
|
+
writer.uint32(
|
|
23430
|
+
/* id 3, wireType 0 =*/
|
|
23431
|
+
24
|
|
23432
|
+
).uint32(message.y);
|
|
23433
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
23434
|
+
writer.uint32(
|
|
23435
|
+
/* id 4, wireType 0 =*/
|
|
23436
|
+
32
|
|
23437
|
+
).uint32(message.width);
|
|
23438
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
23439
|
+
writer.uint32(
|
|
23440
|
+
/* id 5, wireType 0 =*/
|
|
23441
|
+
40
|
|
23442
|
+
).uint32(message.height);
|
|
23443
|
+
if (message.sourceWidth != null && Object.hasOwnProperty.call(message, "sourceWidth"))
|
|
23444
|
+
writer.uint32(
|
|
23445
|
+
/* id 6, wireType 0 =*/
|
|
23446
|
+
48
|
|
23447
|
+
).uint32(message.sourceWidth);
|
|
23448
|
+
if (message.sourceHeight != null && Object.hasOwnProperty.call(message, "sourceHeight"))
|
|
23449
|
+
writer.uint32(
|
|
23450
|
+
/* id 7, wireType 0 =*/
|
|
23451
|
+
56
|
|
23452
|
+
).uint32(message.sourceHeight);
|
|
23453
|
+
return writer;
|
|
23454
|
+
};
|
|
23455
|
+
AtlasEntry.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23456
|
+
return this.encode(message, writer).ldelim();
|
|
23457
|
+
};
|
|
23458
|
+
AtlasEntry.decode = function decode(reader, length, error) {
|
|
23459
|
+
if (!(reader instanceof $Reader))
|
|
23460
|
+
reader = $Reader.create(reader);
|
|
23461
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasEntry();
|
|
23462
|
+
while (reader.pos < end) {
|
|
23463
|
+
let tag = reader.uint32();
|
|
23464
|
+
if (tag === error)
|
|
23465
|
+
break;
|
|
23466
|
+
switch (tag >>> 3) {
|
|
23467
|
+
case 1: {
|
|
23468
|
+
message.sourceId = reader.string();
|
|
23469
|
+
break;
|
|
23470
|
+
}
|
|
23471
|
+
case 2: {
|
|
23472
|
+
message.x = reader.uint32();
|
|
23473
|
+
break;
|
|
23474
|
+
}
|
|
23475
|
+
case 3: {
|
|
23476
|
+
message.y = reader.uint32();
|
|
23477
|
+
break;
|
|
23478
|
+
}
|
|
23479
|
+
case 4: {
|
|
23480
|
+
message.width = reader.uint32();
|
|
23481
|
+
break;
|
|
23482
|
+
}
|
|
23483
|
+
case 5: {
|
|
23484
|
+
message.height = reader.uint32();
|
|
23485
|
+
break;
|
|
23486
|
+
}
|
|
23487
|
+
case 6: {
|
|
23488
|
+
message.sourceWidth = reader.uint32();
|
|
23489
|
+
break;
|
|
23490
|
+
}
|
|
23491
|
+
case 7: {
|
|
23492
|
+
message.sourceHeight = reader.uint32();
|
|
23493
|
+
break;
|
|
23494
|
+
}
|
|
23495
|
+
default:
|
|
23496
|
+
reader.skipType(tag & 7);
|
|
23497
|
+
break;
|
|
23498
|
+
}
|
|
23499
|
+
}
|
|
23500
|
+
return message;
|
|
23501
|
+
};
|
|
23502
|
+
AtlasEntry.decodeDelimited = function decodeDelimited(reader) {
|
|
23503
|
+
if (!(reader instanceof $Reader))
|
|
23504
|
+
reader = new $Reader(reader);
|
|
23505
|
+
return this.decode(reader, reader.uint32());
|
|
23506
|
+
};
|
|
23507
|
+
AtlasEntry.verify = function verify(message) {
|
|
23508
|
+
if (typeof message !== "object" || message === null)
|
|
23509
|
+
return "object expected";
|
|
23510
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId")) {
|
|
23511
|
+
if (!$util.isString(message.sourceId))
|
|
23512
|
+
return "sourceId: string expected";
|
|
23513
|
+
}
|
|
23514
|
+
if (message.x != null && message.hasOwnProperty("x")) {
|
|
23515
|
+
if (!$util.isInteger(message.x))
|
|
23516
|
+
return "x: integer expected";
|
|
23517
|
+
}
|
|
23518
|
+
if (message.y != null && message.hasOwnProperty("y")) {
|
|
23519
|
+
if (!$util.isInteger(message.y))
|
|
23520
|
+
return "y: integer expected";
|
|
23521
|
+
}
|
|
23522
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
23523
|
+
if (!$util.isInteger(message.width))
|
|
23524
|
+
return "width: integer expected";
|
|
23525
|
+
}
|
|
23526
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
23527
|
+
if (!$util.isInteger(message.height))
|
|
23528
|
+
return "height: integer expected";
|
|
23529
|
+
}
|
|
23530
|
+
if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth")) {
|
|
23531
|
+
if (!$util.isInteger(message.sourceWidth))
|
|
23532
|
+
return "sourceWidth: integer expected";
|
|
23533
|
+
}
|
|
23534
|
+
if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight")) {
|
|
23535
|
+
if (!$util.isInteger(message.sourceHeight))
|
|
23536
|
+
return "sourceHeight: integer expected";
|
|
23537
|
+
}
|
|
23538
|
+
return null;
|
|
23539
|
+
};
|
|
23540
|
+
AtlasEntry.fromObject = function fromObject(object) {
|
|
23541
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasEntry)
|
|
23542
|
+
return object;
|
|
23543
|
+
let message = new $root.sesame.v1.sidedata.AtlasEntry();
|
|
23544
|
+
if (object.sourceId != null)
|
|
23545
|
+
message.sourceId = String(object.sourceId);
|
|
23546
|
+
if (object.x != null)
|
|
23547
|
+
message.x = object.x >>> 0;
|
|
23548
|
+
if (object.y != null)
|
|
23549
|
+
message.y = object.y >>> 0;
|
|
23550
|
+
if (object.width != null)
|
|
23551
|
+
message.width = object.width >>> 0;
|
|
23552
|
+
if (object.height != null)
|
|
23553
|
+
message.height = object.height >>> 0;
|
|
23554
|
+
if (object.sourceWidth != null)
|
|
23555
|
+
message.sourceWidth = object.sourceWidth >>> 0;
|
|
23556
|
+
if (object.sourceHeight != null)
|
|
23557
|
+
message.sourceHeight = object.sourceHeight >>> 0;
|
|
23558
|
+
return message;
|
|
23559
|
+
};
|
|
23560
|
+
AtlasEntry.toObject = function toObject(message, options) {
|
|
21542
23561
|
if (!options)
|
|
21543
23562
|
options = {};
|
|
21544
23563
|
let object = {};
|
|
21545
23564
|
if (options.defaults) {
|
|
21546
|
-
object.
|
|
21547
|
-
object.
|
|
21548
|
-
object.
|
|
21549
|
-
object.
|
|
23565
|
+
object.sourceId = "";
|
|
23566
|
+
object.x = 0;
|
|
23567
|
+
object.y = 0;
|
|
23568
|
+
object.width = 0;
|
|
23569
|
+
object.height = 0;
|
|
23570
|
+
object.sourceWidth = 0;
|
|
23571
|
+
object.sourceHeight = 0;
|
|
21550
23572
|
}
|
|
21551
|
-
if (message.
|
|
21552
|
-
object.
|
|
21553
|
-
if (message.
|
|
21554
|
-
object.
|
|
21555
|
-
if (message.
|
|
21556
|
-
object.
|
|
21557
|
-
if (message.
|
|
21558
|
-
object.
|
|
23573
|
+
if (message.sourceId != null && message.hasOwnProperty("sourceId"))
|
|
23574
|
+
object.sourceId = message.sourceId;
|
|
23575
|
+
if (message.x != null && message.hasOwnProperty("x"))
|
|
23576
|
+
object.x = message.x;
|
|
23577
|
+
if (message.y != null && message.hasOwnProperty("y"))
|
|
23578
|
+
object.y = message.y;
|
|
23579
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
23580
|
+
object.width = message.width;
|
|
23581
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
23582
|
+
object.height = message.height;
|
|
23583
|
+
if (message.sourceWidth != null && message.hasOwnProperty("sourceWidth"))
|
|
23584
|
+
object.sourceWidth = message.sourceWidth;
|
|
23585
|
+
if (message.sourceHeight != null && message.hasOwnProperty("sourceHeight"))
|
|
23586
|
+
object.sourceHeight = message.sourceHeight;
|
|
21559
23587
|
return object;
|
|
21560
23588
|
};
|
|
21561
|
-
|
|
23589
|
+
AtlasEntry.prototype.toJSON = function toJSON() {
|
|
21562
23590
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21563
23591
|
};
|
|
21564
|
-
|
|
23592
|
+
AtlasEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21565
23593
|
if (typeUrlPrefix === void 0) {
|
|
21566
23594
|
typeUrlPrefix = "type.googleapis.com";
|
|
21567
23595
|
}
|
|
21568
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
23596
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasEntry";
|
|
21569
23597
|
};
|
|
21570
|
-
return
|
|
23598
|
+
return AtlasEntry;
|
|
21571
23599
|
}();
|
|
21572
|
-
|
|
21573
|
-
function
|
|
23600
|
+
sidedata.AtlasLayout = function() {
|
|
23601
|
+
function AtlasLayout(properties) {
|
|
23602
|
+
this.entries = [];
|
|
21574
23603
|
if (properties) {
|
|
21575
23604
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21576
23605
|
if (properties[keys[i]] != null)
|
|
21577
23606
|
this[keys[i]] = properties[keys[i]];
|
|
21578
23607
|
}
|
|
21579
23608
|
}
|
|
21580
|
-
|
|
21581
|
-
|
|
21582
|
-
|
|
21583
|
-
|
|
23609
|
+
AtlasLayout.prototype.width = 0;
|
|
23610
|
+
AtlasLayout.prototype.height = 0;
|
|
23611
|
+
AtlasLayout.prototype.entries = $util.emptyArray;
|
|
23612
|
+
AtlasLayout.create = function create(properties) {
|
|
23613
|
+
return new AtlasLayout(properties);
|
|
21584
23614
|
};
|
|
21585
|
-
|
|
23615
|
+
AtlasLayout.encode = function encode(message, writer) {
|
|
21586
23616
|
if (!writer)
|
|
21587
23617
|
writer = $Writer.create();
|
|
21588
|
-
if (message.
|
|
23618
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
21589
23619
|
writer.uint32(
|
|
21590
|
-
/* id 1, wireType
|
|
21591
|
-
|
|
21592
|
-
).
|
|
21593
|
-
if (message.
|
|
23620
|
+
/* id 1, wireType 0 =*/
|
|
23621
|
+
8
|
|
23622
|
+
).uint32(message.width);
|
|
23623
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
21594
23624
|
writer.uint32(
|
|
21595
|
-
/* id 2, wireType
|
|
21596
|
-
|
|
21597
|
-
).
|
|
23625
|
+
/* id 2, wireType 0 =*/
|
|
23626
|
+
16
|
|
23627
|
+
).uint32(message.height);
|
|
23628
|
+
if (message.entries != null && message.entries.length)
|
|
23629
|
+
for (let i = 0; i < message.entries.length; ++i)
|
|
23630
|
+
$root.sesame.v1.sidedata.AtlasEntry.encode(message.entries[i], writer.uint32(
|
|
23631
|
+
/* id 3, wireType 2 =*/
|
|
23632
|
+
26
|
|
23633
|
+
).fork()).ldelim();
|
|
21598
23634
|
return writer;
|
|
21599
23635
|
};
|
|
21600
|
-
|
|
23636
|
+
AtlasLayout.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21601
23637
|
return this.encode(message, writer).ldelim();
|
|
21602
23638
|
};
|
|
21603
|
-
|
|
23639
|
+
AtlasLayout.decode = function decode(reader, length, error) {
|
|
21604
23640
|
if (!(reader instanceof $Reader))
|
|
21605
23641
|
reader = $Reader.create(reader);
|
|
21606
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
23642
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
21607
23643
|
while (reader.pos < end) {
|
|
21608
23644
|
let tag = reader.uint32();
|
|
21609
23645
|
if (tag === error)
|
|
21610
23646
|
break;
|
|
21611
23647
|
switch (tag >>> 3) {
|
|
21612
23648
|
case 1: {
|
|
21613
|
-
message.
|
|
23649
|
+
message.width = reader.uint32();
|
|
21614
23650
|
break;
|
|
21615
23651
|
}
|
|
21616
23652
|
case 2: {
|
|
21617
|
-
message.
|
|
23653
|
+
message.height = reader.uint32();
|
|
23654
|
+
break;
|
|
23655
|
+
}
|
|
23656
|
+
case 3: {
|
|
23657
|
+
if (!(message.entries && message.entries.length))
|
|
23658
|
+
message.entries = [];
|
|
23659
|
+
message.entries.push($root.sesame.v1.sidedata.AtlasEntry.decode(reader, reader.uint32()));
|
|
21618
23660
|
break;
|
|
21619
23661
|
}
|
|
21620
23662
|
default:
|
|
@@ -21624,125 +23666,166 @@ var sesame = $root.sesame = (() => {
|
|
|
21624
23666
|
}
|
|
21625
23667
|
return message;
|
|
21626
23668
|
};
|
|
21627
|
-
|
|
23669
|
+
AtlasLayout.decodeDelimited = function decodeDelimited(reader) {
|
|
21628
23670
|
if (!(reader instanceof $Reader))
|
|
21629
23671
|
reader = new $Reader(reader);
|
|
21630
23672
|
return this.decode(reader, reader.uint32());
|
|
21631
23673
|
};
|
|
21632
|
-
|
|
23674
|
+
AtlasLayout.verify = function verify(message) {
|
|
21633
23675
|
if (typeof message !== "object" || message === null)
|
|
21634
23676
|
return "object expected";
|
|
21635
|
-
if (message.
|
|
21636
|
-
if (!$util.
|
|
21637
|
-
return "
|
|
23677
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
23678
|
+
if (!$util.isInteger(message.width))
|
|
23679
|
+
return "width: integer expected";
|
|
21638
23680
|
}
|
|
21639
|
-
if (message.
|
|
21640
|
-
if (!$util.
|
|
21641
|
-
return "
|
|
23681
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
23682
|
+
if (!$util.isInteger(message.height))
|
|
23683
|
+
return "height: integer expected";
|
|
23684
|
+
}
|
|
23685
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
23686
|
+
if (!Array.isArray(message.entries))
|
|
23687
|
+
return "entries: array expected";
|
|
23688
|
+
for (let i = 0; i < message.entries.length; ++i) {
|
|
23689
|
+
let error = $root.sesame.v1.sidedata.AtlasEntry.verify(message.entries[i]);
|
|
23690
|
+
if (error)
|
|
23691
|
+
return "entries." + error;
|
|
23692
|
+
}
|
|
21642
23693
|
}
|
|
21643
23694
|
return null;
|
|
21644
23695
|
};
|
|
21645
|
-
|
|
21646
|
-
if (object instanceof $root.sesame.v1.
|
|
23696
|
+
AtlasLayout.fromObject = function fromObject(object) {
|
|
23697
|
+
if (object instanceof $root.sesame.v1.sidedata.AtlasLayout)
|
|
21647
23698
|
return object;
|
|
21648
|
-
let message = new $root.sesame.v1.
|
|
21649
|
-
if (object.
|
|
21650
|
-
message.
|
|
21651
|
-
if (object.
|
|
21652
|
-
message.
|
|
23699
|
+
let message = new $root.sesame.v1.sidedata.AtlasLayout();
|
|
23700
|
+
if (object.width != null)
|
|
23701
|
+
message.width = object.width >>> 0;
|
|
23702
|
+
if (object.height != null)
|
|
23703
|
+
message.height = object.height >>> 0;
|
|
23704
|
+
if (object.entries) {
|
|
23705
|
+
if (!Array.isArray(object.entries))
|
|
23706
|
+
throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: array expected");
|
|
23707
|
+
message.entries = [];
|
|
23708
|
+
for (let i = 0; i < object.entries.length; ++i) {
|
|
23709
|
+
if (typeof object.entries[i] !== "object")
|
|
23710
|
+
throw TypeError(".sesame.v1.sidedata.AtlasLayout.entries: object expected");
|
|
23711
|
+
message.entries[i] = $root.sesame.v1.sidedata.AtlasEntry.fromObject(object.entries[i]);
|
|
23712
|
+
}
|
|
23713
|
+
}
|
|
21653
23714
|
return message;
|
|
21654
23715
|
};
|
|
21655
|
-
|
|
23716
|
+
AtlasLayout.toObject = function toObject(message, options) {
|
|
21656
23717
|
if (!options)
|
|
21657
23718
|
options = {};
|
|
21658
23719
|
let object = {};
|
|
23720
|
+
if (options.arrays || options.defaults)
|
|
23721
|
+
object.entries = [];
|
|
21659
23722
|
if (options.defaults) {
|
|
21660
|
-
object.
|
|
21661
|
-
object.
|
|
23723
|
+
object.width = 0;
|
|
23724
|
+
object.height = 0;
|
|
23725
|
+
}
|
|
23726
|
+
if (message.width != null && message.hasOwnProperty("width"))
|
|
23727
|
+
object.width = message.width;
|
|
23728
|
+
if (message.height != null && message.hasOwnProperty("height"))
|
|
23729
|
+
object.height = message.height;
|
|
23730
|
+
if (message.entries && message.entries.length) {
|
|
23731
|
+
object.entries = [];
|
|
23732
|
+
for (let j = 0; j < message.entries.length; ++j)
|
|
23733
|
+
object.entries[j] = $root.sesame.v1.sidedata.AtlasEntry.toObject(message.entries[j], options);
|
|
21662
23734
|
}
|
|
21663
|
-
if (message.compositorId != null && message.hasOwnProperty("compositorId"))
|
|
21664
|
-
object.compositorId = message.compositorId;
|
|
21665
|
-
if (message.address != null && message.hasOwnProperty("address"))
|
|
21666
|
-
object.address = message.address;
|
|
21667
23735
|
return object;
|
|
21668
23736
|
};
|
|
21669
|
-
|
|
23737
|
+
AtlasLayout.prototype.toJSON = function toJSON() {
|
|
21670
23738
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21671
23739
|
};
|
|
21672
|
-
|
|
23740
|
+
AtlasLayout.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21673
23741
|
if (typeUrlPrefix === void 0) {
|
|
21674
23742
|
typeUrlPrefix = "type.googleapis.com";
|
|
21675
23743
|
}
|
|
21676
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
23744
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.AtlasLayout";
|
|
21677
23745
|
};
|
|
21678
|
-
return
|
|
23746
|
+
return AtlasLayout;
|
|
21679
23747
|
}();
|
|
21680
|
-
|
|
21681
|
-
function
|
|
23748
|
+
sidedata.SideData = function() {
|
|
23749
|
+
function SideData2(properties) {
|
|
21682
23750
|
if (properties) {
|
|
21683
23751
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21684
23752
|
if (properties[keys[i]] != null)
|
|
21685
23753
|
this[keys[i]] = properties[keys[i]];
|
|
21686
23754
|
}
|
|
21687
23755
|
}
|
|
21688
|
-
|
|
21689
|
-
|
|
21690
|
-
|
|
21691
|
-
|
|
21692
|
-
|
|
21693
|
-
|
|
23756
|
+
SideData2.prototype.id = "";
|
|
23757
|
+
SideData2.prototype.version = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
23758
|
+
SideData2.prototype.atlas = null;
|
|
23759
|
+
SideData2.prototype.json = null;
|
|
23760
|
+
SideData2.prototype.binary = null;
|
|
23761
|
+
let $oneOfFields;
|
|
23762
|
+
Object.defineProperty(SideData2.prototype, "payload", {
|
|
23763
|
+
get: $util.oneOfGetter($oneOfFields = ["atlas", "json", "binary"]),
|
|
23764
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23765
|
+
});
|
|
23766
|
+
SideData2.create = function create(properties) {
|
|
23767
|
+
return new SideData2(properties);
|
|
21694
23768
|
};
|
|
21695
|
-
|
|
23769
|
+
SideData2.encode = function encode(message, writer) {
|
|
21696
23770
|
if (!writer)
|
|
21697
23771
|
writer = $Writer.create();
|
|
21698
|
-
if (message.
|
|
21699
|
-
|
|
23772
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
23773
|
+
writer.uint32(
|
|
21700
23774
|
/* id 1, wireType 2 =*/
|
|
21701
23775
|
10
|
|
23776
|
+
).string(message.id);
|
|
23777
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
23778
|
+
writer.uint32(
|
|
23779
|
+
/* id 2, wireType 0 =*/
|
|
23780
|
+
16
|
|
23781
|
+
).uint64(message.version);
|
|
23782
|
+
if (message.atlas != null && Object.hasOwnProperty.call(message, "atlas"))
|
|
23783
|
+
$root.sesame.v1.sidedata.AtlasLayout.encode(message.atlas, writer.uint32(
|
|
23784
|
+
/* id 10, wireType 2 =*/
|
|
23785
|
+
82
|
|
21702
23786
|
).fork()).ldelim();
|
|
21703
|
-
if (message.
|
|
23787
|
+
if (message.json != null && Object.hasOwnProperty.call(message, "json"))
|
|
21704
23788
|
writer.uint32(
|
|
21705
|
-
/* id
|
|
21706
|
-
|
|
21707
|
-
).string(message.
|
|
21708
|
-
if (message.
|
|
23789
|
+
/* id 20, wireType 2 =*/
|
|
23790
|
+
162
|
|
23791
|
+
).string(message.json);
|
|
23792
|
+
if (message.binary != null && Object.hasOwnProperty.call(message, "binary"))
|
|
21709
23793
|
writer.uint32(
|
|
21710
|
-
/* id
|
|
21711
|
-
|
|
21712
|
-
).
|
|
21713
|
-
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
21714
|
-
$root.sesame.v1.common.PropValue.encode(message.value, writer.uint32(
|
|
21715
|
-
/* id 4, wireType 2 =*/
|
|
21716
|
-
34
|
|
21717
|
-
).fork()).ldelim();
|
|
23794
|
+
/* id 21, wireType 2 =*/
|
|
23795
|
+
170
|
|
23796
|
+
).bytes(message.binary);
|
|
21718
23797
|
return writer;
|
|
21719
23798
|
};
|
|
21720
|
-
|
|
23799
|
+
SideData2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21721
23800
|
return this.encode(message, writer).ldelim();
|
|
21722
23801
|
};
|
|
21723
|
-
|
|
23802
|
+
SideData2.decode = function decode(reader, length, error) {
|
|
21724
23803
|
if (!(reader instanceof $Reader))
|
|
21725
23804
|
reader = $Reader.create(reader);
|
|
21726
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
23805
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideData();
|
|
21727
23806
|
while (reader.pos < end) {
|
|
21728
23807
|
let tag = reader.uint32();
|
|
21729
23808
|
if (tag === error)
|
|
21730
23809
|
break;
|
|
21731
23810
|
switch (tag >>> 3) {
|
|
21732
23811
|
case 1: {
|
|
21733
|
-
message.
|
|
23812
|
+
message.id = reader.string();
|
|
21734
23813
|
break;
|
|
21735
23814
|
}
|
|
21736
23815
|
case 2: {
|
|
21737
|
-
message.
|
|
23816
|
+
message.version = reader.uint64();
|
|
21738
23817
|
break;
|
|
21739
23818
|
}
|
|
21740
|
-
case
|
|
21741
|
-
message.
|
|
23819
|
+
case 10: {
|
|
23820
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.decode(reader, reader.uint32());
|
|
21742
23821
|
break;
|
|
21743
23822
|
}
|
|
21744
|
-
case
|
|
21745
|
-
message.
|
|
23823
|
+
case 20: {
|
|
23824
|
+
message.json = reader.string();
|
|
23825
|
+
break;
|
|
23826
|
+
}
|
|
23827
|
+
case 21: {
|
|
23828
|
+
message.binary = reader.bytes();
|
|
21746
23829
|
break;
|
|
21747
23830
|
}
|
|
21748
23831
|
default:
|
|
@@ -21752,175 +23835,165 @@ var sesame = $root.sesame = (() => {
|
|
|
21752
23835
|
}
|
|
21753
23836
|
return message;
|
|
21754
23837
|
};
|
|
21755
|
-
|
|
23838
|
+
SideData2.decodeDelimited = function decodeDelimited(reader) {
|
|
21756
23839
|
if (!(reader instanceof $Reader))
|
|
21757
23840
|
reader = new $Reader(reader);
|
|
21758
23841
|
return this.decode(reader, reader.uint32());
|
|
21759
23842
|
};
|
|
21760
|
-
|
|
23843
|
+
SideData2.verify = function verify(message) {
|
|
21761
23844
|
if (typeof message !== "object" || message === null)
|
|
21762
23845
|
return "object expected";
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
|
-
if (
|
|
21766
|
-
return "
|
|
23846
|
+
let properties = {};
|
|
23847
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
23848
|
+
if (!$util.isString(message.id))
|
|
23849
|
+
return "id: string expected";
|
|
21767
23850
|
}
|
|
21768
|
-
if (message.
|
|
21769
|
-
if (!$util.
|
|
21770
|
-
return "
|
|
23851
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
|
23852
|
+
if (!$util.isInteger(message.version) && !(message.version && $util.isInteger(message.version.low) && $util.isInteger(message.version.high)))
|
|
23853
|
+
return "version: integer|Long expected";
|
|
21771
23854
|
}
|
|
21772
|
-
if (message.
|
|
21773
|
-
|
|
21774
|
-
|
|
23855
|
+
if (message.atlas != null && message.hasOwnProperty("atlas")) {
|
|
23856
|
+
properties.payload = 1;
|
|
23857
|
+
{
|
|
23858
|
+
let error = $root.sesame.v1.sidedata.AtlasLayout.verify(message.atlas);
|
|
23859
|
+
if (error)
|
|
23860
|
+
return "atlas." + error;
|
|
23861
|
+
}
|
|
21775
23862
|
}
|
|
21776
|
-
if (message.
|
|
21777
|
-
|
|
21778
|
-
|
|
21779
|
-
|
|
23863
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
23864
|
+
if (properties.payload === 1)
|
|
23865
|
+
return "payload: multiple values";
|
|
23866
|
+
properties.payload = 1;
|
|
23867
|
+
if (!$util.isString(message.json))
|
|
23868
|
+
return "json: string expected";
|
|
23869
|
+
}
|
|
23870
|
+
if (message.binary != null && message.hasOwnProperty("binary")) {
|
|
23871
|
+
if (properties.payload === 1)
|
|
23872
|
+
return "payload: multiple values";
|
|
23873
|
+
properties.payload = 1;
|
|
23874
|
+
if (!(message.binary && typeof message.binary.length === "number" || $util.isString(message.binary)))
|
|
23875
|
+
return "binary: buffer expected";
|
|
21780
23876
|
}
|
|
21781
23877
|
return null;
|
|
21782
23878
|
};
|
|
21783
|
-
|
|
21784
|
-
if (object instanceof $root.sesame.v1.
|
|
23879
|
+
SideData2.fromObject = function fromObject(object) {
|
|
23880
|
+
if (object instanceof $root.sesame.v1.sidedata.SideData)
|
|
21785
23881
|
return object;
|
|
21786
|
-
let message = new $root.sesame.v1.
|
|
21787
|
-
if (object.
|
|
21788
|
-
|
|
21789
|
-
|
|
21790
|
-
|
|
21791
|
-
|
|
21792
|
-
|
|
21793
|
-
|
|
21794
|
-
|
|
21795
|
-
|
|
21796
|
-
|
|
21797
|
-
|
|
21798
|
-
|
|
21799
|
-
|
|
21800
|
-
|
|
21801
|
-
|
|
21802
|
-
|
|
21803
|
-
|
|
23882
|
+
let message = new $root.sesame.v1.sidedata.SideData();
|
|
23883
|
+
if (object.id != null)
|
|
23884
|
+
message.id = String(object.id);
|
|
23885
|
+
if (object.version != null) {
|
|
23886
|
+
if ($util.Long)
|
|
23887
|
+
(message.version = $util.Long.fromValue(object.version)).unsigned = true;
|
|
23888
|
+
else if (typeof object.version === "string")
|
|
23889
|
+
message.version = parseInt(object.version, 10);
|
|
23890
|
+
else if (typeof object.version === "number")
|
|
23891
|
+
message.version = object.version;
|
|
23892
|
+
else if (typeof object.version === "object")
|
|
23893
|
+
message.version = new $util.LongBits(object.version.low >>> 0, object.version.high >>> 0).toNumber(true);
|
|
23894
|
+
}
|
|
23895
|
+
if (object.atlas != null) {
|
|
23896
|
+
if (typeof object.atlas !== "object")
|
|
23897
|
+
throw TypeError(".sesame.v1.sidedata.SideData.atlas: object expected");
|
|
23898
|
+
message.atlas = $root.sesame.v1.sidedata.AtlasLayout.fromObject(object.atlas);
|
|
23899
|
+
}
|
|
23900
|
+
if (object.json != null)
|
|
23901
|
+
message.json = String(object.json);
|
|
23902
|
+
if (object.binary != null) {
|
|
23903
|
+
if (typeof object.binary === "string")
|
|
23904
|
+
$util.base64.decode(object.binary, message.binary = $util.newBuffer($util.base64.length(object.binary)), 0);
|
|
23905
|
+
else if (object.binary.length >= 0)
|
|
23906
|
+
message.binary = object.binary;
|
|
23907
|
+
}
|
|
23908
|
+
return message;
|
|
23909
|
+
};
|
|
23910
|
+
SideData2.toObject = function toObject(message, options) {
|
|
21804
23911
|
if (!options)
|
|
21805
23912
|
options = {};
|
|
21806
23913
|
let object = {};
|
|
21807
23914
|
if (options.defaults) {
|
|
21808
|
-
object.
|
|
21809
|
-
|
|
21810
|
-
|
|
21811
|
-
|
|
23915
|
+
object.id = "";
|
|
23916
|
+
if ($util.Long) {
|
|
23917
|
+
let long = new $util.Long(0, 0, true);
|
|
23918
|
+
object.version = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23919
|
+
} else
|
|
23920
|
+
object.version = options.longs === String ? "0" : 0;
|
|
23921
|
+
}
|
|
23922
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
23923
|
+
object.id = message.id;
|
|
23924
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
23925
|
+
if (typeof message.version === "number")
|
|
23926
|
+
object.version = options.longs === String ? String(message.version) : message.version;
|
|
23927
|
+
else
|
|
23928
|
+
object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
|
|
23929
|
+
if (message.atlas != null && message.hasOwnProperty("atlas")) {
|
|
23930
|
+
object.atlas = $root.sesame.v1.sidedata.AtlasLayout.toObject(message.atlas, options);
|
|
23931
|
+
if (options.oneofs)
|
|
23932
|
+
object.payload = "atlas";
|
|
23933
|
+
}
|
|
23934
|
+
if (message.json != null && message.hasOwnProperty("json")) {
|
|
23935
|
+
object.json = message.json;
|
|
23936
|
+
if (options.oneofs)
|
|
23937
|
+
object.payload = "json";
|
|
23938
|
+
}
|
|
23939
|
+
if (message.binary != null && message.hasOwnProperty("binary")) {
|
|
23940
|
+
object.binary = options.bytes === String ? $util.base64.encode(message.binary, 0, message.binary.length) : options.bytes === Array ? Array.prototype.slice.call(message.binary) : message.binary;
|
|
23941
|
+
if (options.oneofs)
|
|
23942
|
+
object.payload = "binary";
|
|
21812
23943
|
}
|
|
21813
|
-
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
21814
|
-
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
21815
|
-
if (message.address != null && message.hasOwnProperty("address"))
|
|
21816
|
-
object.address = message.address;
|
|
21817
|
-
if (message.property != null && message.hasOwnProperty("property"))
|
|
21818
|
-
object.property = message.property;
|
|
21819
|
-
if (message.value != null && message.hasOwnProperty("value"))
|
|
21820
|
-
object.value = $root.sesame.v1.common.PropValue.toObject(message.value, options);
|
|
21821
23944
|
return object;
|
|
21822
23945
|
};
|
|
21823
|
-
|
|
23946
|
+
SideData2.prototype.toJSON = function toJSON() {
|
|
21824
23947
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21825
23948
|
};
|
|
21826
|
-
|
|
23949
|
+
SideData2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
21827
23950
|
if (typeUrlPrefix === void 0) {
|
|
21828
23951
|
typeUrlPrefix = "type.googleapis.com";
|
|
21829
23952
|
}
|
|
21830
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
23953
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideData";
|
|
21831
23954
|
};
|
|
21832
|
-
return
|
|
23955
|
+
return SideData2;
|
|
21833
23956
|
}();
|
|
21834
|
-
|
|
21835
|
-
function
|
|
21836
|
-
this.
|
|
23957
|
+
sidedata.SideDataSet = function() {
|
|
23958
|
+
function SideDataSet(properties) {
|
|
23959
|
+
this.entries = [];
|
|
21837
23960
|
if (properties) {
|
|
21838
23961
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
21839
23962
|
if (properties[keys[i]] != null)
|
|
21840
23963
|
this[keys[i]] = properties[keys[i]];
|
|
21841
23964
|
}
|
|
21842
23965
|
}
|
|
21843
|
-
|
|
21844
|
-
|
|
21845
|
-
|
|
21846
|
-
PropertyAnimateRequest.prototype.keyframes = $util.emptyArray;
|
|
21847
|
-
PropertyAnimateRequest.prototype.before = 0;
|
|
21848
|
-
PropertyAnimateRequest.prototype.after = 0;
|
|
21849
|
-
PropertyAnimateRequest.create = function create(properties) {
|
|
21850
|
-
return new PropertyAnimateRequest(properties);
|
|
23966
|
+
SideDataSet.prototype.entries = $util.emptyArray;
|
|
23967
|
+
SideDataSet.create = function create(properties) {
|
|
23968
|
+
return new SideDataSet(properties);
|
|
21851
23969
|
};
|
|
21852
|
-
|
|
23970
|
+
SideDataSet.encode = function encode(message, writer) {
|
|
21853
23971
|
if (!writer)
|
|
21854
23972
|
writer = $Writer.create();
|
|
21855
|
-
if (message.
|
|
21856
|
-
|
|
21857
|
-
|
|
21858
|
-
|
|
21859
|
-
|
|
21860
|
-
if (message.address != null && Object.hasOwnProperty.call(message, "address"))
|
|
21861
|
-
writer.uint32(
|
|
21862
|
-
/* id 2, wireType 2 =*/
|
|
21863
|
-
18
|
|
21864
|
-
).string(message.address);
|
|
21865
|
-
if (message.property != null && Object.hasOwnProperty.call(message, "property"))
|
|
21866
|
-
writer.uint32(
|
|
21867
|
-
/* id 3, wireType 2 =*/
|
|
21868
|
-
26
|
|
21869
|
-
).string(message.property);
|
|
21870
|
-
if (message.keyframes != null && message.keyframes.length)
|
|
21871
|
-
for (let i = 0; i < message.keyframes.length; ++i)
|
|
21872
|
-
$root.sesame.v1.compositor.KeyFrame.encode(message.keyframes[i], writer.uint32(
|
|
21873
|
-
/* id 4, wireType 2 =*/
|
|
21874
|
-
34
|
|
23973
|
+
if (message.entries != null && message.entries.length)
|
|
23974
|
+
for (let i = 0; i < message.entries.length; ++i)
|
|
23975
|
+
$root.sesame.v1.sidedata.SideData.encode(message.entries[i], writer.uint32(
|
|
23976
|
+
/* id 1, wireType 2 =*/
|
|
23977
|
+
10
|
|
21875
23978
|
).fork()).ldelim();
|
|
21876
|
-
if (message.before != null && Object.hasOwnProperty.call(message, "before"))
|
|
21877
|
-
writer.uint32(
|
|
21878
|
-
/* id 5, wireType 0 =*/
|
|
21879
|
-
40
|
|
21880
|
-
).int32(message.before);
|
|
21881
|
-
if (message.after != null && Object.hasOwnProperty.call(message, "after"))
|
|
21882
|
-
writer.uint32(
|
|
21883
|
-
/* id 6, wireType 0 =*/
|
|
21884
|
-
48
|
|
21885
|
-
).int32(message.after);
|
|
21886
23979
|
return writer;
|
|
21887
23980
|
};
|
|
21888
|
-
|
|
23981
|
+
SideDataSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
21889
23982
|
return this.encode(message, writer).ldelim();
|
|
21890
23983
|
};
|
|
21891
|
-
|
|
23984
|
+
SideDataSet.decode = function decode(reader, length, error) {
|
|
21892
23985
|
if (!(reader instanceof $Reader))
|
|
21893
23986
|
reader = $Reader.create(reader);
|
|
21894
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.
|
|
23987
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
21895
23988
|
while (reader.pos < end) {
|
|
21896
23989
|
let tag = reader.uint32();
|
|
21897
23990
|
if (tag === error)
|
|
21898
23991
|
break;
|
|
21899
23992
|
switch (tag >>> 3) {
|
|
21900
23993
|
case 1: {
|
|
21901
|
-
message.
|
|
21902
|
-
|
|
21903
|
-
|
|
21904
|
-
case 2: {
|
|
21905
|
-
message.address = reader.string();
|
|
21906
|
-
break;
|
|
21907
|
-
}
|
|
21908
|
-
case 3: {
|
|
21909
|
-
message.property = reader.string();
|
|
21910
|
-
break;
|
|
21911
|
-
}
|
|
21912
|
-
case 4: {
|
|
21913
|
-
if (!(message.keyframes && message.keyframes.length))
|
|
21914
|
-
message.keyframes = [];
|
|
21915
|
-
message.keyframes.push($root.sesame.v1.compositor.KeyFrame.decode(reader, reader.uint32()));
|
|
21916
|
-
break;
|
|
21917
|
-
}
|
|
21918
|
-
case 5: {
|
|
21919
|
-
message.before = reader.int32();
|
|
21920
|
-
break;
|
|
21921
|
-
}
|
|
21922
|
-
case 6: {
|
|
21923
|
-
message.after = reader.int32();
|
|
23994
|
+
if (!(message.entries && message.entries.length))
|
|
23995
|
+
message.entries = [];
|
|
23996
|
+
message.entries.push($root.sesame.v1.sidedata.SideData.decode(reader, reader.uint32()));
|
|
21924
23997
|
break;
|
|
21925
23998
|
}
|
|
21926
23999
|
default:
|
|
@@ -21930,173 +24003,66 @@ var sesame = $root.sesame = (() => {
|
|
|
21930
24003
|
}
|
|
21931
24004
|
return message;
|
|
21932
24005
|
};
|
|
21933
|
-
|
|
24006
|
+
SideDataSet.decodeDelimited = function decodeDelimited(reader) {
|
|
21934
24007
|
if (!(reader instanceof $Reader))
|
|
21935
24008
|
reader = new $Reader(reader);
|
|
21936
24009
|
return this.decode(reader, reader.uint32());
|
|
21937
24010
|
};
|
|
21938
|
-
|
|
24011
|
+
SideDataSet.verify = function verify(message) {
|
|
21939
24012
|
if (typeof message !== "object" || message === null)
|
|
21940
24013
|
return "object expected";
|
|
21941
|
-
if (message.
|
|
21942
|
-
|
|
21943
|
-
|
|
21944
|
-
|
|
21945
|
-
|
|
21946
|
-
if (message.address != null && message.hasOwnProperty("address")) {
|
|
21947
|
-
if (!$util.isString(message.address))
|
|
21948
|
-
return "address: string expected";
|
|
21949
|
-
}
|
|
21950
|
-
if (message.property != null && message.hasOwnProperty("property")) {
|
|
21951
|
-
if (!$util.isString(message.property))
|
|
21952
|
-
return "property: string expected";
|
|
21953
|
-
}
|
|
21954
|
-
if (message.keyframes != null && message.hasOwnProperty("keyframes")) {
|
|
21955
|
-
if (!Array.isArray(message.keyframes))
|
|
21956
|
-
return "keyframes: array expected";
|
|
21957
|
-
for (let i = 0; i < message.keyframes.length; ++i) {
|
|
21958
|
-
let error = $root.sesame.v1.compositor.KeyFrame.verify(message.keyframes[i]);
|
|
24014
|
+
if (message.entries != null && message.hasOwnProperty("entries")) {
|
|
24015
|
+
if (!Array.isArray(message.entries))
|
|
24016
|
+
return "entries: array expected";
|
|
24017
|
+
for (let i = 0; i < message.entries.length; ++i) {
|
|
24018
|
+
let error = $root.sesame.v1.sidedata.SideData.verify(message.entries[i]);
|
|
21959
24019
|
if (error)
|
|
21960
|
-
return "
|
|
24020
|
+
return "entries." + error;
|
|
21961
24021
|
}
|
|
21962
24022
|
}
|
|
21963
|
-
if (message.before != null && message.hasOwnProperty("before"))
|
|
21964
|
-
switch (message.before) {
|
|
21965
|
-
default:
|
|
21966
|
-
return "before: enum value expected";
|
|
21967
|
-
case 0:
|
|
21968
|
-
case 1:
|
|
21969
|
-
case 2:
|
|
21970
|
-
case 3:
|
|
21971
|
-
break;
|
|
21972
|
-
}
|
|
21973
|
-
if (message.after != null && message.hasOwnProperty("after"))
|
|
21974
|
-
switch (message.after) {
|
|
21975
|
-
default:
|
|
21976
|
-
return "after: enum value expected";
|
|
21977
|
-
case 0:
|
|
21978
|
-
case 1:
|
|
21979
|
-
case 2:
|
|
21980
|
-
case 3:
|
|
21981
|
-
break;
|
|
21982
|
-
}
|
|
21983
24023
|
return null;
|
|
21984
24024
|
};
|
|
21985
|
-
|
|
21986
|
-
if (object instanceof $root.sesame.v1.
|
|
24025
|
+
SideDataSet.fromObject = function fromObject(object) {
|
|
24026
|
+
if (object instanceof $root.sesame.v1.sidedata.SideDataSet)
|
|
21987
24027
|
return object;
|
|
21988
|
-
let message = new $root.sesame.v1.
|
|
21989
|
-
if (object.
|
|
21990
|
-
if (
|
|
21991
|
-
throw TypeError(".sesame.v1.
|
|
21992
|
-
message.
|
|
21993
|
-
|
|
21994
|
-
|
|
21995
|
-
|
|
21996
|
-
|
|
21997
|
-
message.property = String(object.property);
|
|
21998
|
-
if (object.keyframes) {
|
|
21999
|
-
if (!Array.isArray(object.keyframes))
|
|
22000
|
-
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: array expected");
|
|
22001
|
-
message.keyframes = [];
|
|
22002
|
-
for (let i = 0; i < object.keyframes.length; ++i) {
|
|
22003
|
-
if (typeof object.keyframes[i] !== "object")
|
|
22004
|
-
throw TypeError(".sesame.v1.compositor.PropertyAnimateRequest.keyframes: object expected");
|
|
22005
|
-
message.keyframes[i] = $root.sesame.v1.compositor.KeyFrame.fromObject(object.keyframes[i]);
|
|
24028
|
+
let message = new $root.sesame.v1.sidedata.SideDataSet();
|
|
24029
|
+
if (object.entries) {
|
|
24030
|
+
if (!Array.isArray(object.entries))
|
|
24031
|
+
throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: array expected");
|
|
24032
|
+
message.entries = [];
|
|
24033
|
+
for (let i = 0; i < object.entries.length; ++i) {
|
|
24034
|
+
if (typeof object.entries[i] !== "object")
|
|
24035
|
+
throw TypeError(".sesame.v1.sidedata.SideDataSet.entries: object expected");
|
|
24036
|
+
message.entries[i] = $root.sesame.v1.sidedata.SideData.fromObject(object.entries[i]);
|
|
22006
24037
|
}
|
|
22007
24038
|
}
|
|
22008
|
-
switch (object.before) {
|
|
22009
|
-
default:
|
|
22010
|
-
if (typeof object.before === "number") {
|
|
22011
|
-
message.before = object.before;
|
|
22012
|
-
break;
|
|
22013
|
-
}
|
|
22014
|
-
break;
|
|
22015
|
-
case "ANIM_MODE_CONSTANT":
|
|
22016
|
-
case 0:
|
|
22017
|
-
message.before = 0;
|
|
22018
|
-
break;
|
|
22019
|
-
case "ANIM_MODE_STATE_FROM":
|
|
22020
|
-
case 1:
|
|
22021
|
-
message.before = 1;
|
|
22022
|
-
break;
|
|
22023
|
-
case "ANIM_MODE_LOOP":
|
|
22024
|
-
case 2:
|
|
22025
|
-
message.before = 2;
|
|
22026
|
-
break;
|
|
22027
|
-
case "ANIM_MODE_BOUNCE":
|
|
22028
|
-
case 3:
|
|
22029
|
-
message.before = 3;
|
|
22030
|
-
break;
|
|
22031
|
-
}
|
|
22032
|
-
switch (object.after) {
|
|
22033
|
-
default:
|
|
22034
|
-
if (typeof object.after === "number") {
|
|
22035
|
-
message.after = object.after;
|
|
22036
|
-
break;
|
|
22037
|
-
}
|
|
22038
|
-
break;
|
|
22039
|
-
case "ANIM_MODE_CONSTANT":
|
|
22040
|
-
case 0:
|
|
22041
|
-
message.after = 0;
|
|
22042
|
-
break;
|
|
22043
|
-
case "ANIM_MODE_STATE_FROM":
|
|
22044
|
-
case 1:
|
|
22045
|
-
message.after = 1;
|
|
22046
|
-
break;
|
|
22047
|
-
case "ANIM_MODE_LOOP":
|
|
22048
|
-
case 2:
|
|
22049
|
-
message.after = 2;
|
|
22050
|
-
break;
|
|
22051
|
-
case "ANIM_MODE_BOUNCE":
|
|
22052
|
-
case 3:
|
|
22053
|
-
message.after = 3;
|
|
22054
|
-
break;
|
|
22055
|
-
}
|
|
22056
24039
|
return message;
|
|
22057
24040
|
};
|
|
22058
|
-
|
|
24041
|
+
SideDataSet.toObject = function toObject(message, options) {
|
|
22059
24042
|
if (!options)
|
|
22060
24043
|
options = {};
|
|
22061
24044
|
let object = {};
|
|
22062
24045
|
if (options.arrays || options.defaults)
|
|
22063
|
-
object.
|
|
22064
|
-
if (
|
|
22065
|
-
object.
|
|
22066
|
-
|
|
22067
|
-
|
|
22068
|
-
object.before = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22069
|
-
object.after = options.enums === String ? "ANIM_MODE_CONSTANT" : 0;
|
|
22070
|
-
}
|
|
22071
|
-
if (message.domain != null && message.hasOwnProperty("domain"))
|
|
22072
|
-
object.domain = $root.sesame.v1.common.PropertyDomain.toObject(message.domain, options);
|
|
22073
|
-
if (message.address != null && message.hasOwnProperty("address"))
|
|
22074
|
-
object.address = message.address;
|
|
22075
|
-
if (message.property != null && message.hasOwnProperty("property"))
|
|
22076
|
-
object.property = message.property;
|
|
22077
|
-
if (message.keyframes && message.keyframes.length) {
|
|
22078
|
-
object.keyframes = [];
|
|
22079
|
-
for (let j = 0; j < message.keyframes.length; ++j)
|
|
22080
|
-
object.keyframes[j] = $root.sesame.v1.compositor.KeyFrame.toObject(message.keyframes[j], options);
|
|
24046
|
+
object.entries = [];
|
|
24047
|
+
if (message.entries && message.entries.length) {
|
|
24048
|
+
object.entries = [];
|
|
24049
|
+
for (let j = 0; j < message.entries.length; ++j)
|
|
24050
|
+
object.entries[j] = $root.sesame.v1.sidedata.SideData.toObject(message.entries[j], options);
|
|
22081
24051
|
}
|
|
22082
|
-
if (message.before != null && message.hasOwnProperty("before"))
|
|
22083
|
-
object.before = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] === void 0 ? message.before : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.before] : message.before;
|
|
22084
|
-
if (message.after != null && message.hasOwnProperty("after"))
|
|
22085
|
-
object.after = options.enums === String ? $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] === void 0 ? message.after : $root.sesame.v1.compositor.AnimationChannelEvaluationMode[message.after] : message.after;
|
|
22086
24052
|
return object;
|
|
22087
24053
|
};
|
|
22088
|
-
|
|
24054
|
+
SideDataSet.prototype.toJSON = function toJSON() {
|
|
22089
24055
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
22090
24056
|
};
|
|
22091
|
-
|
|
24057
|
+
SideDataSet.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
22092
24058
|
if (typeUrlPrefix === void 0) {
|
|
22093
24059
|
typeUrlPrefix = "type.googleapis.com";
|
|
22094
24060
|
}
|
|
22095
|
-
return typeUrlPrefix + "/sesame.v1.
|
|
24061
|
+
return typeUrlPrefix + "/sesame.v1.sidedata.SideDataSet";
|
|
22096
24062
|
};
|
|
22097
|
-
return
|
|
24063
|
+
return SideDataSet;
|
|
22098
24064
|
}();
|
|
22099
|
-
return
|
|
24065
|
+
return sidedata;
|
|
22100
24066
|
}();
|
|
22101
24067
|
v1.jobs = function() {
|
|
22102
24068
|
const jobs = {};
|
|
@@ -25026,6 +26992,9 @@ var sesame = $root.sesame = (() => {
|
|
|
25026
26992
|
case 4:
|
|
25027
26993
|
case 5:
|
|
25028
26994
|
case 6:
|
|
26995
|
+
case 7:
|
|
26996
|
+
case 8:
|
|
26997
|
+
case 9:
|
|
25029
26998
|
break;
|
|
25030
26999
|
}
|
|
25031
27000
|
return null;
|
|
@@ -25079,6 +27048,18 @@ var sesame = $root.sesame = (() => {
|
|
|
25079
27048
|
case 6:
|
|
25080
27049
|
message.dataType = 6;
|
|
25081
27050
|
break;
|
|
27051
|
+
case "DATA_TYPE_OUTPUT_STATUS":
|
|
27052
|
+
case 7:
|
|
27053
|
+
message.dataType = 7;
|
|
27054
|
+
break;
|
|
27055
|
+
case "DATA_TYPE_OUTPUT_CONTROL":
|
|
27056
|
+
case 8:
|
|
27057
|
+
message.dataType = 8;
|
|
27058
|
+
break;
|
|
27059
|
+
case "DATA_TYPE_ENGINE_STATUS":
|
|
27060
|
+
case 9:
|
|
27061
|
+
message.dataType = 9;
|
|
27062
|
+
break;
|
|
25082
27063
|
}
|
|
25083
27064
|
return message;
|
|
25084
27065
|
};
|
|
@@ -25627,6 +27608,7 @@ var sesame = $root.sesame = (() => {
|
|
|
25627
27608
|
MediaFrameData.prototype.pts = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
25628
27609
|
MediaFrameData.prototype.keyframe = false;
|
|
25629
27610
|
MediaFrameData.prototype.codecData = null;
|
|
27611
|
+
MediaFrameData.prototype.sideData = null;
|
|
25630
27612
|
MediaFrameData.create = function create(properties) {
|
|
25631
27613
|
return new MediaFrameData(properties);
|
|
25632
27614
|
};
|
|
@@ -25648,6 +27630,11 @@ var sesame = $root.sesame = (() => {
|
|
|
25648
27630
|
/* id 3, wireType 2 =*/
|
|
25649
27631
|
26
|
|
25650
27632
|
).fork()).ldelim();
|
|
27633
|
+
if (message.sideData != null && Object.hasOwnProperty.call(message, "sideData"))
|
|
27634
|
+
$root.sesame.v1.sidedata.SideDataSet.encode(message.sideData, writer.uint32(
|
|
27635
|
+
/* id 4, wireType 2 =*/
|
|
27636
|
+
34
|
|
27637
|
+
).fork()).ldelim();
|
|
25651
27638
|
return writer;
|
|
25652
27639
|
};
|
|
25653
27640
|
MediaFrameData.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -25674,6 +27661,10 @@ var sesame = $root.sesame = (() => {
|
|
|
25674
27661
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.decode(reader, reader.uint32());
|
|
25675
27662
|
break;
|
|
25676
27663
|
}
|
|
27664
|
+
case 4: {
|
|
27665
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.decode(reader, reader.uint32());
|
|
27666
|
+
break;
|
|
27667
|
+
}
|
|
25677
27668
|
default:
|
|
25678
27669
|
reader.skipType(tag & 7);
|
|
25679
27670
|
break;
|
|
@@ -25702,6 +27693,11 @@ var sesame = $root.sesame = (() => {
|
|
|
25702
27693
|
if (error)
|
|
25703
27694
|
return "codecData." + error;
|
|
25704
27695
|
}
|
|
27696
|
+
if (message.sideData != null && message.hasOwnProperty("sideData")) {
|
|
27697
|
+
let error = $root.sesame.v1.sidedata.SideDataSet.verify(message.sideData);
|
|
27698
|
+
if (error)
|
|
27699
|
+
return "sideData." + error;
|
|
27700
|
+
}
|
|
25705
27701
|
return null;
|
|
25706
27702
|
};
|
|
25707
27703
|
MediaFrameData.fromObject = function fromObject(object) {
|
|
@@ -25725,6 +27721,11 @@ var sesame = $root.sesame = (() => {
|
|
|
25725
27721
|
throw TypeError(".sesame.v1.wire.MediaFrameData.codecData: object expected");
|
|
25726
27722
|
message.codecData = $root.sesame.v1.wire.MediaCodecData.fromObject(object.codecData);
|
|
25727
27723
|
}
|
|
27724
|
+
if (object.sideData != null) {
|
|
27725
|
+
if (typeof object.sideData !== "object")
|
|
27726
|
+
throw TypeError(".sesame.v1.wire.MediaFrameData.sideData: object expected");
|
|
27727
|
+
message.sideData = $root.sesame.v1.sidedata.SideDataSet.fromObject(object.sideData);
|
|
27728
|
+
}
|
|
25728
27729
|
return message;
|
|
25729
27730
|
};
|
|
25730
27731
|
MediaFrameData.toObject = function toObject(message, options) {
|
|
@@ -25739,6 +27740,7 @@ var sesame = $root.sesame = (() => {
|
|
|
25739
27740
|
object.pts = options.longs === String ? "0" : 0;
|
|
25740
27741
|
object.keyframe = false;
|
|
25741
27742
|
object.codecData = null;
|
|
27743
|
+
object.sideData = null;
|
|
25742
27744
|
}
|
|
25743
27745
|
if (message.pts != null && message.hasOwnProperty("pts"))
|
|
25744
27746
|
if (typeof message.pts === "number")
|
|
@@ -25749,6 +27751,8 @@ var sesame = $root.sesame = (() => {
|
|
|
25749
27751
|
object.keyframe = message.keyframe;
|
|
25750
27752
|
if (message.codecData != null && message.hasOwnProperty("codecData"))
|
|
25751
27753
|
object.codecData = $root.sesame.v1.wire.MediaCodecData.toObject(message.codecData, options);
|
|
27754
|
+
if (message.sideData != null && message.hasOwnProperty("sideData"))
|
|
27755
|
+
object.sideData = $root.sesame.v1.sidedata.SideDataSet.toObject(message.sideData, options);
|
|
25752
27756
|
return object;
|
|
25753
27757
|
};
|
|
25754
27758
|
MediaFrameData.prototype.toJSON = function toJSON() {
|
|
@@ -25771,6 +27775,9 @@ var sesame = $root.sesame = (() => {
|
|
|
25771
27775
|
values[valuesById[4] = "DATA_TYPE_TRANSPORT_CONTROL"] = 4;
|
|
25772
27776
|
values[valuesById[5] = "DATA_TYPE_AUDIO_CONTROL"] = 5;
|
|
25773
27777
|
values[valuesById[6] = "DATA_TYPE_BINARY"] = 6;
|
|
27778
|
+
values[valuesById[7] = "DATA_TYPE_OUTPUT_STATUS"] = 7;
|
|
27779
|
+
values[valuesById[8] = "DATA_TYPE_OUTPUT_CONTROL"] = 8;
|
|
27780
|
+
values[valuesById[9] = "DATA_TYPE_ENGINE_STATUS"] = 9;
|
|
25774
27781
|
return values;
|
|
25775
27782
|
}();
|
|
25776
27783
|
wire.DataFrameData = function() {
|
|
@@ -25847,6 +27854,9 @@ var sesame = $root.sesame = (() => {
|
|
|
25847
27854
|
case 4:
|
|
25848
27855
|
case 5:
|
|
25849
27856
|
case 6:
|
|
27857
|
+
case 7:
|
|
27858
|
+
case 8:
|
|
27859
|
+
case 9:
|
|
25850
27860
|
break;
|
|
25851
27861
|
}
|
|
25852
27862
|
if (message.trackName != null && message.hasOwnProperty("trackName")) {
|
|
@@ -25894,6 +27904,18 @@ var sesame = $root.sesame = (() => {
|
|
|
25894
27904
|
case 6:
|
|
25895
27905
|
message.dataType = 6;
|
|
25896
27906
|
break;
|
|
27907
|
+
case "DATA_TYPE_OUTPUT_STATUS":
|
|
27908
|
+
case 7:
|
|
27909
|
+
message.dataType = 7;
|
|
27910
|
+
break;
|
|
27911
|
+
case "DATA_TYPE_OUTPUT_CONTROL":
|
|
27912
|
+
case 8:
|
|
27913
|
+
message.dataType = 8;
|
|
27914
|
+
break;
|
|
27915
|
+
case "DATA_TYPE_ENGINE_STATUS":
|
|
27916
|
+
case 9:
|
|
27917
|
+
message.dataType = 9;
|
|
27918
|
+
break;
|
|
25897
27919
|
}
|
|
25898
27920
|
if (object.trackName != null)
|
|
25899
27921
|
message.trackName = String(object.trackName);
|
|
@@ -26230,6 +28252,32 @@ var CommandList = class {
|
|
|
26230
28252
|
item.clearCompositor = { id };
|
|
26231
28253
|
return this.add(item, timeOffsetMs);
|
|
26232
28254
|
}
|
|
28255
|
+
/**
|
|
28256
|
+
* Attach side data to every frame the compositor renders from now on.
|
|
28257
|
+
* Replaces the entry with the same `id`. Encoded WebSocket/MoQ outputs carry
|
|
28258
|
+
* the full set in the wire header on key frames and whenever it changes.
|
|
28259
|
+
* Batch it with the node changes it describes so both land on the same frame.
|
|
28260
|
+
*
|
|
28261
|
+
* @example
|
|
28262
|
+
* ```ts
|
|
28263
|
+
* cl.sideDataSet('atlas', {
|
|
28264
|
+
* id: 'sesame.atlas.v1',
|
|
28265
|
+
* version: 3,
|
|
28266
|
+
* atlas: { width: 1920, height: 1080, entries: [{ sourceId: 'cam-1', x: 0, y: 0, width: 960, height: 540 }] },
|
|
28267
|
+
* });
|
|
28268
|
+
* ```
|
|
28269
|
+
*/
|
|
28270
|
+
sideDataSet(compositorId, sideData, timeOffsetMs) {
|
|
28271
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
28272
|
+
item.setSideData = { compositorId, sideData };
|
|
28273
|
+
return this.add(item, timeOffsetMs);
|
|
28274
|
+
}
|
|
28275
|
+
/** Remove one side data entry from a compositor. */
|
|
28276
|
+
sideDataRemove(compositorId, id, timeOffsetMs) {
|
|
28277
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
28278
|
+
item.removeSideData = { compositorId, id };
|
|
28279
|
+
return this.add(item, timeOffsetMs);
|
|
28280
|
+
}
|
|
26233
28281
|
sourceAdd(id, cfg, timeOffsetMs) {
|
|
26234
28282
|
let item = new sesame.v1.commands.CommandListItem();
|
|
26235
28283
|
item.addSource = { id, config: cfg };
|
|
@@ -26406,6 +28454,15 @@ var CommandList = class {
|
|
|
26406
28454
|
item.removeOutput = { id };
|
|
26407
28455
|
return this.add(item, timeOffsetMs);
|
|
26408
28456
|
}
|
|
28457
|
+
/** Start or stop a manually controlled output stream (SRT outputs with streamControl 'manual'). */
|
|
28458
|
+
outputControl(id, action, timeOffsetMs) {
|
|
28459
|
+
let item = new sesame.v1.commands.CommandListItem();
|
|
28460
|
+
item.outputControl = {
|
|
28461
|
+
id,
|
|
28462
|
+
action: action === "start" ? sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_START : sesame.v1.outputs.OutputControlAction.OUTPUT_CONTROL_ACTION_STOP
|
|
28463
|
+
};
|
|
28464
|
+
return this.add(item, timeOffsetMs);
|
|
28465
|
+
}
|
|
26409
28466
|
encoderAdd(id, cfg, timeOffsetMs) {
|
|
26410
28467
|
let item = new sesame.v1.commands.CommandListItem();
|
|
26411
28468
|
item.addEncoder = { id, ...cfg };
|
|
@@ -26519,6 +28576,7 @@ var DataType = sesame.v1.wire.DataType;
|
|
|
26519
28576
|
var FrameHeader = sesame.v1.wire.FrameHeader;
|
|
26520
28577
|
var MediaCodecData = sesame.v1.wire.MediaCodecData;
|
|
26521
28578
|
var CodecType = sesame.v1.common.CodecType;
|
|
28579
|
+
var SideData = sesame.v1.sidedata.SideData;
|
|
26522
28580
|
function parseDataFrame(frame) {
|
|
26523
28581
|
if (!frame.valid || !frame.header || !frame.payload) return null;
|
|
26524
28582
|
if (frame.header.type !== sesame.v1.wire.FrameType.FRAME_TYPE_DATA) return null;
|
|
@@ -26565,6 +28623,29 @@ function parseDataFrame(frame) {
|
|
|
26565
28623
|
return null;
|
|
26566
28624
|
}
|
|
26567
28625
|
}
|
|
28626
|
+
function getSideData(frame) {
|
|
28627
|
+
const media = frame.header?.media;
|
|
28628
|
+
if (!media || !media.sideData) return null;
|
|
28629
|
+
return media.sideData.entries ?? [];
|
|
28630
|
+
}
|
|
28631
|
+
var SideDataTracker = class {
|
|
28632
|
+
constructor() {
|
|
28633
|
+
this.entries = /* @__PURE__ */ new Map();
|
|
28634
|
+
}
|
|
28635
|
+
/** Feed every media frame in order; returns true when the set changed. */
|
|
28636
|
+
update(frame) {
|
|
28637
|
+
const entries = getSideData(frame);
|
|
28638
|
+
if (entries === null) return false;
|
|
28639
|
+
this.entries = new Map(entries.map((e) => [e.id ?? "", e]));
|
|
28640
|
+
return true;
|
|
28641
|
+
}
|
|
28642
|
+
get(id) {
|
|
28643
|
+
return this.entries.get(id);
|
|
28644
|
+
}
|
|
28645
|
+
all() {
|
|
28646
|
+
return [...this.entries.values()];
|
|
28647
|
+
}
|
|
28648
|
+
};
|
|
26568
28649
|
function buildAudioControlFrame(trackName, request) {
|
|
26569
28650
|
const payload = sesame.v1.audio.AudioControlRequest.encode(request).finish();
|
|
26570
28651
|
return WireProtocol.serialize(
|
|
@@ -27287,12 +29368,15 @@ export {
|
|
|
27287
29368
|
Response,
|
|
27288
29369
|
SesameClient,
|
|
27289
29370
|
SesameConnection,
|
|
29371
|
+
SideData,
|
|
29372
|
+
SideDataTracker,
|
|
27290
29373
|
StatusApi,
|
|
27291
29374
|
WireProtocol,
|
|
27292
29375
|
buildAudioControlFrame,
|
|
27293
29376
|
buildBinaryDataFrame,
|
|
27294
29377
|
buildTransportControlFrame,
|
|
27295
29378
|
getLogger,
|
|
29379
|
+
getSideData,
|
|
27296
29380
|
log,
|
|
27297
29381
|
parseDataFrame,
|
|
27298
29382
|
sesame,
|