@stinkycomputing/sesame-api-client 1.6.0 → 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/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() {
@@ -14645,6 +14713,8 @@ var sesame = $root.sesame = (() => {
14645
14713
  SystemStatus.prototype.gpuName = "";
14646
14714
  SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
14647
14715
  SystemStatus.prototype.version = "";
14716
+ SystemStatus.prototype.nvencSessions = 0;
14717
+ SystemStatus.prototype.nvdecSessions = 0;
14648
14718
  SystemStatus.create = function create(properties) {
14649
14719
  return new SystemStatus(properties);
14650
14720
  };
@@ -14741,6 +14811,16 @@ var sesame = $root.sesame = (() => {
14741
14811
  /* id 18, wireType 2 =*/
14742
14812
  146
14743
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);
14744
14824
  return writer;
14745
14825
  };
14746
14826
  SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -14827,6 +14907,14 @@ var sesame = $root.sesame = (() => {
14827
14907
  message.version = reader.string();
14828
14908
  break;
14829
14909
  }
14910
+ case 19: {
14911
+ message.nvencSessions = reader.uint32();
14912
+ break;
14913
+ }
14914
+ case 20: {
14915
+ message.nvdecSessions = reader.uint32();
14916
+ break;
14917
+ }
14830
14918
  default:
14831
14919
  reader.skipType(tag & 7);
14832
14920
  break;
@@ -14918,6 +15006,14 @@ var sesame = $root.sesame = (() => {
14918
15006
  if (!$util.isString(message.version))
14919
15007
  return "version: string expected";
14920
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
+ }
14921
15017
  return null;
14922
15018
  };
14923
15019
  SystemStatus.fromObject = function fromObject(object) {
@@ -15020,6 +15116,10 @@ var sesame = $root.sesame = (() => {
15020
15116
  }
15021
15117
  if (object.version != null)
15022
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;
15023
15123
  return message;
15024
15124
  };
15025
15125
  SystemStatus.toObject = function toObject(message, options) {
@@ -15069,6 +15169,8 @@ var sesame = $root.sesame = (() => {
15069
15169
  } else
15070
15170
  object.vmaBytes = options.longs === String ? "0" : 0;
15071
15171
  object.version = "";
15172
+ object.nvencSessions = 0;
15173
+ object.nvdecSessions = 0;
15072
15174
  }
15073
15175
  if (message.uptime != null && message.hasOwnProperty("uptime"))
15074
15176
  if (typeof message.uptime === "number")
@@ -15124,6 +15226,10 @@ var sesame = $root.sesame = (() => {
15124
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;
15125
15227
  if (message.version != null && message.hasOwnProperty("version"))
15126
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;
15127
15233
  return object;
15128
15234
  };
15129
15235
  SystemStatus.prototype.toJSON = function toJSON() {
@@ -17177,14 +17283,523 @@ var sesame = $root.sesame = (() => {
17177
17283
  values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
17178
17284
  return values;
17179
17285
  }();
17180
- outputs.EncoderPreset = function() {
17286
+ outputs.EncoderTuning = function() {
17287
+ const valuesById = {}, values = Object.create(valuesById);
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;
17292
+ return values;
17293
+ }();
17294
+ outputs.EncoderRateControl = function() {
17295
+ const valuesById = {}, values = Object.create(valuesById);
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;
17299
+ return values;
17300
+ }();
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() {
17181
17311
  const valuesById = {}, values = Object.create(valuesById);
17182
- values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
17183
- values[valuesById[1] = "ENCODER_PRESET_LOW_LATENCY"] = 1;
17184
- values[valuesById[2] = "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY"] = 2;
17185
- values[valuesById[3] = "ENCODER_PRESET_HIGH_QUALITY"] = 3;
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;
17186
17315
  return values;
17187
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) {
17325
+ if (properties) {
17326
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17327
+ if (properties[keys[i]] != null)
17328
+ this[keys[i]] = properties[keys[i]];
17329
+ }
17330
+ }
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) {
17350
+ if (!writer)
17351
+ writer = $Writer.create();
17352
+ if (message.tuning != null && Object.hasOwnProperty.call(message, "tuning"))
17353
+ writer.uint32(
17354
+ /* id 1, wireType 0 =*/
17355
+ 8
17356
+ ).int32(message.tuning);
17357
+ if (message.effort != null && Object.hasOwnProperty.call(message, "effort"))
17358
+ writer.uint32(
17359
+ /* id 2, wireType 0 =*/
17360
+ 16
17361
+ ).uint32(message.effort);
17362
+ if (message.rateControl != null && Object.hasOwnProperty.call(message, "rateControl"))
17363
+ writer.uint32(
17364
+ /* id 3, wireType 0 =*/
17365
+ 24
17366
+ ).int32(message.rateControl);
17367
+ if (message.maxBitrateKbps != null && Object.hasOwnProperty.call(message, "maxBitrateKbps"))
17368
+ writer.uint32(
17369
+ /* id 4, wireType 0 =*/
17370
+ 32
17371
+ ).uint32(message.maxBitrateKbps);
17372
+ if (message.profile != null && Object.hasOwnProperty.call(message, "profile"))
17373
+ writer.uint32(
17374
+ /* id 5, wireType 0 =*/
17375
+ 40
17376
+ ).int32(message.profile);
17377
+ if (message.bframes != null && Object.hasOwnProperty.call(message, "bframes"))
17378
+ writer.uint32(
17379
+ /* id 6, wireType 0 =*/
17380
+ 48
17381
+ ).uint32(message.bframes);
17382
+ if (message.idrOnly != null && Object.hasOwnProperty.call(message, "idrOnly"))
17383
+ writer.uint32(
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);
17427
+ return writer;
17428
+ };
17429
+ EncoderSettings.encodeDelimited = function encodeDelimited(message, writer) {
17430
+ return this.encode(message, writer).ldelim();
17431
+ };
17432
+ EncoderSettings.decode = function decode(reader, length, error) {
17433
+ if (!(reader instanceof $Reader))
17434
+ reader = $Reader.create(reader);
17435
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderSettings();
17436
+ while (reader.pos < end) {
17437
+ let tag = reader.uint32();
17438
+ if (tag === error)
17439
+ break;
17440
+ switch (tag >>> 3) {
17441
+ case 1: {
17442
+ message.tuning = reader.int32();
17443
+ break;
17444
+ }
17445
+ case 2: {
17446
+ message.effort = reader.uint32();
17447
+ break;
17448
+ }
17449
+ case 3: {
17450
+ message.rateControl = reader.int32();
17451
+ break;
17452
+ }
17453
+ case 4: {
17454
+ message.maxBitrateKbps = reader.uint32();
17455
+ break;
17456
+ }
17457
+ case 5: {
17458
+ message.profile = reader.int32();
17459
+ break;
17460
+ }
17461
+ case 6: {
17462
+ message.bframes = reader.uint32();
17463
+ break;
17464
+ }
17465
+ case 7: {
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();
17499
+ break;
17500
+ }
17501
+ default:
17502
+ reader.skipType(tag & 7);
17503
+ break;
17504
+ }
17505
+ }
17506
+ return message;
17507
+ };
17508
+ EncoderSettings.decodeDelimited = function decodeDelimited(reader) {
17509
+ if (!(reader instanceof $Reader))
17510
+ reader = new $Reader(reader);
17511
+ return this.decode(reader, reader.uint32());
17512
+ };
17513
+ EncoderSettings.verify = function verify(message) {
17514
+ if (typeof message !== "object" || message === null)
17515
+ return "object expected";
17516
+ if (message.tuning != null && message.hasOwnProperty("tuning"))
17517
+ switch (message.tuning) {
17518
+ default:
17519
+ return "tuning: enum value expected";
17520
+ case 0:
17521
+ case 1:
17522
+ case 2:
17523
+ case 3:
17524
+ break;
17525
+ }
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) {
17545
+ default:
17546
+ return "profile: enum value expected";
17547
+ case 0:
17548
+ case 1:
17549
+ case 2:
17550
+ case 3:
17551
+ case 4:
17552
+ break;
17553
+ }
17554
+ if (message.bframes != null && message.hasOwnProperty("bframes")) {
17555
+ if (!$util.isInteger(message.bframes))
17556
+ return "bframes: integer expected";
17557
+ }
17558
+ if (message.idrOnly != null && message.hasOwnProperty("idrOnly")) {
17559
+ if (typeof message.idrOnly !== "boolean")
17560
+ return "idrOnly: boolean expected";
17561
+ }
17562
+ if (message.spatialAq != null && message.hasOwnProperty("spatialAq")) {
17563
+ if (typeof message.spatialAq !== "boolean")
17564
+ return "spatialAq: boolean expected";
17565
+ }
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";
17578
+ }
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";
17602
+ }
17603
+ return null;
17604
+ };
17605
+ EncoderSettings.fromObject = function fromObject(object) {
17606
+ if (object instanceof $root.sesame.v1.outputs.EncoderSettings)
17607
+ return object;
17608
+ let message = new $root.sesame.v1.outputs.EncoderSettings();
17609
+ switch (object.tuning) {
17610
+ default:
17611
+ if (typeof object.tuning === "number") {
17612
+ message.tuning = object.tuning;
17613
+ break;
17614
+ }
17615
+ break;
17616
+ case "ENCODER_TUNING_UNSPECIFIED":
17617
+ case 0:
17618
+ message.tuning = 0;
17619
+ break;
17620
+ case "ENCODER_TUNING_ULTRA_LOW_LATENCY":
17621
+ case 1:
17622
+ message.tuning = 1;
17623
+ break;
17624
+ case "ENCODER_TUNING_LOW_LATENCY":
17625
+ case 2:
17626
+ message.tuning = 2;
17627
+ break;
17628
+ case "ENCODER_TUNING_HIGH_QUALITY":
17629
+ case 3:
17630
+ message.tuning = 3;
17631
+ break;
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
+ }
17641
+ break;
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
+ }();
17188
17803
  outputs.RecorderType = function() {
17189
17804
  const valuesById = {}, values = Object.create(valuesById);
17190
17805
  values[valuesById[0] = "RECORDER_TYPE_UNSPECIFIED"] = 0;
@@ -17192,6 +17807,13 @@ var sesame = $root.sesame = (() => {
17192
17807
  values[valuesById[2] = "RECORDER_TYPE_CLIPS"] = 2;
17193
17808
  return values;
17194
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
+ }();
17195
17817
  outputs.EncoderConfig = function() {
17196
17818
  function EncoderConfig(properties) {
17197
17819
  if (properties) {
@@ -17201,12 +17823,14 @@ var sesame = $root.sesame = (() => {
17201
17823
  }
17202
17824
  }
17203
17825
  EncoderConfig.prototype.codec = 0;
17204
- EncoderConfig.prototype.preset = 0;
17205
17826
  EncoderConfig.prototype.bitrateKbps = 0;
17206
17827
  EncoderConfig.prototype.keyframeInterval = 0;
17207
17828
  EncoderConfig.prototype.width = 0;
17208
17829
  EncoderConfig.prototype.height = 0;
17209
17830
  EncoderConfig.prototype.fps = 0;
17831
+ EncoderConfig.prototype.timecodeMode = 0;
17832
+ EncoderConfig.prototype.timecodeSourceId = "";
17833
+ EncoderConfig.prototype.settings = null;
17210
17834
  EncoderConfig.create = function create(properties) {
17211
17835
  return new EncoderConfig(properties);
17212
17836
  };
@@ -17218,11 +17842,6 @@ var sesame = $root.sesame = (() => {
17218
17842
  /* id 1, wireType 0 =*/
17219
17843
  8
17220
17844
  ).int32(message.codec);
17221
- if (message.preset != null && Object.hasOwnProperty.call(message, "preset"))
17222
- writer.uint32(
17223
- /* id 2, wireType 0 =*/
17224
- 16
17225
- ).int32(message.preset);
17226
17845
  if (message.bitrateKbps != null && Object.hasOwnProperty.call(message, "bitrateKbps"))
17227
17846
  writer.uint32(
17228
17847
  /* id 3, wireType 0 =*/
@@ -17248,6 +17867,21 @@ var sesame = $root.sesame = (() => {
17248
17867
  /* id 7, wireType 5 =*/
17249
17868
  61
17250
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();
17251
17885
  return writer;
17252
17886
  };
17253
17887
  EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -17266,10 +17900,6 @@ var sesame = $root.sesame = (() => {
17266
17900
  message.codec = reader.int32();
17267
17901
  break;
17268
17902
  }
17269
- case 2: {
17270
- message.preset = reader.int32();
17271
- break;
17272
- }
17273
17903
  case 3: {
17274
17904
  message.bitrateKbps = reader.uint32();
17275
17905
  break;
@@ -17290,6 +17920,18 @@ var sesame = $root.sesame = (() => {
17290
17920
  message.fps = reader.float();
17291
17921
  break;
17292
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
+ }
17293
17935
  default:
17294
17936
  reader.skipType(tag & 7);
17295
17937
  break;
@@ -17323,16 +17965,6 @@ var sesame = $root.sesame = (() => {
17323
17965
  case 67:
17324
17966
  break;
17325
17967
  }
17326
- if (message.preset != null && message.hasOwnProperty("preset"))
17327
- switch (message.preset) {
17328
- default:
17329
- return "preset: enum value expected";
17330
- case 0:
17331
- case 1:
17332
- case 2:
17333
- case 3:
17334
- break;
17335
- }
17336
17968
  if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
17337
17969
  if (!$util.isInteger(message.bitrateKbps))
17338
17970
  return "bitrateKbps: integer expected";
@@ -17353,6 +17985,24 @@ var sesame = $root.sesame = (() => {
17353
17985
  if (typeof message.fps !== "number")
17354
17986
  return "fps: number expected";
17355
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
+ }
17356
18006
  return null;
17357
18007
  };
17358
18008
  EncoderConfig.fromObject = function fromObject(object) {
@@ -17415,40 +18065,43 @@ var sesame = $root.sesame = (() => {
17415
18065
  message.codec = 67;
17416
18066
  break;
17417
18067
  }
17418
- switch (object.preset) {
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) {
17419
18079
  default:
17420
- if (typeof object.preset === "number") {
17421
- message.preset = object.preset;
18080
+ if (typeof object.timecodeMode === "number") {
18081
+ message.timecodeMode = object.timecodeMode;
17422
18082
  break;
17423
18083
  }
17424
18084
  break;
17425
- case "ENCODER_PRESET_UNSPECIFIED":
18085
+ case "TIMECODE_MODE_UNSPECIFIED":
17426
18086
  case 0:
17427
- message.preset = 0;
18087
+ message.timecodeMode = 0;
17428
18088
  break;
17429
- case "ENCODER_PRESET_LOW_LATENCY":
18089
+ case "TIMECODE_MODE_WALLCLOCK":
17430
18090
  case 1:
17431
- message.preset = 1;
18091
+ message.timecodeMode = 1;
17432
18092
  break;
17433
- case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
18093
+ case "TIMECODE_MODE_SOURCE":
17434
18094
  case 2:
17435
- message.preset = 2;
17436
- break;
17437
- case "ENCODER_PRESET_HIGH_QUALITY":
17438
- case 3:
17439
- message.preset = 3;
18095
+ message.timecodeMode = 2;
17440
18096
  break;
17441
18097
  }
17442
- if (object.bitrateKbps != null)
17443
- message.bitrateKbps = object.bitrateKbps >>> 0;
17444
- if (object.keyframeInterval != null)
17445
- message.keyframeInterval = object.keyframeInterval >>> 0;
17446
- if (object.width != null)
17447
- message.width = object.width >>> 0;
17448
- if (object.height != null)
17449
- message.height = object.height >>> 0;
17450
- if (object.fps != null)
17451
- 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
+ }
17452
18105
  return message;
17453
18106
  };
17454
18107
  EncoderConfig.toObject = function toObject(message, options) {
@@ -17457,17 +18110,17 @@ var sesame = $root.sesame = (() => {
17457
18110
  let object = {};
17458
18111
  if (options.defaults) {
17459
18112
  object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
17460
- object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
17461
18113
  object.bitrateKbps = 0;
17462
18114
  object.keyframeInterval = 0;
17463
18115
  object.width = 0;
17464
18116
  object.height = 0;
17465
18117
  object.fps = 0;
18118
+ object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
18119
+ object.timecodeSourceId = "";
18120
+ object.settings = null;
17466
18121
  }
17467
18122
  if (message.codec != null && message.hasOwnProperty("codec"))
17468
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;
17469
- if (message.preset != null && message.hasOwnProperty("preset"))
17470
- 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;
17471
18124
  if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
17472
18125
  object.bitrateKbps = message.bitrateKbps;
17473
18126
  if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
@@ -17478,6 +18131,12 @@ var sesame = $root.sesame = (() => {
17478
18131
  object.height = message.height;
17479
18132
  if (message.fps != null && message.hasOwnProperty("fps"))
17480
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);
17481
18140
  return object;
17482
18141
  };
17483
18142
  EncoderConfig.prototype.toJSON = function toJSON() {
@@ -17852,6 +18511,8 @@ var sesame = $root.sesame = (() => {
17852
18511
  DecklinkOutputConfig.prototype.deviceIndex = 0;
17853
18512
  DecklinkOutputConfig.prototype.videoFormat = 0;
17854
18513
  DecklinkOutputConfig.prototype.keyAndFill = false;
18514
+ DecklinkOutputConfig.prototype.timecodeMode = 0;
18515
+ DecklinkOutputConfig.prototype.timecodeSourceId = "";
17855
18516
  DecklinkOutputConfig.create = function create(properties) {
17856
18517
  return new DecklinkOutputConfig(properties);
17857
18518
  };
@@ -17873,6 +18534,16 @@ var sesame = $root.sesame = (() => {
17873
18534
  /* id 3, wireType 0 =*/
17874
18535
  24
17875
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);
17876
18547
  return writer;
17877
18548
  };
17878
18549
  DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -17899,6 +18570,14 @@ var sesame = $root.sesame = (() => {
17899
18570
  message.keyAndFill = reader.bool();
17900
18571
  break;
17901
18572
  }
18573
+ case 4: {
18574
+ message.timecodeMode = reader.int32();
18575
+ break;
18576
+ }
18577
+ case 5: {
18578
+ message.timecodeSourceId = reader.string();
18579
+ break;
18580
+ }
17902
18581
  default:
17903
18582
  reader.skipType(tag & 7);
17904
18583
  break;
@@ -17933,6 +18612,19 @@ var sesame = $root.sesame = (() => {
17933
18612
  if (typeof message.keyAndFill !== "boolean")
17934
18613
  return "keyAndFill: boolean expected";
17935
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
+ }
17936
18628
  return null;
17937
18629
  };
17938
18630
  DecklinkOutputConfig.fromObject = function fromObject(object) {
@@ -17971,6 +18663,28 @@ var sesame = $root.sesame = (() => {
17971
18663
  }
17972
18664
  if (object.keyAndFill != null)
17973
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);
17974
18688
  return message;
17975
18689
  };
17976
18690
  DecklinkOutputConfig.toObject = function toObject(message, options) {
@@ -17981,6 +18695,8 @@ var sesame = $root.sesame = (() => {
17981
18695
  object.deviceIndex = 0;
17982
18696
  object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
17983
18697
  object.keyAndFill = false;
18698
+ object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
18699
+ object.timecodeSourceId = "";
17984
18700
  }
17985
18701
  if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
17986
18702
  object.deviceIndex = message.deviceIndex;
@@ -17988,6 +18704,10 @@ var sesame = $root.sesame = (() => {
17988
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;
17989
18705
  if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
17990
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;
17991
18711
  return object;
17992
18712
  };
17993
18713
  DecklinkOutputConfig.prototype.toJSON = function toJSON() {
@@ -20247,6 +20967,7 @@ var sesame = $root.sesame = (() => {
20247
20967
  EncoderStatus.prototype.state = 0;
20248
20968
  EncoderStatus.prototype.msg = null;
20249
20969
  EncoderStatus.prototype.compositionId = "";
20970
+ EncoderStatus.prototype.droppedFrames = 0;
20250
20971
  let $oneOfFields;
20251
20972
  Object.defineProperty(EncoderStatus.prototype, "_msg", {
20252
20973
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -20283,6 +21004,11 @@ var sesame = $root.sesame = (() => {
20283
21004
  /* id 5, wireType 2 =*/
20284
21005
  42
20285
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);
20286
21012
  return writer;
20287
21013
  };
20288
21014
  EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -20317,6 +21043,10 @@ var sesame = $root.sesame = (() => {
20317
21043
  message.compositionId = reader.string();
20318
21044
  break;
20319
21045
  }
21046
+ case 6: {
21047
+ message.droppedFrames = reader.uint32();
21048
+ break;
21049
+ }
20320
21050
  default:
20321
21051
  reader.skipType(tag & 7);
20322
21052
  break;
@@ -20367,6 +21097,10 @@ var sesame = $root.sesame = (() => {
20367
21097
  if (!$util.isString(message.compositionId))
20368
21098
  return "compositionId: string expected";
20369
21099
  }
21100
+ if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames")) {
21101
+ if (!$util.isInteger(message.droppedFrames))
21102
+ return "droppedFrames: integer expected";
21103
+ }
20370
21104
  return null;
20371
21105
  };
20372
21106
  EncoderStatus.fromObject = function fromObject(object) {
@@ -20431,6 +21165,8 @@ var sesame = $root.sesame = (() => {
20431
21165
  message.msg = String(object.msg);
20432
21166
  if (object.compositionId != null)
20433
21167
  message.compositionId = String(object.compositionId);
21168
+ if (object.droppedFrames != null)
21169
+ message.droppedFrames = object.droppedFrames >>> 0;
20434
21170
  return message;
20435
21171
  };
20436
21172
  EncoderStatus.toObject = function toObject(message, options) {
@@ -20442,6 +21178,7 @@ var sesame = $root.sesame = (() => {
20442
21178
  object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
20443
21179
  object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
20444
21180
  object.compositionId = "";
21181
+ object.droppedFrames = 0;
20445
21182
  }
20446
21183
  if (message.id != null && message.hasOwnProperty("id"))
20447
21184
  object.id = message.id;
@@ -20456,6 +21193,8 @@ var sesame = $root.sesame = (() => {
20456
21193
  }
20457
21194
  if (message.compositionId != null && message.hasOwnProperty("compositionId"))
20458
21195
  object.compositionId = message.compositionId;
21196
+ if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames"))
21197
+ object.droppedFrames = message.droppedFrames;
20459
21198
  return object;
20460
21199
  };
20461
21200
  EncoderStatus.prototype.toJSON = function toJSON() {