Wes xx mediapipe integration

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

View File

@@ -0,0 +1,284 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/gpu/copy_calculator.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/gpu/copy_calculator.proto</summary>
public static partial class CopyCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/gpu/copy_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static CopyCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiNtZWRpYXBpcGUvZ3B1L2NvcHlfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFw",
"aXBlGiRtZWRpYXBpcGUvZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8i1wEK",
"FUNvcHlDYWxjdWxhdG9yT3B0aW9ucxJBCghyb3RhdGlvbhgBIAEoDjIpLm1l",
"ZGlhcGlwZS5Db3B5Q2FsY3VsYXRvck9wdGlvbnMuUm90YXRpb246BE5PTkUi",
"KwoIUm90YXRpb24SCAoETk9ORRAAEgcKA0NDVxABEgwKCENDV19GTElQEAIy",
"TgoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGLTykU0gASgL",
"MiAubWVkaWFwaXBlLkNvcHlDYWxjdWxhdG9yT3B0aW9ucw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.CopyCalculatorOptions), global::Mediapipe.CopyCalculatorOptions.Parser, new[]{ "Rotation" }, null, new[]{ typeof(global::Mediapipe.CopyCalculatorOptions.Types.Rotation) }, new pb::Extension[] { global::Mediapipe.CopyCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class CopyCalculatorOptions : pb::IMessage<CopyCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<CopyCalculatorOptions> _parser = new pb::MessageParser<CopyCalculatorOptions>(() => new CopyCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<CopyCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.CopyCalculatorReflection.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 CopyCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CopyCalculatorOptions(CopyCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
rotation_ = other.rotation_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public CopyCalculatorOptions Clone() {
return new CopyCalculatorOptions(this);
}
/// <summary>Field number for the "rotation" field.</summary>
public const int RotationFieldNumber = 1;
private readonly static global::Mediapipe.CopyCalculatorOptions.Types.Rotation RotationDefaultValue = global::Mediapipe.CopyCalculatorOptions.Types.Rotation.None;
private global::Mediapipe.CopyCalculatorOptions.Types.Rotation rotation_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.CopyCalculatorOptions.Types.Rotation 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 CopyCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(CopyCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (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 (HasRotation) hash ^= Rotation.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 (HasRotation) {
output.WriteRawTag(8);
output.WriteEnum((int) 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 (HasRotation) {
output.WriteRawTag(8);
output.WriteEnum((int) 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 (HasRotation) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) Rotation);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(CopyCalculatorOptions other) {
if (other == null) {
return;
}
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 8: {
Rotation = (global::Mediapipe.CopyCalculatorOptions.Types.Rotation) 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: {
Rotation = (global::Mediapipe.CopyCalculatorOptions.Types.Rotation) input.ReadEnum();
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the CopyCalculatorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum Rotation {
[pbr::OriginalName("NONE")] None = 0,
/// <summary>
/// rotate 90 degrees counterclockwise
/// </summary>
[pbr::OriginalName("CCW")] Ccw = 1,
/// <summary>
/// hack to rectify convfloat
/// </summary>
[pbr::OriginalName("CCW_FLIP")] CcwFlip = 2,
}
}
#endregion
#region Extensions
/// <summary>Container for extensions for other messages declared in the CopyCalculatorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.CopyCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.CopyCalculatorOptions>(161773876, pb::FieldCodec.ForMessage(1294191010, global::Mediapipe.CopyCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,259 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/gpu/gl_context_options.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/gpu/gl_context_options.proto</summary>
public static partial class GlContextOptionsReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/gpu/gl_context_options.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static GlContextOptionsReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CiZtZWRpYXBpcGUvZ3B1L2dsX2NvbnRleHRfb3B0aW9ucy5wcm90bxIJbWVk",
"aWFwaXBlGiRtZWRpYXBpcGUvZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8i",
"dgoQR2xDb250ZXh0T3B0aW9ucxIXCg9nbF9jb250ZXh0X25hbWUYASABKAky",
"SQoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGIKJgmogASgL",
"MhsubWVkaWFwaXBlLkdsQ29udGV4dE9wdGlvbnM="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.GlContextOptions), global::Mediapipe.GlContextOptions.Parser, new[]{ "GlContextName" }, null, null, new pb::Extension[] { global::Mediapipe.GlContextOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class GlContextOptions : pb::IMessage<GlContextOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<GlContextOptions> _parser = new pb::MessageParser<GlContextOptions>(() => new GlContextOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<GlContextOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.GlContextOptionsReflection.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 GlContextOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GlContextOptions(GlContextOptions other) : this() {
glContextName_ = other.glContextName_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GlContextOptions Clone() {
return new GlContextOptions(this);
}
/// <summary>Field number for the "gl_context_name" field.</summary>
public const int GlContextNameFieldNumber = 1;
private readonly static string GlContextNameDefaultValue = "";
private string glContextName_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string GlContextName {
get { return glContextName_ ?? GlContextNameDefaultValue; }
set {
glContextName_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "gl_context_name" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasGlContextName {
get { return glContextName_ != null; }
}
/// <summary>Clears the value of the "gl_context_name" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearGlContextName() {
glContextName_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GlContextOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GlContextOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (GlContextName != other.GlContextName) 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 (HasGlContextName) hash ^= GlContextName.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 (HasGlContextName) {
output.WriteRawTag(10);
output.WriteString(GlContextName);
}
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 (HasGlContextName) {
output.WriteRawTag(10);
output.WriteString(GlContextName);
}
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 (HasGlContextName) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(GlContextName);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GlContextOptions other) {
if (other == null) {
return;
}
if (other.HasGlContextName) {
GlContextName = other.GlContextName;
}
_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: {
GlContextName = 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 10: {
GlContextName = input.ReadString();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the GlContextOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.GlContextOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.GlContextOptions>(222332034, pb::FieldCodec.ForMessage(1778656274, global::Mediapipe.GlContextOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,599 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/gpu/gl_scaler_calculator.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/gpu/gl_scaler_calculator.proto</summary>
public static partial class GlScalerCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/gpu/gl_scaler_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static GlScalerCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CihtZWRpYXBpcGUvZ3B1L2dsX3NjYWxlcl9jYWxjdWxhdG9yLnByb3RvEglt",
"ZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90",
"bxoebWVkaWFwaXBlL2dwdS9zY2FsZV9tb2RlLnByb3RvIqYCChlHbFNjYWxl",
"ckNhbGN1bGF0b3JPcHRpb25zEhQKDG91dHB1dF93aWR0aBgBIAEoBRIVCg1v",
"dXRwdXRfaGVpZ2h0GAIgASgFEhcKDG91dHB1dF9zY2FsZRgHIAEoAjoBMRIQ",
"Cghyb3RhdGlvbhgDIAEoBRIVCg1mbGlwX3ZlcnRpY2FsGAQgASgIEhcKD2Zs",
"aXBfaG9yaXpvbnRhbBgFIAEoCBItCgpzY2FsZV9tb2RlGAYgASgOMhkubWVk",
"aWFwaXBlLlNjYWxlTW9kZS5Nb2RlMlIKA2V4dBIcLm1lZGlhcGlwZS5DYWxj",
"dWxhdG9yT3B0aW9ucxiWzapPIAEoCzIkLm1lZGlhcGlwZS5HbFNjYWxlckNh",
"bGN1bGF0b3JPcHRpb25z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ScaleModeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.GlScalerCalculatorOptions), global::Mediapipe.GlScalerCalculatorOptions.Parser, new[]{ "OutputWidth", "OutputHeight", "OutputScale", "Rotation", "FlipVertical", "FlipHorizontal", "ScaleMode" }, null, null, new pb::Extension[] { global::Mediapipe.GlScalerCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Next id: 8.
/// </summary>
public sealed partial class GlScalerCalculatorOptions : pb::IMessage<GlScalerCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<GlScalerCalculatorOptions> _parser = new pb::MessageParser<GlScalerCalculatorOptions>(() => new GlScalerCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<GlScalerCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.GlScalerCalculatorReflection.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 GlScalerCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GlScalerCalculatorOptions(GlScalerCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
outputWidth_ = other.outputWidth_;
outputHeight_ = other.outputHeight_;
outputScale_ = other.outputScale_;
rotation_ = other.rotation_;
flipVertical_ = other.flipVertical_;
flipHorizontal_ = other.flipHorizontal_;
scaleMode_ = other.scaleMode_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GlScalerCalculatorOptions Clone() {
return new GlScalerCalculatorOptions(this);
}
/// <summary>Field number for the "output_width" field.</summary>
public const int OutputWidthFieldNumber = 1;
private readonly static int OutputWidthDefaultValue = 0;
private int outputWidth_;
/// <summary>
/// Output dimensions.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int OutputWidth {
get { if ((_hasBits0 & 1) != 0) { return outputWidth_; } else { return OutputWidthDefaultValue; } }
set {
_hasBits0 |= 1;
outputWidth_ = value;
}
}
/// <summary>Gets whether the "output_width" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasOutputWidth {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "output_width" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearOutputWidth() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "output_height" field.</summary>
public const int OutputHeightFieldNumber = 2;
private readonly static int OutputHeightDefaultValue = 0;
private int outputHeight_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int OutputHeight {
get { if ((_hasBits0 & 2) != 0) { return outputHeight_; } else { return OutputHeightDefaultValue; } }
set {
_hasBits0 |= 2;
outputHeight_ = value;
}
}
/// <summary>Gets whether the "output_height" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasOutputHeight {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "output_height" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearOutputHeight() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "output_scale" field.</summary>
public const int OutputScaleFieldNumber = 7;
private readonly static float OutputScaleDefaultValue = 1F;
private float outputScale_;
/// <summary>
/// A scale factor for output size, while keeping aspect ratio. It has lower
/// priority than the above two fields. That is, it is effective only when the
/// above two fields are unset.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float OutputScale {
get { if ((_hasBits0 & 64) != 0) { return outputScale_; } else { return OutputScaleDefaultValue; } }
set {
_hasBits0 |= 64;
outputScale_ = value;
}
}
/// <summary>Gets whether the "output_scale" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasOutputScale {
get { return (_hasBits0 & 64) != 0; }
}
/// <summary>Clears the value of the "output_scale" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearOutputScale() {
_hasBits0 &= ~64;
}
/// <summary>Field number for the "rotation" field.</summary>
public const int RotationFieldNumber = 3;
private readonly static int RotationDefaultValue = 0;
private int rotation_;
/// <summary>
/// Counterclockwise rotation in degrees. Must be a multiple of 90.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Rotation {
get { if ((_hasBits0 & 4) != 0) { return rotation_; } else { return RotationDefaultValue; } }
set {
_hasBits0 |= 4;
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 & 4) != 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 &= ~4;
}
/// <summary>Field number for the "flip_vertical" field.</summary>
public const int FlipVerticalFieldNumber = 4;
private readonly static bool FlipVerticalDefaultValue = false;
private bool flipVertical_;
/// <summary>
/// Flip the output texture vertically. This is applied after rotation.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool FlipVertical {
get { if ((_hasBits0 & 8) != 0) { return flipVertical_; } else { return FlipVerticalDefaultValue; } }
set {
_hasBits0 |= 8;
flipVertical_ = value;
}
}
/// <summary>Gets whether the "flip_vertical" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFlipVertical {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "flip_vertical" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFlipVertical() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "flip_horizontal" field.</summary>
public const int FlipHorizontalFieldNumber = 5;
private readonly static bool FlipHorizontalDefaultValue = false;
private bool flipHorizontal_;
/// <summary>
/// Flip the output texture horizontally. This is applied after rotation.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool FlipHorizontal {
get { if ((_hasBits0 & 16) != 0) { return flipHorizontal_; } else { return FlipHorizontalDefaultValue; } }
set {
_hasBits0 |= 16;
flipHorizontal_ = value;
}
}
/// <summary>Gets whether the "flip_horizontal" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFlipHorizontal {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "flip_horizontal" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFlipHorizontal() {
_hasBits0 &= ~16;
}
/// <summary>Field number for the "scale_mode" field.</summary>
public const int ScaleModeFieldNumber = 6;
private readonly static global::Mediapipe.ScaleMode.Types.Mode ScaleModeDefaultValue = global::Mediapipe.ScaleMode.Types.Mode.Default;
private global::Mediapipe.ScaleMode.Types.Mode scaleMode_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.ScaleMode.Types.Mode ScaleMode {
get { if ((_hasBits0 & 32) != 0) { return scaleMode_; } else { return ScaleModeDefaultValue; } }
set {
_hasBits0 |= 32;
scaleMode_ = value;
}
}
/// <summary>Gets whether the "scale_mode" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasScaleMode {
get { return (_hasBits0 & 32) != 0; }
}
/// <summary>Clears the value of the "scale_mode" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearScaleMode() {
_hasBits0 &= ~32;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GlScalerCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GlScalerCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (OutputWidth != other.OutputWidth) return false;
if (OutputHeight != other.OutputHeight) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(OutputScale, other.OutputScale)) return false;
if (Rotation != other.Rotation) return false;
if (FlipVertical != other.FlipVertical) return false;
if (FlipHorizontal != other.FlipHorizontal) return false;
if (ScaleMode != other.ScaleMode) 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 (HasOutputWidth) hash ^= OutputWidth.GetHashCode();
if (HasOutputHeight) hash ^= OutputHeight.GetHashCode();
if (HasOutputScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(OutputScale);
if (HasRotation) hash ^= Rotation.GetHashCode();
if (HasFlipVertical) hash ^= FlipVertical.GetHashCode();
if (HasFlipHorizontal) hash ^= FlipHorizontal.GetHashCode();
if (HasScaleMode) hash ^= ScaleMode.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 (HasOutputWidth) {
output.WriteRawTag(8);
output.WriteInt32(OutputWidth);
}
if (HasOutputHeight) {
output.WriteRawTag(16);
output.WriteInt32(OutputHeight);
}
if (HasRotation) {
output.WriteRawTag(24);
output.WriteInt32(Rotation);
}
if (HasFlipVertical) {
output.WriteRawTag(32);
output.WriteBool(FlipVertical);
}
if (HasFlipHorizontal) {
output.WriteRawTag(40);
output.WriteBool(FlipHorizontal);
}
if (HasScaleMode) {
output.WriteRawTag(48);
output.WriteEnum((int) ScaleMode);
}
if (HasOutputScale) {
output.WriteRawTag(61);
output.WriteFloat(OutputScale);
}
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 (HasOutputWidth) {
output.WriteRawTag(8);
output.WriteInt32(OutputWidth);
}
if (HasOutputHeight) {
output.WriteRawTag(16);
output.WriteInt32(OutputHeight);
}
if (HasRotation) {
output.WriteRawTag(24);
output.WriteInt32(Rotation);
}
if (HasFlipVertical) {
output.WriteRawTag(32);
output.WriteBool(FlipVertical);
}
if (HasFlipHorizontal) {
output.WriteRawTag(40);
output.WriteBool(FlipHorizontal);
}
if (HasScaleMode) {
output.WriteRawTag(48);
output.WriteEnum((int) ScaleMode);
}
if (HasOutputScale) {
output.WriteRawTag(61);
output.WriteFloat(OutputScale);
}
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 (HasOutputWidth) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutputWidth);
}
if (HasOutputHeight) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(OutputHeight);
}
if (HasOutputScale) {
size += 1 + 4;
}
if (HasRotation) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Rotation);
}
if (HasFlipVertical) {
size += 1 + 1;
}
if (HasFlipHorizontal) {
size += 1 + 1;
}
if (HasScaleMode) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) ScaleMode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GlScalerCalculatorOptions other) {
if (other == null) {
return;
}
if (other.HasOutputWidth) {
OutputWidth = other.OutputWidth;
}
if (other.HasOutputHeight) {
OutputHeight = other.OutputHeight;
}
if (other.HasOutputScale) {
OutputScale = other.OutputScale;
}
if (other.HasRotation) {
Rotation = other.Rotation;
}
if (other.HasFlipVertical) {
FlipVertical = other.FlipVertical;
}
if (other.HasFlipHorizontal) {
FlipHorizontal = other.FlipHorizontal;
}
if (other.HasScaleMode) {
ScaleMode = other.ScaleMode;
}
_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: {
OutputWidth = input.ReadInt32();
break;
}
case 16: {
OutputHeight = input.ReadInt32();
break;
}
case 24: {
Rotation = input.ReadInt32();
break;
}
case 32: {
FlipVertical = input.ReadBool();
break;
}
case 40: {
FlipHorizontal = input.ReadBool();
break;
}
case 48: {
ScaleMode = (global::Mediapipe.ScaleMode.Types.Mode) input.ReadEnum();
break;
}
case 61: {
OutputScale = 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 8: {
OutputWidth = input.ReadInt32();
break;
}
case 16: {
OutputHeight = input.ReadInt32();
break;
}
case 24: {
Rotation = input.ReadInt32();
break;
}
case 32: {
FlipVertical = input.ReadBool();
break;
}
case 40: {
FlipHorizontal = input.ReadBool();
break;
}
case 48: {
ScaleMode = (global::Mediapipe.ScaleMode.Types.Mode) input.ReadEnum();
break;
}
case 61: {
OutputScale = input.ReadFloat();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the GlScalerCalculatorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.GlScalerCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.GlScalerCalculatorOptions>(166373014, pb::FieldCodec.ForMessage(1330984114, global::Mediapipe.GlScalerCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,267 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/gpu/gl_surface_sink_calculator.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/gpu/gl_surface_sink_calculator.proto</summary>
public static partial class GlSurfaceSinkCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/gpu/gl_surface_sink_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static GlSurfaceSinkCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ci5tZWRpYXBpcGUvZ3B1L2dsX3N1cmZhY2Vfc2lua19jYWxjdWxhdG9yLnBy",
"b3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRv",
"ci5wcm90bxoebWVkaWFwaXBlL2dwdS9zY2FsZV9tb2RlLnByb3RvIq4BCh5H",
"bFN1cmZhY2VTaW5rQ2FsY3VsYXRvck9wdGlvbnMSMwoQZnJhbWVfc2NhbGVf",
"bW9kZRgBIAEoDjIZLm1lZGlhcGlwZS5TY2FsZU1vZGUuTW9kZTJXCgNleHQS",
"HC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYivuDdCABKAsyKS5tZWRp",
"YXBpcGUuR2xTdXJmYWNlU2lua0NhbGN1bGF0b3JPcHRpb25z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.ScaleModeReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.GlSurfaceSinkCalculatorOptions), global::Mediapipe.GlSurfaceSinkCalculatorOptions.Parser, new[]{ "FrameScaleMode" }, null, null, new pb::Extension[] { global::Mediapipe.GlSurfaceSinkCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class GlSurfaceSinkCalculatorOptions : pb::IMessage<GlSurfaceSinkCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<GlSurfaceSinkCalculatorOptions> _parser = new pb::MessageParser<GlSurfaceSinkCalculatorOptions>(() => new GlSurfaceSinkCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<GlSurfaceSinkCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.GlSurfaceSinkCalculatorReflection.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 GlSurfaceSinkCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GlSurfaceSinkCalculatorOptions(GlSurfaceSinkCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
frameScaleMode_ = other.frameScaleMode_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GlSurfaceSinkCalculatorOptions Clone() {
return new GlSurfaceSinkCalculatorOptions(this);
}
/// <summary>Field number for the "frame_scale_mode" field.</summary>
public const int FrameScaleModeFieldNumber = 1;
private readonly static global::Mediapipe.ScaleMode.Types.Mode FrameScaleModeDefaultValue = global::Mediapipe.ScaleMode.Types.Mode.Default;
private global::Mediapipe.ScaleMode.Types.Mode frameScaleMode_;
/// <summary>
/// Output frame scale mode. Default is FILL_AND_CROP.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.ScaleMode.Types.Mode FrameScaleMode {
get { if ((_hasBits0 & 1) != 0) { return frameScaleMode_; } else { return FrameScaleModeDefaultValue; } }
set {
_hasBits0 |= 1;
frameScaleMode_ = value;
}
}
/// <summary>Gets whether the "frame_scale_mode" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFrameScaleMode {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "frame_scale_mode" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFrameScaleMode() {
_hasBits0 &= ~1;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GlSurfaceSinkCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GlSurfaceSinkCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (FrameScaleMode != other.FrameScaleMode) 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 (HasFrameScaleMode) hash ^= FrameScaleMode.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 (HasFrameScaleMode) {
output.WriteRawTag(8);
output.WriteEnum((int) FrameScaleMode);
}
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 (HasFrameScaleMode) {
output.WriteRawTag(8);
output.WriteEnum((int) FrameScaleMode);
}
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 (HasFrameScaleMode) {
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) FrameScaleMode);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(GlSurfaceSinkCalculatorOptions other) {
if (other == null) {
return;
}
if (other.HasFrameScaleMode) {
FrameScaleMode = other.FrameScaleMode;
}
_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: {
FrameScaleMode = (global::Mediapipe.ScaleMode.Types.Mode) 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: {
FrameScaleMode = (global::Mediapipe.ScaleMode.Types.Mode) input.ReadEnum();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the GlSurfaceSinkCalculatorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Extensions {
public static readonly pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.GlSurfaceSinkCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.GlSurfaceSinkCalculatorOptions>(243334538, pb::FieldCodec.ForMessage(1946676306, global::Mediapipe.GlSurfaceSinkCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,218 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/gpu/gpu_origin.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/gpu/gpu_origin.proto</summary>
public static partial class GpuOriginReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/gpu/gpu_origin.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static GpuOriginReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch5tZWRpYXBpcGUvZ3B1L2dwdV9vcmlnaW4ucHJvdG8SCW1lZGlhcGlwZSJA",
"CglHcHVPcmlnaW4iMwoETW9kZRILCgdERUZBVUxUEAASEAoMQ09OVkVOVElP",
"TkFMEAESDAoIVE9QX0xFRlQQAg=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.GpuOrigin), global::Mediapipe.GpuOrigin.Parser, null, null, new[]{ typeof(global::Mediapipe.GpuOrigin.Types.Mode) }, null, null)
}));
}
#endregion
}
#region Messages
public sealed partial class GpuOrigin : pb::IMessage<GpuOrigin>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<GpuOrigin> _parser = new pb::MessageParser<GpuOrigin>(() => new GpuOrigin());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<GpuOrigin> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.GpuOriginReflection.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 GpuOrigin() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GpuOrigin(GpuOrigin other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public GpuOrigin Clone() {
return new GpuOrigin(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as GpuOrigin);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(GpuOrigin 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(GpuOrigin 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 GpuOrigin message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public enum Mode {
[pbr::OriginalName("DEFAULT")] Default = 0,
/// <summary>
/// OpenGL: bottom-left origin
/// Metal : top-left origin
/// </summary>
[pbr::OriginalName("CONVENTIONAL")] Conventional = 1,
/// <summary>
/// OpenGL: top-left origin
/// Metal : top-left origin
/// </summary>
[pbr::OriginalName("TOP_LEFT")] TopLeft = 2,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,228 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/gpu/scale_mode.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/gpu/scale_mode.proto</summary>
public static partial class ScaleModeReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/gpu/scale_mode.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static ScaleModeReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Ch5tZWRpYXBpcGUvZ3B1L3NjYWxlX21vZGUucHJvdG8SCW1lZGlhcGlwZSJJ",
"CglTY2FsZU1vZGUiPAoETW9kZRILCgdERUZBVUxUEAASCwoHU1RSRVRDSBAB",
"EgcKA0ZJVBACEhEKDUZJTExfQU5EX0NST1AQAw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.ScaleMode), global::Mediapipe.ScaleMode.Parser, null, null, new[]{ typeof(global::Mediapipe.ScaleMode.Types.Mode) }, null, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// We wrap the enum in a message to avoid namespace collisions.
/// </summary>
public sealed partial class ScaleMode : pb::IMessage<ScaleMode>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<ScaleMode> _parser = new pb::MessageParser<ScaleMode>(() => new ScaleMode());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<ScaleMode> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.ScaleModeReflection.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 ScaleMode() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScaleMode(ScaleMode other) : this() {
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public ScaleMode Clone() {
return new ScaleMode(this);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as ScaleMode);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(ScaleMode 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(ScaleMode 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 ScaleMode message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
/// <summary>
/// This enum mirrors the ScaleModes supported by Quad Renderer.
/// </summary>
public enum Mode {
[pbr::OriginalName("DEFAULT")] Default = 0,
/// <summary>
/// Stretch the frame to the exact provided output dimensions.
/// </summary>
[pbr::OriginalName("STRETCH")] Stretch = 1,
/// <summary>
/// Scale the frame up to fit the drawing area, preserving aspect ratio; may
/// letterbox.
/// </summary>
[pbr::OriginalName("FIT")] Fit = 2,
/// <summary>
/// Scale the frame up to fill the drawing area, preserving aspect ratio; may
/// crop.
/// </summary>
[pbr::OriginalName("FILL_AND_CROP")] FillAndCrop = 3,
}
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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