@stinkycomputing/sesame-api-client 1.5.12 → 1.8.0
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 +1 -1
- package/dist/command-list.d.ts.map +1 -1
- package/dist/index.browser.mjs +996 -129
- package/dist/index.browser.mjs.map +2 -2
- package/dist/index.cjs +996 -129
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +996 -129
- package/dist/index.mjs.map +2 -2
- package/dist/proto/api.d.ts +417 -12
- package/dist/proto/api.js +1449 -153
- package/dist/sesame-api-client.d.ts +2 -0
- package/dist/sesame-api-client.d.ts.map +1 -1
- package/docs/protocol-reference.md +122 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -7349,6 +7349,13 @@ var sesame = $root.sesame = (() => {
|
|
|
7349
7349
|
values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
|
|
7350
7350
|
return values;
|
|
7351
7351
|
}();
|
|
7352
|
+
sources.SignalGeneratorTimecodeMode = function() {
|
|
7353
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
7354
|
+
values[valuesById[0] = "SIGNAL_GENERATOR_TIMECODE_MODE_NONE"] = 0;
|
|
7355
|
+
values[valuesById[1] = "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN"] = 1;
|
|
7356
|
+
values[valuesById[2] = "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY"] = 2;
|
|
7357
|
+
return values;
|
|
7358
|
+
}();
|
|
7352
7359
|
sources.SignalGeneratorSourceConfig = function() {
|
|
7353
7360
|
function SignalGeneratorSourceConfig(properties) {
|
|
7354
7361
|
if (properties) {
|
|
@@ -7360,6 +7367,8 @@ var sesame = $root.sesame = (() => {
|
|
|
7360
7367
|
SignalGeneratorSourceConfig.prototype.freeze = false;
|
|
7361
7368
|
SignalGeneratorSourceConfig.prototype.videoPattern = 0;
|
|
7362
7369
|
SignalGeneratorSourceConfig.prototype.audioMode = 0;
|
|
7370
|
+
SignalGeneratorSourceConfig.prototype.timecodeMode = 0;
|
|
7371
|
+
SignalGeneratorSourceConfig.prototype.timecodeStartFrame = 0;
|
|
7363
7372
|
SignalGeneratorSourceConfig.create = function create(properties) {
|
|
7364
7373
|
return new SignalGeneratorSourceConfig(properties);
|
|
7365
7374
|
};
|
|
@@ -7381,6 +7390,16 @@ var sesame = $root.sesame = (() => {
|
|
|
7381
7390
|
/* id 3, wireType 0 =*/
|
|
7382
7391
|
24
|
|
7383
7392
|
).int32(message.audioMode);
|
|
7393
|
+
if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
|
|
7394
|
+
writer.uint32(
|
|
7395
|
+
/* id 4, wireType 0 =*/
|
|
7396
|
+
32
|
|
7397
|
+
).int32(message.timecodeMode);
|
|
7398
|
+
if (message.timecodeStartFrame != null && Object.hasOwnProperty.call(message, "timecodeStartFrame"))
|
|
7399
|
+
writer.uint32(
|
|
7400
|
+
/* id 5, wireType 0 =*/
|
|
7401
|
+
40
|
|
7402
|
+
).uint32(message.timecodeStartFrame);
|
|
7384
7403
|
return writer;
|
|
7385
7404
|
};
|
|
7386
7405
|
SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -7407,6 +7426,14 @@ var sesame = $root.sesame = (() => {
|
|
|
7407
7426
|
message.audioMode = reader.int32();
|
|
7408
7427
|
break;
|
|
7409
7428
|
}
|
|
7429
|
+
case 4: {
|
|
7430
|
+
message.timecodeMode = reader.int32();
|
|
7431
|
+
break;
|
|
7432
|
+
}
|
|
7433
|
+
case 5: {
|
|
7434
|
+
message.timecodeStartFrame = reader.uint32();
|
|
7435
|
+
break;
|
|
7436
|
+
}
|
|
7410
7437
|
default:
|
|
7411
7438
|
reader.skipType(tag & 7);
|
|
7412
7439
|
break;
|
|
@@ -7446,6 +7473,19 @@ var sesame = $root.sesame = (() => {
|
|
|
7446
7473
|
case 3:
|
|
7447
7474
|
break;
|
|
7448
7475
|
}
|
|
7476
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
7477
|
+
switch (message.timecodeMode) {
|
|
7478
|
+
default:
|
|
7479
|
+
return "timecodeMode: enum value expected";
|
|
7480
|
+
case 0:
|
|
7481
|
+
case 1:
|
|
7482
|
+
case 2:
|
|
7483
|
+
break;
|
|
7484
|
+
}
|
|
7485
|
+
if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame")) {
|
|
7486
|
+
if (!$util.isInteger(message.timecodeStartFrame))
|
|
7487
|
+
return "timecodeStartFrame: integer expected";
|
|
7488
|
+
}
|
|
7449
7489
|
return null;
|
|
7450
7490
|
};
|
|
7451
7491
|
SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
|
|
@@ -7502,6 +7542,28 @@ var sesame = $root.sesame = (() => {
|
|
|
7502
7542
|
message.audioMode = 3;
|
|
7503
7543
|
break;
|
|
7504
7544
|
}
|
|
7545
|
+
switch (object.timecodeMode) {
|
|
7546
|
+
default:
|
|
7547
|
+
if (typeof object.timecodeMode === "number") {
|
|
7548
|
+
message.timecodeMode = object.timecodeMode;
|
|
7549
|
+
break;
|
|
7550
|
+
}
|
|
7551
|
+
break;
|
|
7552
|
+
case "SIGNAL_GENERATOR_TIMECODE_MODE_NONE":
|
|
7553
|
+
case 0:
|
|
7554
|
+
message.timecodeMode = 0;
|
|
7555
|
+
break;
|
|
7556
|
+
case "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN":
|
|
7557
|
+
case 1:
|
|
7558
|
+
message.timecodeMode = 1;
|
|
7559
|
+
break;
|
|
7560
|
+
case "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY":
|
|
7561
|
+
case 2:
|
|
7562
|
+
message.timecodeMode = 2;
|
|
7563
|
+
break;
|
|
7564
|
+
}
|
|
7565
|
+
if (object.timecodeStartFrame != null)
|
|
7566
|
+
message.timecodeStartFrame = object.timecodeStartFrame >>> 0;
|
|
7505
7567
|
return message;
|
|
7506
7568
|
};
|
|
7507
7569
|
SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
|
|
@@ -7512,6 +7574,8 @@ var sesame = $root.sesame = (() => {
|
|
|
7512
7574
|
object.freeze = false;
|
|
7513
7575
|
object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
|
|
7514
7576
|
object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
|
|
7577
|
+
object.timecodeMode = options.enums === String ? "SIGNAL_GENERATOR_TIMECODE_MODE_NONE" : 0;
|
|
7578
|
+
object.timecodeStartFrame = 0;
|
|
7515
7579
|
}
|
|
7516
7580
|
if (message.freeze != null && message.hasOwnProperty("freeze"))
|
|
7517
7581
|
object.freeze = message.freeze;
|
|
@@ -7519,6 +7583,10 @@ var sesame = $root.sesame = (() => {
|
|
|
7519
7583
|
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;
|
|
7520
7584
|
if (message.audioMode != null && message.hasOwnProperty("audioMode"))
|
|
7521
7585
|
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;
|
|
7586
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
7587
|
+
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;
|
|
7588
|
+
if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame"))
|
|
7589
|
+
object.timecodeStartFrame = message.timecodeStartFrame;
|
|
7522
7590
|
return object;
|
|
7523
7591
|
};
|
|
7524
7592
|
SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
|
|
@@ -14644,6 +14712,9 @@ var sesame = $root.sesame = (() => {
|
|
|
14644
14712
|
SystemStatus.prototype.gpuDecoderUtilization = 0;
|
|
14645
14713
|
SystemStatus.prototype.gpuName = "";
|
|
14646
14714
|
SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
|
|
14715
|
+
SystemStatus.prototype.version = "";
|
|
14716
|
+
SystemStatus.prototype.nvencSessions = 0;
|
|
14717
|
+
SystemStatus.prototype.nvdecSessions = 0;
|
|
14647
14718
|
SystemStatus.create = function create(properties) {
|
|
14648
14719
|
return new SystemStatus(properties);
|
|
14649
14720
|
};
|
|
@@ -14735,6 +14806,21 @@ var sesame = $root.sesame = (() => {
|
|
|
14735
14806
|
/* id 17, wireType 0 =*/
|
|
14736
14807
|
136
|
|
14737
14808
|
).uint64(message.vmaBytes);
|
|
14809
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
14810
|
+
writer.uint32(
|
|
14811
|
+
/* id 18, wireType 2 =*/
|
|
14812
|
+
146
|
|
14813
|
+
).string(message.version);
|
|
14814
|
+
if (message.nvencSessions != null && Object.hasOwnProperty.call(message, "nvencSessions"))
|
|
14815
|
+
writer.uint32(
|
|
14816
|
+
/* id 19, wireType 0 =*/
|
|
14817
|
+
152
|
|
14818
|
+
).uint32(message.nvencSessions);
|
|
14819
|
+
if (message.nvdecSessions != null && Object.hasOwnProperty.call(message, "nvdecSessions"))
|
|
14820
|
+
writer.uint32(
|
|
14821
|
+
/* id 20, wireType 0 =*/
|
|
14822
|
+
160
|
|
14823
|
+
).uint32(message.nvdecSessions);
|
|
14738
14824
|
return writer;
|
|
14739
14825
|
};
|
|
14740
14826
|
SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -14817,6 +14903,18 @@ var sesame = $root.sesame = (() => {
|
|
|
14817
14903
|
message.vmaBytes = reader.uint64();
|
|
14818
14904
|
break;
|
|
14819
14905
|
}
|
|
14906
|
+
case 18: {
|
|
14907
|
+
message.version = reader.string();
|
|
14908
|
+
break;
|
|
14909
|
+
}
|
|
14910
|
+
case 19: {
|
|
14911
|
+
message.nvencSessions = reader.uint32();
|
|
14912
|
+
break;
|
|
14913
|
+
}
|
|
14914
|
+
case 20: {
|
|
14915
|
+
message.nvdecSessions = reader.uint32();
|
|
14916
|
+
break;
|
|
14917
|
+
}
|
|
14820
14918
|
default:
|
|
14821
14919
|
reader.skipType(tag & 7);
|
|
14822
14920
|
break;
|
|
@@ -14904,6 +15002,18 @@ var sesame = $root.sesame = (() => {
|
|
|
14904
15002
|
if (!$util.isInteger(message.vmaBytes) && !(message.vmaBytes && $util.isInteger(message.vmaBytes.low) && $util.isInteger(message.vmaBytes.high)))
|
|
14905
15003
|
return "vmaBytes: integer|Long expected";
|
|
14906
15004
|
}
|
|
15005
|
+
if (message.version != null && message.hasOwnProperty("version")) {
|
|
15006
|
+
if (!$util.isString(message.version))
|
|
15007
|
+
return "version: string expected";
|
|
15008
|
+
}
|
|
15009
|
+
if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions")) {
|
|
15010
|
+
if (!$util.isInteger(message.nvencSessions))
|
|
15011
|
+
return "nvencSessions: integer expected";
|
|
15012
|
+
}
|
|
15013
|
+
if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions")) {
|
|
15014
|
+
if (!$util.isInteger(message.nvdecSessions))
|
|
15015
|
+
return "nvdecSessions: integer expected";
|
|
15016
|
+
}
|
|
14907
15017
|
return null;
|
|
14908
15018
|
};
|
|
14909
15019
|
SystemStatus.fromObject = function fromObject(object) {
|
|
@@ -15004,6 +15114,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15004
15114
|
else if (typeof object.vmaBytes === "object")
|
|
15005
15115
|
message.vmaBytes = new $util.LongBits(object.vmaBytes.low >>> 0, object.vmaBytes.high >>> 0).toNumber(true);
|
|
15006
15116
|
}
|
|
15117
|
+
if (object.version != null)
|
|
15118
|
+
message.version = String(object.version);
|
|
15119
|
+
if (object.nvencSessions != null)
|
|
15120
|
+
message.nvencSessions = object.nvencSessions >>> 0;
|
|
15121
|
+
if (object.nvdecSessions != null)
|
|
15122
|
+
message.nvdecSessions = object.nvdecSessions >>> 0;
|
|
15007
15123
|
return message;
|
|
15008
15124
|
};
|
|
15009
15125
|
SystemStatus.toObject = function toObject(message, options) {
|
|
@@ -15052,6 +15168,9 @@ var sesame = $root.sesame = (() => {
|
|
|
15052
15168
|
object.vmaBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
15053
15169
|
} else
|
|
15054
15170
|
object.vmaBytes = options.longs === String ? "0" : 0;
|
|
15171
|
+
object.version = "";
|
|
15172
|
+
object.nvencSessions = 0;
|
|
15173
|
+
object.nvdecSessions = 0;
|
|
15055
15174
|
}
|
|
15056
15175
|
if (message.uptime != null && message.hasOwnProperty("uptime"))
|
|
15057
15176
|
if (typeof message.uptime === "number")
|
|
@@ -15105,6 +15224,12 @@ var sesame = $root.sesame = (() => {
|
|
|
15105
15224
|
object.vmaBytes = options.longs === String ? String(message.vmaBytes) : message.vmaBytes;
|
|
15106
15225
|
else
|
|
15107
15226
|
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;
|
|
15227
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
15228
|
+
object.version = message.version;
|
|
15229
|
+
if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions"))
|
|
15230
|
+
object.nvencSessions = message.nvencSessions;
|
|
15231
|
+
if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions"))
|
|
15232
|
+
object.nvdecSessions = message.nvdecSessions;
|
|
15108
15233
|
return object;
|
|
15109
15234
|
};
|
|
15110
15235
|
SystemStatus.prototype.toJSON = function toJSON() {
|
|
@@ -17158,117 +17283,219 @@ var sesame = $root.sesame = (() => {
|
|
|
17158
17283
|
values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
|
|
17159
17284
|
return values;
|
|
17160
17285
|
}();
|
|
17161
|
-
outputs.
|
|
17286
|
+
outputs.EncoderTuning = function() {
|
|
17162
17287
|
const valuesById = {}, values = Object.create(valuesById);
|
|
17163
|
-
values[valuesById[0] = "
|
|
17164
|
-
values[valuesById[1] = "
|
|
17165
|
-
values[valuesById[2] = "
|
|
17166
|
-
values[valuesById[3] = "
|
|
17288
|
+
values[valuesById[0] = "ENCODER_TUNING_UNSPECIFIED"] = 0;
|
|
17289
|
+
values[valuesById[1] = "ENCODER_TUNING_ULTRA_LOW_LATENCY"] = 1;
|
|
17290
|
+
values[valuesById[2] = "ENCODER_TUNING_LOW_LATENCY"] = 2;
|
|
17291
|
+
values[valuesById[3] = "ENCODER_TUNING_HIGH_QUALITY"] = 3;
|
|
17167
17292
|
return values;
|
|
17168
17293
|
}();
|
|
17169
|
-
outputs.
|
|
17294
|
+
outputs.EncoderRateControl = function() {
|
|
17170
17295
|
const valuesById = {}, values = Object.create(valuesById);
|
|
17171
|
-
values[valuesById[0] = "
|
|
17172
|
-
values[valuesById[1] = "
|
|
17173
|
-
values[valuesById[2] = "
|
|
17296
|
+
values[valuesById[0] = "ENCODER_RATE_CONTROL_UNSPECIFIED"] = 0;
|
|
17297
|
+
values[valuesById[1] = "ENCODER_RATE_CONTROL_CBR"] = 1;
|
|
17298
|
+
values[valuesById[2] = "ENCODER_RATE_CONTROL_VBR"] = 2;
|
|
17174
17299
|
return values;
|
|
17175
17300
|
}();
|
|
17176
|
-
outputs.
|
|
17177
|
-
|
|
17301
|
+
outputs.EncoderProfile = function() {
|
|
17302
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17303
|
+
values[valuesById[0] = "ENCODER_PROFILE_AUTO"] = 0;
|
|
17304
|
+
values[valuesById[1] = "ENCODER_PROFILE_BASELINE"] = 1;
|
|
17305
|
+
values[valuesById[2] = "ENCODER_PROFILE_MAIN"] = 2;
|
|
17306
|
+
values[valuesById[3] = "ENCODER_PROFILE_MAIN10"] = 3;
|
|
17307
|
+
values[valuesById[4] = "ENCODER_PROFILE_HIGH"] = 4;
|
|
17308
|
+
return values;
|
|
17309
|
+
}();
|
|
17310
|
+
outputs.EncoderMultipass = function() {
|
|
17311
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17312
|
+
values[valuesById[0] = "ENCODER_MULTIPASS_DISABLED"] = 0;
|
|
17313
|
+
values[valuesById[1] = "ENCODER_MULTIPASS_QUARTER_RESOLUTION"] = 1;
|
|
17314
|
+
values[valuesById[2] = "ENCODER_MULTIPASS_FULL_RESOLUTION"] = 2;
|
|
17315
|
+
return values;
|
|
17316
|
+
}();
|
|
17317
|
+
outputs.EncoderChromaFormat = function() {
|
|
17318
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17319
|
+
values[valuesById[0] = "ENCODER_CHROMA_FORMAT_420"] = 0;
|
|
17320
|
+
values[valuesById[1] = "ENCODER_CHROMA_FORMAT_444"] = 1;
|
|
17321
|
+
return values;
|
|
17322
|
+
}();
|
|
17323
|
+
outputs.EncoderSettings = function() {
|
|
17324
|
+
function EncoderSettings(properties) {
|
|
17178
17325
|
if (properties) {
|
|
17179
17326
|
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17180
17327
|
if (properties[keys[i]] != null)
|
|
17181
17328
|
this[keys[i]] = properties[keys[i]];
|
|
17182
17329
|
}
|
|
17183
17330
|
}
|
|
17184
|
-
|
|
17185
|
-
|
|
17186
|
-
|
|
17187
|
-
|
|
17188
|
-
|
|
17189
|
-
|
|
17190
|
-
|
|
17191
|
-
|
|
17192
|
-
|
|
17193
|
-
|
|
17194
|
-
|
|
17331
|
+
EncoderSettings.prototype.tuning = 0;
|
|
17332
|
+
EncoderSettings.prototype.effort = 0;
|
|
17333
|
+
EncoderSettings.prototype.rateControl = 0;
|
|
17334
|
+
EncoderSettings.prototype.maxBitrateKbps = 0;
|
|
17335
|
+
EncoderSettings.prototype.profile = 0;
|
|
17336
|
+
EncoderSettings.prototype.bframes = 0;
|
|
17337
|
+
EncoderSettings.prototype.idrOnly = false;
|
|
17338
|
+
EncoderSettings.prototype.spatialAq = false;
|
|
17339
|
+
EncoderSettings.prototype.multipass = 0;
|
|
17340
|
+
EncoderSettings.prototype.lookaheadDepth = 0;
|
|
17341
|
+
EncoderSettings.prototype.zeroReorderDelay = false;
|
|
17342
|
+
EncoderSettings.prototype.bitDepth = 0;
|
|
17343
|
+
EncoderSettings.prototype.chromaFormat = 0;
|
|
17344
|
+
EncoderSettings.prototype.outputAud = false;
|
|
17345
|
+
EncoderSettings.prototype.level = "";
|
|
17346
|
+
EncoderSettings.create = function create(properties) {
|
|
17347
|
+
return new EncoderSettings(properties);
|
|
17348
|
+
};
|
|
17349
|
+
EncoderSettings.encode = function encode(message, writer) {
|
|
17195
17350
|
if (!writer)
|
|
17196
17351
|
writer = $Writer.create();
|
|
17197
|
-
if (message.
|
|
17352
|
+
if (message.tuning != null && Object.hasOwnProperty.call(message, "tuning"))
|
|
17198
17353
|
writer.uint32(
|
|
17199
17354
|
/* id 1, wireType 0 =*/
|
|
17200
17355
|
8
|
|
17201
|
-
).int32(message.
|
|
17202
|
-
if (message.
|
|
17356
|
+
).int32(message.tuning);
|
|
17357
|
+
if (message.effort != null && Object.hasOwnProperty.call(message, "effort"))
|
|
17203
17358
|
writer.uint32(
|
|
17204
17359
|
/* id 2, wireType 0 =*/
|
|
17205
17360
|
16
|
|
17206
|
-
).
|
|
17207
|
-
if (message.
|
|
17361
|
+
).uint32(message.effort);
|
|
17362
|
+
if (message.rateControl != null && Object.hasOwnProperty.call(message, "rateControl"))
|
|
17208
17363
|
writer.uint32(
|
|
17209
17364
|
/* id 3, wireType 0 =*/
|
|
17210
17365
|
24
|
|
17211
|
-
).
|
|
17212
|
-
if (message.
|
|
17366
|
+
).int32(message.rateControl);
|
|
17367
|
+
if (message.maxBitrateKbps != null && Object.hasOwnProperty.call(message, "maxBitrateKbps"))
|
|
17213
17368
|
writer.uint32(
|
|
17214
17369
|
/* id 4, wireType 0 =*/
|
|
17215
17370
|
32
|
|
17216
|
-
).uint32(message.
|
|
17217
|
-
if (message.
|
|
17371
|
+
).uint32(message.maxBitrateKbps);
|
|
17372
|
+
if (message.profile != null && Object.hasOwnProperty.call(message, "profile"))
|
|
17218
17373
|
writer.uint32(
|
|
17219
17374
|
/* id 5, wireType 0 =*/
|
|
17220
17375
|
40
|
|
17221
|
-
).
|
|
17222
|
-
if (message.
|
|
17376
|
+
).int32(message.profile);
|
|
17377
|
+
if (message.bframes != null && Object.hasOwnProperty.call(message, "bframes"))
|
|
17223
17378
|
writer.uint32(
|
|
17224
17379
|
/* id 6, wireType 0 =*/
|
|
17225
17380
|
48
|
|
17226
|
-
).uint32(message.
|
|
17227
|
-
if (message.
|
|
17381
|
+
).uint32(message.bframes);
|
|
17382
|
+
if (message.idrOnly != null && Object.hasOwnProperty.call(message, "idrOnly"))
|
|
17228
17383
|
writer.uint32(
|
|
17229
|
-
/* id 7, wireType
|
|
17230
|
-
|
|
17231
|
-
).
|
|
17384
|
+
/* id 7, wireType 0 =*/
|
|
17385
|
+
56
|
|
17386
|
+
).bool(message.idrOnly);
|
|
17387
|
+
if (message.spatialAq != null && Object.hasOwnProperty.call(message, "spatialAq"))
|
|
17388
|
+
writer.uint32(
|
|
17389
|
+
/* id 8, wireType 0 =*/
|
|
17390
|
+
64
|
|
17391
|
+
).bool(message.spatialAq);
|
|
17392
|
+
if (message.multipass != null && Object.hasOwnProperty.call(message, "multipass"))
|
|
17393
|
+
writer.uint32(
|
|
17394
|
+
/* id 9, wireType 0 =*/
|
|
17395
|
+
72
|
|
17396
|
+
).int32(message.multipass);
|
|
17397
|
+
if (message.lookaheadDepth != null && Object.hasOwnProperty.call(message, "lookaheadDepth"))
|
|
17398
|
+
writer.uint32(
|
|
17399
|
+
/* id 10, wireType 0 =*/
|
|
17400
|
+
80
|
|
17401
|
+
).uint32(message.lookaheadDepth);
|
|
17402
|
+
if (message.zeroReorderDelay != null && Object.hasOwnProperty.call(message, "zeroReorderDelay"))
|
|
17403
|
+
writer.uint32(
|
|
17404
|
+
/* id 11, wireType 0 =*/
|
|
17405
|
+
88
|
|
17406
|
+
).bool(message.zeroReorderDelay);
|
|
17407
|
+
if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
|
|
17408
|
+
writer.uint32(
|
|
17409
|
+
/* id 12, wireType 0 =*/
|
|
17410
|
+
96
|
|
17411
|
+
).uint32(message.bitDepth);
|
|
17412
|
+
if (message.chromaFormat != null && Object.hasOwnProperty.call(message, "chromaFormat"))
|
|
17413
|
+
writer.uint32(
|
|
17414
|
+
/* id 13, wireType 0 =*/
|
|
17415
|
+
104
|
|
17416
|
+
).int32(message.chromaFormat);
|
|
17417
|
+
if (message.outputAud != null && Object.hasOwnProperty.call(message, "outputAud"))
|
|
17418
|
+
writer.uint32(
|
|
17419
|
+
/* id 14, wireType 0 =*/
|
|
17420
|
+
112
|
|
17421
|
+
).bool(message.outputAud);
|
|
17422
|
+
if (message.level != null && Object.hasOwnProperty.call(message, "level"))
|
|
17423
|
+
writer.uint32(
|
|
17424
|
+
/* id 15, wireType 2 =*/
|
|
17425
|
+
122
|
|
17426
|
+
).string(message.level);
|
|
17232
17427
|
return writer;
|
|
17233
17428
|
};
|
|
17234
|
-
|
|
17429
|
+
EncoderSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17235
17430
|
return this.encode(message, writer).ldelim();
|
|
17236
17431
|
};
|
|
17237
|
-
|
|
17432
|
+
EncoderSettings.decode = function decode(reader, length, error) {
|
|
17238
17433
|
if (!(reader instanceof $Reader))
|
|
17239
17434
|
reader = $Reader.create(reader);
|
|
17240
|
-
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.
|
|
17435
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderSettings();
|
|
17241
17436
|
while (reader.pos < end) {
|
|
17242
17437
|
let tag = reader.uint32();
|
|
17243
17438
|
if (tag === error)
|
|
17244
17439
|
break;
|
|
17245
17440
|
switch (tag >>> 3) {
|
|
17246
17441
|
case 1: {
|
|
17247
|
-
message.
|
|
17442
|
+
message.tuning = reader.int32();
|
|
17248
17443
|
break;
|
|
17249
17444
|
}
|
|
17250
17445
|
case 2: {
|
|
17251
|
-
message.
|
|
17446
|
+
message.effort = reader.uint32();
|
|
17252
17447
|
break;
|
|
17253
17448
|
}
|
|
17254
17449
|
case 3: {
|
|
17255
|
-
message.
|
|
17450
|
+
message.rateControl = reader.int32();
|
|
17256
17451
|
break;
|
|
17257
17452
|
}
|
|
17258
17453
|
case 4: {
|
|
17259
|
-
message.
|
|
17454
|
+
message.maxBitrateKbps = reader.uint32();
|
|
17260
17455
|
break;
|
|
17261
17456
|
}
|
|
17262
17457
|
case 5: {
|
|
17263
|
-
message.
|
|
17458
|
+
message.profile = reader.int32();
|
|
17264
17459
|
break;
|
|
17265
17460
|
}
|
|
17266
17461
|
case 6: {
|
|
17267
|
-
message.
|
|
17462
|
+
message.bframes = reader.uint32();
|
|
17268
17463
|
break;
|
|
17269
17464
|
}
|
|
17270
17465
|
case 7: {
|
|
17271
|
-
message.
|
|
17466
|
+
message.idrOnly = reader.bool();
|
|
17467
|
+
break;
|
|
17468
|
+
}
|
|
17469
|
+
case 8: {
|
|
17470
|
+
message.spatialAq = reader.bool();
|
|
17471
|
+
break;
|
|
17472
|
+
}
|
|
17473
|
+
case 9: {
|
|
17474
|
+
message.multipass = reader.int32();
|
|
17475
|
+
break;
|
|
17476
|
+
}
|
|
17477
|
+
case 10: {
|
|
17478
|
+
message.lookaheadDepth = reader.uint32();
|
|
17479
|
+
break;
|
|
17480
|
+
}
|
|
17481
|
+
case 11: {
|
|
17482
|
+
message.zeroReorderDelay = reader.bool();
|
|
17483
|
+
break;
|
|
17484
|
+
}
|
|
17485
|
+
case 12: {
|
|
17486
|
+
message.bitDepth = reader.uint32();
|
|
17487
|
+
break;
|
|
17488
|
+
}
|
|
17489
|
+
case 13: {
|
|
17490
|
+
message.chromaFormat = reader.int32();
|
|
17491
|
+
break;
|
|
17492
|
+
}
|
|
17493
|
+
case 14: {
|
|
17494
|
+
message.outputAud = reader.bool();
|
|
17495
|
+
break;
|
|
17496
|
+
}
|
|
17497
|
+
case 15: {
|
|
17498
|
+
message.level = reader.string();
|
|
17272
17499
|
break;
|
|
17273
17500
|
}
|
|
17274
17501
|
default:
|
|
@@ -17278,102 +17505,544 @@ var sesame = $root.sesame = (() => {
|
|
|
17278
17505
|
}
|
|
17279
17506
|
return message;
|
|
17280
17507
|
};
|
|
17281
|
-
|
|
17508
|
+
EncoderSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
17282
17509
|
if (!(reader instanceof $Reader))
|
|
17283
17510
|
reader = new $Reader(reader);
|
|
17284
17511
|
return this.decode(reader, reader.uint32());
|
|
17285
17512
|
};
|
|
17286
|
-
|
|
17513
|
+
EncoderSettings.verify = function verify(message) {
|
|
17287
17514
|
if (typeof message !== "object" || message === null)
|
|
17288
17515
|
return "object expected";
|
|
17289
|
-
if (message.
|
|
17290
|
-
switch (message.
|
|
17516
|
+
if (message.tuning != null && message.hasOwnProperty("tuning"))
|
|
17517
|
+
switch (message.tuning) {
|
|
17291
17518
|
default:
|
|
17292
|
-
return "
|
|
17519
|
+
return "tuning: enum value expected";
|
|
17293
17520
|
case 0:
|
|
17294
17521
|
case 1:
|
|
17295
17522
|
case 2:
|
|
17296
17523
|
case 3:
|
|
17297
|
-
case 4:
|
|
17298
|
-
case 5:
|
|
17299
|
-
case 6:
|
|
17300
|
-
case 7:
|
|
17301
|
-
case 64:
|
|
17302
|
-
case 65:
|
|
17303
|
-
case 66:
|
|
17304
|
-
case 67:
|
|
17305
17524
|
break;
|
|
17306
17525
|
}
|
|
17307
|
-
if (message.
|
|
17308
|
-
|
|
17526
|
+
if (message.effort != null && message.hasOwnProperty("effort")) {
|
|
17527
|
+
if (!$util.isInteger(message.effort))
|
|
17528
|
+
return "effort: integer expected";
|
|
17529
|
+
}
|
|
17530
|
+
if (message.rateControl != null && message.hasOwnProperty("rateControl"))
|
|
17531
|
+
switch (message.rateControl) {
|
|
17532
|
+
default:
|
|
17533
|
+
return "rateControl: enum value expected";
|
|
17534
|
+
case 0:
|
|
17535
|
+
case 1:
|
|
17536
|
+
case 2:
|
|
17537
|
+
break;
|
|
17538
|
+
}
|
|
17539
|
+
if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps")) {
|
|
17540
|
+
if (!$util.isInteger(message.maxBitrateKbps))
|
|
17541
|
+
return "maxBitrateKbps: integer expected";
|
|
17542
|
+
}
|
|
17543
|
+
if (message.profile != null && message.hasOwnProperty("profile"))
|
|
17544
|
+
switch (message.profile) {
|
|
17309
17545
|
default:
|
|
17310
|
-
return "
|
|
17546
|
+
return "profile: enum value expected";
|
|
17311
17547
|
case 0:
|
|
17312
17548
|
case 1:
|
|
17313
17549
|
case 2:
|
|
17314
17550
|
case 3:
|
|
17551
|
+
case 4:
|
|
17315
17552
|
break;
|
|
17316
17553
|
}
|
|
17317
|
-
if (message.
|
|
17318
|
-
if (!$util.isInteger(message.
|
|
17319
|
-
return "
|
|
17554
|
+
if (message.bframes != null && message.hasOwnProperty("bframes")) {
|
|
17555
|
+
if (!$util.isInteger(message.bframes))
|
|
17556
|
+
return "bframes: integer expected";
|
|
17320
17557
|
}
|
|
17321
|
-
if (message.
|
|
17322
|
-
if (
|
|
17323
|
-
return "
|
|
17558
|
+
if (message.idrOnly != null && message.hasOwnProperty("idrOnly")) {
|
|
17559
|
+
if (typeof message.idrOnly !== "boolean")
|
|
17560
|
+
return "idrOnly: boolean expected";
|
|
17324
17561
|
}
|
|
17325
|
-
if (message.
|
|
17326
|
-
if (
|
|
17327
|
-
return "
|
|
17562
|
+
if (message.spatialAq != null && message.hasOwnProperty("spatialAq")) {
|
|
17563
|
+
if (typeof message.spatialAq !== "boolean")
|
|
17564
|
+
return "spatialAq: boolean expected";
|
|
17328
17565
|
}
|
|
17329
|
-
if (message.
|
|
17330
|
-
|
|
17331
|
-
|
|
17566
|
+
if (message.multipass != null && message.hasOwnProperty("multipass"))
|
|
17567
|
+
switch (message.multipass) {
|
|
17568
|
+
default:
|
|
17569
|
+
return "multipass: enum value expected";
|
|
17570
|
+
case 0:
|
|
17571
|
+
case 1:
|
|
17572
|
+
case 2:
|
|
17573
|
+
break;
|
|
17574
|
+
}
|
|
17575
|
+
if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth")) {
|
|
17576
|
+
if (!$util.isInteger(message.lookaheadDepth))
|
|
17577
|
+
return "lookaheadDepth: integer expected";
|
|
17332
17578
|
}
|
|
17333
|
-
if (message.
|
|
17334
|
-
if (typeof message.
|
|
17335
|
-
return "
|
|
17579
|
+
if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay")) {
|
|
17580
|
+
if (typeof message.zeroReorderDelay !== "boolean")
|
|
17581
|
+
return "zeroReorderDelay: boolean expected";
|
|
17582
|
+
}
|
|
17583
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth")) {
|
|
17584
|
+
if (!$util.isInteger(message.bitDepth))
|
|
17585
|
+
return "bitDepth: integer expected";
|
|
17586
|
+
}
|
|
17587
|
+
if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
|
|
17588
|
+
switch (message.chromaFormat) {
|
|
17589
|
+
default:
|
|
17590
|
+
return "chromaFormat: enum value expected";
|
|
17591
|
+
case 0:
|
|
17592
|
+
case 1:
|
|
17593
|
+
break;
|
|
17594
|
+
}
|
|
17595
|
+
if (message.outputAud != null && message.hasOwnProperty("outputAud")) {
|
|
17596
|
+
if (typeof message.outputAud !== "boolean")
|
|
17597
|
+
return "outputAud: boolean expected";
|
|
17598
|
+
}
|
|
17599
|
+
if (message.level != null && message.hasOwnProperty("level")) {
|
|
17600
|
+
if (!$util.isString(message.level))
|
|
17601
|
+
return "level: string expected";
|
|
17336
17602
|
}
|
|
17337
17603
|
return null;
|
|
17338
17604
|
};
|
|
17339
|
-
|
|
17340
|
-
if (object instanceof $root.sesame.v1.outputs.
|
|
17605
|
+
EncoderSettings.fromObject = function fromObject(object) {
|
|
17606
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderSettings)
|
|
17341
17607
|
return object;
|
|
17342
|
-
let message = new $root.sesame.v1.outputs.
|
|
17343
|
-
switch (object.
|
|
17608
|
+
let message = new $root.sesame.v1.outputs.EncoderSettings();
|
|
17609
|
+
switch (object.tuning) {
|
|
17344
17610
|
default:
|
|
17345
|
-
if (typeof object.
|
|
17346
|
-
message.
|
|
17611
|
+
if (typeof object.tuning === "number") {
|
|
17612
|
+
message.tuning = object.tuning;
|
|
17347
17613
|
break;
|
|
17348
17614
|
}
|
|
17349
17615
|
break;
|
|
17350
|
-
case "
|
|
17616
|
+
case "ENCODER_TUNING_UNSPECIFIED":
|
|
17351
17617
|
case 0:
|
|
17352
|
-
message.
|
|
17618
|
+
message.tuning = 0;
|
|
17353
17619
|
break;
|
|
17354
|
-
case "
|
|
17620
|
+
case "ENCODER_TUNING_ULTRA_LOW_LATENCY":
|
|
17355
17621
|
case 1:
|
|
17356
|
-
message.
|
|
17622
|
+
message.tuning = 1;
|
|
17357
17623
|
break;
|
|
17358
|
-
case "
|
|
17624
|
+
case "ENCODER_TUNING_LOW_LATENCY":
|
|
17359
17625
|
case 2:
|
|
17360
|
-
message.
|
|
17626
|
+
message.tuning = 2;
|
|
17361
17627
|
break;
|
|
17362
|
-
case "
|
|
17628
|
+
case "ENCODER_TUNING_HIGH_QUALITY":
|
|
17363
17629
|
case 3:
|
|
17364
|
-
message.
|
|
17365
|
-
break;
|
|
17366
|
-
case "CODEC_TYPE_VIDEO_HEVC":
|
|
17367
|
-
case 4:
|
|
17368
|
-
message.codec = 4;
|
|
17630
|
+
message.tuning = 3;
|
|
17369
17631
|
break;
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17632
|
+
}
|
|
17633
|
+
if (object.effort != null)
|
|
17634
|
+
message.effort = object.effort >>> 0;
|
|
17635
|
+
switch (object.rateControl) {
|
|
17636
|
+
default:
|
|
17637
|
+
if (typeof object.rateControl === "number") {
|
|
17638
|
+
message.rateControl = object.rateControl;
|
|
17639
|
+
break;
|
|
17640
|
+
}
|
|
17373
17641
|
break;
|
|
17374
|
-
case "
|
|
17375
|
-
case
|
|
17376
|
-
message.
|
|
17642
|
+
case "ENCODER_RATE_CONTROL_UNSPECIFIED":
|
|
17643
|
+
case 0:
|
|
17644
|
+
message.rateControl = 0;
|
|
17645
|
+
break;
|
|
17646
|
+
case "ENCODER_RATE_CONTROL_CBR":
|
|
17647
|
+
case 1:
|
|
17648
|
+
message.rateControl = 1;
|
|
17649
|
+
break;
|
|
17650
|
+
case "ENCODER_RATE_CONTROL_VBR":
|
|
17651
|
+
case 2:
|
|
17652
|
+
message.rateControl = 2;
|
|
17653
|
+
break;
|
|
17654
|
+
}
|
|
17655
|
+
if (object.maxBitrateKbps != null)
|
|
17656
|
+
message.maxBitrateKbps = object.maxBitrateKbps >>> 0;
|
|
17657
|
+
switch (object.profile) {
|
|
17658
|
+
default:
|
|
17659
|
+
if (typeof object.profile === "number") {
|
|
17660
|
+
message.profile = object.profile;
|
|
17661
|
+
break;
|
|
17662
|
+
}
|
|
17663
|
+
break;
|
|
17664
|
+
case "ENCODER_PROFILE_AUTO":
|
|
17665
|
+
case 0:
|
|
17666
|
+
message.profile = 0;
|
|
17667
|
+
break;
|
|
17668
|
+
case "ENCODER_PROFILE_BASELINE":
|
|
17669
|
+
case 1:
|
|
17670
|
+
message.profile = 1;
|
|
17671
|
+
break;
|
|
17672
|
+
case "ENCODER_PROFILE_MAIN":
|
|
17673
|
+
case 2:
|
|
17674
|
+
message.profile = 2;
|
|
17675
|
+
break;
|
|
17676
|
+
case "ENCODER_PROFILE_MAIN10":
|
|
17677
|
+
case 3:
|
|
17678
|
+
message.profile = 3;
|
|
17679
|
+
break;
|
|
17680
|
+
case "ENCODER_PROFILE_HIGH":
|
|
17681
|
+
case 4:
|
|
17682
|
+
message.profile = 4;
|
|
17683
|
+
break;
|
|
17684
|
+
}
|
|
17685
|
+
if (object.bframes != null)
|
|
17686
|
+
message.bframes = object.bframes >>> 0;
|
|
17687
|
+
if (object.idrOnly != null)
|
|
17688
|
+
message.idrOnly = Boolean(object.idrOnly);
|
|
17689
|
+
if (object.spatialAq != null)
|
|
17690
|
+
message.spatialAq = Boolean(object.spatialAq);
|
|
17691
|
+
switch (object.multipass) {
|
|
17692
|
+
default:
|
|
17693
|
+
if (typeof object.multipass === "number") {
|
|
17694
|
+
message.multipass = object.multipass;
|
|
17695
|
+
break;
|
|
17696
|
+
}
|
|
17697
|
+
break;
|
|
17698
|
+
case "ENCODER_MULTIPASS_DISABLED":
|
|
17699
|
+
case 0:
|
|
17700
|
+
message.multipass = 0;
|
|
17701
|
+
break;
|
|
17702
|
+
case "ENCODER_MULTIPASS_QUARTER_RESOLUTION":
|
|
17703
|
+
case 1:
|
|
17704
|
+
message.multipass = 1;
|
|
17705
|
+
break;
|
|
17706
|
+
case "ENCODER_MULTIPASS_FULL_RESOLUTION":
|
|
17707
|
+
case 2:
|
|
17708
|
+
message.multipass = 2;
|
|
17709
|
+
break;
|
|
17710
|
+
}
|
|
17711
|
+
if (object.lookaheadDepth != null)
|
|
17712
|
+
message.lookaheadDepth = object.lookaheadDepth >>> 0;
|
|
17713
|
+
if (object.zeroReorderDelay != null)
|
|
17714
|
+
message.zeroReorderDelay = Boolean(object.zeroReorderDelay);
|
|
17715
|
+
if (object.bitDepth != null)
|
|
17716
|
+
message.bitDepth = object.bitDepth >>> 0;
|
|
17717
|
+
switch (object.chromaFormat) {
|
|
17718
|
+
default:
|
|
17719
|
+
if (typeof object.chromaFormat === "number") {
|
|
17720
|
+
message.chromaFormat = object.chromaFormat;
|
|
17721
|
+
break;
|
|
17722
|
+
}
|
|
17723
|
+
break;
|
|
17724
|
+
case "ENCODER_CHROMA_FORMAT_420":
|
|
17725
|
+
case 0:
|
|
17726
|
+
message.chromaFormat = 0;
|
|
17727
|
+
break;
|
|
17728
|
+
case "ENCODER_CHROMA_FORMAT_444":
|
|
17729
|
+
case 1:
|
|
17730
|
+
message.chromaFormat = 1;
|
|
17731
|
+
break;
|
|
17732
|
+
}
|
|
17733
|
+
if (object.outputAud != null)
|
|
17734
|
+
message.outputAud = Boolean(object.outputAud);
|
|
17735
|
+
if (object.level != null)
|
|
17736
|
+
message.level = String(object.level);
|
|
17737
|
+
return message;
|
|
17738
|
+
};
|
|
17739
|
+
EncoderSettings.toObject = function toObject(message, options) {
|
|
17740
|
+
if (!options)
|
|
17741
|
+
options = {};
|
|
17742
|
+
let object = {};
|
|
17743
|
+
if (options.defaults) {
|
|
17744
|
+
object.tuning = options.enums === String ? "ENCODER_TUNING_UNSPECIFIED" : 0;
|
|
17745
|
+
object.effort = 0;
|
|
17746
|
+
object.rateControl = options.enums === String ? "ENCODER_RATE_CONTROL_UNSPECIFIED" : 0;
|
|
17747
|
+
object.maxBitrateKbps = 0;
|
|
17748
|
+
object.profile = options.enums === String ? "ENCODER_PROFILE_AUTO" : 0;
|
|
17749
|
+
object.bframes = 0;
|
|
17750
|
+
object.idrOnly = false;
|
|
17751
|
+
object.spatialAq = false;
|
|
17752
|
+
object.multipass = options.enums === String ? "ENCODER_MULTIPASS_DISABLED" : 0;
|
|
17753
|
+
object.lookaheadDepth = 0;
|
|
17754
|
+
object.zeroReorderDelay = false;
|
|
17755
|
+
object.bitDepth = 0;
|
|
17756
|
+
object.chromaFormat = options.enums === String ? "ENCODER_CHROMA_FORMAT_420" : 0;
|
|
17757
|
+
object.outputAud = false;
|
|
17758
|
+
object.level = "";
|
|
17759
|
+
}
|
|
17760
|
+
if (message.tuning != null && message.hasOwnProperty("tuning"))
|
|
17761
|
+
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;
|
|
17762
|
+
if (message.effort != null && message.hasOwnProperty("effort"))
|
|
17763
|
+
object.effort = message.effort;
|
|
17764
|
+
if (message.rateControl != null && message.hasOwnProperty("rateControl"))
|
|
17765
|
+
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;
|
|
17766
|
+
if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps"))
|
|
17767
|
+
object.maxBitrateKbps = message.maxBitrateKbps;
|
|
17768
|
+
if (message.profile != null && message.hasOwnProperty("profile"))
|
|
17769
|
+
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;
|
|
17770
|
+
if (message.bframes != null && message.hasOwnProperty("bframes"))
|
|
17771
|
+
object.bframes = message.bframes;
|
|
17772
|
+
if (message.idrOnly != null && message.hasOwnProperty("idrOnly"))
|
|
17773
|
+
object.idrOnly = message.idrOnly;
|
|
17774
|
+
if (message.spatialAq != null && message.hasOwnProperty("spatialAq"))
|
|
17775
|
+
object.spatialAq = message.spatialAq;
|
|
17776
|
+
if (message.multipass != null && message.hasOwnProperty("multipass"))
|
|
17777
|
+
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;
|
|
17778
|
+
if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth"))
|
|
17779
|
+
object.lookaheadDepth = message.lookaheadDepth;
|
|
17780
|
+
if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay"))
|
|
17781
|
+
object.zeroReorderDelay = message.zeroReorderDelay;
|
|
17782
|
+
if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
|
|
17783
|
+
object.bitDepth = message.bitDepth;
|
|
17784
|
+
if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
|
|
17785
|
+
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;
|
|
17786
|
+
if (message.outputAud != null && message.hasOwnProperty("outputAud"))
|
|
17787
|
+
object.outputAud = message.outputAud;
|
|
17788
|
+
if (message.level != null && message.hasOwnProperty("level"))
|
|
17789
|
+
object.level = message.level;
|
|
17790
|
+
return object;
|
|
17791
|
+
};
|
|
17792
|
+
EncoderSettings.prototype.toJSON = function toJSON() {
|
|
17793
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17794
|
+
};
|
|
17795
|
+
EncoderSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17796
|
+
if (typeUrlPrefix === void 0) {
|
|
17797
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17798
|
+
}
|
|
17799
|
+
return typeUrlPrefix + "/sesame.v1.outputs.EncoderSettings";
|
|
17800
|
+
};
|
|
17801
|
+
return EncoderSettings;
|
|
17802
|
+
}();
|
|
17803
|
+
outputs.RecorderType = function() {
|
|
17804
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17805
|
+
values[valuesById[0] = "RECORDER_TYPE_UNSPECIFIED"] = 0;
|
|
17806
|
+
values[valuesById[1] = "RECORDER_TYPE_LIVE"] = 1;
|
|
17807
|
+
values[valuesById[2] = "RECORDER_TYPE_CLIPS"] = 2;
|
|
17808
|
+
return values;
|
|
17809
|
+
}();
|
|
17810
|
+
outputs.TimecodeMode = function() {
|
|
17811
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
17812
|
+
values[valuesById[0] = "TIMECODE_MODE_UNSPECIFIED"] = 0;
|
|
17813
|
+
values[valuesById[1] = "TIMECODE_MODE_WALLCLOCK"] = 1;
|
|
17814
|
+
values[valuesById[2] = "TIMECODE_MODE_SOURCE"] = 2;
|
|
17815
|
+
return values;
|
|
17816
|
+
}();
|
|
17817
|
+
outputs.EncoderConfig = function() {
|
|
17818
|
+
function EncoderConfig(properties) {
|
|
17819
|
+
if (properties) {
|
|
17820
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17821
|
+
if (properties[keys[i]] != null)
|
|
17822
|
+
this[keys[i]] = properties[keys[i]];
|
|
17823
|
+
}
|
|
17824
|
+
}
|
|
17825
|
+
EncoderConfig.prototype.codec = 0;
|
|
17826
|
+
EncoderConfig.prototype.bitrateKbps = 0;
|
|
17827
|
+
EncoderConfig.prototype.keyframeInterval = 0;
|
|
17828
|
+
EncoderConfig.prototype.width = 0;
|
|
17829
|
+
EncoderConfig.prototype.height = 0;
|
|
17830
|
+
EncoderConfig.prototype.fps = 0;
|
|
17831
|
+
EncoderConfig.prototype.timecodeMode = 0;
|
|
17832
|
+
EncoderConfig.prototype.timecodeSourceId = "";
|
|
17833
|
+
EncoderConfig.prototype.settings = null;
|
|
17834
|
+
EncoderConfig.create = function create(properties) {
|
|
17835
|
+
return new EncoderConfig(properties);
|
|
17836
|
+
};
|
|
17837
|
+
EncoderConfig.encode = function encode(message, writer) {
|
|
17838
|
+
if (!writer)
|
|
17839
|
+
writer = $Writer.create();
|
|
17840
|
+
if (message.codec != null && Object.hasOwnProperty.call(message, "codec"))
|
|
17841
|
+
writer.uint32(
|
|
17842
|
+
/* id 1, wireType 0 =*/
|
|
17843
|
+
8
|
|
17844
|
+
).int32(message.codec);
|
|
17845
|
+
if (message.bitrateKbps != null && Object.hasOwnProperty.call(message, "bitrateKbps"))
|
|
17846
|
+
writer.uint32(
|
|
17847
|
+
/* id 3, wireType 0 =*/
|
|
17848
|
+
24
|
|
17849
|
+
).uint32(message.bitrateKbps);
|
|
17850
|
+
if (message.keyframeInterval != null && Object.hasOwnProperty.call(message, "keyframeInterval"))
|
|
17851
|
+
writer.uint32(
|
|
17852
|
+
/* id 4, wireType 0 =*/
|
|
17853
|
+
32
|
|
17854
|
+
).uint32(message.keyframeInterval);
|
|
17855
|
+
if (message.width != null && Object.hasOwnProperty.call(message, "width"))
|
|
17856
|
+
writer.uint32(
|
|
17857
|
+
/* id 5, wireType 0 =*/
|
|
17858
|
+
40
|
|
17859
|
+
).uint32(message.width);
|
|
17860
|
+
if (message.height != null && Object.hasOwnProperty.call(message, "height"))
|
|
17861
|
+
writer.uint32(
|
|
17862
|
+
/* id 6, wireType 0 =*/
|
|
17863
|
+
48
|
|
17864
|
+
).uint32(message.height);
|
|
17865
|
+
if (message.fps != null && Object.hasOwnProperty.call(message, "fps"))
|
|
17866
|
+
writer.uint32(
|
|
17867
|
+
/* id 7, wireType 5 =*/
|
|
17868
|
+
61
|
|
17869
|
+
).float(message.fps);
|
|
17870
|
+
if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
|
|
17871
|
+
writer.uint32(
|
|
17872
|
+
/* id 8, wireType 0 =*/
|
|
17873
|
+
64
|
|
17874
|
+
).int32(message.timecodeMode);
|
|
17875
|
+
if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
|
|
17876
|
+
writer.uint32(
|
|
17877
|
+
/* id 9, wireType 2 =*/
|
|
17878
|
+
74
|
|
17879
|
+
).string(message.timecodeSourceId);
|
|
17880
|
+
if (message.settings != null && Object.hasOwnProperty.call(message, "settings"))
|
|
17881
|
+
$root.sesame.v1.outputs.EncoderSettings.encode(message.settings, writer.uint32(
|
|
17882
|
+
/* id 10, wireType 2 =*/
|
|
17883
|
+
82
|
|
17884
|
+
).fork()).ldelim();
|
|
17885
|
+
return writer;
|
|
17886
|
+
};
|
|
17887
|
+
EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17888
|
+
return this.encode(message, writer).ldelim();
|
|
17889
|
+
};
|
|
17890
|
+
EncoderConfig.decode = function decode(reader, length, error) {
|
|
17891
|
+
if (!(reader instanceof $Reader))
|
|
17892
|
+
reader = $Reader.create(reader);
|
|
17893
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
17894
|
+
while (reader.pos < end) {
|
|
17895
|
+
let tag = reader.uint32();
|
|
17896
|
+
if (tag === error)
|
|
17897
|
+
break;
|
|
17898
|
+
switch (tag >>> 3) {
|
|
17899
|
+
case 1: {
|
|
17900
|
+
message.codec = reader.int32();
|
|
17901
|
+
break;
|
|
17902
|
+
}
|
|
17903
|
+
case 3: {
|
|
17904
|
+
message.bitrateKbps = reader.uint32();
|
|
17905
|
+
break;
|
|
17906
|
+
}
|
|
17907
|
+
case 4: {
|
|
17908
|
+
message.keyframeInterval = reader.uint32();
|
|
17909
|
+
break;
|
|
17910
|
+
}
|
|
17911
|
+
case 5: {
|
|
17912
|
+
message.width = reader.uint32();
|
|
17913
|
+
break;
|
|
17914
|
+
}
|
|
17915
|
+
case 6: {
|
|
17916
|
+
message.height = reader.uint32();
|
|
17917
|
+
break;
|
|
17918
|
+
}
|
|
17919
|
+
case 7: {
|
|
17920
|
+
message.fps = reader.float();
|
|
17921
|
+
break;
|
|
17922
|
+
}
|
|
17923
|
+
case 8: {
|
|
17924
|
+
message.timecodeMode = reader.int32();
|
|
17925
|
+
break;
|
|
17926
|
+
}
|
|
17927
|
+
case 9: {
|
|
17928
|
+
message.timecodeSourceId = reader.string();
|
|
17929
|
+
break;
|
|
17930
|
+
}
|
|
17931
|
+
case 10: {
|
|
17932
|
+
message.settings = $root.sesame.v1.outputs.EncoderSettings.decode(reader, reader.uint32());
|
|
17933
|
+
break;
|
|
17934
|
+
}
|
|
17935
|
+
default:
|
|
17936
|
+
reader.skipType(tag & 7);
|
|
17937
|
+
break;
|
|
17938
|
+
}
|
|
17939
|
+
}
|
|
17940
|
+
return message;
|
|
17941
|
+
};
|
|
17942
|
+
EncoderConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
17943
|
+
if (!(reader instanceof $Reader))
|
|
17944
|
+
reader = new $Reader(reader);
|
|
17945
|
+
return this.decode(reader, reader.uint32());
|
|
17946
|
+
};
|
|
17947
|
+
EncoderConfig.verify = function verify(message) {
|
|
17948
|
+
if (typeof message !== "object" || message === null)
|
|
17949
|
+
return "object expected";
|
|
17950
|
+
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
17951
|
+
switch (message.codec) {
|
|
17952
|
+
default:
|
|
17953
|
+
return "codec: enum value expected";
|
|
17954
|
+
case 0:
|
|
17955
|
+
case 1:
|
|
17956
|
+
case 2:
|
|
17957
|
+
case 3:
|
|
17958
|
+
case 4:
|
|
17959
|
+
case 5:
|
|
17960
|
+
case 6:
|
|
17961
|
+
case 7:
|
|
17962
|
+
case 64:
|
|
17963
|
+
case 65:
|
|
17964
|
+
case 66:
|
|
17965
|
+
case 67:
|
|
17966
|
+
break;
|
|
17967
|
+
}
|
|
17968
|
+
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
|
|
17969
|
+
if (!$util.isInteger(message.bitrateKbps))
|
|
17970
|
+
return "bitrateKbps: integer expected";
|
|
17971
|
+
}
|
|
17972
|
+
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval")) {
|
|
17973
|
+
if (!$util.isInteger(message.keyframeInterval))
|
|
17974
|
+
return "keyframeInterval: integer expected";
|
|
17975
|
+
}
|
|
17976
|
+
if (message.width != null && message.hasOwnProperty("width")) {
|
|
17977
|
+
if (!$util.isInteger(message.width))
|
|
17978
|
+
return "width: integer expected";
|
|
17979
|
+
}
|
|
17980
|
+
if (message.height != null && message.hasOwnProperty("height")) {
|
|
17981
|
+
if (!$util.isInteger(message.height))
|
|
17982
|
+
return "height: integer expected";
|
|
17983
|
+
}
|
|
17984
|
+
if (message.fps != null && message.hasOwnProperty("fps")) {
|
|
17985
|
+
if (typeof message.fps !== "number")
|
|
17986
|
+
return "fps: number expected";
|
|
17987
|
+
}
|
|
17988
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
17989
|
+
switch (message.timecodeMode) {
|
|
17990
|
+
default:
|
|
17991
|
+
return "timecodeMode: enum value expected";
|
|
17992
|
+
case 0:
|
|
17993
|
+
case 1:
|
|
17994
|
+
case 2:
|
|
17995
|
+
break;
|
|
17996
|
+
}
|
|
17997
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
|
|
17998
|
+
if (!$util.isString(message.timecodeSourceId))
|
|
17999
|
+
return "timecodeSourceId: string expected";
|
|
18000
|
+
}
|
|
18001
|
+
if (message.settings != null && message.hasOwnProperty("settings")) {
|
|
18002
|
+
let error = $root.sesame.v1.outputs.EncoderSettings.verify(message.settings);
|
|
18003
|
+
if (error)
|
|
18004
|
+
return "settings." + error;
|
|
18005
|
+
}
|
|
18006
|
+
return null;
|
|
18007
|
+
};
|
|
18008
|
+
EncoderConfig.fromObject = function fromObject(object) {
|
|
18009
|
+
if (object instanceof $root.sesame.v1.outputs.EncoderConfig)
|
|
18010
|
+
return object;
|
|
18011
|
+
let message = new $root.sesame.v1.outputs.EncoderConfig();
|
|
18012
|
+
switch (object.codec) {
|
|
18013
|
+
default:
|
|
18014
|
+
if (typeof object.codec === "number") {
|
|
18015
|
+
message.codec = object.codec;
|
|
18016
|
+
break;
|
|
18017
|
+
}
|
|
18018
|
+
break;
|
|
18019
|
+
case "CODEC_TYPE_UNSPECIFIED":
|
|
18020
|
+
case 0:
|
|
18021
|
+
message.codec = 0;
|
|
18022
|
+
break;
|
|
18023
|
+
case "CODEC_TYPE_VIDEO_VP8":
|
|
18024
|
+
case 1:
|
|
18025
|
+
message.codec = 1;
|
|
18026
|
+
break;
|
|
18027
|
+
case "CODEC_TYPE_VIDEO_VP9":
|
|
18028
|
+
case 2:
|
|
18029
|
+
message.codec = 2;
|
|
18030
|
+
break;
|
|
18031
|
+
case "CODEC_TYPE_VIDEO_AVC":
|
|
18032
|
+
case 3:
|
|
18033
|
+
message.codec = 3;
|
|
18034
|
+
break;
|
|
18035
|
+
case "CODEC_TYPE_VIDEO_HEVC":
|
|
18036
|
+
case 4:
|
|
18037
|
+
message.codec = 4;
|
|
18038
|
+
break;
|
|
18039
|
+
case "CODEC_TYPE_VIDEO_AV1":
|
|
18040
|
+
case 5:
|
|
18041
|
+
message.codec = 5;
|
|
18042
|
+
break;
|
|
18043
|
+
case "CODEC_TYPE_VIDEO_PRORES":
|
|
18044
|
+
case 6:
|
|
18045
|
+
message.codec = 6;
|
|
17377
18046
|
break;
|
|
17378
18047
|
case "CODEC_TYPE_VIDEO_DNXHR":
|
|
17379
18048
|
case 7:
|
|
@@ -17396,40 +18065,43 @@ var sesame = $root.sesame = (() => {
|
|
|
17396
18065
|
message.codec = 67;
|
|
17397
18066
|
break;
|
|
17398
18067
|
}
|
|
17399
|
-
|
|
18068
|
+
if (object.bitrateKbps != null)
|
|
18069
|
+
message.bitrateKbps = object.bitrateKbps >>> 0;
|
|
18070
|
+
if (object.keyframeInterval != null)
|
|
18071
|
+
message.keyframeInterval = object.keyframeInterval >>> 0;
|
|
18072
|
+
if (object.width != null)
|
|
18073
|
+
message.width = object.width >>> 0;
|
|
18074
|
+
if (object.height != null)
|
|
18075
|
+
message.height = object.height >>> 0;
|
|
18076
|
+
if (object.fps != null)
|
|
18077
|
+
message.fps = Number(object.fps);
|
|
18078
|
+
switch (object.timecodeMode) {
|
|
17400
18079
|
default:
|
|
17401
|
-
if (typeof object.
|
|
17402
|
-
message.
|
|
18080
|
+
if (typeof object.timecodeMode === "number") {
|
|
18081
|
+
message.timecodeMode = object.timecodeMode;
|
|
17403
18082
|
break;
|
|
17404
18083
|
}
|
|
17405
18084
|
break;
|
|
17406
|
-
case "
|
|
18085
|
+
case "TIMECODE_MODE_UNSPECIFIED":
|
|
17407
18086
|
case 0:
|
|
17408
|
-
message.
|
|
18087
|
+
message.timecodeMode = 0;
|
|
17409
18088
|
break;
|
|
17410
|
-
case "
|
|
18089
|
+
case "TIMECODE_MODE_WALLCLOCK":
|
|
17411
18090
|
case 1:
|
|
17412
|
-
message.
|
|
18091
|
+
message.timecodeMode = 1;
|
|
17413
18092
|
break;
|
|
17414
|
-
case "
|
|
18093
|
+
case "TIMECODE_MODE_SOURCE":
|
|
17415
18094
|
case 2:
|
|
17416
|
-
message.
|
|
17417
|
-
break;
|
|
17418
|
-
case "ENCODER_PRESET_HIGH_QUALITY":
|
|
17419
|
-
case 3:
|
|
17420
|
-
message.preset = 3;
|
|
18095
|
+
message.timecodeMode = 2;
|
|
17421
18096
|
break;
|
|
17422
18097
|
}
|
|
17423
|
-
if (object.
|
|
17424
|
-
message.
|
|
17425
|
-
if (object.
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
message.
|
|
17429
|
-
|
|
17430
|
-
message.height = object.height >>> 0;
|
|
17431
|
-
if (object.fps != null)
|
|
17432
|
-
message.fps = Number(object.fps);
|
|
18098
|
+
if (object.timecodeSourceId != null)
|
|
18099
|
+
message.timecodeSourceId = String(object.timecodeSourceId);
|
|
18100
|
+
if (object.settings != null) {
|
|
18101
|
+
if (typeof object.settings !== "object")
|
|
18102
|
+
throw TypeError(".sesame.v1.outputs.EncoderConfig.settings: object expected");
|
|
18103
|
+
message.settings = $root.sesame.v1.outputs.EncoderSettings.fromObject(object.settings);
|
|
18104
|
+
}
|
|
17433
18105
|
return message;
|
|
17434
18106
|
};
|
|
17435
18107
|
EncoderConfig.toObject = function toObject(message, options) {
|
|
@@ -17438,17 +18110,17 @@ var sesame = $root.sesame = (() => {
|
|
|
17438
18110
|
let object = {};
|
|
17439
18111
|
if (options.defaults) {
|
|
17440
18112
|
object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
|
|
17441
|
-
object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
|
|
17442
18113
|
object.bitrateKbps = 0;
|
|
17443
18114
|
object.keyframeInterval = 0;
|
|
17444
18115
|
object.width = 0;
|
|
17445
18116
|
object.height = 0;
|
|
17446
18117
|
object.fps = 0;
|
|
18118
|
+
object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
|
|
18119
|
+
object.timecodeSourceId = "";
|
|
18120
|
+
object.settings = null;
|
|
17447
18121
|
}
|
|
17448
18122
|
if (message.codec != null && message.hasOwnProperty("codec"))
|
|
17449
18123
|
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;
|
|
17450
|
-
if (message.preset != null && message.hasOwnProperty("preset"))
|
|
17451
|
-
object.preset = options.enums === String ? $root.sesame.v1.outputs.EncoderPreset[message.preset] === void 0 ? message.preset : $root.sesame.v1.outputs.EncoderPreset[message.preset] : message.preset;
|
|
17452
18124
|
if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
|
|
17453
18125
|
object.bitrateKbps = message.bitrateKbps;
|
|
17454
18126
|
if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
|
|
@@ -17459,6 +18131,12 @@ var sesame = $root.sesame = (() => {
|
|
|
17459
18131
|
object.height = message.height;
|
|
17460
18132
|
if (message.fps != null && message.hasOwnProperty("fps"))
|
|
17461
18133
|
object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
|
|
18134
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
18135
|
+
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;
|
|
18136
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
|
|
18137
|
+
object.timecodeSourceId = message.timecodeSourceId;
|
|
18138
|
+
if (message.settings != null && message.hasOwnProperty("settings"))
|
|
18139
|
+
object.settings = $root.sesame.v1.outputs.EncoderSettings.toObject(message.settings, options);
|
|
17462
18140
|
return object;
|
|
17463
18141
|
};
|
|
17464
18142
|
EncoderConfig.prototype.toJSON = function toJSON() {
|
|
@@ -17833,6 +18511,8 @@ var sesame = $root.sesame = (() => {
|
|
|
17833
18511
|
DecklinkOutputConfig.prototype.deviceIndex = 0;
|
|
17834
18512
|
DecklinkOutputConfig.prototype.videoFormat = 0;
|
|
17835
18513
|
DecklinkOutputConfig.prototype.keyAndFill = false;
|
|
18514
|
+
DecklinkOutputConfig.prototype.timecodeMode = 0;
|
|
18515
|
+
DecklinkOutputConfig.prototype.timecodeSourceId = "";
|
|
17836
18516
|
DecklinkOutputConfig.create = function create(properties) {
|
|
17837
18517
|
return new DecklinkOutputConfig(properties);
|
|
17838
18518
|
};
|
|
@@ -17854,6 +18534,16 @@ var sesame = $root.sesame = (() => {
|
|
|
17854
18534
|
/* id 3, wireType 0 =*/
|
|
17855
18535
|
24
|
|
17856
18536
|
).bool(message.keyAndFill);
|
|
18537
|
+
if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
|
|
18538
|
+
writer.uint32(
|
|
18539
|
+
/* id 4, wireType 0 =*/
|
|
18540
|
+
32
|
|
18541
|
+
).int32(message.timecodeMode);
|
|
18542
|
+
if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
|
|
18543
|
+
writer.uint32(
|
|
18544
|
+
/* id 5, wireType 2 =*/
|
|
18545
|
+
42
|
|
18546
|
+
).string(message.timecodeSourceId);
|
|
17857
18547
|
return writer;
|
|
17858
18548
|
};
|
|
17859
18549
|
DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -17880,6 +18570,14 @@ var sesame = $root.sesame = (() => {
|
|
|
17880
18570
|
message.keyAndFill = reader.bool();
|
|
17881
18571
|
break;
|
|
17882
18572
|
}
|
|
18573
|
+
case 4: {
|
|
18574
|
+
message.timecodeMode = reader.int32();
|
|
18575
|
+
break;
|
|
18576
|
+
}
|
|
18577
|
+
case 5: {
|
|
18578
|
+
message.timecodeSourceId = reader.string();
|
|
18579
|
+
break;
|
|
18580
|
+
}
|
|
17883
18581
|
default:
|
|
17884
18582
|
reader.skipType(tag & 7);
|
|
17885
18583
|
break;
|
|
@@ -17914,6 +18612,19 @@ var sesame = $root.sesame = (() => {
|
|
|
17914
18612
|
if (typeof message.keyAndFill !== "boolean")
|
|
17915
18613
|
return "keyAndFill: boolean expected";
|
|
17916
18614
|
}
|
|
18615
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
18616
|
+
switch (message.timecodeMode) {
|
|
18617
|
+
default:
|
|
18618
|
+
return "timecodeMode: enum value expected";
|
|
18619
|
+
case 0:
|
|
18620
|
+
case 1:
|
|
18621
|
+
case 2:
|
|
18622
|
+
break;
|
|
18623
|
+
}
|
|
18624
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
|
|
18625
|
+
if (!$util.isString(message.timecodeSourceId))
|
|
18626
|
+
return "timecodeSourceId: string expected";
|
|
18627
|
+
}
|
|
17917
18628
|
return null;
|
|
17918
18629
|
};
|
|
17919
18630
|
DecklinkOutputConfig.fromObject = function fromObject(object) {
|
|
@@ -17952,6 +18663,28 @@ var sesame = $root.sesame = (() => {
|
|
|
17952
18663
|
}
|
|
17953
18664
|
if (object.keyAndFill != null)
|
|
17954
18665
|
message.keyAndFill = Boolean(object.keyAndFill);
|
|
18666
|
+
switch (object.timecodeMode) {
|
|
18667
|
+
default:
|
|
18668
|
+
if (typeof object.timecodeMode === "number") {
|
|
18669
|
+
message.timecodeMode = object.timecodeMode;
|
|
18670
|
+
break;
|
|
18671
|
+
}
|
|
18672
|
+
break;
|
|
18673
|
+
case "TIMECODE_MODE_UNSPECIFIED":
|
|
18674
|
+
case 0:
|
|
18675
|
+
message.timecodeMode = 0;
|
|
18676
|
+
break;
|
|
18677
|
+
case "TIMECODE_MODE_WALLCLOCK":
|
|
18678
|
+
case 1:
|
|
18679
|
+
message.timecodeMode = 1;
|
|
18680
|
+
break;
|
|
18681
|
+
case "TIMECODE_MODE_SOURCE":
|
|
18682
|
+
case 2:
|
|
18683
|
+
message.timecodeMode = 2;
|
|
18684
|
+
break;
|
|
18685
|
+
}
|
|
18686
|
+
if (object.timecodeSourceId != null)
|
|
18687
|
+
message.timecodeSourceId = String(object.timecodeSourceId);
|
|
17955
18688
|
return message;
|
|
17956
18689
|
};
|
|
17957
18690
|
DecklinkOutputConfig.toObject = function toObject(message, options) {
|
|
@@ -17962,6 +18695,8 @@ var sesame = $root.sesame = (() => {
|
|
|
17962
18695
|
object.deviceIndex = 0;
|
|
17963
18696
|
object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
|
|
17964
18697
|
object.keyAndFill = false;
|
|
18698
|
+
object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
|
|
18699
|
+
object.timecodeSourceId = "";
|
|
17965
18700
|
}
|
|
17966
18701
|
if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
|
|
17967
18702
|
object.deviceIndex = message.deviceIndex;
|
|
@@ -17969,6 +18704,10 @@ var sesame = $root.sesame = (() => {
|
|
|
17969
18704
|
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;
|
|
17970
18705
|
if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
|
|
17971
18706
|
object.keyAndFill = message.keyAndFill;
|
|
18707
|
+
if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
|
|
18708
|
+
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;
|
|
18709
|
+
if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
|
|
18710
|
+
object.timecodeSourceId = message.timecodeSourceId;
|
|
17972
18711
|
return object;
|
|
17973
18712
|
};
|
|
17974
18713
|
DecklinkOutputConfig.prototype.toJSON = function toJSON() {
|
|
@@ -20228,6 +20967,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20228
20967
|
EncoderStatus.prototype.state = 0;
|
|
20229
20968
|
EncoderStatus.prototype.msg = null;
|
|
20230
20969
|
EncoderStatus.prototype.compositionId = "";
|
|
20970
|
+
EncoderStatus.prototype.droppedFrames = 0;
|
|
20231
20971
|
let $oneOfFields;
|
|
20232
20972
|
Object.defineProperty(EncoderStatus.prototype, "_msg", {
|
|
20233
20973
|
get: $util.oneOfGetter($oneOfFields = ["msg"]),
|
|
@@ -20264,6 +21004,11 @@ var sesame = $root.sesame = (() => {
|
|
|
20264
21004
|
/* id 5, wireType 2 =*/
|
|
20265
21005
|
42
|
|
20266
21006
|
).string(message.compositionId);
|
|
21007
|
+
if (message.droppedFrames != null && Object.hasOwnProperty.call(message, "droppedFrames"))
|
|
21008
|
+
writer.uint32(
|
|
21009
|
+
/* id 6, wireType 0 =*/
|
|
21010
|
+
48
|
|
21011
|
+
).uint32(message.droppedFrames);
|
|
20267
21012
|
return writer;
|
|
20268
21013
|
};
|
|
20269
21014
|
EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
|
|
@@ -20298,6 +21043,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20298
21043
|
message.compositionId = reader.string();
|
|
20299
21044
|
break;
|
|
20300
21045
|
}
|
|
21046
|
+
case 6: {
|
|
21047
|
+
message.droppedFrames = reader.uint32();
|
|
21048
|
+
break;
|
|
21049
|
+
}
|
|
20301
21050
|
default:
|
|
20302
21051
|
reader.skipType(tag & 7);
|
|
20303
21052
|
break;
|
|
@@ -20348,6 +21097,10 @@ var sesame = $root.sesame = (() => {
|
|
|
20348
21097
|
if (!$util.isString(message.compositionId))
|
|
20349
21098
|
return "compositionId: string expected";
|
|
20350
21099
|
}
|
|
21100
|
+
if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames")) {
|
|
21101
|
+
if (!$util.isInteger(message.droppedFrames))
|
|
21102
|
+
return "droppedFrames: integer expected";
|
|
21103
|
+
}
|
|
20351
21104
|
return null;
|
|
20352
21105
|
};
|
|
20353
21106
|
EncoderStatus.fromObject = function fromObject(object) {
|
|
@@ -20412,6 +21165,8 @@ var sesame = $root.sesame = (() => {
|
|
|
20412
21165
|
message.msg = String(object.msg);
|
|
20413
21166
|
if (object.compositionId != null)
|
|
20414
21167
|
message.compositionId = String(object.compositionId);
|
|
21168
|
+
if (object.droppedFrames != null)
|
|
21169
|
+
message.droppedFrames = object.droppedFrames >>> 0;
|
|
20415
21170
|
return message;
|
|
20416
21171
|
};
|
|
20417
21172
|
EncoderStatus.toObject = function toObject(message, options) {
|
|
@@ -20423,6 +21178,7 @@ var sesame = $root.sesame = (() => {
|
|
|
20423
21178
|
object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
|
|
20424
21179
|
object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
|
|
20425
21180
|
object.compositionId = "";
|
|
21181
|
+
object.droppedFrames = 0;
|
|
20426
21182
|
}
|
|
20427
21183
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
20428
21184
|
object.id = message.id;
|
|
@@ -20437,6 +21193,8 @@ var sesame = $root.sesame = (() => {
|
|
|
20437
21193
|
}
|
|
20438
21194
|
if (message.compositionId != null && message.hasOwnProperty("compositionId"))
|
|
20439
21195
|
object.compositionId = message.compositionId;
|
|
21196
|
+
if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames"))
|
|
21197
|
+
object.droppedFrames = message.droppedFrames;
|
|
20440
21198
|
return object;
|
|
20441
21199
|
};
|
|
20442
21200
|
EncoderStatus.prototype.toJSON = function toJSON() {
|
|
@@ -24705,6 +25463,108 @@ var sesame = $root.sesame = (() => {
|
|
|
24705
25463
|
};
|
|
24706
25464
|
return PublishMetadataRequest;
|
|
24707
25465
|
}();
|
|
25466
|
+
rpc.SystemOperationRequest = function() {
|
|
25467
|
+
function SystemOperationRequest(properties) {
|
|
25468
|
+
if (properties) {
|
|
25469
|
+
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25470
|
+
if (properties[keys[i]] != null)
|
|
25471
|
+
this[keys[i]] = properties[keys[i]];
|
|
25472
|
+
}
|
|
25473
|
+
}
|
|
25474
|
+
SystemOperationRequest.prototype.resetFrameDrops = null;
|
|
25475
|
+
let $oneOfFields;
|
|
25476
|
+
Object.defineProperty(SystemOperationRequest.prototype, "operation", {
|
|
25477
|
+
get: $util.oneOfGetter($oneOfFields = ["resetFrameDrops"]),
|
|
25478
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25479
|
+
});
|
|
25480
|
+
SystemOperationRequest.create = function create(properties) {
|
|
25481
|
+
return new SystemOperationRequest(properties);
|
|
25482
|
+
};
|
|
25483
|
+
SystemOperationRequest.encode = function encode(message, writer) {
|
|
25484
|
+
if (!writer)
|
|
25485
|
+
writer = $Writer.create();
|
|
25486
|
+
if (message.resetFrameDrops != null && Object.hasOwnProperty.call(message, "resetFrameDrops"))
|
|
25487
|
+
$root.sesame.v1.common.Empty.encode(message.resetFrameDrops, writer.uint32(
|
|
25488
|
+
/* id 1, wireType 2 =*/
|
|
25489
|
+
10
|
|
25490
|
+
).fork()).ldelim();
|
|
25491
|
+
return writer;
|
|
25492
|
+
};
|
|
25493
|
+
SystemOperationRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25494
|
+
return this.encode(message, writer).ldelim();
|
|
25495
|
+
};
|
|
25496
|
+
SystemOperationRequest.decode = function decode(reader, length, error) {
|
|
25497
|
+
if (!(reader instanceof $Reader))
|
|
25498
|
+
reader = $Reader.create(reader);
|
|
25499
|
+
let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.rpc.SystemOperationRequest();
|
|
25500
|
+
while (reader.pos < end) {
|
|
25501
|
+
let tag = reader.uint32();
|
|
25502
|
+
if (tag === error)
|
|
25503
|
+
break;
|
|
25504
|
+
switch (tag >>> 3) {
|
|
25505
|
+
case 1: {
|
|
25506
|
+
message.resetFrameDrops = $root.sesame.v1.common.Empty.decode(reader, reader.uint32());
|
|
25507
|
+
break;
|
|
25508
|
+
}
|
|
25509
|
+
default:
|
|
25510
|
+
reader.skipType(tag & 7);
|
|
25511
|
+
break;
|
|
25512
|
+
}
|
|
25513
|
+
}
|
|
25514
|
+
return message;
|
|
25515
|
+
};
|
|
25516
|
+
SystemOperationRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
25517
|
+
if (!(reader instanceof $Reader))
|
|
25518
|
+
reader = new $Reader(reader);
|
|
25519
|
+
return this.decode(reader, reader.uint32());
|
|
25520
|
+
};
|
|
25521
|
+
SystemOperationRequest.verify = function verify(message) {
|
|
25522
|
+
if (typeof message !== "object" || message === null)
|
|
25523
|
+
return "object expected";
|
|
25524
|
+
let properties = {};
|
|
25525
|
+
if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
|
|
25526
|
+
properties.operation = 1;
|
|
25527
|
+
{
|
|
25528
|
+
let error = $root.sesame.v1.common.Empty.verify(message.resetFrameDrops);
|
|
25529
|
+
if (error)
|
|
25530
|
+
return "resetFrameDrops." + error;
|
|
25531
|
+
}
|
|
25532
|
+
}
|
|
25533
|
+
return null;
|
|
25534
|
+
};
|
|
25535
|
+
SystemOperationRequest.fromObject = function fromObject(object) {
|
|
25536
|
+
if (object instanceof $root.sesame.v1.rpc.SystemOperationRequest)
|
|
25537
|
+
return object;
|
|
25538
|
+
let message = new $root.sesame.v1.rpc.SystemOperationRequest();
|
|
25539
|
+
if (object.resetFrameDrops != null) {
|
|
25540
|
+
if (typeof object.resetFrameDrops !== "object")
|
|
25541
|
+
throw TypeError(".sesame.v1.rpc.SystemOperationRequest.resetFrameDrops: object expected");
|
|
25542
|
+
message.resetFrameDrops = $root.sesame.v1.common.Empty.fromObject(object.resetFrameDrops);
|
|
25543
|
+
}
|
|
25544
|
+
return message;
|
|
25545
|
+
};
|
|
25546
|
+
SystemOperationRequest.toObject = function toObject(message, options) {
|
|
25547
|
+
if (!options)
|
|
25548
|
+
options = {};
|
|
25549
|
+
let object = {};
|
|
25550
|
+
if (message.resetFrameDrops != null && message.hasOwnProperty("resetFrameDrops")) {
|
|
25551
|
+
object.resetFrameDrops = $root.sesame.v1.common.Empty.toObject(message.resetFrameDrops, options);
|
|
25552
|
+
if (options.oneofs)
|
|
25553
|
+
object.operation = "resetFrameDrops";
|
|
25554
|
+
}
|
|
25555
|
+
return object;
|
|
25556
|
+
};
|
|
25557
|
+
SystemOperationRequest.prototype.toJSON = function toJSON() {
|
|
25558
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25559
|
+
};
|
|
25560
|
+
SystemOperationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
25561
|
+
if (typeUrlPrefix === void 0) {
|
|
25562
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
25563
|
+
}
|
|
25564
|
+
return typeUrlPrefix + "/sesame.v1.rpc.SystemOperationRequest";
|
|
25565
|
+
};
|
|
25566
|
+
return SystemOperationRequest;
|
|
25567
|
+
}();
|
|
24708
25568
|
rpc.SesameAPIService = function() {
|
|
24709
25569
|
function SesameAPIService(rpcImpl, requestDelimited, responseDelimited) {
|
|
24710
25570
|
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
@@ -24752,6 +25612,9 @@ var sesame = $root.sesame = (() => {
|
|
|
24752
25612
|
Object.defineProperty(SesameAPIService.prototype.publishMetadata = function publishMetadata(request, callback) {
|
|
24753
25613
|
return this.rpcCall(publishMetadata, $root.sesame.v1.rpc.PublishMetadataRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
24754
25614
|
}, "name", { value: "PublishMetadata" });
|
|
25615
|
+
Object.defineProperty(SesameAPIService.prototype.requestSystemOperation = function requestSystemOperation(request, callback) {
|
|
25616
|
+
return this.rpcCall(requestSystemOperation, $root.sesame.v1.rpc.SystemOperationRequest, $root.sesame.v1.common.Empty, request, callback);
|
|
25617
|
+
}, "name", { value: "RequestSystemOperation" });
|
|
24755
25618
|
return SesameAPIService;
|
|
24756
25619
|
}();
|
|
24757
25620
|
return rpc;
|
|
@@ -26713,6 +27576,10 @@ var SesameClient = class extends EventEmitter3 {
|
|
|
26713
27576
|
async requestKeyframe(outputId) {
|
|
26714
27577
|
await this.rpc.service.requestKeyframe({ id: outputId });
|
|
26715
27578
|
}
|
|
27579
|
+
/** Resets the engine's dropped-frame counter shown in status. */
|
|
27580
|
+
async resetFrameDrops() {
|
|
27581
|
+
await this.rpc.service.requestSystemOperation({ resetFrameDrops: {} });
|
|
27582
|
+
}
|
|
26716
27583
|
async execute(cl) {
|
|
26717
27584
|
cl.filterCreatedAndDestroyedSources();
|
|
26718
27585
|
if (cl.getCommandListMsg().commandList.length > 0) {
|