@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.
@@ -7744,6 +7744,13 @@ var sesame = $root.sesame = (() => {
7744
7744
  values[valuesById[3] = "SIGNAL_GENERATOR_AUDIO_MODE_SILENCE"] = 3;
7745
7745
  return values;
7746
7746
  }();
7747
+ sources.SignalGeneratorTimecodeMode = function() {
7748
+ const valuesById = {}, values = Object.create(valuesById);
7749
+ values[valuesById[0] = "SIGNAL_GENERATOR_TIMECODE_MODE_NONE"] = 0;
7750
+ values[valuesById[1] = "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN"] = 1;
7751
+ values[valuesById[2] = "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY"] = 2;
7752
+ return values;
7753
+ }();
7747
7754
  sources.SignalGeneratorSourceConfig = function() {
7748
7755
  function SignalGeneratorSourceConfig(properties) {
7749
7756
  if (properties) {
@@ -7755,6 +7762,8 @@ var sesame = $root.sesame = (() => {
7755
7762
  SignalGeneratorSourceConfig.prototype.freeze = false;
7756
7763
  SignalGeneratorSourceConfig.prototype.videoPattern = 0;
7757
7764
  SignalGeneratorSourceConfig.prototype.audioMode = 0;
7765
+ SignalGeneratorSourceConfig.prototype.timecodeMode = 0;
7766
+ SignalGeneratorSourceConfig.prototype.timecodeStartFrame = 0;
7758
7767
  SignalGeneratorSourceConfig.create = function create(properties) {
7759
7768
  return new SignalGeneratorSourceConfig(properties);
7760
7769
  };
@@ -7776,6 +7785,16 @@ var sesame = $root.sesame = (() => {
7776
7785
  /* id 3, wireType 0 =*/
7777
7786
  24
7778
7787
  ).int32(message.audioMode);
7788
+ if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
7789
+ writer.uint32(
7790
+ /* id 4, wireType 0 =*/
7791
+ 32
7792
+ ).int32(message.timecodeMode);
7793
+ if (message.timecodeStartFrame != null && Object.hasOwnProperty.call(message, "timecodeStartFrame"))
7794
+ writer.uint32(
7795
+ /* id 5, wireType 0 =*/
7796
+ 40
7797
+ ).uint32(message.timecodeStartFrame);
7779
7798
  return writer;
7780
7799
  };
7781
7800
  SignalGeneratorSourceConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -7802,6 +7821,14 @@ var sesame = $root.sesame = (() => {
7802
7821
  message.audioMode = reader.int32();
7803
7822
  break;
7804
7823
  }
7824
+ case 4: {
7825
+ message.timecodeMode = reader.int32();
7826
+ break;
7827
+ }
7828
+ case 5: {
7829
+ message.timecodeStartFrame = reader.uint32();
7830
+ break;
7831
+ }
7805
7832
  default:
7806
7833
  reader.skipType(tag & 7);
7807
7834
  break;
@@ -7841,6 +7868,19 @@ var sesame = $root.sesame = (() => {
7841
7868
  case 3:
7842
7869
  break;
7843
7870
  }
7871
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
7872
+ switch (message.timecodeMode) {
7873
+ default:
7874
+ return "timecodeMode: enum value expected";
7875
+ case 0:
7876
+ case 1:
7877
+ case 2:
7878
+ break;
7879
+ }
7880
+ if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame")) {
7881
+ if (!$util.isInteger(message.timecodeStartFrame))
7882
+ return "timecodeStartFrame: integer expected";
7883
+ }
7844
7884
  return null;
7845
7885
  };
7846
7886
  SignalGeneratorSourceConfig.fromObject = function fromObject(object) {
@@ -7897,6 +7937,28 @@ var sesame = $root.sesame = (() => {
7897
7937
  message.audioMode = 3;
7898
7938
  break;
7899
7939
  }
7940
+ switch (object.timecodeMode) {
7941
+ default:
7942
+ if (typeof object.timecodeMode === "number") {
7943
+ message.timecodeMode = object.timecodeMode;
7944
+ break;
7945
+ }
7946
+ break;
7947
+ case "SIGNAL_GENERATOR_TIMECODE_MODE_NONE":
7948
+ case 0:
7949
+ message.timecodeMode = 0;
7950
+ break;
7951
+ case "SIGNAL_GENERATOR_TIMECODE_MODE_FREE_RUN":
7952
+ case 1:
7953
+ message.timecodeMode = 1;
7954
+ break;
7955
+ case "SIGNAL_GENERATOR_TIMECODE_MODE_TIME_OF_DAY":
7956
+ case 2:
7957
+ message.timecodeMode = 2;
7958
+ break;
7959
+ }
7960
+ if (object.timecodeStartFrame != null)
7961
+ message.timecodeStartFrame = object.timecodeStartFrame >>> 0;
7900
7962
  return message;
7901
7963
  };
7902
7964
  SignalGeneratorSourceConfig.toObject = function toObject(message, options) {
@@ -7907,6 +7969,8 @@ var sesame = $root.sesame = (() => {
7907
7969
  object.freeze = false;
7908
7970
  object.videoPattern = options.enums === String ? "SIGNAL_GENERATOR_VIDEO_PATTERN_BARS" : 0;
7909
7971
  object.audioMode = options.enums === String ? "SIGNAL_GENERATOR_AUDIO_MODE_SYNC" : 0;
7972
+ object.timecodeMode = options.enums === String ? "SIGNAL_GENERATOR_TIMECODE_MODE_NONE" : 0;
7973
+ object.timecodeStartFrame = 0;
7910
7974
  }
7911
7975
  if (message.freeze != null && message.hasOwnProperty("freeze"))
7912
7976
  object.freeze = message.freeze;
@@ -7914,6 +7978,10 @@ var sesame = $root.sesame = (() => {
7914
7978
  object.videoPattern = options.enums === String ? $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] === void 0 ? message.videoPattern : $root.sesame.v1.sources.SignalGeneratorVideoPattern[message.videoPattern] : message.videoPattern;
7915
7979
  if (message.audioMode != null && message.hasOwnProperty("audioMode"))
7916
7980
  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;
7981
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
7982
+ 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;
7983
+ if (message.timecodeStartFrame != null && message.hasOwnProperty("timecodeStartFrame"))
7984
+ object.timecodeStartFrame = message.timecodeStartFrame;
7917
7985
  return object;
7918
7986
  };
7919
7987
  SignalGeneratorSourceConfig.prototype.toJSON = function toJSON() {
@@ -15040,6 +15108,8 @@ var sesame = $root.sesame = (() => {
15040
15108
  SystemStatus.prototype.gpuName = "";
15041
15109
  SystemStatus.prototype.vmaBytes = $util.Long ? $util.Long.fromBits(0, 0, true) : 0;
15042
15110
  SystemStatus.prototype.version = "";
15111
+ SystemStatus.prototype.nvencSessions = 0;
15112
+ SystemStatus.prototype.nvdecSessions = 0;
15043
15113
  SystemStatus.create = function create(properties) {
15044
15114
  return new SystemStatus(properties);
15045
15115
  };
@@ -15136,6 +15206,16 @@ var sesame = $root.sesame = (() => {
15136
15206
  /* id 18, wireType 2 =*/
15137
15207
  146
15138
15208
  ).string(message.version);
15209
+ if (message.nvencSessions != null && Object.hasOwnProperty.call(message, "nvencSessions"))
15210
+ writer.uint32(
15211
+ /* id 19, wireType 0 =*/
15212
+ 152
15213
+ ).uint32(message.nvencSessions);
15214
+ if (message.nvdecSessions != null && Object.hasOwnProperty.call(message, "nvdecSessions"))
15215
+ writer.uint32(
15216
+ /* id 20, wireType 0 =*/
15217
+ 160
15218
+ ).uint32(message.nvdecSessions);
15139
15219
  return writer;
15140
15220
  };
15141
15221
  SystemStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -15222,6 +15302,14 @@ var sesame = $root.sesame = (() => {
15222
15302
  message.version = reader.string();
15223
15303
  break;
15224
15304
  }
15305
+ case 19: {
15306
+ message.nvencSessions = reader.uint32();
15307
+ break;
15308
+ }
15309
+ case 20: {
15310
+ message.nvdecSessions = reader.uint32();
15311
+ break;
15312
+ }
15225
15313
  default:
15226
15314
  reader.skipType(tag & 7);
15227
15315
  break;
@@ -15313,6 +15401,14 @@ var sesame = $root.sesame = (() => {
15313
15401
  if (!$util.isString(message.version))
15314
15402
  return "version: string expected";
15315
15403
  }
15404
+ if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions")) {
15405
+ if (!$util.isInteger(message.nvencSessions))
15406
+ return "nvencSessions: integer expected";
15407
+ }
15408
+ if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions")) {
15409
+ if (!$util.isInteger(message.nvdecSessions))
15410
+ return "nvdecSessions: integer expected";
15411
+ }
15316
15412
  return null;
15317
15413
  };
15318
15414
  SystemStatus.fromObject = function fromObject(object) {
@@ -15415,6 +15511,10 @@ var sesame = $root.sesame = (() => {
15415
15511
  }
15416
15512
  if (object.version != null)
15417
15513
  message.version = String(object.version);
15514
+ if (object.nvencSessions != null)
15515
+ message.nvencSessions = object.nvencSessions >>> 0;
15516
+ if (object.nvdecSessions != null)
15517
+ message.nvdecSessions = object.nvdecSessions >>> 0;
15418
15518
  return message;
15419
15519
  };
15420
15520
  SystemStatus.toObject = function toObject(message, options) {
@@ -15464,6 +15564,8 @@ var sesame = $root.sesame = (() => {
15464
15564
  } else
15465
15565
  object.vmaBytes = options.longs === String ? "0" : 0;
15466
15566
  object.version = "";
15567
+ object.nvencSessions = 0;
15568
+ object.nvdecSessions = 0;
15467
15569
  }
15468
15570
  if (message.uptime != null && message.hasOwnProperty("uptime"))
15469
15571
  if (typeof message.uptime === "number")
@@ -15519,6 +15621,10 @@ var sesame = $root.sesame = (() => {
15519
15621
  object.vmaBytes = options.longs === String ? $util.Long.prototype.toString.call(message.vmaBytes) : options.longs === Number ? new $util.LongBits(message.vmaBytes.low >>> 0, message.vmaBytes.high >>> 0).toNumber(true) : message.vmaBytes;
15520
15622
  if (message.version != null && message.hasOwnProperty("version"))
15521
15623
  object.version = message.version;
15624
+ if (message.nvencSessions != null && message.hasOwnProperty("nvencSessions"))
15625
+ object.nvencSessions = message.nvencSessions;
15626
+ if (message.nvdecSessions != null && message.hasOwnProperty("nvdecSessions"))
15627
+ object.nvdecSessions = message.nvdecSessions;
15522
15628
  return object;
15523
15629
  };
15524
15630
  SystemStatus.prototype.toJSON = function toJSON() {
@@ -17572,14 +17678,523 @@ var sesame = $root.sesame = (() => {
17572
17678
  values[valuesById[1] = "ENCODER_TYPE_VIDEO"] = 1;
17573
17679
  return values;
17574
17680
  }();
17575
- outputs.EncoderPreset = function() {
17681
+ outputs.EncoderTuning = function() {
17682
+ const valuesById = {}, values = Object.create(valuesById);
17683
+ values[valuesById[0] = "ENCODER_TUNING_UNSPECIFIED"] = 0;
17684
+ values[valuesById[1] = "ENCODER_TUNING_ULTRA_LOW_LATENCY"] = 1;
17685
+ values[valuesById[2] = "ENCODER_TUNING_LOW_LATENCY"] = 2;
17686
+ values[valuesById[3] = "ENCODER_TUNING_HIGH_QUALITY"] = 3;
17687
+ return values;
17688
+ }();
17689
+ outputs.EncoderRateControl = function() {
17690
+ const valuesById = {}, values = Object.create(valuesById);
17691
+ values[valuesById[0] = "ENCODER_RATE_CONTROL_UNSPECIFIED"] = 0;
17692
+ values[valuesById[1] = "ENCODER_RATE_CONTROL_CBR"] = 1;
17693
+ values[valuesById[2] = "ENCODER_RATE_CONTROL_VBR"] = 2;
17694
+ return values;
17695
+ }();
17696
+ outputs.EncoderProfile = function() {
17697
+ const valuesById = {}, values = Object.create(valuesById);
17698
+ values[valuesById[0] = "ENCODER_PROFILE_AUTO"] = 0;
17699
+ values[valuesById[1] = "ENCODER_PROFILE_BASELINE"] = 1;
17700
+ values[valuesById[2] = "ENCODER_PROFILE_MAIN"] = 2;
17701
+ values[valuesById[3] = "ENCODER_PROFILE_MAIN10"] = 3;
17702
+ values[valuesById[4] = "ENCODER_PROFILE_HIGH"] = 4;
17703
+ return values;
17704
+ }();
17705
+ outputs.EncoderMultipass = function() {
17576
17706
  const valuesById = {}, values = Object.create(valuesById);
17577
- values[valuesById[0] = "ENCODER_PRESET_UNSPECIFIED"] = 0;
17578
- values[valuesById[1] = "ENCODER_PRESET_LOW_LATENCY"] = 1;
17579
- values[valuesById[2] = "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY"] = 2;
17580
- values[valuesById[3] = "ENCODER_PRESET_HIGH_QUALITY"] = 3;
17707
+ values[valuesById[0] = "ENCODER_MULTIPASS_DISABLED"] = 0;
17708
+ values[valuesById[1] = "ENCODER_MULTIPASS_QUARTER_RESOLUTION"] = 1;
17709
+ values[valuesById[2] = "ENCODER_MULTIPASS_FULL_RESOLUTION"] = 2;
17581
17710
  return values;
17582
17711
  }();
17712
+ outputs.EncoderChromaFormat = function() {
17713
+ const valuesById = {}, values = Object.create(valuesById);
17714
+ values[valuesById[0] = "ENCODER_CHROMA_FORMAT_420"] = 0;
17715
+ values[valuesById[1] = "ENCODER_CHROMA_FORMAT_444"] = 1;
17716
+ return values;
17717
+ }();
17718
+ outputs.EncoderSettings = function() {
17719
+ function EncoderSettings(properties) {
17720
+ if (properties) {
17721
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17722
+ if (properties[keys[i]] != null)
17723
+ this[keys[i]] = properties[keys[i]];
17724
+ }
17725
+ }
17726
+ EncoderSettings.prototype.tuning = 0;
17727
+ EncoderSettings.prototype.effort = 0;
17728
+ EncoderSettings.prototype.rateControl = 0;
17729
+ EncoderSettings.prototype.maxBitrateKbps = 0;
17730
+ EncoderSettings.prototype.profile = 0;
17731
+ EncoderSettings.prototype.bframes = 0;
17732
+ EncoderSettings.prototype.idrOnly = false;
17733
+ EncoderSettings.prototype.spatialAq = false;
17734
+ EncoderSettings.prototype.multipass = 0;
17735
+ EncoderSettings.prototype.lookaheadDepth = 0;
17736
+ EncoderSettings.prototype.zeroReorderDelay = false;
17737
+ EncoderSettings.prototype.bitDepth = 0;
17738
+ EncoderSettings.prototype.chromaFormat = 0;
17739
+ EncoderSettings.prototype.outputAud = false;
17740
+ EncoderSettings.prototype.level = "";
17741
+ EncoderSettings.create = function create(properties) {
17742
+ return new EncoderSettings(properties);
17743
+ };
17744
+ EncoderSettings.encode = function encode(message, writer) {
17745
+ if (!writer)
17746
+ writer = $Writer.create();
17747
+ if (message.tuning != null && Object.hasOwnProperty.call(message, "tuning"))
17748
+ writer.uint32(
17749
+ /* id 1, wireType 0 =*/
17750
+ 8
17751
+ ).int32(message.tuning);
17752
+ if (message.effort != null && Object.hasOwnProperty.call(message, "effort"))
17753
+ writer.uint32(
17754
+ /* id 2, wireType 0 =*/
17755
+ 16
17756
+ ).uint32(message.effort);
17757
+ if (message.rateControl != null && Object.hasOwnProperty.call(message, "rateControl"))
17758
+ writer.uint32(
17759
+ /* id 3, wireType 0 =*/
17760
+ 24
17761
+ ).int32(message.rateControl);
17762
+ if (message.maxBitrateKbps != null && Object.hasOwnProperty.call(message, "maxBitrateKbps"))
17763
+ writer.uint32(
17764
+ /* id 4, wireType 0 =*/
17765
+ 32
17766
+ ).uint32(message.maxBitrateKbps);
17767
+ if (message.profile != null && Object.hasOwnProperty.call(message, "profile"))
17768
+ writer.uint32(
17769
+ /* id 5, wireType 0 =*/
17770
+ 40
17771
+ ).int32(message.profile);
17772
+ if (message.bframes != null && Object.hasOwnProperty.call(message, "bframes"))
17773
+ writer.uint32(
17774
+ /* id 6, wireType 0 =*/
17775
+ 48
17776
+ ).uint32(message.bframes);
17777
+ if (message.idrOnly != null && Object.hasOwnProperty.call(message, "idrOnly"))
17778
+ writer.uint32(
17779
+ /* id 7, wireType 0 =*/
17780
+ 56
17781
+ ).bool(message.idrOnly);
17782
+ if (message.spatialAq != null && Object.hasOwnProperty.call(message, "spatialAq"))
17783
+ writer.uint32(
17784
+ /* id 8, wireType 0 =*/
17785
+ 64
17786
+ ).bool(message.spatialAq);
17787
+ if (message.multipass != null && Object.hasOwnProperty.call(message, "multipass"))
17788
+ writer.uint32(
17789
+ /* id 9, wireType 0 =*/
17790
+ 72
17791
+ ).int32(message.multipass);
17792
+ if (message.lookaheadDepth != null && Object.hasOwnProperty.call(message, "lookaheadDepth"))
17793
+ writer.uint32(
17794
+ /* id 10, wireType 0 =*/
17795
+ 80
17796
+ ).uint32(message.lookaheadDepth);
17797
+ if (message.zeroReorderDelay != null && Object.hasOwnProperty.call(message, "zeroReorderDelay"))
17798
+ writer.uint32(
17799
+ /* id 11, wireType 0 =*/
17800
+ 88
17801
+ ).bool(message.zeroReorderDelay);
17802
+ if (message.bitDepth != null && Object.hasOwnProperty.call(message, "bitDepth"))
17803
+ writer.uint32(
17804
+ /* id 12, wireType 0 =*/
17805
+ 96
17806
+ ).uint32(message.bitDepth);
17807
+ if (message.chromaFormat != null && Object.hasOwnProperty.call(message, "chromaFormat"))
17808
+ writer.uint32(
17809
+ /* id 13, wireType 0 =*/
17810
+ 104
17811
+ ).int32(message.chromaFormat);
17812
+ if (message.outputAud != null && Object.hasOwnProperty.call(message, "outputAud"))
17813
+ writer.uint32(
17814
+ /* id 14, wireType 0 =*/
17815
+ 112
17816
+ ).bool(message.outputAud);
17817
+ if (message.level != null && Object.hasOwnProperty.call(message, "level"))
17818
+ writer.uint32(
17819
+ /* id 15, wireType 2 =*/
17820
+ 122
17821
+ ).string(message.level);
17822
+ return writer;
17823
+ };
17824
+ EncoderSettings.encodeDelimited = function encodeDelimited(message, writer) {
17825
+ return this.encode(message, writer).ldelim();
17826
+ };
17827
+ EncoderSettings.decode = function decode(reader, length, error) {
17828
+ if (!(reader instanceof $Reader))
17829
+ reader = $Reader.create(reader);
17830
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.outputs.EncoderSettings();
17831
+ while (reader.pos < end) {
17832
+ let tag = reader.uint32();
17833
+ if (tag === error)
17834
+ break;
17835
+ switch (tag >>> 3) {
17836
+ case 1: {
17837
+ message.tuning = reader.int32();
17838
+ break;
17839
+ }
17840
+ case 2: {
17841
+ message.effort = reader.uint32();
17842
+ break;
17843
+ }
17844
+ case 3: {
17845
+ message.rateControl = reader.int32();
17846
+ break;
17847
+ }
17848
+ case 4: {
17849
+ message.maxBitrateKbps = reader.uint32();
17850
+ break;
17851
+ }
17852
+ case 5: {
17853
+ message.profile = reader.int32();
17854
+ break;
17855
+ }
17856
+ case 6: {
17857
+ message.bframes = reader.uint32();
17858
+ break;
17859
+ }
17860
+ case 7: {
17861
+ message.idrOnly = reader.bool();
17862
+ break;
17863
+ }
17864
+ case 8: {
17865
+ message.spatialAq = reader.bool();
17866
+ break;
17867
+ }
17868
+ case 9: {
17869
+ message.multipass = reader.int32();
17870
+ break;
17871
+ }
17872
+ case 10: {
17873
+ message.lookaheadDepth = reader.uint32();
17874
+ break;
17875
+ }
17876
+ case 11: {
17877
+ message.zeroReorderDelay = reader.bool();
17878
+ break;
17879
+ }
17880
+ case 12: {
17881
+ message.bitDepth = reader.uint32();
17882
+ break;
17883
+ }
17884
+ case 13: {
17885
+ message.chromaFormat = reader.int32();
17886
+ break;
17887
+ }
17888
+ case 14: {
17889
+ message.outputAud = reader.bool();
17890
+ break;
17891
+ }
17892
+ case 15: {
17893
+ message.level = reader.string();
17894
+ break;
17895
+ }
17896
+ default:
17897
+ reader.skipType(tag & 7);
17898
+ break;
17899
+ }
17900
+ }
17901
+ return message;
17902
+ };
17903
+ EncoderSettings.decodeDelimited = function decodeDelimited(reader) {
17904
+ if (!(reader instanceof $Reader))
17905
+ reader = new $Reader(reader);
17906
+ return this.decode(reader, reader.uint32());
17907
+ };
17908
+ EncoderSettings.verify = function verify(message) {
17909
+ if (typeof message !== "object" || message === null)
17910
+ return "object expected";
17911
+ if (message.tuning != null && message.hasOwnProperty("tuning"))
17912
+ switch (message.tuning) {
17913
+ default:
17914
+ return "tuning: enum value expected";
17915
+ case 0:
17916
+ case 1:
17917
+ case 2:
17918
+ case 3:
17919
+ break;
17920
+ }
17921
+ if (message.effort != null && message.hasOwnProperty("effort")) {
17922
+ if (!$util.isInteger(message.effort))
17923
+ return "effort: integer expected";
17924
+ }
17925
+ if (message.rateControl != null && message.hasOwnProperty("rateControl"))
17926
+ switch (message.rateControl) {
17927
+ default:
17928
+ return "rateControl: enum value expected";
17929
+ case 0:
17930
+ case 1:
17931
+ case 2:
17932
+ break;
17933
+ }
17934
+ if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps")) {
17935
+ if (!$util.isInteger(message.maxBitrateKbps))
17936
+ return "maxBitrateKbps: integer expected";
17937
+ }
17938
+ if (message.profile != null && message.hasOwnProperty("profile"))
17939
+ switch (message.profile) {
17940
+ default:
17941
+ return "profile: enum value expected";
17942
+ case 0:
17943
+ case 1:
17944
+ case 2:
17945
+ case 3:
17946
+ case 4:
17947
+ break;
17948
+ }
17949
+ if (message.bframes != null && message.hasOwnProperty("bframes")) {
17950
+ if (!$util.isInteger(message.bframes))
17951
+ return "bframes: integer expected";
17952
+ }
17953
+ if (message.idrOnly != null && message.hasOwnProperty("idrOnly")) {
17954
+ if (typeof message.idrOnly !== "boolean")
17955
+ return "idrOnly: boolean expected";
17956
+ }
17957
+ if (message.spatialAq != null && message.hasOwnProperty("spatialAq")) {
17958
+ if (typeof message.spatialAq !== "boolean")
17959
+ return "spatialAq: boolean expected";
17960
+ }
17961
+ if (message.multipass != null && message.hasOwnProperty("multipass"))
17962
+ switch (message.multipass) {
17963
+ default:
17964
+ return "multipass: enum value expected";
17965
+ case 0:
17966
+ case 1:
17967
+ case 2:
17968
+ break;
17969
+ }
17970
+ if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth")) {
17971
+ if (!$util.isInteger(message.lookaheadDepth))
17972
+ return "lookaheadDepth: integer expected";
17973
+ }
17974
+ if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay")) {
17975
+ if (typeof message.zeroReorderDelay !== "boolean")
17976
+ return "zeroReorderDelay: boolean expected";
17977
+ }
17978
+ if (message.bitDepth != null && message.hasOwnProperty("bitDepth")) {
17979
+ if (!$util.isInteger(message.bitDepth))
17980
+ return "bitDepth: integer expected";
17981
+ }
17982
+ if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
17983
+ switch (message.chromaFormat) {
17984
+ default:
17985
+ return "chromaFormat: enum value expected";
17986
+ case 0:
17987
+ case 1:
17988
+ break;
17989
+ }
17990
+ if (message.outputAud != null && message.hasOwnProperty("outputAud")) {
17991
+ if (typeof message.outputAud !== "boolean")
17992
+ return "outputAud: boolean expected";
17993
+ }
17994
+ if (message.level != null && message.hasOwnProperty("level")) {
17995
+ if (!$util.isString(message.level))
17996
+ return "level: string expected";
17997
+ }
17998
+ return null;
17999
+ };
18000
+ EncoderSettings.fromObject = function fromObject(object) {
18001
+ if (object instanceof $root.sesame.v1.outputs.EncoderSettings)
18002
+ return object;
18003
+ let message = new $root.sesame.v1.outputs.EncoderSettings();
18004
+ switch (object.tuning) {
18005
+ default:
18006
+ if (typeof object.tuning === "number") {
18007
+ message.tuning = object.tuning;
18008
+ break;
18009
+ }
18010
+ break;
18011
+ case "ENCODER_TUNING_UNSPECIFIED":
18012
+ case 0:
18013
+ message.tuning = 0;
18014
+ break;
18015
+ case "ENCODER_TUNING_ULTRA_LOW_LATENCY":
18016
+ case 1:
18017
+ message.tuning = 1;
18018
+ break;
18019
+ case "ENCODER_TUNING_LOW_LATENCY":
18020
+ case 2:
18021
+ message.tuning = 2;
18022
+ break;
18023
+ case "ENCODER_TUNING_HIGH_QUALITY":
18024
+ case 3:
18025
+ message.tuning = 3;
18026
+ break;
18027
+ }
18028
+ if (object.effort != null)
18029
+ message.effort = object.effort >>> 0;
18030
+ switch (object.rateControl) {
18031
+ default:
18032
+ if (typeof object.rateControl === "number") {
18033
+ message.rateControl = object.rateControl;
18034
+ break;
18035
+ }
18036
+ break;
18037
+ case "ENCODER_RATE_CONTROL_UNSPECIFIED":
18038
+ case 0:
18039
+ message.rateControl = 0;
18040
+ break;
18041
+ case "ENCODER_RATE_CONTROL_CBR":
18042
+ case 1:
18043
+ message.rateControl = 1;
18044
+ break;
18045
+ case "ENCODER_RATE_CONTROL_VBR":
18046
+ case 2:
18047
+ message.rateControl = 2;
18048
+ break;
18049
+ }
18050
+ if (object.maxBitrateKbps != null)
18051
+ message.maxBitrateKbps = object.maxBitrateKbps >>> 0;
18052
+ switch (object.profile) {
18053
+ default:
18054
+ if (typeof object.profile === "number") {
18055
+ message.profile = object.profile;
18056
+ break;
18057
+ }
18058
+ break;
18059
+ case "ENCODER_PROFILE_AUTO":
18060
+ case 0:
18061
+ message.profile = 0;
18062
+ break;
18063
+ case "ENCODER_PROFILE_BASELINE":
18064
+ case 1:
18065
+ message.profile = 1;
18066
+ break;
18067
+ case "ENCODER_PROFILE_MAIN":
18068
+ case 2:
18069
+ message.profile = 2;
18070
+ break;
18071
+ case "ENCODER_PROFILE_MAIN10":
18072
+ case 3:
18073
+ message.profile = 3;
18074
+ break;
18075
+ case "ENCODER_PROFILE_HIGH":
18076
+ case 4:
18077
+ message.profile = 4;
18078
+ break;
18079
+ }
18080
+ if (object.bframes != null)
18081
+ message.bframes = object.bframes >>> 0;
18082
+ if (object.idrOnly != null)
18083
+ message.idrOnly = Boolean(object.idrOnly);
18084
+ if (object.spatialAq != null)
18085
+ message.spatialAq = Boolean(object.spatialAq);
18086
+ switch (object.multipass) {
18087
+ default:
18088
+ if (typeof object.multipass === "number") {
18089
+ message.multipass = object.multipass;
18090
+ break;
18091
+ }
18092
+ break;
18093
+ case "ENCODER_MULTIPASS_DISABLED":
18094
+ case 0:
18095
+ message.multipass = 0;
18096
+ break;
18097
+ case "ENCODER_MULTIPASS_QUARTER_RESOLUTION":
18098
+ case 1:
18099
+ message.multipass = 1;
18100
+ break;
18101
+ case "ENCODER_MULTIPASS_FULL_RESOLUTION":
18102
+ case 2:
18103
+ message.multipass = 2;
18104
+ break;
18105
+ }
18106
+ if (object.lookaheadDepth != null)
18107
+ message.lookaheadDepth = object.lookaheadDepth >>> 0;
18108
+ if (object.zeroReorderDelay != null)
18109
+ message.zeroReorderDelay = Boolean(object.zeroReorderDelay);
18110
+ if (object.bitDepth != null)
18111
+ message.bitDepth = object.bitDepth >>> 0;
18112
+ switch (object.chromaFormat) {
18113
+ default:
18114
+ if (typeof object.chromaFormat === "number") {
18115
+ message.chromaFormat = object.chromaFormat;
18116
+ break;
18117
+ }
18118
+ break;
18119
+ case "ENCODER_CHROMA_FORMAT_420":
18120
+ case 0:
18121
+ message.chromaFormat = 0;
18122
+ break;
18123
+ case "ENCODER_CHROMA_FORMAT_444":
18124
+ case 1:
18125
+ message.chromaFormat = 1;
18126
+ break;
18127
+ }
18128
+ if (object.outputAud != null)
18129
+ message.outputAud = Boolean(object.outputAud);
18130
+ if (object.level != null)
18131
+ message.level = String(object.level);
18132
+ return message;
18133
+ };
18134
+ EncoderSettings.toObject = function toObject(message, options) {
18135
+ if (!options)
18136
+ options = {};
18137
+ let object = {};
18138
+ if (options.defaults) {
18139
+ object.tuning = options.enums === String ? "ENCODER_TUNING_UNSPECIFIED" : 0;
18140
+ object.effort = 0;
18141
+ object.rateControl = options.enums === String ? "ENCODER_RATE_CONTROL_UNSPECIFIED" : 0;
18142
+ object.maxBitrateKbps = 0;
18143
+ object.profile = options.enums === String ? "ENCODER_PROFILE_AUTO" : 0;
18144
+ object.bframes = 0;
18145
+ object.idrOnly = false;
18146
+ object.spatialAq = false;
18147
+ object.multipass = options.enums === String ? "ENCODER_MULTIPASS_DISABLED" : 0;
18148
+ object.lookaheadDepth = 0;
18149
+ object.zeroReorderDelay = false;
18150
+ object.bitDepth = 0;
18151
+ object.chromaFormat = options.enums === String ? "ENCODER_CHROMA_FORMAT_420" : 0;
18152
+ object.outputAud = false;
18153
+ object.level = "";
18154
+ }
18155
+ if (message.tuning != null && message.hasOwnProperty("tuning"))
18156
+ 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;
18157
+ if (message.effort != null && message.hasOwnProperty("effort"))
18158
+ object.effort = message.effort;
18159
+ if (message.rateControl != null && message.hasOwnProperty("rateControl"))
18160
+ 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;
18161
+ if (message.maxBitrateKbps != null && message.hasOwnProperty("maxBitrateKbps"))
18162
+ object.maxBitrateKbps = message.maxBitrateKbps;
18163
+ if (message.profile != null && message.hasOwnProperty("profile"))
18164
+ 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;
18165
+ if (message.bframes != null && message.hasOwnProperty("bframes"))
18166
+ object.bframes = message.bframes;
18167
+ if (message.idrOnly != null && message.hasOwnProperty("idrOnly"))
18168
+ object.idrOnly = message.idrOnly;
18169
+ if (message.spatialAq != null && message.hasOwnProperty("spatialAq"))
18170
+ object.spatialAq = message.spatialAq;
18171
+ if (message.multipass != null && message.hasOwnProperty("multipass"))
18172
+ 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;
18173
+ if (message.lookaheadDepth != null && message.hasOwnProperty("lookaheadDepth"))
18174
+ object.lookaheadDepth = message.lookaheadDepth;
18175
+ if (message.zeroReorderDelay != null && message.hasOwnProperty("zeroReorderDelay"))
18176
+ object.zeroReorderDelay = message.zeroReorderDelay;
18177
+ if (message.bitDepth != null && message.hasOwnProperty("bitDepth"))
18178
+ object.bitDepth = message.bitDepth;
18179
+ if (message.chromaFormat != null && message.hasOwnProperty("chromaFormat"))
18180
+ 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;
18181
+ if (message.outputAud != null && message.hasOwnProperty("outputAud"))
18182
+ object.outputAud = message.outputAud;
18183
+ if (message.level != null && message.hasOwnProperty("level"))
18184
+ object.level = message.level;
18185
+ return object;
18186
+ };
18187
+ EncoderSettings.prototype.toJSON = function toJSON() {
18188
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18189
+ };
18190
+ EncoderSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18191
+ if (typeUrlPrefix === void 0) {
18192
+ typeUrlPrefix = "type.googleapis.com";
18193
+ }
18194
+ return typeUrlPrefix + "/sesame.v1.outputs.EncoderSettings";
18195
+ };
18196
+ return EncoderSettings;
18197
+ }();
17583
18198
  outputs.RecorderType = function() {
17584
18199
  const valuesById = {}, values = Object.create(valuesById);
17585
18200
  values[valuesById[0] = "RECORDER_TYPE_UNSPECIFIED"] = 0;
@@ -17587,6 +18202,13 @@ var sesame = $root.sesame = (() => {
17587
18202
  values[valuesById[2] = "RECORDER_TYPE_CLIPS"] = 2;
17588
18203
  return values;
17589
18204
  }();
18205
+ outputs.TimecodeMode = function() {
18206
+ const valuesById = {}, values = Object.create(valuesById);
18207
+ values[valuesById[0] = "TIMECODE_MODE_UNSPECIFIED"] = 0;
18208
+ values[valuesById[1] = "TIMECODE_MODE_WALLCLOCK"] = 1;
18209
+ values[valuesById[2] = "TIMECODE_MODE_SOURCE"] = 2;
18210
+ return values;
18211
+ }();
17590
18212
  outputs.EncoderConfig = function() {
17591
18213
  function EncoderConfig(properties) {
17592
18214
  if (properties) {
@@ -17596,12 +18218,14 @@ var sesame = $root.sesame = (() => {
17596
18218
  }
17597
18219
  }
17598
18220
  EncoderConfig.prototype.codec = 0;
17599
- EncoderConfig.prototype.preset = 0;
17600
18221
  EncoderConfig.prototype.bitrateKbps = 0;
17601
18222
  EncoderConfig.prototype.keyframeInterval = 0;
17602
18223
  EncoderConfig.prototype.width = 0;
17603
18224
  EncoderConfig.prototype.height = 0;
17604
18225
  EncoderConfig.prototype.fps = 0;
18226
+ EncoderConfig.prototype.timecodeMode = 0;
18227
+ EncoderConfig.prototype.timecodeSourceId = "";
18228
+ EncoderConfig.prototype.settings = null;
17605
18229
  EncoderConfig.create = function create(properties) {
17606
18230
  return new EncoderConfig(properties);
17607
18231
  };
@@ -17613,11 +18237,6 @@ var sesame = $root.sesame = (() => {
17613
18237
  /* id 1, wireType 0 =*/
17614
18238
  8
17615
18239
  ).int32(message.codec);
17616
- if (message.preset != null && Object.hasOwnProperty.call(message, "preset"))
17617
- writer.uint32(
17618
- /* id 2, wireType 0 =*/
17619
- 16
17620
- ).int32(message.preset);
17621
18240
  if (message.bitrateKbps != null && Object.hasOwnProperty.call(message, "bitrateKbps"))
17622
18241
  writer.uint32(
17623
18242
  /* id 3, wireType 0 =*/
@@ -17643,6 +18262,21 @@ var sesame = $root.sesame = (() => {
17643
18262
  /* id 7, wireType 5 =*/
17644
18263
  61
17645
18264
  ).float(message.fps);
18265
+ if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
18266
+ writer.uint32(
18267
+ /* id 8, wireType 0 =*/
18268
+ 64
18269
+ ).int32(message.timecodeMode);
18270
+ if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
18271
+ writer.uint32(
18272
+ /* id 9, wireType 2 =*/
18273
+ 74
18274
+ ).string(message.timecodeSourceId);
18275
+ if (message.settings != null && Object.hasOwnProperty.call(message, "settings"))
18276
+ $root.sesame.v1.outputs.EncoderSettings.encode(message.settings, writer.uint32(
18277
+ /* id 10, wireType 2 =*/
18278
+ 82
18279
+ ).fork()).ldelim();
17646
18280
  return writer;
17647
18281
  };
17648
18282
  EncoderConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -17661,10 +18295,6 @@ var sesame = $root.sesame = (() => {
17661
18295
  message.codec = reader.int32();
17662
18296
  break;
17663
18297
  }
17664
- case 2: {
17665
- message.preset = reader.int32();
17666
- break;
17667
- }
17668
18298
  case 3: {
17669
18299
  message.bitrateKbps = reader.uint32();
17670
18300
  break;
@@ -17685,6 +18315,18 @@ var sesame = $root.sesame = (() => {
17685
18315
  message.fps = reader.float();
17686
18316
  break;
17687
18317
  }
18318
+ case 8: {
18319
+ message.timecodeMode = reader.int32();
18320
+ break;
18321
+ }
18322
+ case 9: {
18323
+ message.timecodeSourceId = reader.string();
18324
+ break;
18325
+ }
18326
+ case 10: {
18327
+ message.settings = $root.sesame.v1.outputs.EncoderSettings.decode(reader, reader.uint32());
18328
+ break;
18329
+ }
17688
18330
  default:
17689
18331
  reader.skipType(tag & 7);
17690
18332
  break;
@@ -17718,16 +18360,6 @@ var sesame = $root.sesame = (() => {
17718
18360
  case 67:
17719
18361
  break;
17720
18362
  }
17721
- if (message.preset != null && message.hasOwnProperty("preset"))
17722
- switch (message.preset) {
17723
- default:
17724
- return "preset: enum value expected";
17725
- case 0:
17726
- case 1:
17727
- case 2:
17728
- case 3:
17729
- break;
17730
- }
17731
18363
  if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps")) {
17732
18364
  if (!$util.isInteger(message.bitrateKbps))
17733
18365
  return "bitrateKbps: integer expected";
@@ -17748,6 +18380,24 @@ var sesame = $root.sesame = (() => {
17748
18380
  if (typeof message.fps !== "number")
17749
18381
  return "fps: number expected";
17750
18382
  }
18383
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
18384
+ switch (message.timecodeMode) {
18385
+ default:
18386
+ return "timecodeMode: enum value expected";
18387
+ case 0:
18388
+ case 1:
18389
+ case 2:
18390
+ break;
18391
+ }
18392
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
18393
+ if (!$util.isString(message.timecodeSourceId))
18394
+ return "timecodeSourceId: string expected";
18395
+ }
18396
+ if (message.settings != null && message.hasOwnProperty("settings")) {
18397
+ let error = $root.sesame.v1.outputs.EncoderSettings.verify(message.settings);
18398
+ if (error)
18399
+ return "settings." + error;
18400
+ }
17751
18401
  return null;
17752
18402
  };
17753
18403
  EncoderConfig.fromObject = function fromObject(object) {
@@ -17810,40 +18460,43 @@ var sesame = $root.sesame = (() => {
17810
18460
  message.codec = 67;
17811
18461
  break;
17812
18462
  }
17813
- switch (object.preset) {
18463
+ if (object.bitrateKbps != null)
18464
+ message.bitrateKbps = object.bitrateKbps >>> 0;
18465
+ if (object.keyframeInterval != null)
18466
+ message.keyframeInterval = object.keyframeInterval >>> 0;
18467
+ if (object.width != null)
18468
+ message.width = object.width >>> 0;
18469
+ if (object.height != null)
18470
+ message.height = object.height >>> 0;
18471
+ if (object.fps != null)
18472
+ message.fps = Number(object.fps);
18473
+ switch (object.timecodeMode) {
17814
18474
  default:
17815
- if (typeof object.preset === "number") {
17816
- message.preset = object.preset;
18475
+ if (typeof object.timecodeMode === "number") {
18476
+ message.timecodeMode = object.timecodeMode;
17817
18477
  break;
17818
18478
  }
17819
18479
  break;
17820
- case "ENCODER_PRESET_UNSPECIFIED":
18480
+ case "TIMECODE_MODE_UNSPECIFIED":
17821
18481
  case 0:
17822
- message.preset = 0;
18482
+ message.timecodeMode = 0;
17823
18483
  break;
17824
- case "ENCODER_PRESET_LOW_LATENCY":
18484
+ case "TIMECODE_MODE_WALLCLOCK":
17825
18485
  case 1:
17826
- message.preset = 1;
18486
+ message.timecodeMode = 1;
17827
18487
  break;
17828
- case "ENCODER_PRESET_LOW_LATENCY_IDR_ONLY":
18488
+ case "TIMECODE_MODE_SOURCE":
17829
18489
  case 2:
17830
- message.preset = 2;
17831
- break;
17832
- case "ENCODER_PRESET_HIGH_QUALITY":
17833
- case 3:
17834
- message.preset = 3;
18490
+ message.timecodeMode = 2;
17835
18491
  break;
17836
18492
  }
17837
- if (object.bitrateKbps != null)
17838
- message.bitrateKbps = object.bitrateKbps >>> 0;
17839
- if (object.keyframeInterval != null)
17840
- message.keyframeInterval = object.keyframeInterval >>> 0;
17841
- if (object.width != null)
17842
- message.width = object.width >>> 0;
17843
- if (object.height != null)
17844
- message.height = object.height >>> 0;
17845
- if (object.fps != null)
17846
- message.fps = Number(object.fps);
18493
+ if (object.timecodeSourceId != null)
18494
+ message.timecodeSourceId = String(object.timecodeSourceId);
18495
+ if (object.settings != null) {
18496
+ if (typeof object.settings !== "object")
18497
+ throw TypeError(".sesame.v1.outputs.EncoderConfig.settings: object expected");
18498
+ message.settings = $root.sesame.v1.outputs.EncoderSettings.fromObject(object.settings);
18499
+ }
17847
18500
  return message;
17848
18501
  };
17849
18502
  EncoderConfig.toObject = function toObject(message, options) {
@@ -17852,17 +18505,17 @@ var sesame = $root.sesame = (() => {
17852
18505
  let object = {};
17853
18506
  if (options.defaults) {
17854
18507
  object.codec = options.enums === String ? "CODEC_TYPE_UNSPECIFIED" : 0;
17855
- object.preset = options.enums === String ? "ENCODER_PRESET_UNSPECIFIED" : 0;
17856
18508
  object.bitrateKbps = 0;
17857
18509
  object.keyframeInterval = 0;
17858
18510
  object.width = 0;
17859
18511
  object.height = 0;
17860
18512
  object.fps = 0;
18513
+ object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
18514
+ object.timecodeSourceId = "";
18515
+ object.settings = null;
17861
18516
  }
17862
18517
  if (message.codec != null && message.hasOwnProperty("codec"))
17863
18518
  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;
17864
- if (message.preset != null && message.hasOwnProperty("preset"))
17865
- 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;
17866
18519
  if (message.bitrateKbps != null && message.hasOwnProperty("bitrateKbps"))
17867
18520
  object.bitrateKbps = message.bitrateKbps;
17868
18521
  if (message.keyframeInterval != null && message.hasOwnProperty("keyframeInterval"))
@@ -17873,6 +18526,12 @@ var sesame = $root.sesame = (() => {
17873
18526
  object.height = message.height;
17874
18527
  if (message.fps != null && message.hasOwnProperty("fps"))
17875
18528
  object.fps = options.json && !isFinite(message.fps) ? String(message.fps) : message.fps;
18529
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
18530
+ 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;
18531
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
18532
+ object.timecodeSourceId = message.timecodeSourceId;
18533
+ if (message.settings != null && message.hasOwnProperty("settings"))
18534
+ object.settings = $root.sesame.v1.outputs.EncoderSettings.toObject(message.settings, options);
17876
18535
  return object;
17877
18536
  };
17878
18537
  EncoderConfig.prototype.toJSON = function toJSON() {
@@ -18247,6 +18906,8 @@ var sesame = $root.sesame = (() => {
18247
18906
  DecklinkOutputConfig.prototype.deviceIndex = 0;
18248
18907
  DecklinkOutputConfig.prototype.videoFormat = 0;
18249
18908
  DecklinkOutputConfig.prototype.keyAndFill = false;
18909
+ DecklinkOutputConfig.prototype.timecodeMode = 0;
18910
+ DecklinkOutputConfig.prototype.timecodeSourceId = "";
18250
18911
  DecklinkOutputConfig.create = function create(properties) {
18251
18912
  return new DecklinkOutputConfig(properties);
18252
18913
  };
@@ -18268,6 +18929,16 @@ var sesame = $root.sesame = (() => {
18268
18929
  /* id 3, wireType 0 =*/
18269
18930
  24
18270
18931
  ).bool(message.keyAndFill);
18932
+ if (message.timecodeMode != null && Object.hasOwnProperty.call(message, "timecodeMode"))
18933
+ writer.uint32(
18934
+ /* id 4, wireType 0 =*/
18935
+ 32
18936
+ ).int32(message.timecodeMode);
18937
+ if (message.timecodeSourceId != null && Object.hasOwnProperty.call(message, "timecodeSourceId"))
18938
+ writer.uint32(
18939
+ /* id 5, wireType 2 =*/
18940
+ 42
18941
+ ).string(message.timecodeSourceId);
18271
18942
  return writer;
18272
18943
  };
18273
18944
  DecklinkOutputConfig.encodeDelimited = function encodeDelimited(message, writer) {
@@ -18294,6 +18965,14 @@ var sesame = $root.sesame = (() => {
18294
18965
  message.keyAndFill = reader.bool();
18295
18966
  break;
18296
18967
  }
18968
+ case 4: {
18969
+ message.timecodeMode = reader.int32();
18970
+ break;
18971
+ }
18972
+ case 5: {
18973
+ message.timecodeSourceId = reader.string();
18974
+ break;
18975
+ }
18297
18976
  default:
18298
18977
  reader.skipType(tag & 7);
18299
18978
  break;
@@ -18328,6 +19007,19 @@ var sesame = $root.sesame = (() => {
18328
19007
  if (typeof message.keyAndFill !== "boolean")
18329
19008
  return "keyAndFill: boolean expected";
18330
19009
  }
19010
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
19011
+ switch (message.timecodeMode) {
19012
+ default:
19013
+ return "timecodeMode: enum value expected";
19014
+ case 0:
19015
+ case 1:
19016
+ case 2:
19017
+ break;
19018
+ }
19019
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId")) {
19020
+ if (!$util.isString(message.timecodeSourceId))
19021
+ return "timecodeSourceId: string expected";
19022
+ }
18331
19023
  return null;
18332
19024
  };
18333
19025
  DecklinkOutputConfig.fromObject = function fromObject(object) {
@@ -18366,6 +19058,28 @@ var sesame = $root.sesame = (() => {
18366
19058
  }
18367
19059
  if (object.keyAndFill != null)
18368
19060
  message.keyAndFill = Boolean(object.keyAndFill);
19061
+ switch (object.timecodeMode) {
19062
+ default:
19063
+ if (typeof object.timecodeMode === "number") {
19064
+ message.timecodeMode = object.timecodeMode;
19065
+ break;
19066
+ }
19067
+ break;
19068
+ case "TIMECODE_MODE_UNSPECIFIED":
19069
+ case 0:
19070
+ message.timecodeMode = 0;
19071
+ break;
19072
+ case "TIMECODE_MODE_WALLCLOCK":
19073
+ case 1:
19074
+ message.timecodeMode = 1;
19075
+ break;
19076
+ case "TIMECODE_MODE_SOURCE":
19077
+ case 2:
19078
+ message.timecodeMode = 2;
19079
+ break;
19080
+ }
19081
+ if (object.timecodeSourceId != null)
19082
+ message.timecodeSourceId = String(object.timecodeSourceId);
18369
19083
  return message;
18370
19084
  };
18371
19085
  DecklinkOutputConfig.toObject = function toObject(message, options) {
@@ -18376,6 +19090,8 @@ var sesame = $root.sesame = (() => {
18376
19090
  object.deviceIndex = 0;
18377
19091
  object.videoFormat = options.enums === String ? "VIDEO_FORMAT_UNSPECIFIED" : 0;
18378
19092
  object.keyAndFill = false;
19093
+ object.timecodeMode = options.enums === String ? "TIMECODE_MODE_UNSPECIFIED" : 0;
19094
+ object.timecodeSourceId = "";
18379
19095
  }
18380
19096
  if (message.deviceIndex != null && message.hasOwnProperty("deviceIndex"))
18381
19097
  object.deviceIndex = message.deviceIndex;
@@ -18383,6 +19099,10 @@ var sesame = $root.sesame = (() => {
18383
19099
  object.videoFormat = options.enums === String ? $root.sesame.v1.common.VideoFormat[message.videoFormat] === void 0 ? message.videoFormat : $root.sesame.v1.common.VideoFormat[message.videoFormat] : message.videoFormat;
18384
19100
  if (message.keyAndFill != null && message.hasOwnProperty("keyAndFill"))
18385
19101
  object.keyAndFill = message.keyAndFill;
19102
+ if (message.timecodeMode != null && message.hasOwnProperty("timecodeMode"))
19103
+ 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;
19104
+ if (message.timecodeSourceId != null && message.hasOwnProperty("timecodeSourceId"))
19105
+ object.timecodeSourceId = message.timecodeSourceId;
18386
19106
  return object;
18387
19107
  };
18388
19108
  DecklinkOutputConfig.prototype.toJSON = function toJSON() {
@@ -20642,6 +21362,7 @@ var sesame = $root.sesame = (() => {
20642
21362
  EncoderStatus.prototype.state = 0;
20643
21363
  EncoderStatus.prototype.msg = null;
20644
21364
  EncoderStatus.prototype.compositionId = "";
21365
+ EncoderStatus.prototype.droppedFrames = 0;
20645
21366
  let $oneOfFields;
20646
21367
  Object.defineProperty(EncoderStatus.prototype, "_msg", {
20647
21368
  get: $util.oneOfGetter($oneOfFields = ["msg"]),
@@ -20678,6 +21399,11 @@ var sesame = $root.sesame = (() => {
20678
21399
  /* id 5, wireType 2 =*/
20679
21400
  42
20680
21401
  ).string(message.compositionId);
21402
+ if (message.droppedFrames != null && Object.hasOwnProperty.call(message, "droppedFrames"))
21403
+ writer.uint32(
21404
+ /* id 6, wireType 0 =*/
21405
+ 48
21406
+ ).uint32(message.droppedFrames);
20681
21407
  return writer;
20682
21408
  };
20683
21409
  EncoderStatus.encodeDelimited = function encodeDelimited(message, writer) {
@@ -20712,6 +21438,10 @@ var sesame = $root.sesame = (() => {
20712
21438
  message.compositionId = reader.string();
20713
21439
  break;
20714
21440
  }
21441
+ case 6: {
21442
+ message.droppedFrames = reader.uint32();
21443
+ break;
21444
+ }
20715
21445
  default:
20716
21446
  reader.skipType(tag & 7);
20717
21447
  break;
@@ -20762,6 +21492,10 @@ var sesame = $root.sesame = (() => {
20762
21492
  if (!$util.isString(message.compositionId))
20763
21493
  return "compositionId: string expected";
20764
21494
  }
21495
+ if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames")) {
21496
+ if (!$util.isInteger(message.droppedFrames))
21497
+ return "droppedFrames: integer expected";
21498
+ }
20765
21499
  return null;
20766
21500
  };
20767
21501
  EncoderStatus.fromObject = function fromObject(object) {
@@ -20826,6 +21560,8 @@ var sesame = $root.sesame = (() => {
20826
21560
  message.msg = String(object.msg);
20827
21561
  if (object.compositionId != null)
20828
21562
  message.compositionId = String(object.compositionId);
21563
+ if (object.droppedFrames != null)
21564
+ message.droppedFrames = object.droppedFrames >>> 0;
20829
21565
  return message;
20830
21566
  };
20831
21567
  EncoderStatus.toObject = function toObject(message, options) {
@@ -20837,6 +21573,7 @@ var sesame = $root.sesame = (() => {
20837
21573
  object.type = options.enums === String ? "ENCODER_TYPE_UNSPECIFIED" : 0;
20838
21574
  object.state = options.enums === String ? "CONNECTION_STATE_UNSPECIFIED" : 0;
20839
21575
  object.compositionId = "";
21576
+ object.droppedFrames = 0;
20840
21577
  }
20841
21578
  if (message.id != null && message.hasOwnProperty("id"))
20842
21579
  object.id = message.id;
@@ -20851,6 +21588,8 @@ var sesame = $root.sesame = (() => {
20851
21588
  }
20852
21589
  if (message.compositionId != null && message.hasOwnProperty("compositionId"))
20853
21590
  object.compositionId = message.compositionId;
21591
+ if (message.droppedFrames != null && message.hasOwnProperty("droppedFrames"))
21592
+ object.droppedFrames = message.droppedFrames;
20854
21593
  return object;
20855
21594
  };
20856
21595
  EncoderStatus.prototype.toJSON = function toJSON() {