Wes xx mediapipe integration

This commit is contained in:
Jelle De Geest
2023-03-12 20:34:16 +00:00
parent 8349b5f149
commit b11eeb465c
975 changed files with 192230 additions and 0 deletions

View File

@@ -0,0 +1,787 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/audio_decoder.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/audio_decoder.proto</summary>
public static partial class AudioDecoderReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/audio_decoder.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static AudioDecoderReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiJtZWRpYXBpcGUvdXRpbC9hdWRpb19kZWNvZGVyLnByb3RvEgltZWRpYXBp",
"cGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90byLBAQoS",
"QXVkaW9TdHJlYW1PcHRpb25zEhcKDHN0cmVhbV9pbmRleBgBIAEoAzoBMBIc",
"Cg1hbGxvd19taXNzaW5nGAIgASgIOgVmYWxzZRIlChZpZ25vcmVfZGVjb2Rl",
"X2ZhaWx1cmVzGAMgASgIOgVmYWxzZRIrChxvdXRwdXRfcmVncmVzc2luZ190",
"aW1lc3RhbXBzGAQgASgIOgVmYWxzZRIgChhjb3JyZWN0X3B0c19mb3Jfcm9s",
"bG92ZXIYBSABKAgivgEKE0F1ZGlvRGVjb2Rlck9wdGlvbnMSMwoMYXVkaW9f",
"c3RyZWFtGAEgAygLMh0ubWVkaWFwaXBlLkF1ZGlvU3RyZWFtT3B0aW9ucxIS",
"CgpzdGFydF90aW1lGAIgASgBEhAKCGVuZF90aW1lGAMgASgBMkwKA2V4dBIc",
"Lm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxiy78p9IAEoCzIeLm1lZGlh",
"cGlwZS5BdWRpb0RlY29kZXJPcHRpb25z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AudioStreamOptions), global::Mediapipe.AudioStreamOptions.Parser, new[]{ "StreamIndex", "AllowMissing", "IgnoreDecodeFailures", "OutputRegressingTimestamps", "CorrectPtsForRollover" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AudioDecoderOptions), global::Mediapipe.AudioDecoderOptions.Parser, new[]{ "AudioStream", "StartTime", "EndTime" }, null, null, new pb::Extension[] { global::Mediapipe.AudioDecoderOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class AudioStreamOptions : pb::IMessage<AudioStreamOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AudioStreamOptions> _parser = new pb::MessageParser<AudioStreamOptions>(() => new AudioStreamOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AudioStreamOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.AudioDecoderReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioStreamOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioStreamOptions(AudioStreamOptions other) : this() {
_hasBits0 = other._hasBits0;
streamIndex_ = other.streamIndex_;
allowMissing_ = other.allowMissing_;
ignoreDecodeFailures_ = other.ignoreDecodeFailures_;
outputRegressingTimestamps_ = other.outputRegressingTimestamps_;
correctPtsForRollover_ = other.correctPtsForRollover_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioStreamOptions Clone() {
return new AudioStreamOptions(this);
}
/// <summary>Field number for the "stream_index" field.</summary>
public const int StreamIndexFieldNumber = 1;
private readonly static long StreamIndexDefaultValue = 0L;
private long streamIndex_;
/// <summary>
/// The stream to decode. Stream indexes start from 0 (audio and video
/// are handled separately).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public long StreamIndex {
get { if ((_hasBits0 & 1) != 0) { return streamIndex_; } else { return StreamIndexDefaultValue; } }
set {
_hasBits0 |= 1;
streamIndex_ = value;
}
}
/// <summary>Gets whether the "stream_index" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasStreamIndex {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "stream_index" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearStreamIndex() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "allow_missing" field.</summary>
public const int AllowMissingFieldNumber = 2;
private readonly static bool AllowMissingDefaultValue = false;
private bool allowMissing_;
/// <summary>
/// Process the file despite this stream not being present.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool AllowMissing {
get { if ((_hasBits0 & 2) != 0) { return allowMissing_; } else { return AllowMissingDefaultValue; } }
set {
_hasBits0 |= 2;
allowMissing_ = value;
}
}
/// <summary>Gets whether the "allow_missing" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasAllowMissing {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "allow_missing" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearAllowMissing() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "ignore_decode_failures" field.</summary>
public const int IgnoreDecodeFailuresFieldNumber = 3;
private readonly static bool IgnoreDecodeFailuresDefaultValue = false;
private bool ignoreDecodeFailures_;
/// <summary>
/// If true, failures to decode a frame of data will be ignored.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool IgnoreDecodeFailures {
get { if ((_hasBits0 & 4) != 0) { return ignoreDecodeFailures_; } else { return IgnoreDecodeFailuresDefaultValue; } }
set {
_hasBits0 |= 4;
ignoreDecodeFailures_ = value;
}
}
/// <summary>Gets whether the "ignore_decode_failures" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasIgnoreDecodeFailures {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "ignore_decode_failures" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearIgnoreDecodeFailures() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "output_regressing_timestamps" field.</summary>
public const int OutputRegressingTimestampsFieldNumber = 4;
private readonly static bool OutputRegressingTimestampsDefaultValue = false;
private bool outputRegressingTimestamps_;
/// <summary>
/// Output packets with regressing timestamps. By default those packets are
/// dropped.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool OutputRegressingTimestamps {
get { if ((_hasBits0 & 8) != 0) { return outputRegressingTimestamps_; } else { return OutputRegressingTimestampsDefaultValue; } }
set {
_hasBits0 |= 8;
outputRegressingTimestamps_ = value;
}
}
/// <summary>Gets whether the "output_regressing_timestamps" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasOutputRegressingTimestamps {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "output_regressing_timestamps" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearOutputRegressingTimestamps() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "correct_pts_for_rollover" field.</summary>
public const int CorrectPtsForRolloverFieldNumber = 5;
private readonly static bool CorrectPtsForRolloverDefaultValue = false;
private bool correctPtsForRollover_;
/// <summary>
/// MPEG PTS timestamps roll over back to 0 after 26.5h. If this flag is set
/// we detect any rollover and continue incrementing timestamps past this
/// point. Set this flag if you want non-regressing timestamps for MPEG
/// content where the PTS may roll over.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool CorrectPtsForRollover {
get { if ((_hasBits0 & 16) != 0) { return correctPtsForRollover_; } else { return CorrectPtsForRolloverDefaultValue; } }
set {
_hasBits0 |= 16;
correctPtsForRollover_ = value;
}
}
/// <summary>Gets whether the "correct_pts_for_rollover" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasCorrectPtsForRollover {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "correct_pts_for_rollover" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearCorrectPtsForRollover() {
_hasBits0 &= ~16;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AudioStreamOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AudioStreamOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (StreamIndex != other.StreamIndex) return false;
if (AllowMissing != other.AllowMissing) return false;
if (IgnoreDecodeFailures != other.IgnoreDecodeFailures) return false;
if (OutputRegressingTimestamps != other.OutputRegressingTimestamps) return false;
if (CorrectPtsForRollover != other.CorrectPtsForRollover) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasStreamIndex) hash ^= StreamIndex.GetHashCode();
if (HasAllowMissing) hash ^= AllowMissing.GetHashCode();
if (HasIgnoreDecodeFailures) hash ^= IgnoreDecodeFailures.GetHashCode();
if (HasOutputRegressingTimestamps) hash ^= OutputRegressingTimestamps.GetHashCode();
if (HasCorrectPtsForRollover) hash ^= CorrectPtsForRollover.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasStreamIndex) {
output.WriteRawTag(8);
output.WriteInt64(StreamIndex);
}
if (HasAllowMissing) {
output.WriteRawTag(16);
output.WriteBool(AllowMissing);
}
if (HasIgnoreDecodeFailures) {
output.WriteRawTag(24);
output.WriteBool(IgnoreDecodeFailures);
}
if (HasOutputRegressingTimestamps) {
output.WriteRawTag(32);
output.WriteBool(OutputRegressingTimestamps);
}
if (HasCorrectPtsForRollover) {
output.WriteRawTag(40);
output.WriteBool(CorrectPtsForRollover);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasStreamIndex) {
output.WriteRawTag(8);
output.WriteInt64(StreamIndex);
}
if (HasAllowMissing) {
output.WriteRawTag(16);
output.WriteBool(AllowMissing);
}
if (HasIgnoreDecodeFailures) {
output.WriteRawTag(24);
output.WriteBool(IgnoreDecodeFailures);
}
if (HasOutputRegressingTimestamps) {
output.WriteRawTag(32);
output.WriteBool(OutputRegressingTimestamps);
}
if (HasCorrectPtsForRollover) {
output.WriteRawTag(40);
output.WriteBool(CorrectPtsForRollover);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasStreamIndex) {
size += 1 + pb::CodedOutputStream.ComputeInt64Size(StreamIndex);
}
if (HasAllowMissing) {
size += 1 + 1;
}
if (HasIgnoreDecodeFailures) {
size += 1 + 1;
}
if (HasOutputRegressingTimestamps) {
size += 1 + 1;
}
if (HasCorrectPtsForRollover) {
size += 1 + 1;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AudioStreamOptions other) {
if (other == null) {
return;
}
if (other.HasStreamIndex) {
StreamIndex = other.StreamIndex;
}
if (other.HasAllowMissing) {
AllowMissing = other.AllowMissing;
}
if (other.HasIgnoreDecodeFailures) {
IgnoreDecodeFailures = other.IgnoreDecodeFailures;
}
if (other.HasOutputRegressingTimestamps) {
OutputRegressingTimestamps = other.OutputRegressingTimestamps;
}
if (other.HasCorrectPtsForRollover) {
CorrectPtsForRollover = other.CorrectPtsForRollover;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
StreamIndex = input.ReadInt64();
break;
}
case 16: {
AllowMissing = input.ReadBool();
break;
}
case 24: {
IgnoreDecodeFailures = input.ReadBool();
break;
}
case 32: {
OutputRegressingTimestamps = input.ReadBool();
break;
}
case 40: {
CorrectPtsForRollover = input.ReadBool();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
StreamIndex = input.ReadInt64();
break;
}
case 16: {
AllowMissing = input.ReadBool();
break;
}
case 24: {
IgnoreDecodeFailures = input.ReadBool();
break;
}
case 32: {
OutputRegressingTimestamps = input.ReadBool();
break;
}
case 40: {
CorrectPtsForRollover = input.ReadBool();
break;
}
}
}
}
#endif
}
public sealed partial class AudioDecoderOptions : pb::IMessage<AudioDecoderOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<AudioDecoderOptions> _parser = new pb::MessageParser<AudioDecoderOptions>(() => new AudioDecoderOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<AudioDecoderOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.AudioDecoderReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioDecoderOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioDecoderOptions(AudioDecoderOptions other) : this() {
_hasBits0 = other._hasBits0;
audioStream_ = other.audioStream_.Clone();
startTime_ = other.startTime_;
endTime_ = other.endTime_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public AudioDecoderOptions Clone() {
return new AudioDecoderOptions(this);
}
/// <summary>Field number for the "audio_stream" field.</summary>
public const int AudioStreamFieldNumber = 1;
private static readonly pb::FieldCodec<global::Mediapipe.AudioStreamOptions> _repeated_audioStream_codec
= pb::FieldCodec.ForMessage(10, global::Mediapipe.AudioStreamOptions.Parser);
private readonly pbc::RepeatedField<global::Mediapipe.AudioStreamOptions> audioStream_ = new pbc::RepeatedField<global::Mediapipe.AudioStreamOptions>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<global::Mediapipe.AudioStreamOptions> AudioStream {
get { return audioStream_; }
}
/// <summary>Field number for the "start_time" field.</summary>
public const int StartTimeFieldNumber = 2;
private readonly static double StartTimeDefaultValue = 0D;
private double startTime_;
/// <summary>
/// The start time in seconds to decode.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double StartTime {
get { if ((_hasBits0 & 1) != 0) { return startTime_; } else { return StartTimeDefaultValue; } }
set {
_hasBits0 |= 1;
startTime_ = value;
}
}
/// <summary>Gets whether the "start_time" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasStartTime {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "start_time" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearStartTime() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "end_time" field.</summary>
public const int EndTimeFieldNumber = 3;
private readonly static double EndTimeDefaultValue = 0D;
private double endTime_;
/// <summary>
/// The end time in seconds to decode (inclusive).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double EndTime {
get { if ((_hasBits0 & 2) != 0) { return endTime_; } else { return EndTimeDefaultValue; } }
set {
_hasBits0 |= 2;
endTime_ = value;
}
}
/// <summary>Gets whether the "end_time" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasEndTime {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "end_time" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearEndTime() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as AudioDecoderOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(AudioDecoderOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if(!audioStream_.Equals(other.audioStream_)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(StartTime, other.StartTime)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(EndTime, other.EndTime)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= audioStream_.GetHashCode();
if (HasStartTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(StartTime);
if (HasEndTime) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(EndTime);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
audioStream_.WriteTo(output, _repeated_audioStream_codec);
if (HasStartTime) {
output.WriteRawTag(17);
output.WriteDouble(StartTime);
}
if (HasEndTime) {
output.WriteRawTag(25);
output.WriteDouble(EndTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
audioStream_.WriteTo(ref output, _repeated_audioStream_codec);
if (HasStartTime) {
output.WriteRawTag(17);
output.WriteDouble(StartTime);
}
if (HasEndTime) {
output.WriteRawTag(25);
output.WriteDouble(EndTime);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += audioStream_.CalculateSize(_repeated_audioStream_codec);
if (HasStartTime) {
size += 1 + 8;
}
if (HasEndTime) {
size += 1 + 8;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(AudioDecoderOptions other) {
if (other == null) {
return;
}
audioStream_.Add(other.audioStream_);
if (other.HasStartTime) {
StartTime = other.StartTime;
}
if (other.HasEndTime) {
EndTime = other.EndTime;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
audioStream_.AddEntriesFrom(input, _repeated_audioStream_codec);
break;
}
case 17: {
StartTime = input.ReadDouble();
break;
}
case 25: {
EndTime = input.ReadDouble();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
audioStream_.AddEntriesFrom(ref input, _repeated_audioStream_codec);
break;
}
case 17: {
StartTime = input.ReadDouble();
break;
}
case 25: {
EndTime = input.ReadDouble();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the AudioDecoderOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.AudioDecoderOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.AudioDecoderOptions>(263370674, pb::FieldCodec.ForMessage(2106965394, global::Mediapipe.AudioDecoderOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e0654a376b041dc5cb2e7c5f867e085c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0fdc5c49e2bf7c248872bd88c9a22aa4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 574c2b0f6cf41dd8398d16cd98ffcc78
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9621b31e7fed396e6b122e43490a234d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,539 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/color.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/color.proto</summary>
public static partial class ColorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/color.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ColorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"ChptZWRpYXBpcGUvdXRpbC9jb2xvci5wcm90bxIJbWVkaWFwaXBlIigKBUNv",
"bG9yEgkKAXIYASABKAUSCQoBZxgCIAEoBRIJCgFiGAMgASgFIpABCghDb2xv",
"ck1hcBI9Cg5sYWJlbF90b19jb2xvchgBIAMoCzIlLm1lZGlhcGlwZS5Db2xv",
"ck1hcC5MYWJlbFRvQ29sb3JFbnRyeRpFChFMYWJlbFRvQ29sb3JFbnRyeRIL",
"CgNrZXkYASABKAkSHwoFdmFsdWUYAiABKAsyEC5tZWRpYXBpcGUuQ29sb3I6",
"AjgB"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Color), global::Mediapipe.Color.Parser, new[]{ "R", "G", "B" }, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ColorMap), global::Mediapipe.ColorMap.Parser, new[]{ "LabelToColor" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { null, })
}));
}
#endregion
}
#region Messages
public sealed partial class Color : pb::IMessage<Color>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Color> _parser = new pb::MessageParser<Color>(() => new Color());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Color> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ColorReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Color() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Color(Color other) : this() {
_hasBits0 = other._hasBits0;
r_ = other.r_;
g_ = other.g_;
b_ = other.b_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Color Clone() {
return new Color(this);
}
/// <summary>Field number for the "r" field.</summary>
public const int RFieldNumber = 1;
private readonly static int RDefaultValue = 0;
private int r_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int R {
get { if ((_hasBits0 & 1) != 0) { return r_; } else { return RDefaultValue; } }
set {
_hasBits0 |= 1;
r_ = value;
}
}
/// <summary>Gets whether the "r" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasR {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "r" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearR() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "g" field.</summary>
public const int GFieldNumber = 2;
private readonly static int GDefaultValue = 0;
private int g_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int G {
get { if ((_hasBits0 & 2) != 0) { return g_; } else { return GDefaultValue; } }
set {
_hasBits0 |= 2;
g_ = value;
}
}
/// <summary>Gets whether the "g" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasG {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "g" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearG() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "b" field.</summary>
public const int BFieldNumber = 3;
private readonly static int BDefaultValue = 0;
private int b_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int B {
get { if ((_hasBits0 & 4) != 0) { return b_; } else { return BDefaultValue; } }
set {
_hasBits0 |= 4;
b_ = value;
}
}
/// <summary>Gets whether the "b" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasB {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "b" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearB() {
_hasBits0 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Color);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Color other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (R != other.R) return false;
if (G != other.G) return false;
if (B != other.B) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasR) hash ^= R.GetHashCode();
if (HasG) hash ^= G.GetHashCode();
if (HasB) hash ^= B.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasR) {
output.WriteRawTag(8);
output.WriteInt32(R);
}
if (HasG) {
output.WriteRawTag(16);
output.WriteInt32(G);
}
if (HasB) {
output.WriteRawTag(24);
output.WriteInt32(B);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasR) {
output.WriteRawTag(8);
output.WriteInt32(R);
}
if (HasG) {
output.WriteRawTag(16);
output.WriteInt32(G);
}
if (HasB) {
output.WriteRawTag(24);
output.WriteInt32(B);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasR) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(R);
}
if (HasG) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(G);
}
if (HasB) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(B);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Color other) {
if (other == null) {
return;
}
if (other.HasR) {
R = other.R;
}
if (other.HasG) {
G = other.G;
}
if (other.HasB) {
B = other.B;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 8: {
R = input.ReadInt32();
break;
}
case 16: {
G = input.ReadInt32();
break;
}
case 24: {
B = input.ReadInt32();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 8: {
R = input.ReadInt32();
break;
}
case 16: {
G = input.ReadInt32();
break;
}
case 24: {
B = input.ReadInt32();
break;
}
}
}
}
#endif
}
/// <summary>
/// Mapping from string label to a color.
/// </summary>
public sealed partial class ColorMap : pb::IMessage<ColorMap>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ColorMap> _parser = new pb::MessageParser<ColorMap>(() => new ColorMap());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ColorMap> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ColorReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ColorMap() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ColorMap(ColorMap other) : this() {
labelToColor_ = other.labelToColor_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ColorMap Clone() {
return new ColorMap(this);
}
/// <summary>Field number for the "label_to_color" field.</summary>
public const int LabelToColorFieldNumber = 1;
private static readonly pbc::MapField<string, global::Mediapipe.Color>.Codec _map_labelToColor_codec
= new pbc::MapField<string, global::Mediapipe.Color>.Codec(pb::FieldCodec.ForString(10, ""), pb::FieldCodec.ForMessage(18, global::Mediapipe.Color.Parser), 10);
private readonly pbc::MapField<string, global::Mediapipe.Color> labelToColor_ = new pbc::MapField<string, global::Mediapipe.Color>();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::MapField<string, global::Mediapipe.Color> LabelToColor {
get { return labelToColor_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ColorMap);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ColorMap other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!LabelToColor.Equals(other.LabelToColor)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
hash ^= LabelToColor.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
labelToColor_.WriteTo(output, _map_labelToColor_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
labelToColor_.WriteTo(ref output, _map_labelToColor_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
size += labelToColor_.CalculateSize(_map_labelToColor_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(ColorMap other) {
if (other == null) {
return;
}
labelToColor_.Add(other.labelToColor_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
labelToColor_.AddEntriesFrom(input, _map_labelToColor_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
labelToColor_.AddEntriesFrom(ref input, _map_labelToColor_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 12843ade4075fb5949f3170be8f1601f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: fc3a3160e73db796a98cbc0522750f19
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 803966a0911513dbdb3d2b3be6bc8e0a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,498 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/tracking/frame_selection_solution_evaluator.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/tracking/frame_selection_solution_evaluator.proto</summary>
public static partial class FrameSelectionSolutionEvaluatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/tracking/frame_selection_solution_evaluator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FrameSelectionSolutionEvaluatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkBtZWRpYXBpcGUvdXRpbC90cmFja2luZy9mcmFtZV9zZWxlY3Rpb25fc29s",
"dXRpb25fZXZhbHVhdG9yLnByb3RvEgltZWRpYXBpcGUiNAomRnJhbWVTZWxl",
"Y3Rpb25Tb2x1dGlvbkV2YWx1YXRvck9wdGlvbnMqCgignAEQgICAgAIingEK",
"I0ZyYW1lU2VsZWN0aW9uU29sdXRpb25FdmFsdWF0b3JUeXBlEjMKCmNsYXNz",
"X25hbWUYASABKAk6H0ZyYW1lU2VsZWN0aW9uU29sdXRpb25FdmFsdWF0b3IS",
"QgoHb3B0aW9ucxgCIAEoCzIxLm1lZGlhcGlwZS5GcmFtZVNlbGVjdGlvblNv",
"bHV0aW9uRXZhbHVhdG9yT3B0aW9ucw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FrameSelectionSolutionEvaluatorOptions), global::Mediapipe.FrameSelectionSolutionEvaluatorOptions.Parser, null, null, null, null, null),
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FrameSelectionSolutionEvaluatorType), global::Mediapipe.FrameSelectionSolutionEvaluatorType.Parser, new[]{ "ClassName", "Options" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class FrameSelectionSolutionEvaluatorOptions : pb::IExtendableMessage<FrameSelectionSolutionEvaluatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<FrameSelectionSolutionEvaluatorOptions> _parser = new pb::MessageParser<FrameSelectionSolutionEvaluatorOptions>(() => new FrameSelectionSolutionEvaluatorOptions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<FrameSelectionSolutionEvaluatorOptions> _extensions;
private pb::ExtensionSet<FrameSelectionSolutionEvaluatorOptions> _Extensions { get { return _extensions; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<FrameSelectionSolutionEvaluatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.FrameSelectionSolutionEvaluatorReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FrameSelectionSolutionEvaluatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FrameSelectionSolutionEvaluatorOptions(FrameSelectionSolutionEvaluatorOptions other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FrameSelectionSolutionEvaluatorOptions Clone() {
return new FrameSelectionSolutionEvaluatorOptions(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as FrameSelectionSolutionEvaluatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(FrameSelectionSolutionEvaluatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!Equals(_extensions, other._extensions)) {
return false;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (_extensions != null) {
hash ^= _extensions.GetHashCode();
}
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (_extensions != null) {
_extensions.WriteTo(output);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (_extensions != null) {
_extensions.WriteTo(ref output);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(FrameSelectionSolutionEvaluatorOptions other) {
if (other == null) {
return;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
break;
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<FrameSelectionSolutionEvaluatorOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<FrameSelectionSolutionEvaluatorOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<FrameSelectionSolutionEvaluatorOptions, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<FrameSelectionSolutionEvaluatorOptions, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<FrameSelectionSolutionEvaluatorOptions, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<FrameSelectionSolutionEvaluatorOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<FrameSelectionSolutionEvaluatorOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
public sealed partial class FrameSelectionSolutionEvaluatorType : pb::IMessage<FrameSelectionSolutionEvaluatorType>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<FrameSelectionSolutionEvaluatorType> _parser = new pb::MessageParser<FrameSelectionSolutionEvaluatorType>(() => new FrameSelectionSolutionEvaluatorType());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<FrameSelectionSolutionEvaluatorType> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.FrameSelectionSolutionEvaluatorReflection.Descriptor.MessageTypes[1]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FrameSelectionSolutionEvaluatorType() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FrameSelectionSolutionEvaluatorType(FrameSelectionSolutionEvaluatorType other) : this() {
className_ = other.className_;
options_ = other.options_ != null ? other.options_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FrameSelectionSolutionEvaluatorType Clone() {
return new FrameSelectionSolutionEvaluatorType(this);
}
/// <summary>Field number for the "class_name" field.</summary>
public const int ClassNameFieldNumber = 1;
private readonly static string ClassNameDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("RnJhbWVTZWxlY3Rpb25Tb2x1dGlvbkV2YWx1YXRvcg=="), 0, 31);
private string className_;
/// <summary>
/// Class of type FrameSelectionSolution that computes the best row.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string ClassName {
get { return className_ ?? ClassNameDefaultValue; }
set {
className_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "class_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasClassName {
get { return className_ != null; }
}
/// <summary>Clears the value of the "class_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearClassName() {
className_ = null;
}
/// <summary>Field number for the "options" field.</summary>
public const int OptionsFieldNumber = 2;
private global::Mediapipe.FrameSelectionSolutionEvaluatorOptions options_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.FrameSelectionSolutionEvaluatorOptions Options {
get { return options_; }
set {
options_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as FrameSelectionSolutionEvaluatorType);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(FrameSelectionSolutionEvaluatorType other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (ClassName != other.ClassName) return false;
if (!object.Equals(Options, other.Options)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasClassName) hash ^= ClassName.GetHashCode();
if (options_ != null) hash ^= Options.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasClassName) {
output.WriteRawTag(10);
output.WriteString(ClassName);
}
if (options_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Options);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasClassName) {
output.WriteRawTag(10);
output.WriteString(ClassName);
}
if (options_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Options);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasClassName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(ClassName);
}
if (options_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Options);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(FrameSelectionSolutionEvaluatorType other) {
if (other == null) {
return;
}
if (other.HasClassName) {
ClassName = other.ClassName;
}
if (other.options_ != null) {
if (options_ == null) {
Options = new global::Mediapipe.FrameSelectionSolutionEvaluatorOptions();
}
Options.MergeFrom(other.Options);
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
ClassName = input.ReadString();
break;
}
case 18: {
if (options_ == null) {
Options = new global::Mediapipe.FrameSelectionSolutionEvaluatorOptions();
}
input.ReadMessage(Options);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
ClassName = input.ReadString();
break;
}
case 18: {
if (options_ == null) {
Options = new global::Mediapipe.FrameSelectionSolutionEvaluatorOptions();
}
input.ReadMessage(Options);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8a2f82e9de1c6a9af96caac8fdfdffa6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,342 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/label_map.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/label_map.proto</summary>
public static partial class LabelMapReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/label_map.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static LabelMapReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch5tZWRpYXBpcGUvdXRpbC9sYWJlbF9tYXAucHJvdG8SCW1lZGlhcGlwZSJG",
"CgxMYWJlbE1hcEl0ZW0SDAoEbmFtZRgBIAEoCRIUCgxkaXNwbGF5X25hbWUY",
"AiABKAkSEgoKY2hpbGRfbmFtZRgDIAMoCQ=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.LabelMapItem), global::Mediapipe.LabelMapItem.Parser, new[]{ "Name", "DisplayName", "ChildName" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Mapping a numerical class index output to a Knowledge Graph entity
/// ID or any other string label representing this class. Optionally it is
/// possible to specify an additional display name (in a given language) which is
/// typically used for display purposes.
/// </summary>
public sealed partial class LabelMapItem : pb::IMessage<LabelMapItem>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<LabelMapItem> _parser = new pb::MessageParser<LabelMapItem>(() => new LabelMapItem());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<LabelMapItem> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.LabelMapReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LabelMapItem() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LabelMapItem(LabelMapItem other) : this() {
name_ = other.name_;
displayName_ = other.displayName_;
childName_ = other.childName_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public LabelMapItem Clone() {
return new LabelMapItem(this);
}
/// <summary>Field number for the "name" field.</summary>
public const int NameFieldNumber = 1;
private readonly static string NameDefaultValue = "";
private string name_;
/// <summary>
/// Label name.
/// E.g. name = "/m/02xwb"
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Name {
get { return name_ ?? NameDefaultValue; }
set {
name_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasName {
get { return name_ != null; }
}
/// <summary>Clears the value of the "name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearName() {
name_ = null;
}
/// <summary>Field number for the "display_name" field.</summary>
public const int DisplayNameFieldNumber = 2;
private readonly static string DisplayNameDefaultValue = "";
private string displayName_;
/// <summary>
/// Display name.
/// E.g. display_name = "Fruit"
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string DisplayName {
get { return displayName_ ?? DisplayNameDefaultValue; }
set {
displayName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "display_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDisplayName {
get { return displayName_ != null; }
}
/// <summary>Clears the value of the "display_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDisplayName() {
displayName_ = null;
}
/// <summary>Field number for the "child_name" field.</summary>
public const int ChildNameFieldNumber = 3;
private static readonly pb::FieldCodec<string> _repeated_childName_codec
= pb::FieldCodec.ForString(26);
private readonly pbc::RepeatedField<string> childName_ = new pbc::RepeatedField<string>();
/// <summary>
/// Optional list of children (e.g. subcategories) used to represent a
/// hierarchy.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> ChildName {
get { return childName_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as LabelMapItem);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(LabelMapItem other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Name != other.Name) return false;
if (DisplayName != other.DisplayName) return false;
if(!childName_.Equals(other.childName_)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasName) hash ^= Name.GetHashCode();
if (HasDisplayName) hash ^= DisplayName.GetHashCode();
hash ^= childName_.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasName) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (HasDisplayName) {
output.WriteRawTag(18);
output.WriteString(DisplayName);
}
childName_.WriteTo(output, _repeated_childName_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasName) {
output.WriteRawTag(10);
output.WriteString(Name);
}
if (HasDisplayName) {
output.WriteRawTag(18);
output.WriteString(DisplayName);
}
childName_.WriteTo(ref output, _repeated_childName_codec);
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Name);
}
if (HasDisplayName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
}
size += childName_.CalculateSize(_repeated_childName_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(LabelMapItem other) {
if (other == null) {
return;
}
if (other.HasName) {
Name = other.Name;
}
if (other.HasDisplayName) {
DisplayName = other.DisplayName;
}
childName_.Add(other.childName_);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 10: {
Name = input.ReadString();
break;
}
case 18: {
DisplayName = input.ReadString();
break;
}
case 26: {
childName_.AddEntriesFrom(input, _repeated_childName_codec);
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 10: {
Name = input.ReadString();
break;
}
case 18: {
DisplayName = input.ReadString();
break;
}
case 26: {
childName_.AddEntriesFrom(ref input, _repeated_childName_codec);
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3ba80c98bd33fbabd8c5d441c95fe506
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a9ddb93bdabcdac299e69e6fcb65c726
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 460266f068274dd438044f0f7112db07
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 46a46ee4c714840aea9fee2fdfbc2cb6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b891b0717b9faa5f5a948007a79f8ed0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,521 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/tracking/push_pull_filtering.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/tracking/push_pull_filtering.proto</summary>
public static partial class PushPullFilteringReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/tracking/push_pull_filtering.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static PushPullFilteringReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjFtZWRpYXBpcGUvdXRpbC90cmFja2luZy9wdXNoX3B1bGxfZmlsdGVyaW5n",
"LnByb3RvEgltZWRpYXBpcGUiwAEKD1B1c2hQdWxsT3B0aW9ucxIbCg9iaWxh",
"dGVyYWxfc2lnbWEYASABKAI6AjIwEiEKFnB1bGxfcHJvcGFnYXRpb25fc2Nh",
"bGUYAyABKAI6ATgSIQoWcHVzaF9wcm9wYWdhdGlvbl9zY2FsZRgEIAEoAjoB",
"OBIhChRwdWxsX2JpbGF0ZXJhbF9zY2FsZRgFIAEoAjoDMC43EiEKFHB1c2hf",
"YmlsYXRlcmFsX3NjYWxlGAYgASgCOgMwLjkqBAgCEAM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.PushPullOptions), global::Mediapipe.PushPullOptions.Parser, new[]{ "BilateralSigma", "PullPropagationScale", "PushPropagationScale", "PullBilateralScale", "PushBilateralScale" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class PushPullOptions : pb::IExtendableMessage<PushPullOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<PushPullOptions> _parser = new pb::MessageParser<PushPullOptions>(() => new PushPullOptions());
private pb::UnknownFieldSet _unknownFields;
private pb::ExtensionSet<PushPullOptions> _extensions;
private pb::ExtensionSet<PushPullOptions> _Extensions { get { return _extensions; } }
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<PushPullOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.PushPullFilteringReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PushPullOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PushPullOptions(PushPullOptions other) : this() {
_hasBits0 = other._hasBits0;
bilateralSigma_ = other.bilateralSigma_;
pullPropagationScale_ = other.pullPropagationScale_;
pushPropagationScale_ = other.pushPropagationScale_;
pullBilateralScale_ = other.pullBilateralScale_;
pushBilateralScale_ = other.pushBilateralScale_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
_extensions = pb::ExtensionSet.Clone(other._extensions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public PushPullOptions Clone() {
return new PushPullOptions(this);
}
/// <summary>Field number for the "bilateral_sigma" field.</summary>
public const int BilateralSigmaFieldNumber = 1;
private readonly static float BilateralSigmaDefaultValue = 20F;
private float bilateralSigma_;
/// <summary>
/// Sigma for color difference.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float BilateralSigma {
get { if ((_hasBits0 & 1) != 0) { return bilateralSigma_; } else { return BilateralSigmaDefaultValue; } }
set {
_hasBits0 |= 1;
bilateralSigma_ = value;
}
}
/// <summary>Gets whether the "bilateral_sigma" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasBilateralSigma {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "bilateral_sigma" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearBilateralSigma() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "pull_propagation_scale" field.</summary>
public const int PullPropagationScaleFieldNumber = 3;
private readonly static float PullPropagationScaleDefaultValue = 8F;
private float pullPropagationScale_;
/// <summary>
/// Determines how fast confident values can propagate. Filters are normalized,
/// such that confidence dissipates quickly instead of propagating.
/// To ensure confidence propagates the importance weight is scaled by the
/// scalars specified below. Larger values yield quicker propagation.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float PullPropagationScale {
get { if ((_hasBits0 & 2) != 0) { return pullPropagationScale_; } else { return PullPropagationScaleDefaultValue; } }
set {
_hasBits0 |= 2;
pullPropagationScale_ = value;
}
}
/// <summary>Gets whether the "pull_propagation_scale" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPullPropagationScale {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "pull_propagation_scale" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPullPropagationScale() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "push_propagation_scale" field.</summary>
public const int PushPropagationScaleFieldNumber = 4;
private readonly static float PushPropagationScaleDefaultValue = 8F;
private float pushPropagationScale_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float PushPropagationScale {
get { if ((_hasBits0 & 4) != 0) { return pushPropagationScale_; } else { return PushPropagationScaleDefaultValue; } }
set {
_hasBits0 |= 4;
pushPropagationScale_ = value;
}
}
/// <summary>Gets whether the "push_propagation_scale" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPushPropagationScale {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "push_propagation_scale" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPushPropagationScale() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "pull_bilateral_scale" field.</summary>
public const int PullBilateralScaleFieldNumber = 5;
private readonly static float PullBilateralScaleDefaultValue = 0.7F;
private float pullBilateralScale_;
/// <summary>
/// Above bilateral sigma is scaled at each level by the specified scale
/// (for push and pull phase). This is due to iterative downsampling of the
/// guidance image introduces errors making bilateral weighting increasingly
/// errorneous.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float PullBilateralScale {
get { if ((_hasBits0 & 8) != 0) { return pullBilateralScale_; } else { return PullBilateralScaleDefaultValue; } }
set {
_hasBits0 |= 8;
pullBilateralScale_ = value;
}
}
/// <summary>Gets whether the "pull_bilateral_scale" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPullBilateralScale {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "pull_bilateral_scale" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPullBilateralScale() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "push_bilateral_scale" field.</summary>
public const int PushBilateralScaleFieldNumber = 6;
private readonly static float PushBilateralScaleDefaultValue = 0.9F;
private float pushBilateralScale_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float PushBilateralScale {
get { if ((_hasBits0 & 16) != 0) { return pushBilateralScale_; } else { return PushBilateralScaleDefaultValue; } }
set {
_hasBits0 |= 16;
pushBilateralScale_ = value;
}
}
/// <summary>Gets whether the "push_bilateral_scale" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasPushBilateralScale {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "push_bilateral_scale" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearPushBilateralScale() {
_hasBits0 &= ~16;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as PushPullOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(PushPullOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(BilateralSigma, other.BilateralSigma)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PullPropagationScale, other.PullPropagationScale)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PushPropagationScale, other.PushPropagationScale)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PullBilateralScale, other.PullBilateralScale)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(PushBilateralScale, other.PushBilateralScale)) return false;
if (!Equals(_extensions, other._extensions)) {
return false;
}
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasBilateralSigma) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(BilateralSigma);
if (HasPullPropagationScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PullPropagationScale);
if (HasPushPropagationScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PushPropagationScale);
if (HasPullBilateralScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PullBilateralScale);
if (HasPushBilateralScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(PushBilateralScale);
if (_extensions != null) {
hash ^= _extensions.GetHashCode();
}
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasBilateralSigma) {
output.WriteRawTag(13);
output.WriteFloat(BilateralSigma);
}
if (HasPullPropagationScale) {
output.WriteRawTag(29);
output.WriteFloat(PullPropagationScale);
}
if (HasPushPropagationScale) {
output.WriteRawTag(37);
output.WriteFloat(PushPropagationScale);
}
if (HasPullBilateralScale) {
output.WriteRawTag(45);
output.WriteFloat(PullBilateralScale);
}
if (HasPushBilateralScale) {
output.WriteRawTag(53);
output.WriteFloat(PushBilateralScale);
}
if (_extensions != null) {
_extensions.WriteTo(output);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasBilateralSigma) {
output.WriteRawTag(13);
output.WriteFloat(BilateralSigma);
}
if (HasPullPropagationScale) {
output.WriteRawTag(29);
output.WriteFloat(PullPropagationScale);
}
if (HasPushPropagationScale) {
output.WriteRawTag(37);
output.WriteFloat(PushPropagationScale);
}
if (HasPullBilateralScale) {
output.WriteRawTag(45);
output.WriteFloat(PullBilateralScale);
}
if (HasPushBilateralScale) {
output.WriteRawTag(53);
output.WriteFloat(PushBilateralScale);
}
if (_extensions != null) {
_extensions.WriteTo(ref output);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasBilateralSigma) {
size += 1 + 4;
}
if (HasPullPropagationScale) {
size += 1 + 4;
}
if (HasPushPropagationScale) {
size += 1 + 4;
}
if (HasPullBilateralScale) {
size += 1 + 4;
}
if (HasPushBilateralScale) {
size += 1 + 4;
}
if (_extensions != null) {
size += _extensions.CalculateSize();
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(PushPullOptions other) {
if (other == null) {
return;
}
if (other.HasBilateralSigma) {
BilateralSigma = other.BilateralSigma;
}
if (other.HasPullPropagationScale) {
PullPropagationScale = other.PullPropagationScale;
}
if (other.HasPushPropagationScale) {
PushPropagationScale = other.PushPropagationScale;
}
if (other.HasPullBilateralScale) {
PullBilateralScale = other.PullBilateralScale;
}
if (other.HasPushBilateralScale) {
PushBilateralScale = other.PushBilateralScale;
}
pb::ExtensionSet.MergeFrom(ref _extensions, other._extensions);
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
}
break;
case 13: {
BilateralSigma = input.ReadFloat();
break;
}
case 29: {
PullPropagationScale = input.ReadFloat();
break;
}
case 37: {
PushPropagationScale = input.ReadFloat();
break;
}
case 45: {
PullBilateralScale = input.ReadFloat();
break;
}
case 53: {
PushBilateralScale = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
}
break;
case 13: {
BilateralSigma = input.ReadFloat();
break;
}
case 29: {
PullPropagationScale = input.ReadFloat();
break;
}
case 37: {
PushPropagationScale = input.ReadFloat();
break;
}
case 45: {
PullBilateralScale = input.ReadFloat();
break;
}
case 53: {
PushBilateralScale = input.ReadFloat();
break;
}
}
}
}
#endif
public TValue GetExtension<TValue>(pb::Extension<PushPullOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<PushPullOptions, TValue> extension) {
return pb::ExtensionSet.Get(ref _extensions, extension);
}
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<PushPullOptions, TValue> extension) {
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
}
public void SetExtension<TValue>(pb::Extension<PushPullOptions, TValue> extension, TValue value) {
pb::ExtensionSet.Set(ref _extensions, extension, value);
}
public bool HasExtension<TValue>(pb::Extension<PushPullOptions, TValue> extension) {
return pb::ExtensionSet.Has(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::Extension<PushPullOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
public void ClearExtension<TValue>(pb::RepeatedExtension<PushPullOptions, TValue> extension) {
pb::ExtensionSet.Clear(ref _extensions, extension);
}
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d0e706247b055a0e7a862d2de687bb89
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 26dea69d01e3083179df0525b778b611
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9c974ef9b94a68d89ba49e8500e44f51
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6475269ad8c98711994a2d30d2e61e4b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 097c28f091eabcad5bb2fac4b84b083f
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c23572ae7139b1d628be8d85e782a0ea
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,314 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/util/tracking/tracked_detection_manager_config.proto
// </auto-generated>
#pragma warning disable 1591, 0612, 3021
#region Designer generated code
using pb = global::Google.Protobuf;
using pbc = global::Google.Protobuf.Collections;
using pbr = global::Google.Protobuf.Reflection;
using scg = global::System.Collections.Generic;
namespace Mediapipe {
/// <summary>Holder for reflection information generated from mediapipe/util/tracking/tracked_detection_manager_config.proto</summary>
public static partial class TrackedDetectionManagerConfigReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/util/tracking/tracked_detection_manager_config.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static TrackedDetectionManagerConfigReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cj5tZWRpYXBpcGUvdXRpbC90cmFja2luZy90cmFja2VkX2RldGVjdGlvbl9t",
"YW5hZ2VyX2NvbmZpZy5wcm90bxIJbWVkaWFwaXBlIn4KHVRyYWNrZWREZXRl",
"Y3Rpb25NYW5hZ2VyQ29uZmlnEisKIGlzX3NhbWVfZGV0ZWN0aW9uX21heF9h",
"cmVhX3JhdGlvGAEgASgCOgEzEjAKI2lzX3NhbWVfZGV0ZWN0aW9uX21pbl9v",
"dmVybGFwX3JhdGlvGAIgASgCOgMwLjU="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TrackedDetectionManagerConfig), global::Mediapipe.TrackedDetectionManagerConfig.Parser, new[]{ "IsSameDetectionMaxAreaRatio", "IsSameDetectionMinOverlapRatio" }, null, null, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class TrackedDetectionManagerConfig : pb::IMessage<TrackedDetectionManagerConfig>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<TrackedDetectionManagerConfig> _parser = new pb::MessageParser<TrackedDetectionManagerConfig>(() => new TrackedDetectionManagerConfig());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<TrackedDetectionManagerConfig> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.TrackedDetectionManagerConfigReflection.Descriptor.MessageTypes[0]; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
pbr::MessageDescriptor pb::IMessage.Descriptor {
get { return Descriptor; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TrackedDetectionManagerConfig() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TrackedDetectionManagerConfig(TrackedDetectionManagerConfig other) : this() {
_hasBits0 = other._hasBits0;
isSameDetectionMaxAreaRatio_ = other.isSameDetectionMaxAreaRatio_;
isSameDetectionMinOverlapRatio_ = other.isSameDetectionMinOverlapRatio_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TrackedDetectionManagerConfig Clone() {
return new TrackedDetectionManagerConfig(this);
}
/// <summary>Field number for the "is_same_detection_max_area_ratio" field.</summary>
public const int IsSameDetectionMaxAreaRatioFieldNumber = 1;
private readonly static float IsSameDetectionMaxAreaRatioDefaultValue = 3F;
private float isSameDetectionMaxAreaRatio_;
/// <summary>
/// When we compare two detection boxes, if the ratio of the area is
/// larger than is_same_detection_max_area_ratio, we consider them being
/// different detections.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float IsSameDetectionMaxAreaRatio {
get { if ((_hasBits0 & 1) != 0) { return isSameDetectionMaxAreaRatio_; } else { return IsSameDetectionMaxAreaRatioDefaultValue; } }
set {
_hasBits0 |= 1;
isSameDetectionMaxAreaRatio_ = value;
}
}
/// <summary>Gets whether the "is_same_detection_max_area_ratio" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasIsSameDetectionMaxAreaRatio {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "is_same_detection_max_area_ratio" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearIsSameDetectionMaxAreaRatio() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "is_same_detection_min_overlap_ratio" field.</summary>
public const int IsSameDetectionMinOverlapRatioFieldNumber = 2;
private readonly static float IsSameDetectionMinOverlapRatioDefaultValue = 0.5F;
private float isSameDetectionMinOverlapRatio_;
/// <summary>
/// When we compare two detection boxes, if the overlap ratio is larger
/// than is_same_detection_min_overlap_ratio, we consider them being
/// same detection.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float IsSameDetectionMinOverlapRatio {
get { if ((_hasBits0 & 2) != 0) { return isSameDetectionMinOverlapRatio_; } else { return IsSameDetectionMinOverlapRatioDefaultValue; } }
set {
_hasBits0 |= 2;
isSameDetectionMinOverlapRatio_ = value;
}
}
/// <summary>Gets whether the "is_same_detection_min_overlap_ratio" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasIsSameDetectionMinOverlapRatio {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "is_same_detection_min_overlap_ratio" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearIsSameDetectionMinOverlapRatio() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as TrackedDetectionManagerConfig);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(TrackedDetectionManagerConfig other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(IsSameDetectionMaxAreaRatio, other.IsSameDetectionMaxAreaRatio)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(IsSameDetectionMinOverlapRatio, other.IsSameDetectionMinOverlapRatio)) return false;
return Equals(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override int GetHashCode() {
int hash = 1;
if (HasIsSameDetectionMaxAreaRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(IsSameDetectionMaxAreaRatio);
if (HasIsSameDetectionMinOverlapRatio) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(IsSameDetectionMinOverlapRatio);
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override string ToString() {
return pb::JsonFormatter.ToDiagnosticString(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void WriteTo(pb::CodedOutputStream output) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
output.WriteRawMessage(this);
#else
if (HasIsSameDetectionMaxAreaRatio) {
output.WriteRawTag(13);
output.WriteFloat(IsSameDetectionMaxAreaRatio);
}
if (HasIsSameDetectionMinOverlapRatio) {
output.WriteRawTag(21);
output.WriteFloat(IsSameDetectionMinOverlapRatio);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(output);
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
if (HasIsSameDetectionMaxAreaRatio) {
output.WriteRawTag(13);
output.WriteFloat(IsSameDetectionMaxAreaRatio);
}
if (HasIsSameDetectionMinOverlapRatio) {
output.WriteRawTag(21);
output.WriteFloat(IsSameDetectionMinOverlapRatio);
}
if (_unknownFields != null) {
_unknownFields.WriteTo(ref output);
}
}
#endif
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CalculateSize() {
int size = 0;
if (HasIsSameDetectionMaxAreaRatio) {
size += 1 + 4;
}
if (HasIsSameDetectionMinOverlapRatio) {
size += 1 + 4;
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(TrackedDetectionManagerConfig other) {
if (other == null) {
return;
}
if (other.HasIsSameDetectionMaxAreaRatio) {
IsSameDetectionMaxAreaRatio = other.IsSameDetectionMaxAreaRatio;
}
if (other.HasIsSameDetectionMinOverlapRatio) {
IsSameDetectionMinOverlapRatio = other.IsSameDetectionMinOverlapRatio;
}
_unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(pb::CodedInputStream input) {
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
input.ReadRawMessage(this);
#else
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
break;
case 13: {
IsSameDetectionMaxAreaRatio = input.ReadFloat();
break;
}
case 21: {
IsSameDetectionMinOverlapRatio = input.ReadFloat();
break;
}
}
}
#endif
}
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
uint tag;
while ((tag = input.ReadTag()) != 0) {
switch(tag) {
default:
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
break;
case 13: {
IsSameDetectionMaxAreaRatio = input.ReadFloat();
break;
}
case 21: {
IsSameDetectionMinOverlapRatio = input.ReadFloat();
break;
}
}
}
}
#endif
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 0a0b46e7057165fc38579405ceeefffa
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 30aa544fc4fc6db88905e209f7446f0c
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: