Wes xx mediapipe integration
This commit is contained in:
@@ -0,0 +1,659 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/affine_transform_data.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/framework/formats/affine_transform_data.proto</summary>
|
||||
public static partial class AffineTransformDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/affine_transform_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AffineTransformDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjdtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvYWZmaW5lX3RyYW5zZm9y",
|
||||
"bV9kYXRhLnByb3RvEgltZWRpYXBpcGUiIwoLVmVjdG9yMkRhdGESCQoBeBgB",
|
||||
"IAEoAhIJCgF5GAIgASgCIqIBChNBZmZpbmVUcmFuc2Zvcm1EYXRhEisKC3Ry",
|
||||
"YW5zbGF0aW9uGAEgASgLMhYubWVkaWFwaXBlLlZlY3RvcjJEYXRhEiUKBXNj",
|
||||
"YWxlGAIgASgLMhYubWVkaWFwaXBlLlZlY3RvcjJEYXRhEiUKBXNoZWFyGAMg",
|
||||
"ASgLMhYubWVkaWFwaXBlLlZlY3RvcjJEYXRhEhAKCHJvdGF0aW9uGAQgASgC"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Vector2Data), global::Mediapipe.Vector2Data.Parser, new[]{ "X", "Y" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.AffineTransformData), global::Mediapipe.AffineTransformData.Parser, new[]{ "Translation", "Scale", "Shear", "Rotation" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Proto for serializing Vector2 data
|
||||
/// </summary>
|
||||
public sealed partial class Vector2Data : pb::IMessage<Vector2Data>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Vector2Data> _parser = new pb::MessageParser<Vector2Data>(() => new Vector2Data());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Vector2Data> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.AffineTransformDataReflection.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 Vector2Data() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Vector2Data(Vector2Data other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
x_ = other.x_;
|
||||
y_ = other.y_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Vector2Data Clone() {
|
||||
return new Vector2Data(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "x" field.</summary>
|
||||
public const int XFieldNumber = 1;
|
||||
private readonly static float XDefaultValue = 0F;
|
||||
|
||||
private float x_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float X {
|
||||
get { if ((_hasBits0 & 1) != 0) { return x_; } else { return XDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
x_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasX {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearX() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "y" field.</summary>
|
||||
public const int YFieldNumber = 2;
|
||||
private readonly static float YDefaultValue = 0F;
|
||||
|
||||
private float y_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Y {
|
||||
get { if ((_hasBits0 & 2) != 0) { return y_; } else { return YDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
y_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasY {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearY() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Vector2Data);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Vector2Data other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(X, other.X)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Y, other.Y)) 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 (HasX) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(X);
|
||||
if (HasY) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Y);
|
||||
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 (HasX) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(X);
|
||||
}
|
||||
if (HasY) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Y);
|
||||
}
|
||||
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 (HasX) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(X);
|
||||
}
|
||||
if (HasY) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Y);
|
||||
}
|
||||
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 (HasX) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasY) {
|
||||
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(Vector2Data other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasX) {
|
||||
X = other.X;
|
||||
}
|
||||
if (other.HasY) {
|
||||
Y = other.Y;
|
||||
}
|
||||
_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: {
|
||||
X = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Y = 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: {
|
||||
X = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Y = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Proto for serializing Affine Transform data.
|
||||
/// </summary>
|
||||
public sealed partial class AffineTransformData : pb::IMessage<AffineTransformData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<AffineTransformData> _parser = new pb::MessageParser<AffineTransformData>(() => new AffineTransformData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<AffineTransformData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.AffineTransformDataReflection.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 AffineTransformData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AffineTransformData(AffineTransformData other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
translation_ = other.translation_ != null ? other.translation_.Clone() : null;
|
||||
scale_ = other.scale_ != null ? other.scale_.Clone() : null;
|
||||
shear_ = other.shear_ != null ? other.shear_.Clone() : null;
|
||||
rotation_ = other.rotation_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public AffineTransformData Clone() {
|
||||
return new AffineTransformData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "translation" field.</summary>
|
||||
public const int TranslationFieldNumber = 1;
|
||||
private global::Mediapipe.Vector2Data translation_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Vector2Data Translation {
|
||||
get { return translation_; }
|
||||
set {
|
||||
translation_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "scale" field.</summary>
|
||||
public const int ScaleFieldNumber = 2;
|
||||
private global::Mediapipe.Vector2Data scale_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Vector2Data Scale {
|
||||
get { return scale_; }
|
||||
set {
|
||||
scale_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "shear" field.</summary>
|
||||
public const int ShearFieldNumber = 3;
|
||||
private global::Mediapipe.Vector2Data shear_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.Vector2Data Shear {
|
||||
get { return shear_; }
|
||||
set {
|
||||
shear_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rotation" field.</summary>
|
||||
public const int RotationFieldNumber = 4;
|
||||
private readonly static float RotationDefaultValue = 0F;
|
||||
|
||||
private float rotation_;
|
||||
/// <summary>
|
||||
/// in radians
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Rotation {
|
||||
get { if ((_hasBits0 & 1) != 0) { return rotation_; } else { return RotationDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
rotation_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rotation" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRotation {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rotation" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRotation() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as AffineTransformData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(AffineTransformData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(Translation, other.Translation)) return false;
|
||||
if (!object.Equals(Scale, other.Scale)) return false;
|
||||
if (!object.Equals(Shear, other.Shear)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Rotation, other.Rotation)) 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 (translation_ != null) hash ^= Translation.GetHashCode();
|
||||
if (scale_ != null) hash ^= Scale.GetHashCode();
|
||||
if (shear_ != null) hash ^= Shear.GetHashCode();
|
||||
if (HasRotation) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Rotation);
|
||||
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 (translation_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Translation);
|
||||
}
|
||||
if (scale_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Scale);
|
||||
}
|
||||
if (shear_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(Shear);
|
||||
}
|
||||
if (HasRotation) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(Rotation);
|
||||
}
|
||||
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 (translation_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(Translation);
|
||||
}
|
||||
if (scale_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(Scale);
|
||||
}
|
||||
if (shear_ != null) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteMessage(Shear);
|
||||
}
|
||||
if (HasRotation) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(Rotation);
|
||||
}
|
||||
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 (translation_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Translation);
|
||||
}
|
||||
if (scale_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Scale);
|
||||
}
|
||||
if (shear_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Shear);
|
||||
}
|
||||
if (HasRotation) {
|
||||
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(AffineTransformData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.translation_ != null) {
|
||||
if (translation_ == null) {
|
||||
Translation = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
Translation.MergeFrom(other.Translation);
|
||||
}
|
||||
if (other.scale_ != null) {
|
||||
if (scale_ == null) {
|
||||
Scale = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
Scale.MergeFrom(other.Scale);
|
||||
}
|
||||
if (other.shear_ != null) {
|
||||
if (shear_ == null) {
|
||||
Shear = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
Shear.MergeFrom(other.Shear);
|
||||
}
|
||||
if (other.HasRotation) {
|
||||
Rotation = other.Rotation;
|
||||
}
|
||||
_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: {
|
||||
if (translation_ == null) {
|
||||
Translation = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
input.ReadMessage(Translation);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (scale_ == null) {
|
||||
Scale = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
input.ReadMessage(Scale);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (shear_ == null) {
|
||||
Shear = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
input.ReadMessage(Shear);
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
Rotation = 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 10: {
|
||||
if (translation_ == null) {
|
||||
Translation = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
input.ReadMessage(Translation);
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (scale_ == null) {
|
||||
Scale = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
input.ReadMessage(Scale);
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
if (shear_ == null) {
|
||||
Shear = new global::Mediapipe.Vector2Data();
|
||||
}
|
||||
input.ReadMessage(Shear);
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
Rotation = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 881600dc6afee0d00a3573e5f1c82935
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3460eef1722d0874fb83e5914ce68f34
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0ce23cd032a4e3fc8c97cf73787a889
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,555 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/annotation/rasterization.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/framework/formats/annotation/rasterization.proto</summary>
|
||||
public static partial class RasterizationReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/annotation/rasterization.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RasterizationReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjptZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvYW5ub3RhdGlvbi9yYXN0",
|
||||
"ZXJpemF0aW9uLnByb3RvEgltZWRpYXBpcGUifAoNUmFzdGVyaXphdGlvbhIz",
|
||||
"CghpbnRlcnZhbBgBIAMoCzIhLm1lZGlhcGlwZS5SYXN0ZXJpemF0aW9uLklu",
|
||||
"dGVydmFsGjYKCEludGVydmFsEgkKAXkYASACKAUSDgoGbGVmdF94GAIgAigF",
|
||||
"Eg8KB3JpZ2h0X3gYAyACKAVCQwotY29tLmdvb2dsZS5tZWRpYXBpcGUuZm9y",
|
||||
"bWF0cy5hbm5vdGF0aW9uLnByb3RvQhJSYXN0ZXJpemF0aW9uUHJvdG8="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Rasterization), global::Mediapipe.Rasterization.Parser, new[]{ "Interval" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Rasterization.Types.Interval), global::Mediapipe.Rasterization.Types.Interval.Parser, new[]{ "Y", "LeftX", "RightX" }, null, null, null, null)})
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// A Region can be represented in each frame as a set of scanlines
|
||||
/// (compressed RLE, similar to rasterization of polygons).
|
||||
/// For each scanline with y-coordinate y, we save (possibly multiple) intervals
|
||||
/// of occupied pixels represented as a pair [left_x, right_x].
|
||||
/// </summary>
|
||||
public sealed partial class Rasterization : pb::IMessage<Rasterization>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Rasterization> _parser = new pb::MessageParser<Rasterization>(() => new Rasterization());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Rasterization> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RasterizationReflection.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 Rasterization() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Rasterization(Rasterization other) : this() {
|
||||
interval_ = other.interval_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Rasterization Clone() {
|
||||
return new Rasterization(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "interval" field.</summary>
|
||||
public const int IntervalFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<global::Mediapipe.Rasterization.Types.Interval> _repeated_interval_codec
|
||||
= pb::FieldCodec.ForMessage(10, global::Mediapipe.Rasterization.Types.Interval.Parser);
|
||||
private readonly pbc::RepeatedField<global::Mediapipe.Rasterization.Types.Interval> interval_ = new pbc::RepeatedField<global::Mediapipe.Rasterization.Types.Interval>();
|
||||
/// <summary>
|
||||
/// Intervals are always sorted by y-coordinate.
|
||||
/// Therefore, a region occupies a set of scanlines ranging
|
||||
/// from interval(0).y() to interval(interval_size() - 1)).y().
|
||||
/// Note: In video, at some scanlines no interval might be present.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Mediapipe.Rasterization.Types.Interval> Interval {
|
||||
get { return interval_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Rasterization);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Rasterization other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!interval_.Equals(other.interval_)) 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 ^= interval_.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
|
||||
interval_.WriteTo(output, _repeated_interval_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) {
|
||||
interval_.WriteTo(ref output, _repeated_interval_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 += interval_.CalculateSize(_repeated_interval_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Rasterization other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
interval_.Add(other.interval_);
|
||||
_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: {
|
||||
interval_.AddEntriesFrom(input, _repeated_interval_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: {
|
||||
interval_.AddEntriesFrom(ref input, _repeated_interval_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the Rasterization message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public sealed partial class Interval : pb::IMessage<Interval>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Interval> _parser = new pb::MessageParser<Interval>(() => new Interval());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Interval> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.Rasterization.Descriptor.NestedTypes[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 Interval() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Interval(Interval other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
y_ = other.y_;
|
||||
leftX_ = other.leftX_;
|
||||
rightX_ = other.rightX_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Interval Clone() {
|
||||
return new Interval(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "y" field.</summary>
|
||||
public const int YFieldNumber = 1;
|
||||
private readonly static int YDefaultValue = 0;
|
||||
|
||||
private int y_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Y {
|
||||
get { if ((_hasBits0 & 1) != 0) { return y_; } else { return YDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
y_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "y" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasY {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "y" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearY() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "left_x" field.</summary>
|
||||
public const int LeftXFieldNumber = 2;
|
||||
private readonly static int LeftXDefaultValue = 0;
|
||||
|
||||
private int leftX_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int LeftX {
|
||||
get { if ((_hasBits0 & 2) != 0) { return leftX_; } else { return LeftXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
leftX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "left_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLeftX {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "left_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLeftX() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "right_x" field.</summary>
|
||||
public const int RightXFieldNumber = 3;
|
||||
private readonly static int RightXDefaultValue = 0;
|
||||
|
||||
private int rightX_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int RightX {
|
||||
get { if ((_hasBits0 & 4) != 0) { return rightX_; } else { return RightXDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
rightX_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "right_x" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRightX {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "right_x" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRightX() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Interval);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Interval other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Y != other.Y) return false;
|
||||
if (LeftX != other.LeftX) return false;
|
||||
if (RightX != other.RightX) 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 (HasY) hash ^= Y.GetHashCode();
|
||||
if (HasLeftX) hash ^= LeftX.GetHashCode();
|
||||
if (HasRightX) hash ^= RightX.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 (HasY) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Y);
|
||||
}
|
||||
if (HasLeftX) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(LeftX);
|
||||
}
|
||||
if (HasRightX) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(RightX);
|
||||
}
|
||||
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 (HasY) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Y);
|
||||
}
|
||||
if (HasLeftX) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(LeftX);
|
||||
}
|
||||
if (HasRightX) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(RightX);
|
||||
}
|
||||
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 (HasY) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Y);
|
||||
}
|
||||
if (HasLeftX) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(LeftX);
|
||||
}
|
||||
if (HasRightX) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(RightX);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Interval other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasY) {
|
||||
Y = other.Y;
|
||||
}
|
||||
if (other.HasLeftX) {
|
||||
LeftX = other.LeftX;
|
||||
}
|
||||
if (other.HasRightX) {
|
||||
RightX = other.RightX;
|
||||
}
|
||||
_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: {
|
||||
Y = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
LeftX = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RightX = 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: {
|
||||
Y = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
LeftX = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
RightX = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bedb393db8070b50d8ba4d6448a065d8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,786 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/classification.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/framework/formats/classification.proto</summary>
|
||||
public static partial class ClassificationReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/classification.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ClassificationReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjBtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvY2xhc3NpZmljYXRpb24u",
|
||||
"cHJvdG8SCW1lZGlhcGlwZSJTCg5DbGFzc2lmaWNhdGlvbhINCgVpbmRleBgB",
|
||||
"IAEoBRINCgVzY29yZRgCIAEoAhINCgVsYWJlbBgDIAEoCRIUCgxkaXNwbGF5",
|
||||
"X25hbWUYBCABKAkiRwoSQ2xhc3NpZmljYXRpb25MaXN0EjEKDmNsYXNzaWZp",
|
||||
"Y2F0aW9uGAEgAygLMhkubWVkaWFwaXBlLkNsYXNzaWZpY2F0aW9uIloKHENs",
|
||||
"YXNzaWZpY2F0aW9uTGlzdENvbGxlY3Rpb24SOgoTY2xhc3NpZmljYXRpb25f",
|
||||
"bGlzdBgBIAMoCzIdLm1lZGlhcGlwZS5DbGFzc2lmaWNhdGlvbkxpc3RCOQoi",
|
||||
"Y29tLmdvb2dsZS5tZWRpYXBpcGUuZm9ybWF0cy5wcm90b0ITQ2xhc3NpZmlj",
|
||||
"YXRpb25Qcm90bw=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Classification), global::Mediapipe.Classification.Parser, new[]{ "Index", "Score", "Label", "DisplayName" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ClassificationList), global::Mediapipe.ClassificationList.Parser, new[]{ "Classification" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ClassificationListCollection), global::Mediapipe.ClassificationListCollection.Parser, new[]{ "ClassificationList" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class Classification : pb::IMessage<Classification>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Classification> _parser = new pb::MessageParser<Classification>(() => new Classification());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Classification> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.ClassificationReflection.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 Classification() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Classification(Classification other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
index_ = other.index_;
|
||||
score_ = other.score_;
|
||||
label_ = other.label_;
|
||||
displayName_ = other.displayName_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Classification Clone() {
|
||||
return new Classification(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "index" field.</summary>
|
||||
public const int IndexFieldNumber = 1;
|
||||
private readonly static int IndexDefaultValue = 0;
|
||||
|
||||
private int index_;
|
||||
/// <summary>
|
||||
/// The index of the class in the corresponding label map.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Index {
|
||||
get { if ((_hasBits0 & 1) != 0) { return index_; } else { return IndexDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
index_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "index" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasIndex {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "index" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearIndex() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "score" field.</summary>
|
||||
public const int ScoreFieldNumber = 2;
|
||||
private readonly static float ScoreDefaultValue = 0F;
|
||||
|
||||
private float score_;
|
||||
/// <summary>
|
||||
/// The probability score for this class.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Score {
|
||||
get { if ((_hasBits0 & 2) != 0) { return score_; } else { return ScoreDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
score_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "score" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasScore {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "score" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearScore() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "label" field.</summary>
|
||||
public const int LabelFieldNumber = 3;
|
||||
private readonly static string LabelDefaultValue = "";
|
||||
|
||||
private string label_;
|
||||
/// <summary>
|
||||
/// Label or name of the class.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public string Label {
|
||||
get { return label_ ?? LabelDefaultValue; }
|
||||
set {
|
||||
label_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "label" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLabel {
|
||||
get { return label_ != null; }
|
||||
}
|
||||
/// <summary>Clears the value of the "label" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLabel() {
|
||||
label_ = null;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "display_name" field.</summary>
|
||||
public const int DisplayNameFieldNumber = 4;
|
||||
private readonly static string DisplayNameDefaultValue = "";
|
||||
|
||||
private string displayName_;
|
||||
/// <summary>
|
||||
/// Optional human-readable string for display purposes.
|
||||
/// </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;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Classification);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Classification other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Index != other.Index) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Score, other.Score)) return false;
|
||||
if (Label != other.Label) return false;
|
||||
if (DisplayName != other.DisplayName) 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 (HasIndex) hash ^= Index.GetHashCode();
|
||||
if (HasScore) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Score);
|
||||
if (HasLabel) hash ^= Label.GetHashCode();
|
||||
if (HasDisplayName) hash ^= DisplayName.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 (HasIndex) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Index);
|
||||
}
|
||||
if (HasScore) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Score);
|
||||
}
|
||||
if (HasLabel) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (HasDisplayName) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(DisplayName);
|
||||
}
|
||||
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 (HasIndex) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Index);
|
||||
}
|
||||
if (HasScore) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(Score);
|
||||
}
|
||||
if (HasLabel) {
|
||||
output.WriteRawTag(26);
|
||||
output.WriteString(Label);
|
||||
}
|
||||
if (HasDisplayName) {
|
||||
output.WriteRawTag(34);
|
||||
output.WriteString(DisplayName);
|
||||
}
|
||||
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 (HasIndex) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Index);
|
||||
}
|
||||
if (HasScore) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasLabel) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(Label);
|
||||
}
|
||||
if (HasDisplayName) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeStringSize(DisplayName);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(Classification other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasIndex) {
|
||||
Index = other.Index;
|
||||
}
|
||||
if (other.HasScore) {
|
||||
Score = other.Score;
|
||||
}
|
||||
if (other.HasLabel) {
|
||||
Label = other.Label;
|
||||
}
|
||||
if (other.HasDisplayName) {
|
||||
DisplayName = other.DisplayName;
|
||||
}
|
||||
_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: {
|
||||
Index = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Score = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
DisplayName = input.ReadString();
|
||||
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: {
|
||||
Index = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
Score = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
Label = input.ReadString();
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
DisplayName = input.ReadString();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Group of Classification protos.
|
||||
/// </summary>
|
||||
public sealed partial class ClassificationList : pb::IMessage<ClassificationList>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ClassificationList> _parser = new pb::MessageParser<ClassificationList>(() => new ClassificationList());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ClassificationList> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.ClassificationReflection.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 ClassificationList() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ClassificationList(ClassificationList other) : this() {
|
||||
classification_ = other.classification_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ClassificationList Clone() {
|
||||
return new ClassificationList(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "classification" field.</summary>
|
||||
public const int ClassificationFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<global::Mediapipe.Classification> _repeated_classification_codec
|
||||
= pb::FieldCodec.ForMessage(10, global::Mediapipe.Classification.Parser);
|
||||
private readonly pbc::RepeatedField<global::Mediapipe.Classification> classification_ = new pbc::RepeatedField<global::Mediapipe.Classification>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Mediapipe.Classification> Classification {
|
||||
get { return classification_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ClassificationList);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ClassificationList other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!classification_.Equals(other.classification_)) 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 ^= classification_.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
|
||||
classification_.WriteTo(output, _repeated_classification_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) {
|
||||
classification_.WriteTo(ref output, _repeated_classification_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 += classification_.CalculateSize(_repeated_classification_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(ClassificationList other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
classification_.Add(other.classification_);
|
||||
_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: {
|
||||
classification_.AddEntriesFrom(input, _repeated_classification_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: {
|
||||
classification_.AddEntriesFrom(ref input, _repeated_classification_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Group of ClassificationList protos.
|
||||
/// </summary>
|
||||
public sealed partial class ClassificationListCollection : pb::IMessage<ClassificationListCollection>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ClassificationListCollection> _parser = new pb::MessageParser<ClassificationListCollection>(() => new ClassificationListCollection());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ClassificationListCollection> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.ClassificationReflection.Descriptor.MessageTypes[2]; }
|
||||
}
|
||||
|
||||
[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 ClassificationListCollection() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ClassificationListCollection(ClassificationListCollection other) : this() {
|
||||
classificationList_ = other.classificationList_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ClassificationListCollection Clone() {
|
||||
return new ClassificationListCollection(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "classification_list" field.</summary>
|
||||
public const int ClassificationListFieldNumber = 1;
|
||||
private static readonly pb::FieldCodec<global::Mediapipe.ClassificationList> _repeated_classificationList_codec
|
||||
= pb::FieldCodec.ForMessage(10, global::Mediapipe.ClassificationList.Parser);
|
||||
private readonly pbc::RepeatedField<global::Mediapipe.ClassificationList> classificationList_ = new pbc::RepeatedField<global::Mediapipe.ClassificationList>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<global::Mediapipe.ClassificationList> ClassificationList {
|
||||
get { return classificationList_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ClassificationListCollection);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ClassificationListCollection other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if(!classificationList_.Equals(other.classificationList_)) 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 ^= classificationList_.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
|
||||
classificationList_.WriteTo(output, _repeated_classificationList_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) {
|
||||
classificationList_.WriteTo(ref output, _repeated_classificationList_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 += classificationList_.CalculateSize(_repeated_classificationList_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(ClassificationListCollection other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
classificationList_.Add(other.classificationList_);
|
||||
_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: {
|
||||
classificationList_.AddEntriesFrom(input, _repeated_classificationList_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: {
|
||||
classificationList_.AddEntriesFrom(ref input, _repeated_classificationList_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f38215582182a0826954a8789b14676a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8959a6aaf727953d7bf3e26020dc1421
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,475 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/image_file_properties.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/framework/formats/image_file_properties.proto</summary>
|
||||
public static partial class ImageFilePropertiesReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/image_file_properties.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ImageFilePropertiesReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjdtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvaW1hZ2VfZmlsZV9wcm9w",
|
||||
"ZXJ0aWVzLnByb3RvEgltZWRpYXBpcGUikQEKE0ltYWdlRmlsZVByb3BlcnRp",
|
||||
"ZXMSEwoLaW1hZ2Vfd2lkdGgYASABKA0SFAoMaW1hZ2VfaGVpZ2h0GAIgASgN",
|
||||
"EhcKD2ZvY2FsX2xlbmd0aF9tbRgDIAEoARIZChFmb2NhbF9sZW5ndGhfMzVt",
|
||||
"bRgEIAEoARIbChNmb2NhbF9sZW5ndGhfcGl4ZWxzGAUgASgB"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ImageFileProperties), global::Mediapipe.ImageFileProperties.Parser, new[]{ "ImageWidth", "ImageHeight", "FocalLengthMm", "FocalLength35Mm", "FocalLengthPixels" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// A list of properties extracted from EXIF metadata from an image file.
|
||||
/// </summary>
|
||||
public sealed partial class ImageFileProperties : pb::IMessage<ImageFileProperties>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ImageFileProperties> _parser = new pb::MessageParser<ImageFileProperties>(() => new ImageFileProperties());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ImageFileProperties> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.ImageFilePropertiesReflection.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 ImageFileProperties() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ImageFileProperties(ImageFileProperties other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
imageWidth_ = other.imageWidth_;
|
||||
imageHeight_ = other.imageHeight_;
|
||||
focalLengthMm_ = other.focalLengthMm_;
|
||||
focalLength35Mm_ = other.focalLength35Mm_;
|
||||
focalLengthPixels_ = other.focalLengthPixels_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ImageFileProperties Clone() {
|
||||
return new ImageFileProperties(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "image_width" field.</summary>
|
||||
public const int ImageWidthFieldNumber = 1;
|
||||
private readonly static uint ImageWidthDefaultValue = 0;
|
||||
|
||||
private uint imageWidth_;
|
||||
/// <summary>
|
||||
/// Image dimensions.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint ImageWidth {
|
||||
get { if ((_hasBits0 & 1) != 0) { return imageWidth_; } else { return ImageWidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
imageWidth_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "image_width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasImageWidth {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "image_width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearImageWidth() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "image_height" field.</summary>
|
||||
public const int ImageHeightFieldNumber = 2;
|
||||
private readonly static uint ImageHeightDefaultValue = 0;
|
||||
|
||||
private uint imageHeight_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint ImageHeight {
|
||||
get { if ((_hasBits0 & 2) != 0) { return imageHeight_; } else { return ImageHeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
imageHeight_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "image_height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasImageHeight {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "image_height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearImageHeight() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "focal_length_mm" field.</summary>
|
||||
public const int FocalLengthMmFieldNumber = 3;
|
||||
private readonly static double FocalLengthMmDefaultValue = 0D;
|
||||
|
||||
private double focalLengthMm_;
|
||||
/// <summary>
|
||||
/// Focal length of camera lens in millimeters.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FocalLengthMm {
|
||||
get { if ((_hasBits0 & 4) != 0) { return focalLengthMm_; } else { return FocalLengthMmDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
focalLengthMm_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "focal_length_mm" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFocalLengthMm {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "focal_length_mm" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFocalLengthMm() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "focal_length_35mm" field.</summary>
|
||||
public const int FocalLength35MmFieldNumber = 4;
|
||||
private readonly static double FocalLength35MmDefaultValue = 0D;
|
||||
|
||||
private double focalLength35Mm_;
|
||||
/// <summary>
|
||||
/// Focal length of camera lens in 35 mm equivalent.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FocalLength35Mm {
|
||||
get { if ((_hasBits0 & 8) != 0) { return focalLength35Mm_; } else { return FocalLength35MmDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
focalLength35Mm_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "focal_length_35mm" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFocalLength35Mm {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "focal_length_35mm" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFocalLength35Mm() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "focal_length_pixels" field.</summary>
|
||||
public const int FocalLengthPixelsFieldNumber = 5;
|
||||
private readonly static double FocalLengthPixelsDefaultValue = 0D;
|
||||
|
||||
private double focalLengthPixels_;
|
||||
/// <summary>
|
||||
/// Focal length in pixels.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FocalLengthPixels {
|
||||
get { if ((_hasBits0 & 16) != 0) { return focalLengthPixels_; } else { return FocalLengthPixelsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
focalLengthPixels_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "focal_length_pixels" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFocalLengthPixels {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "focal_length_pixels" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFocalLengthPixels() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ImageFileProperties);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ImageFileProperties other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ImageWidth != other.ImageWidth) return false;
|
||||
if (ImageHeight != other.ImageHeight) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FocalLengthMm, other.FocalLengthMm)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FocalLength35Mm, other.FocalLength35Mm)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FocalLengthPixels, other.FocalLengthPixels)) 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 (HasImageWidth) hash ^= ImageWidth.GetHashCode();
|
||||
if (HasImageHeight) hash ^= ImageHeight.GetHashCode();
|
||||
if (HasFocalLengthMm) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FocalLengthMm);
|
||||
if (HasFocalLength35Mm) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FocalLength35Mm);
|
||||
if (HasFocalLengthPixels) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FocalLengthPixels);
|
||||
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 (HasImageWidth) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(ImageWidth);
|
||||
}
|
||||
if (HasImageHeight) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(ImageHeight);
|
||||
}
|
||||
if (HasFocalLengthMm) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(FocalLengthMm);
|
||||
}
|
||||
if (HasFocalLength35Mm) {
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(FocalLength35Mm);
|
||||
}
|
||||
if (HasFocalLengthPixels) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(FocalLengthPixels);
|
||||
}
|
||||
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 (HasImageWidth) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteUInt32(ImageWidth);
|
||||
}
|
||||
if (HasImageHeight) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(ImageHeight);
|
||||
}
|
||||
if (HasFocalLengthMm) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(FocalLengthMm);
|
||||
}
|
||||
if (HasFocalLength35Mm) {
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(FocalLength35Mm);
|
||||
}
|
||||
if (HasFocalLengthPixels) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(FocalLengthPixels);
|
||||
}
|
||||
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 (HasImageWidth) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ImageWidth);
|
||||
}
|
||||
if (HasImageHeight) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(ImageHeight);
|
||||
}
|
||||
if (HasFocalLengthMm) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasFocalLength35Mm) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasFocalLengthPixels) {
|
||||
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(ImageFileProperties other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasImageWidth) {
|
||||
ImageWidth = other.ImageWidth;
|
||||
}
|
||||
if (other.HasImageHeight) {
|
||||
ImageHeight = other.ImageHeight;
|
||||
}
|
||||
if (other.HasFocalLengthMm) {
|
||||
FocalLengthMm = other.FocalLengthMm;
|
||||
}
|
||||
if (other.HasFocalLength35Mm) {
|
||||
FocalLength35Mm = other.FocalLength35Mm;
|
||||
}
|
||||
if (other.HasFocalLengthPixels) {
|
||||
FocalLengthPixels = other.FocalLengthPixels;
|
||||
}
|
||||
_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: {
|
||||
ImageWidth = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ImageHeight = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
FocalLengthMm = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 33: {
|
||||
FocalLength35Mm = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
FocalLengthPixels = 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 8: {
|
||||
ImageWidth = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
ImageHeight = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
FocalLengthMm = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 33: {
|
||||
FocalLength35Mm = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
FocalLengthPixels = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0228463cfe686d54b97cfb6a22bf08b9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,273 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/image_format.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/framework/formats/image_format.proto</summary>
|
||||
public static partial class ImageFormatReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/image_format.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static ImageFormatReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci5tZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvaW1hZ2VfZm9ybWF0LnBy",
|
||||
"b3RvEgltZWRpYXBpcGUiuQEKC0ltYWdlRm9ybWF0IqkBCgZGb3JtYXQSCwoH",
|
||||
"VU5LTk9XThAAEggKBFNSR0IQARIJCgVTUkdCQRACEgkKBUdSQVk4EAMSCgoG",
|
||||
"R1JBWTE2EAQSDQoJWUNCQ1I0MjBQEAUSDwoLWUNCQ1I0MjBQMTAQBhIKCgZT",
|
||||
"UkdCNDgQBxILCgdTUkdCQTY0EAgSCwoHVkVDMzJGMRAJEgsKB1ZFQzMyRjIQ",
|
||||
"DBIICgRMQUI4EAoSCQoFU0JHUkEQC0I2CiJjb20uZ29vZ2xlLm1lZGlhcGlw",
|
||||
"ZS5mb3JtYXRzLnByb3RvQhBJbWFnZUZvcm1hdFByb3Rv"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ImageFormat), global::Mediapipe.ImageFormat.Parser, null, null, new[]{ typeof(global::Mediapipe.ImageFormat.Types.Format) }, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class ImageFormat : pb::IMessage<ImageFormat>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ImageFormat> _parser = new pb::MessageParser<ImageFormat>(() => new ImageFormat());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ImageFormat> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.ImageFormatReflection.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 ImageFormat() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ImageFormat(ImageFormat other) : this() {
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ImageFormat Clone() {
|
||||
return new ImageFormat(this);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ImageFormat);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ImageFormat other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
return Equals(_unknownFields, other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override int GetHashCode() {
|
||||
int hash = 1;
|
||||
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 (_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 (_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 (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(ImageFormat other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
_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;
|
||||
}
|
||||
}
|
||||
#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;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the ImageFormat message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public enum Format {
|
||||
/// <summary>
|
||||
/// The format is unknown. It is not valid for an ImageFrame to be
|
||||
/// initialized with this value.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("UNKNOWN")] Unknown = 0,
|
||||
/// <summary>
|
||||
/// sRGB, interleaved: one byte for R, then one byte for G, then one
|
||||
/// byte for B for each pixel.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("SRGB")] Srgb = 1,
|
||||
/// <summary>
|
||||
/// sRGBA, interleaved: one byte for R, one byte for G, one byte for B,
|
||||
/// one byte for alpha or unused.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("SRGBA")] Srgba = 2,
|
||||
/// <summary>
|
||||
/// Grayscale, one byte per pixel.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("GRAY8")] Gray8 = 3,
|
||||
/// <summary>
|
||||
/// Grayscale, one uint16 per pixel.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("GRAY16")] Gray16 = 4,
|
||||
/// <summary>
|
||||
/// YCbCr420P (1 bpp for Y, 0.25 bpp for U and V).
|
||||
/// NOTE: NOT a valid ImageFrame format, but intended for
|
||||
/// ScaleImageCalculatorOptions, VideoHeader, etc. to indicate that
|
||||
/// YUVImage is used in place of ImageFrame.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("YCBCR420P")] Ycbcr420P = 5,
|
||||
/// <summary>
|
||||
/// Similar to YCbCr420P, but the data is represented as the lower 10bits of
|
||||
/// a uint16. Like YCbCr420P, this is NOT a valid ImageFrame, and the data is
|
||||
/// carried within a YUVImage.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("YCBCR420P10")] Ycbcr420P10 = 6,
|
||||
/// <summary>
|
||||
/// sRGB, interleaved, each component is a uint16.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("SRGB48")] Srgb48 = 7,
|
||||
/// <summary>
|
||||
/// sRGBA, interleaved, each component is a uint16.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("SRGBA64")] Srgba64 = 8,
|
||||
/// <summary>
|
||||
/// One float per pixel.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("VEC32F1")] Vec32F1 = 9,
|
||||
/// <summary>
|
||||
/// Two floats per pixel.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("VEC32F2")] Vec32F2 = 12,
|
||||
/// <summary>
|
||||
/// LAB, interleaved: one byte for L, then one byte for a, then one
|
||||
/// byte for b for each pixel.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("LAB8")] Lab8 = 10,
|
||||
/// <summary>
|
||||
/// sBGRA, interleaved: one byte for B, one byte for G, one byte for R,
|
||||
/// one byte for alpha or unused. This is the N32 format for Skia.
|
||||
/// </summary>
|
||||
[pbr::OriginalName("SBGRA")] Sbgra = 11,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42b9b71153dfe3f078eb289643ba4e11
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 78c597cedf10ba4f8994d0386ada83f9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2a74389b68d1b8516a3d72cf9140826a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,407 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/matrix_data.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/framework/formats/matrix_data.proto</summary>
|
||||
public static partial class MatrixDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/matrix_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static MatrixDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Ci1tZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvbWF0cml4X2RhdGEucHJv",
|
||||
"dG8SCW1lZGlhcGlwZSKoAQoKTWF0cml4RGF0YRIMCgRyb3dzGAEgASgFEgwK",
|
||||
"BGNvbHMYAiABKAUSFwoLcGFja2VkX2RhdGEYAyADKAJCAhABEjoKBmxheW91",
|
||||
"dBgEIAEoDjIcLm1lZGlhcGlwZS5NYXRyaXhEYXRhLkxheW91dDoMQ09MVU1O",
|
||||
"X01BSk9SIikKBkxheW91dBIQCgxDT0xVTU5fTUFKT1IQABINCglST1dfTUFK",
|
||||
"T1IQAUI1CiJjb20uZ29vZ2xlLm1lZGlhcGlwZS5mb3JtYXRzLnByb3RvQg9N",
|
||||
"YXRyaXhEYXRhUHJvdG8="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MatrixData), global::Mediapipe.MatrixData.Parser, new[]{ "Rows", "Cols", "PackedData", "Layout" }, null, new[]{ typeof(global::Mediapipe.MatrixData.Types.Layout) }, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Proto for serializing Matrix data.
|
||||
/// Data are stored in column-major order by default.
|
||||
/// </summary>
|
||||
public sealed partial class MatrixData : pb::IMessage<MatrixData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<MatrixData> _parser = new pb::MessageParser<MatrixData>(() => new MatrixData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<MatrixData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.MatrixDataReflection.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 MatrixData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MatrixData(MatrixData other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
rows_ = other.rows_;
|
||||
cols_ = other.cols_;
|
||||
packedData_ = other.packedData_.Clone();
|
||||
layout_ = other.layout_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MatrixData Clone() {
|
||||
return new MatrixData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "rows" field.</summary>
|
||||
public const int RowsFieldNumber = 1;
|
||||
private readonly static int RowsDefaultValue = 0;
|
||||
|
||||
private int rows_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Rows {
|
||||
get { if ((_hasBits0 & 1) != 0) { return rows_; } else { return RowsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
rows_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "rows" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRows {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "rows" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRows() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "cols" field.</summary>
|
||||
public const int ColsFieldNumber = 2;
|
||||
private readonly static int ColsDefaultValue = 0;
|
||||
|
||||
private int cols_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Cols {
|
||||
get { if ((_hasBits0 & 2) != 0) { return cols_; } else { return ColsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
cols_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "cols" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCols {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "cols" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCols() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "packed_data" field.</summary>
|
||||
public const int PackedDataFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<float> _repeated_packedData_codec
|
||||
= pb::FieldCodec.ForFloat(26);
|
||||
private readonly pbc::RepeatedField<float> packedData_ = new pbc::RepeatedField<float>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<float> PackedData {
|
||||
get { return packedData_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "layout" field.</summary>
|
||||
public const int LayoutFieldNumber = 4;
|
||||
private readonly static global::Mediapipe.MatrixData.Types.Layout LayoutDefaultValue = global::Mediapipe.MatrixData.Types.Layout.ColumnMajor;
|
||||
|
||||
private global::Mediapipe.MatrixData.Types.Layout layout_;
|
||||
/// <summary>
|
||||
/// Order in which the data are stored. Defaults to COLUMN_MAJOR, which matches
|
||||
/// the default for mediapipe::Matrix and Eigen::Matrix*.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.MatrixData.Types.Layout Layout {
|
||||
get { if ((_hasBits0 & 4) != 0) { return layout_; } else { return LayoutDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
layout_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "layout" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasLayout {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "layout" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearLayout() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as MatrixData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(MatrixData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Rows != other.Rows) return false;
|
||||
if (Cols != other.Cols) return false;
|
||||
if(!packedData_.Equals(other.packedData_)) return false;
|
||||
if (Layout != other.Layout) 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 (HasRows) hash ^= Rows.GetHashCode();
|
||||
if (HasCols) hash ^= Cols.GetHashCode();
|
||||
hash ^= packedData_.GetHashCode();
|
||||
if (HasLayout) hash ^= Layout.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 (HasRows) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Rows);
|
||||
}
|
||||
if (HasCols) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(Cols);
|
||||
}
|
||||
packedData_.WriteTo(output, _repeated_packedData_codec);
|
||||
if (HasLayout) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) Layout);
|
||||
}
|
||||
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 (HasRows) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Rows);
|
||||
}
|
||||
if (HasCols) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(Cols);
|
||||
}
|
||||
packedData_.WriteTo(ref output, _repeated_packedData_codec);
|
||||
if (HasLayout) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) Layout);
|
||||
}
|
||||
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 (HasRows) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rows);
|
||||
}
|
||||
if (HasCols) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Cols);
|
||||
}
|
||||
size += packedData_.CalculateSize(_repeated_packedData_codec);
|
||||
if (HasLayout) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Layout);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(MatrixData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasRows) {
|
||||
Rows = other.Rows;
|
||||
}
|
||||
if (other.HasCols) {
|
||||
Cols = other.Cols;
|
||||
}
|
||||
packedData_.Add(other.packedData_);
|
||||
if (other.HasLayout) {
|
||||
Layout = other.Layout;
|
||||
}
|
||||
_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: {
|
||||
Rows = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Cols = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 29: {
|
||||
packedData_.AddEntriesFrom(input, _repeated_packedData_codec);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Layout = (global::Mediapipe.MatrixData.Types.Layout) input.ReadEnum();
|
||||
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: {
|
||||
Rows = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Cols = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 29: {
|
||||
packedData_.AddEntriesFrom(ref input, _repeated_packedData_codec);
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
Layout = (global::Mediapipe.MatrixData.Types.Layout) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the MatrixData message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
public enum Layout {
|
||||
[pbr::OriginalName("COLUMN_MAJOR")] ColumnMajor = 0,
|
||||
[pbr::OriginalName("ROW_MAJOR")] RowMajor = 1,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 929f5350423bf1842a3e76a8bf6398c6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a44707eeaf10f764e815e490588c2ea3
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,362 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/motion/optical_flow_field_data.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/framework/formats/motion/optical_flow_field_data.proto</summary>
|
||||
public static partial class OpticalFlowFieldDataReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/motion/optical_flow_field_data.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static OpticalFlowFieldDataReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkBtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvbW90aW9uL29wdGljYWxf",
|
||||
"Zmxvd19maWVsZF9kYXRhLnByb3RvEgltZWRpYXBpcGUiVQoUT3B0aWNhbEZs",
|
||||
"b3dGaWVsZERhdGESDQoFd2lkdGgYASABKAUSDgoGaGVpZ2h0GAIgASgFEg4K",
|
||||
"AmR4GAMgAygCQgIQARIOCgJkeRgEIAMoAkICEAE="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.OpticalFlowFieldData), global::Mediapipe.OpticalFlowFieldData.Parser, new[]{ "Width", "Height", "Dx", "Dy" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class OpticalFlowFieldData : pb::IMessage<OpticalFlowFieldData>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<OpticalFlowFieldData> _parser = new pb::MessageParser<OpticalFlowFieldData>(() => new OpticalFlowFieldData());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<OpticalFlowFieldData> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.OpticalFlowFieldDataReflection.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 OpticalFlowFieldData() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public OpticalFlowFieldData(OpticalFlowFieldData other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
width_ = other.width_;
|
||||
height_ = other.height_;
|
||||
dx_ = other.dx_.Clone();
|
||||
dy_ = other.dy_.Clone();
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public OpticalFlowFieldData Clone() {
|
||||
return new OpticalFlowFieldData(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "width" field.</summary>
|
||||
public const int WidthFieldNumber = 1;
|
||||
private readonly static int WidthDefaultValue = 0;
|
||||
|
||||
private int width_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Width {
|
||||
get { if ((_hasBits0 & 1) != 0) { return width_; } else { return WidthDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
width_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "width" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasWidth {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "width" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearWidth() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "height" field.</summary>
|
||||
public const int HeightFieldNumber = 2;
|
||||
private readonly static int HeightDefaultValue = 0;
|
||||
|
||||
private int height_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int Height {
|
||||
get { if ((_hasBits0 & 2) != 0) { return height_; } else { return HeightDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
height_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "height" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasHeight {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "height" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearHeight() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "dx" field.</summary>
|
||||
public const int DxFieldNumber = 3;
|
||||
private static readonly pb::FieldCodec<float> _repeated_dx_codec
|
||||
= pb::FieldCodec.ForFloat(26);
|
||||
private readonly pbc::RepeatedField<float> dx_ = new pbc::RepeatedField<float>();
|
||||
/// <summary>
|
||||
/// Stores the two channels of the flow field in raster order.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<float> Dx {
|
||||
get { return dx_; }
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "dy" field.</summary>
|
||||
public const int DyFieldNumber = 4;
|
||||
private static readonly pb::FieldCodec<float> _repeated_dy_codec
|
||||
= pb::FieldCodec.ForFloat(34);
|
||||
private readonly pbc::RepeatedField<float> dy_ = new pbc::RepeatedField<float>();
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public pbc::RepeatedField<float> Dy {
|
||||
get { return dy_; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as OpticalFlowFieldData);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(OpticalFlowFieldData other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (Width != other.Width) return false;
|
||||
if (Height != other.Height) return false;
|
||||
if(!dx_.Equals(other.dx_)) return false;
|
||||
if(!dy_.Equals(other.dy_)) 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 (HasWidth) hash ^= Width.GetHashCode();
|
||||
if (HasHeight) hash ^= Height.GetHashCode();
|
||||
hash ^= dx_.GetHashCode();
|
||||
hash ^= dy_.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 (HasWidth) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Width);
|
||||
}
|
||||
if (HasHeight) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(Height);
|
||||
}
|
||||
dx_.WriteTo(output, _repeated_dx_codec);
|
||||
dy_.WriteTo(output, _repeated_dy_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 (HasWidth) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(Width);
|
||||
}
|
||||
if (HasHeight) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(Height);
|
||||
}
|
||||
dx_.WriteTo(ref output, _repeated_dx_codec);
|
||||
dy_.WriteTo(ref output, _repeated_dy_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 (HasWidth) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width);
|
||||
}
|
||||
if (HasHeight) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height);
|
||||
}
|
||||
size += dx_.CalculateSize(_repeated_dx_codec);
|
||||
size += dy_.CalculateSize(_repeated_dy_codec);
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(OpticalFlowFieldData other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasWidth) {
|
||||
Width = other.Width;
|
||||
}
|
||||
if (other.HasHeight) {
|
||||
Height = other.Height;
|
||||
}
|
||||
dx_.Add(other.dx_);
|
||||
dy_.Add(other.dy_);
|
||||
_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: {
|
||||
Width = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Height = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 29: {
|
||||
dx_.AddEntriesFrom(input, _repeated_dx_codec);
|
||||
break;
|
||||
}
|
||||
case 34:
|
||||
case 37: {
|
||||
dy_.AddEntriesFrom(input, _repeated_dy_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 8: {
|
||||
Width = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
Height = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 26:
|
||||
case 29: {
|
||||
dx_.AddEntriesFrom(ref input, _repeated_dx_codec);
|
||||
break;
|
||||
}
|
||||
case 34:
|
||||
case 37: {
|
||||
dy_.AddEntriesFrom(ref input, _repeated_dy_codec);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9b75b15ae6d2ff83a8d6d211e1698c98
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd4d7de934069ee4d89debb25bb3c024
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,419 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/object_detection/anchor.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/framework/formats/object_detection/anchor.proto</summary>
|
||||
public static partial class AnchorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/object_detection/anchor.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static AnchorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjltZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvb2JqZWN0X2RldGVjdGlv",
|
||||
"bi9hbmNob3IucHJvdG8SCW1lZGlhcGlwZSJCCgZBbmNob3ISEAoIeF9jZW50",
|
||||
"ZXIYASACKAISEAoIeV9jZW50ZXIYAiACKAISCQoBaBgDIAIoAhIJCgF3GAQg",
|
||||
"AigC"));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.Anchor), global::Mediapipe.Anchor.Parser, new[]{ "XCenter", "YCenter", "H", "W" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// The anchor representation for object detection.
|
||||
/// </summary>
|
||||
public sealed partial class Anchor : pb::IMessage<Anchor>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<Anchor> _parser = new pb::MessageParser<Anchor>(() => new Anchor());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<Anchor> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.AnchorReflection.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 Anchor() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Anchor(Anchor other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
xCenter_ = other.xCenter_;
|
||||
yCenter_ = other.yCenter_;
|
||||
h_ = other.h_;
|
||||
w_ = other.w_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public Anchor Clone() {
|
||||
return new Anchor(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "x_center" field.</summary>
|
||||
public const int XCenterFieldNumber = 1;
|
||||
private readonly static float XCenterDefaultValue = 0F;
|
||||
|
||||
private float xCenter_;
|
||||
/// <summary>
|
||||
/// Encoded anchor box center.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float XCenter {
|
||||
get { if ((_hasBits0 & 1) != 0) { return xCenter_; } else { return XCenterDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
xCenter_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "x_center" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasXCenter {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "x_center" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearXCenter() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "y_center" field.</summary>
|
||||
public const int YCenterFieldNumber = 2;
|
||||
private readonly static float YCenterDefaultValue = 0F;
|
||||
|
||||
private float yCenter_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float YCenter {
|
||||
get { if ((_hasBits0 & 2) != 0) { return yCenter_; } else { return YCenterDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
yCenter_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "y_center" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasYCenter {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "y_center" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearYCenter() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "h" field.</summary>
|
||||
public const int HFieldNumber = 3;
|
||||
private readonly static float HDefaultValue = 0F;
|
||||
|
||||
private float h_;
|
||||
/// <summary>
|
||||
/// Encoded anchor box height.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float H {
|
||||
get { if ((_hasBits0 & 4) != 0) { return h_; } else { return HDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
h_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "h" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasH {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "h" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearH() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "w" field.</summary>
|
||||
public const int WFieldNumber = 4;
|
||||
private readonly static float WDefaultValue = 0F;
|
||||
|
||||
private float w_;
|
||||
/// <summary>
|
||||
/// Encoded anchor box width.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float W {
|
||||
get { if ((_hasBits0 & 8) != 0) { return w_; } else { return WDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
w_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "w" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasW {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "w" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearW() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as Anchor);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(Anchor other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(XCenter, other.XCenter)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(YCenter, other.YCenter)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(H, other.H)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(W, other.W)) 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 (HasXCenter) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(XCenter);
|
||||
if (HasYCenter) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(YCenter);
|
||||
if (HasH) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(H);
|
||||
if (HasW) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(W);
|
||||
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 (HasXCenter) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(XCenter);
|
||||
}
|
||||
if (HasYCenter) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(YCenter);
|
||||
}
|
||||
if (HasH) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(H);
|
||||
}
|
||||
if (HasW) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(W);
|
||||
}
|
||||
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 (HasXCenter) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(XCenter);
|
||||
}
|
||||
if (HasYCenter) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(YCenter);
|
||||
}
|
||||
if (HasH) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(H);
|
||||
}
|
||||
if (HasW) {
|
||||
output.WriteRawTag(37);
|
||||
output.WriteFloat(W);
|
||||
}
|
||||
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 (HasXCenter) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasYCenter) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasH) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasW) {
|
||||
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(Anchor other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasXCenter) {
|
||||
XCenter = other.XCenter;
|
||||
}
|
||||
if (other.HasYCenter) {
|
||||
YCenter = other.YCenter;
|
||||
}
|
||||
if (other.HasH) {
|
||||
H = other.H;
|
||||
}
|
||||
if (other.HasW) {
|
||||
W = other.W;
|
||||
}
|
||||
_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: {
|
||||
XCenter = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
YCenter = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
H = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
W = 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: {
|
||||
XCenter = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
YCenter = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
H = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 37: {
|
||||
W = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 615465bf568b94fee8a1e1a67bc072a8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d0ab6ed8000b4ec99584572ab00de53
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,798 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/framework/formats/time_series_header.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/framework/formats/time_series_header.proto</summary>
|
||||
public static partial class TimeSeriesHeaderReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/framework/formats/time_series_header.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TimeSeriesHeaderReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjRtZWRpYXBpcGUvZnJhbWV3b3JrL2Zvcm1hdHMvdGltZV9zZXJpZXNfaGVh",
|
||||
"ZGVyLnByb3RvEgltZWRpYXBpcGUijgEKEFRpbWVTZXJpZXNIZWFkZXISEwoL",
|
||||
"c2FtcGxlX3JhdGUYASABKAESFAoMbnVtX2NoYW5uZWxzGAIgASgFEhMKC251",
|
||||
"bV9zYW1wbGVzGAMgASgFEhMKC3BhY2tldF9yYXRlGAQgASgBEhkKEWF1ZGlv",
|
||||
"X3NhbXBsZV9yYXRlGAUgASgBKgoIoJwBEICAgIACImsKG011bHRpU3RyZWFt",
|
||||
"VGltZVNlcmllc0hlYWRlchI3ChJ0aW1lX3Nlcmllc19oZWFkZXIYASABKAsy",
|
||||
"Gy5tZWRpYXBpcGUuVGltZVNlcmllc0hlYWRlchITCgtudW1fc3RyZWFtcxgC",
|
||||
"IAEoBQ=="));
|
||||
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
|
||||
new pbr::FileDescriptor[] { },
|
||||
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TimeSeriesHeader), global::Mediapipe.TimeSeriesHeader.Parser, new[]{ "SampleRate", "NumChannels", "NumSamples", "PacketRate", "AudioSampleRate" }, null, null, null, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MultiStreamTimeSeriesHeader), global::Mediapipe.MultiStreamTimeSeriesHeader.Parser, new[]{ "TimeSeriesHeader", "NumStreams" }, null, null, null, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// Header for a uniformly sampled time series stream. Each Packet in
|
||||
/// the stream is a Matrix, and each column is a (vector-valued) sample of
|
||||
/// the series, i.e. each column corresponds to a distinct sample in time.
|
||||
/// </summary>
|
||||
public sealed partial class TimeSeriesHeader : pb::IExtendableMessage<TimeSeriesHeader>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TimeSeriesHeader> _parser = new pb::MessageParser<TimeSeriesHeader>(() => new TimeSeriesHeader());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private pb::ExtensionSet<TimeSeriesHeader> _extensions;
|
||||
private pb::ExtensionSet<TimeSeriesHeader> _Extensions { get { return _extensions; } }
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TimeSeriesHeader> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TimeSeriesHeaderReflection.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 TimeSeriesHeader() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimeSeriesHeader(TimeSeriesHeader other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
sampleRate_ = other.sampleRate_;
|
||||
numChannels_ = other.numChannels_;
|
||||
numSamples_ = other.numSamples_;
|
||||
packetRate_ = other.packetRate_;
|
||||
audioSampleRate_ = other.audioSampleRate_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
_extensions = pb::ExtensionSet.Clone(other._extensions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimeSeriesHeader Clone() {
|
||||
return new TimeSeriesHeader(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "sample_rate" field.</summary>
|
||||
public const int SampleRateFieldNumber = 1;
|
||||
private readonly static double SampleRateDefaultValue = 0D;
|
||||
|
||||
private double sampleRate_;
|
||||
/// <summary>
|
||||
/// Number of samples per second (hertz). The sample_rate is the
|
||||
/// reciprocal of the period between consecutive samples within a
|
||||
/// packet. Required, and must be greater than zero.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double SampleRate {
|
||||
get { if ((_hasBits0 & 1) != 0) { return sampleRate_; } else { return SampleRateDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
sampleRate_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "sample_rate" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasSampleRate {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "sample_rate" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearSampleRate() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_channels" field.</summary>
|
||||
public const int NumChannelsFieldNumber = 2;
|
||||
private readonly static int NumChannelsDefaultValue = 0;
|
||||
|
||||
private int numChannels_;
|
||||
/// <summary>
|
||||
/// The number of channels in each sample. This is the number of
|
||||
/// rows in the matrix. Required, and must be greater than zero.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumChannels {
|
||||
get { if ((_hasBits0 & 2) != 0) { return numChannels_; } else { return NumChannelsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
numChannels_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_channels" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumChannels {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_channels" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumChannels() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_samples" field.</summary>
|
||||
public const int NumSamplesFieldNumber = 3;
|
||||
private readonly static int NumSamplesDefaultValue = 0;
|
||||
|
||||
private int numSamples_;
|
||||
/// <summary>
|
||||
/// For streams that output a fixed number of samples per packet.
|
||||
/// This field should not be set if the number of samples varies from
|
||||
/// packet to packet. This is the number of columns in the matrix.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumSamples {
|
||||
get { if ((_hasBits0 & 4) != 0) { return numSamples_; } else { return NumSamplesDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
numSamples_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_samples" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumSamples {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_samples" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumSamples() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "packet_rate" field.</summary>
|
||||
public const int PacketRateFieldNumber = 4;
|
||||
private readonly static double PacketRateDefaultValue = 0D;
|
||||
|
||||
private double packetRate_;
|
||||
/// <summary>
|
||||
/// For streams that output Packets at a fixed rate, in Packets per
|
||||
/// second. In other words, the reciprocal of the difference between
|
||||
/// consecutive Packet timestamps.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double PacketRate {
|
||||
get { if ((_hasBits0 & 8) != 0) { return packetRate_; } else { return PacketRateDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
packetRate_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "packet_rate" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPacketRate {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "packet_rate" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPacketRate() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "audio_sample_rate" field.</summary>
|
||||
public const int AudioSampleRateFieldNumber = 5;
|
||||
private readonly static double AudioSampleRateDefaultValue = 0D;
|
||||
|
||||
private double audioSampleRate_;
|
||||
/// <summary>
|
||||
/// Spectral representations (e.g. from SpectrogramCalculator) will
|
||||
/// have their sample_rate field indicating the frame rate (e.g. 100
|
||||
/// Hz), but downstream consumers need to know the sample_rate of the
|
||||
/// source time-domain waveform in order to correctly interpret the
|
||||
/// spectral bins. Units are hertz.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double AudioSampleRate {
|
||||
get { if ((_hasBits0 & 16) != 0) { return audioSampleRate_; } else { return AudioSampleRateDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
audioSampleRate_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "audio_sample_rate" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasAudioSampleRate {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "audio_sample_rate" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearAudioSampleRate() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TimeSeriesHeader);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TimeSeriesHeader other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(SampleRate, other.SampleRate)) return false;
|
||||
if (NumChannels != other.NumChannels) return false;
|
||||
if (NumSamples != other.NumSamples) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(PacketRate, other.PacketRate)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(AudioSampleRate, other.AudioSampleRate)) 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 (HasSampleRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(SampleRate);
|
||||
if (HasNumChannels) hash ^= NumChannels.GetHashCode();
|
||||
if (HasNumSamples) hash ^= NumSamples.GetHashCode();
|
||||
if (HasPacketRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PacketRate);
|
||||
if (HasAudioSampleRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(AudioSampleRate);
|
||||
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 (HasSampleRate) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(SampleRate);
|
||||
}
|
||||
if (HasNumChannels) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumChannels);
|
||||
}
|
||||
if (HasNumSamples) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(NumSamples);
|
||||
}
|
||||
if (HasPacketRate) {
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(PacketRate);
|
||||
}
|
||||
if (HasAudioSampleRate) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(AudioSampleRate);
|
||||
}
|
||||
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 (HasSampleRate) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(SampleRate);
|
||||
}
|
||||
if (HasNumChannels) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumChannels);
|
||||
}
|
||||
if (HasNumSamples) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteInt32(NumSamples);
|
||||
}
|
||||
if (HasPacketRate) {
|
||||
output.WriteRawTag(33);
|
||||
output.WriteDouble(PacketRate);
|
||||
}
|
||||
if (HasAudioSampleRate) {
|
||||
output.WriteRawTag(41);
|
||||
output.WriteDouble(AudioSampleRate);
|
||||
}
|
||||
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 (HasSampleRate) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasNumChannels) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumChannels);
|
||||
}
|
||||
if (HasNumSamples) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumSamples);
|
||||
}
|
||||
if (HasPacketRate) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasAudioSampleRate) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
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(TimeSeriesHeader other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasSampleRate) {
|
||||
SampleRate = other.SampleRate;
|
||||
}
|
||||
if (other.HasNumChannels) {
|
||||
NumChannels = other.NumChannels;
|
||||
}
|
||||
if (other.HasNumSamples) {
|
||||
NumSamples = other.NumSamples;
|
||||
}
|
||||
if (other.HasPacketRate) {
|
||||
PacketRate = other.PacketRate;
|
||||
}
|
||||
if (other.HasAudioSampleRate) {
|
||||
AudioSampleRate = other.AudioSampleRate;
|
||||
}
|
||||
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 9: {
|
||||
SampleRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumChannels = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
NumSamples = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 33: {
|
||||
PacketRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
AudioSampleRate = 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:
|
||||
if (!pb::ExtensionSet.TryMergeFieldFrom(ref _extensions, ref input)) {
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
}
|
||||
break;
|
||||
case 9: {
|
||||
SampleRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumChannels = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
NumSamples = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 33: {
|
||||
PacketRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 41: {
|
||||
AudioSampleRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
public TValue GetExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension) {
|
||||
return pb::ExtensionSet.Get(ref _extensions, extension);
|
||||
}
|
||||
public pbc::RepeatedField<TValue> GetExtension<TValue>(pb::RepeatedExtension<TimeSeriesHeader, TValue> extension) {
|
||||
return pb::ExtensionSet.Get(ref _extensions, extension);
|
||||
}
|
||||
public pbc::RepeatedField<TValue> GetOrInitializeExtension<TValue>(pb::RepeatedExtension<TimeSeriesHeader, TValue> extension) {
|
||||
return pb::ExtensionSet.GetOrInitialize(ref _extensions, extension);
|
||||
}
|
||||
public void SetExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension, TValue value) {
|
||||
pb::ExtensionSet.Set(ref _extensions, extension, value);
|
||||
}
|
||||
public bool HasExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension) {
|
||||
return pb::ExtensionSet.Has(ref _extensions, extension);
|
||||
}
|
||||
public void ClearExtension<TValue>(pb::Extension<TimeSeriesHeader, TValue> extension) {
|
||||
pb::ExtensionSet.Clear(ref _extensions, extension);
|
||||
}
|
||||
public void ClearExtension<TValue>(pb::RepeatedExtension<TimeSeriesHeader, TValue> extension) {
|
||||
pb::ExtensionSet.Clear(ref _extensions, extension);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Header for a multi-stream time series. Each packet in the
|
||||
/// associated stream is a vector<Matrix> of size num_streams. Each
|
||||
/// Matrix in the vector is as specified by the time_series_header
|
||||
/// field.
|
||||
/// </summary>
|
||||
public sealed partial class MultiStreamTimeSeriesHeader : pb::IMessage<MultiStreamTimeSeriesHeader>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<MultiStreamTimeSeriesHeader> _parser = new pb::MessageParser<MultiStreamTimeSeriesHeader>(() => new MultiStreamTimeSeriesHeader());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<MultiStreamTimeSeriesHeader> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TimeSeriesHeaderReflection.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 MultiStreamTimeSeriesHeader() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MultiStreamTimeSeriesHeader(MultiStreamTimeSeriesHeader other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
timeSeriesHeader_ = other.timeSeriesHeader_ != null ? other.timeSeriesHeader_.Clone() : null;
|
||||
numStreams_ = other.numStreams_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MultiStreamTimeSeriesHeader Clone() {
|
||||
return new MultiStreamTimeSeriesHeader(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "time_series_header" field.</summary>
|
||||
public const int TimeSeriesHeaderFieldNumber = 1;
|
||||
private global::Mediapipe.TimeSeriesHeader timeSeriesHeader_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.TimeSeriesHeader TimeSeriesHeader {
|
||||
get { return timeSeriesHeader_; }
|
||||
set {
|
||||
timeSeriesHeader_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "num_streams" field.</summary>
|
||||
public const int NumStreamsFieldNumber = 2;
|
||||
private readonly static int NumStreamsDefaultValue = 0;
|
||||
|
||||
private int numStreams_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int NumStreams {
|
||||
get { if ((_hasBits0 & 1) != 0) { return numStreams_; } else { return NumStreamsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
numStreams_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "num_streams" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasNumStreams {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "num_streams" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearNumStreams() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as MultiStreamTimeSeriesHeader);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(MultiStreamTimeSeriesHeader other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(TimeSeriesHeader, other.TimeSeriesHeader)) return false;
|
||||
if (NumStreams != other.NumStreams) 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 (timeSeriesHeader_ != null) hash ^= TimeSeriesHeader.GetHashCode();
|
||||
if (HasNumStreams) hash ^= NumStreams.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 (timeSeriesHeader_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(TimeSeriesHeader);
|
||||
}
|
||||
if (HasNumStreams) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumStreams);
|
||||
}
|
||||
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 (timeSeriesHeader_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(TimeSeriesHeader);
|
||||
}
|
||||
if (HasNumStreams) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteInt32(NumStreams);
|
||||
}
|
||||
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 (timeSeriesHeader_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TimeSeriesHeader);
|
||||
}
|
||||
if (HasNumStreams) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(NumStreams);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(MultiStreamTimeSeriesHeader other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.timeSeriesHeader_ != null) {
|
||||
if (timeSeriesHeader_ == null) {
|
||||
TimeSeriesHeader = new global::Mediapipe.TimeSeriesHeader();
|
||||
}
|
||||
TimeSeriesHeader.MergeFrom(other.TimeSeriesHeader);
|
||||
}
|
||||
if (other.HasNumStreams) {
|
||||
NumStreams = other.NumStreams;
|
||||
}
|
||||
_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: {
|
||||
if (timeSeriesHeader_ == null) {
|
||||
TimeSeriesHeader = new global::Mediapipe.TimeSeriesHeader();
|
||||
}
|
||||
input.ReadMessage(TimeSeriesHeader);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumStreams = 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 10: {
|
||||
if (timeSeriesHeader_ == null) {
|
||||
TimeSeriesHeader = new global::Mediapipe.TimeSeriesHeader();
|
||||
}
|
||||
input.ReadMessage(TimeSeriesHeader);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
NumStreams = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0169013c78498316488386bfa21d8994
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user