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,286 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/video/box_detector_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/calculators/video/box_detector_calculator.proto</summary>
public static partial class BoxDetectorCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/box_detector_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static BoxDetectorCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjltZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vYm94X2RldGVjdG9yX2Nh",
"bGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2ZyYW1ld29y",
"ay9jYWxjdWxhdG9yLnByb3RvGiptZWRpYXBpcGUvdXRpbC90cmFja2luZy9i",
"b3hfZGV0ZWN0b3IucHJvdG8izQEKHEJveERldGVjdG9yQ2FsY3VsYXRvck9w",
"dGlvbnMSNwoQZGV0ZWN0b3Jfb3B0aW9ucxgBIAEoCzIdLm1lZGlhcGlwZS5C",
"b3hEZXRlY3Rvck9wdGlvbnMSHAoUaW5kZXhfcHJvdG9fZmlsZW5hbWUYAiAD",
"KAkyVgoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JPcHRpb25zGOLclIoB",
"IAEoCzInLm1lZGlhcGlwZS5Cb3hEZXRlY3RvckNhbGN1bGF0b3JPcHRpb25z"));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.BoxDetectorReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.BoxDetectorCalculatorOptions), global::Mediapipe.BoxDetectorCalculatorOptions.Parser, new[]{ "DetectorOptions", "IndexProtoFilename" }, null, null, new pb::Extension[] { global::Mediapipe.BoxDetectorCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class BoxDetectorCalculatorOptions : pb::IMessage<BoxDetectorCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BoxDetectorCalculatorOptions> _parser = new pb::MessageParser<BoxDetectorCalculatorOptions>(() => new BoxDetectorCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BoxDetectorCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.BoxDetectorCalculatorReflection.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 BoxDetectorCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BoxDetectorCalculatorOptions(BoxDetectorCalculatorOptions other) : this() {
detectorOptions_ = other.detectorOptions_ != null ? other.detectorOptions_.Clone() : null;
indexProtoFilename_ = other.indexProtoFilename_.Clone();
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BoxDetectorCalculatorOptions Clone() {
return new BoxDetectorCalculatorOptions(this);
}
/// <summary>Field number for the "detector_options" field.</summary>
public const int DetectorOptionsFieldNumber = 1;
private global::Mediapipe.BoxDetectorOptions detectorOptions_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.BoxDetectorOptions DetectorOptions {
get { return detectorOptions_; }
set {
detectorOptions_ = value;
}
}
/// <summary>Field number for the "index_proto_filename" field.</summary>
public const int IndexProtoFilenameFieldNumber = 2;
private static readonly pb::FieldCodec<string> _repeated_indexProtoFilename_codec
= pb::FieldCodec.ForString(18);
private readonly pbc::RepeatedField<string> indexProtoFilename_ = new pbc::RepeatedField<string>();
/// <summary>
/// File path to the template index files.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public pbc::RepeatedField<string> IndexProtoFilename {
get { return indexProtoFilename_; }
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BoxDetectorCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BoxDetectorCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(DetectorOptions, other.DetectorOptions)) return false;
if(!indexProtoFilename_.Equals(other.indexProtoFilename_)) 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 (detectorOptions_ != null) hash ^= DetectorOptions.GetHashCode();
hash ^= indexProtoFilename_.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 (detectorOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(DetectorOptions);
}
indexProtoFilename_.WriteTo(output, _repeated_indexProtoFilename_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 (detectorOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(DetectorOptions);
}
indexProtoFilename_.WriteTo(ref output, _repeated_indexProtoFilename_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 (detectorOptions_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(DetectorOptions);
}
size += indexProtoFilename_.CalculateSize(_repeated_indexProtoFilename_codec);
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BoxDetectorCalculatorOptions other) {
if (other == null) {
return;
}
if (other.detectorOptions_ != null) {
if (detectorOptions_ == null) {
DetectorOptions = new global::Mediapipe.BoxDetectorOptions();
}
DetectorOptions.MergeFrom(other.DetectorOptions);
}
indexProtoFilename_.Add(other.indexProtoFilename_);
_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 (detectorOptions_ == null) {
DetectorOptions = new global::Mediapipe.BoxDetectorOptions();
}
input.ReadMessage(DetectorOptions);
break;
}
case 18: {
indexProtoFilename_.AddEntriesFrom(input, _repeated_indexProtoFilename_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: {
if (detectorOptions_ == null) {
DetectorOptions = new global::Mediapipe.BoxDetectorOptions();
}
input.ReadMessage(DetectorOptions);
break;
}
case 18: {
indexProtoFilename_.AddEntriesFrom(ref input, _repeated_indexProtoFilename_codec);
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the BoxDetectorCalculatorOptions 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.BoxDetectorCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.BoxDetectorCalculatorOptions>(289746530, pb::FieldCodec.ForMessage(2317972242, global::Mediapipe.BoxDetectorCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,597 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/video/box_tracker_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/calculators/video/box_tracker_calculator.proto</summary>
public static partial class BoxTrackerCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/box_tracker_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static BoxTrackerCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjhtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vYm94X3RyYWNrZXJfY2Fs",
"Y3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUvZnJhbWV3b3Jr",
"L2NhbGN1bGF0b3IucHJvdG8aKW1lZGlhcGlwZS91dGlsL3RyYWNraW5nL2Jv",
"eF90cmFja2VyLnByb3RvIqgDChtCb3hUcmFja2VyQ2FsY3VsYXRvck9wdGlv",
"bnMSNQoPdHJhY2tlcl9vcHRpb25zGAEgASgLMhwubWVkaWFwaXBlLkJveFRy",
"YWNrZXJPcHRpb25zEjYKEGluaXRpYWxfcG9zaXRpb24YAiABKAsyHC5tZWRp",
"YXBpcGUuVGltZWRCb3hQcm90b0xpc3QSJgoXdmlzdWFsaXplX3RyYWNraW5n",
"X2RhdGEYAyABKAg6BWZhbHNlEh4KD3Zpc3VhbGl6ZV9zdGF0ZRgEIAEoCDoF",
"ZmFsc2USJwoYdmlzdWFsaXplX2ludGVybmFsX3N0YXRlGAUgASgIOgVmYWxz",
"ZRIqCh9zdHJlYW1pbmdfdHJhY2tfZGF0YV9jYWNoZV9zaXplGAYgASgFOgEw",
"EiYKG3N0YXJ0X3Bvc190cmFuc2l0aW9uX2ZyYW1lcxgHIAEoBToBMDJVCgNl",
"eHQSHC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMY9KSUgAEgASgLMiYu",
"bWVkaWFwaXBlLkJveFRyYWNrZXJDYWxjdWxhdG9yT3B0aW9ucw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.BoxTrackerReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.BoxTrackerCalculatorOptions), global::Mediapipe.BoxTrackerCalculatorOptions.Parser, new[]{ "TrackerOptions", "InitialPosition", "VisualizeTrackingData", "VisualizeState", "VisualizeInternalState", "StreamingTrackDataCacheSize", "StartPosTransitionFrames" }, null, null, new pb::Extension[] { global::Mediapipe.BoxTrackerCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class BoxTrackerCalculatorOptions : pb::IMessage<BoxTrackerCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<BoxTrackerCalculatorOptions> _parser = new pb::MessageParser<BoxTrackerCalculatorOptions>(() => new BoxTrackerCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<BoxTrackerCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.BoxTrackerCalculatorReflection.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 BoxTrackerCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BoxTrackerCalculatorOptions(BoxTrackerCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
trackerOptions_ = other.trackerOptions_ != null ? other.trackerOptions_.Clone() : null;
initialPosition_ = other.initialPosition_ != null ? other.initialPosition_.Clone() : null;
visualizeTrackingData_ = other.visualizeTrackingData_;
visualizeState_ = other.visualizeState_;
visualizeInternalState_ = other.visualizeInternalState_;
streamingTrackDataCacheSize_ = other.streamingTrackDataCacheSize_;
startPosTransitionFrames_ = other.startPosTransitionFrames_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public BoxTrackerCalculatorOptions Clone() {
return new BoxTrackerCalculatorOptions(this);
}
/// <summary>Field number for the "tracker_options" field.</summary>
public const int TrackerOptionsFieldNumber = 1;
private global::Mediapipe.BoxTrackerOptions trackerOptions_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.BoxTrackerOptions TrackerOptions {
get { return trackerOptions_; }
set {
trackerOptions_ = value;
}
}
/// <summary>Field number for the "initial_position" field.</summary>
public const int InitialPositionFieldNumber = 2;
private global::Mediapipe.TimedBoxProtoList initialPosition_;
/// <summary>
/// Initial position to be tracked. Can also be supplied as side packet or
/// as input stream.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.TimedBoxProtoList InitialPosition {
get { return initialPosition_; }
set {
initialPosition_ = value;
}
}
/// <summary>Field number for the "visualize_tracking_data" field.</summary>
public const int VisualizeTrackingDataFieldNumber = 3;
private readonly static bool VisualizeTrackingDataDefaultValue = false;
private bool visualizeTrackingData_;
/// <summary>
/// If set and VIZ stream is present, renders tracking data into the
/// visualization.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool VisualizeTrackingData {
get { if ((_hasBits0 & 1) != 0) { return visualizeTrackingData_; } else { return VisualizeTrackingDataDefaultValue; } }
set {
_hasBits0 |= 1;
visualizeTrackingData_ = value;
}
}
/// <summary>Gets whether the "visualize_tracking_data" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasVisualizeTrackingData {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "visualize_tracking_data" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearVisualizeTrackingData() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "visualize_state" field.</summary>
public const int VisualizeStateFieldNumber = 4;
private readonly static bool VisualizeStateDefaultValue = false;
private bool visualizeState_;
/// <summary>
/// If set and VIZ stream is present, renders the box state
/// into the visualization.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool VisualizeState {
get { if ((_hasBits0 & 2) != 0) { return visualizeState_; } else { return VisualizeStateDefaultValue; } }
set {
_hasBits0 |= 2;
visualizeState_ = value;
}
}
/// <summary>Gets whether the "visualize_state" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasVisualizeState {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "visualize_state" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearVisualizeState() {
_hasBits0 &= ~2;
}
/// <summary>Field number for the "visualize_internal_state" field.</summary>
public const int VisualizeInternalStateFieldNumber = 5;
private readonly static bool VisualizeInternalStateDefaultValue = false;
private bool visualizeInternalState_;
/// <summary>
/// If set and VIZ stream is present, renders the internal box state
/// into the visualization.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool VisualizeInternalState {
get { if ((_hasBits0 & 4) != 0) { return visualizeInternalState_; } else { return VisualizeInternalStateDefaultValue; } }
set {
_hasBits0 |= 4;
visualizeInternalState_ = value;
}
}
/// <summary>Gets whether the "visualize_internal_state" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasVisualizeInternalState {
get { return (_hasBits0 & 4) != 0; }
}
/// <summary>Clears the value of the "visualize_internal_state" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearVisualizeInternalState() {
_hasBits0 &= ~4;
}
/// <summary>Field number for the "streaming_track_data_cache_size" field.</summary>
public const int StreamingTrackDataCacheSizeFieldNumber = 6;
private readonly static int StreamingTrackDataCacheSizeDefaultValue = 0;
private int streamingTrackDataCacheSize_;
/// <summary>
/// Size of the track data cache during streaming mode. This allows to buffer
/// track_data's for fast forward tracking, i.e. any TimedBox received
/// via input stream START_POS can be tracked towards the current track head
/// (i.e. last received TrackingData). Measured in number of frames.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int StreamingTrackDataCacheSize {
get { if ((_hasBits0 & 8) != 0) { return streamingTrackDataCacheSize_; } else { return StreamingTrackDataCacheSizeDefaultValue; } }
set {
_hasBits0 |= 8;
streamingTrackDataCacheSize_ = value;
}
}
/// <summary>Gets whether the "streaming_track_data_cache_size" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasStreamingTrackDataCacheSize {
get { return (_hasBits0 & 8) != 0; }
}
/// <summary>Clears the value of the "streaming_track_data_cache_size" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearStreamingTrackDataCacheSize() {
_hasBits0 &= ~8;
}
/// <summary>Field number for the "start_pos_transition_frames" field.</summary>
public const int StartPosTransitionFramesFieldNumber = 7;
private readonly static int StartPosTransitionFramesDefaultValue = 0;
private int startPosTransitionFrames_;
/// <summary>
/// Add a transition period of N frames to smooth the jump from original
/// tracking to reset start pos with motion compensation. The transition will
/// be a linear decay of original tracking result. 0 means no transition.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int StartPosTransitionFrames {
get { if ((_hasBits0 & 16) != 0) { return startPosTransitionFrames_; } else { return StartPosTransitionFramesDefaultValue; } }
set {
_hasBits0 |= 16;
startPosTransitionFrames_ = value;
}
}
/// <summary>Gets whether the "start_pos_transition_frames" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasStartPosTransitionFrames {
get { return (_hasBits0 & 16) != 0; }
}
/// <summary>Clears the value of the "start_pos_transition_frames" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearStartPosTransitionFrames() {
_hasBits0 &= ~16;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as BoxTrackerCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(BoxTrackerCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(TrackerOptions, other.TrackerOptions)) return false;
if (!object.Equals(InitialPosition, other.InitialPosition)) return false;
if (VisualizeTrackingData != other.VisualizeTrackingData) return false;
if (VisualizeState != other.VisualizeState) return false;
if (VisualizeInternalState != other.VisualizeInternalState) return false;
if (StreamingTrackDataCacheSize != other.StreamingTrackDataCacheSize) return false;
if (StartPosTransitionFrames != other.StartPosTransitionFrames) 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 (trackerOptions_ != null) hash ^= TrackerOptions.GetHashCode();
if (initialPosition_ != null) hash ^= InitialPosition.GetHashCode();
if (HasVisualizeTrackingData) hash ^= VisualizeTrackingData.GetHashCode();
if (HasVisualizeState) hash ^= VisualizeState.GetHashCode();
if (HasVisualizeInternalState) hash ^= VisualizeInternalState.GetHashCode();
if (HasStreamingTrackDataCacheSize) hash ^= StreamingTrackDataCacheSize.GetHashCode();
if (HasStartPosTransitionFrames) hash ^= StartPosTransitionFrames.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 (trackerOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TrackerOptions);
}
if (initialPosition_ != null) {
output.WriteRawTag(18);
output.WriteMessage(InitialPosition);
}
if (HasVisualizeTrackingData) {
output.WriteRawTag(24);
output.WriteBool(VisualizeTrackingData);
}
if (HasVisualizeState) {
output.WriteRawTag(32);
output.WriteBool(VisualizeState);
}
if (HasVisualizeInternalState) {
output.WriteRawTag(40);
output.WriteBool(VisualizeInternalState);
}
if (HasStreamingTrackDataCacheSize) {
output.WriteRawTag(48);
output.WriteInt32(StreamingTrackDataCacheSize);
}
if (HasStartPosTransitionFrames) {
output.WriteRawTag(56);
output.WriteInt32(StartPosTransitionFrames);
}
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 (trackerOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TrackerOptions);
}
if (initialPosition_ != null) {
output.WriteRawTag(18);
output.WriteMessage(InitialPosition);
}
if (HasVisualizeTrackingData) {
output.WriteRawTag(24);
output.WriteBool(VisualizeTrackingData);
}
if (HasVisualizeState) {
output.WriteRawTag(32);
output.WriteBool(VisualizeState);
}
if (HasVisualizeInternalState) {
output.WriteRawTag(40);
output.WriteBool(VisualizeInternalState);
}
if (HasStreamingTrackDataCacheSize) {
output.WriteRawTag(48);
output.WriteInt32(StreamingTrackDataCacheSize);
}
if (HasStartPosTransitionFrames) {
output.WriteRawTag(56);
output.WriteInt32(StartPosTransitionFrames);
}
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 (trackerOptions_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackerOptions);
}
if (initialPosition_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(InitialPosition);
}
if (HasVisualizeTrackingData) {
size += 1 + 1;
}
if (HasVisualizeState) {
size += 1 + 1;
}
if (HasVisualizeInternalState) {
size += 1 + 1;
}
if (HasStreamingTrackDataCacheSize) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StreamingTrackDataCacheSize);
}
if (HasStartPosTransitionFrames) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(StartPosTransitionFrames);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(BoxTrackerCalculatorOptions other) {
if (other == null) {
return;
}
if (other.trackerOptions_ != null) {
if (trackerOptions_ == null) {
TrackerOptions = new global::Mediapipe.BoxTrackerOptions();
}
TrackerOptions.MergeFrom(other.TrackerOptions);
}
if (other.initialPosition_ != null) {
if (initialPosition_ == null) {
InitialPosition = new global::Mediapipe.TimedBoxProtoList();
}
InitialPosition.MergeFrom(other.InitialPosition);
}
if (other.HasVisualizeTrackingData) {
VisualizeTrackingData = other.VisualizeTrackingData;
}
if (other.HasVisualizeState) {
VisualizeState = other.VisualizeState;
}
if (other.HasVisualizeInternalState) {
VisualizeInternalState = other.VisualizeInternalState;
}
if (other.HasStreamingTrackDataCacheSize) {
StreamingTrackDataCacheSize = other.StreamingTrackDataCacheSize;
}
if (other.HasStartPosTransitionFrames) {
StartPosTransitionFrames = other.StartPosTransitionFrames;
}
_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 (trackerOptions_ == null) {
TrackerOptions = new global::Mediapipe.BoxTrackerOptions();
}
input.ReadMessage(TrackerOptions);
break;
}
case 18: {
if (initialPosition_ == null) {
InitialPosition = new global::Mediapipe.TimedBoxProtoList();
}
input.ReadMessage(InitialPosition);
break;
}
case 24: {
VisualizeTrackingData = input.ReadBool();
break;
}
case 32: {
VisualizeState = input.ReadBool();
break;
}
case 40: {
VisualizeInternalState = input.ReadBool();
break;
}
case 48: {
StreamingTrackDataCacheSize = input.ReadInt32();
break;
}
case 56: {
StartPosTransitionFrames = 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 (trackerOptions_ == null) {
TrackerOptions = new global::Mediapipe.BoxTrackerOptions();
}
input.ReadMessage(TrackerOptions);
break;
}
case 18: {
if (initialPosition_ == null) {
InitialPosition = new global::Mediapipe.TimedBoxProtoList();
}
input.ReadMessage(InitialPosition);
break;
}
case 24: {
VisualizeTrackingData = input.ReadBool();
break;
}
case 32: {
VisualizeState = input.ReadBool();
break;
}
case 40: {
VisualizeInternalState = input.ReadBool();
break;
}
case 48: {
StreamingTrackDataCacheSize = input.ReadInt32();
break;
}
case 56: {
StartPosTransitionFrames = input.ReadInt32();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the BoxTrackerCalculatorOptions 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.BoxTrackerCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.BoxTrackerCalculatorOptions>(268767860, pb::FieldCodec.ForMessage(2150142882, global::Mediapipe.BoxTrackerCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,370 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/video/flow_packager_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/calculators/video/flow_packager_calculator.proto</summary>
public static partial class FlowPackagerCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/flow_packager_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FlowPackagerCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjptZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vZmxvd19wYWNrYWdlcl9j",
"YWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdv",
"cmsvY2FsY3VsYXRvci5wcm90bxorbWVkaWFwaXBlL3V0aWwvdHJhY2tpbmcv",
"Zmxvd19wYWNrYWdlci5wcm90byKFAgodRmxvd1BhY2thZ2VyQ2FsY3VsYXRv",
"ck9wdGlvbnMSPQoVZmxvd19wYWNrYWdlcl9vcHRpb25zGAEgASgLMh4ubWVk",
"aWFwaXBlLkZsb3dQYWNrYWdlck9wdGlvbnMSJQoXY2FjaGluZ19jaHVua19z",
"aXplX21zZWMYAiABKAU6BDI1MDASJQoRY2FjaGVfZmlsZV9mb3JtYXQYAyAB",
"KAk6CmNodW5rXyUwNGQyVwoDZXh0EhwubWVkaWFwaXBlLkNhbGN1bGF0b3JP",
"cHRpb25zGLP4qoEBIAEoCzIoLm1lZGlhcGlwZS5GbG93UGFja2FnZXJDYWxj",
"dWxhdG9yT3B0aW9ucw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.FlowPackagerReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.FlowPackagerCalculatorOptions), global::Mediapipe.FlowPackagerCalculatorOptions.Parser, new[]{ "FlowPackagerOptions", "CachingChunkSizeMsec", "CacheFileFormat" }, null, null, new pb::Extension[] { global::Mediapipe.FlowPackagerCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class FlowPackagerCalculatorOptions : pb::IMessage<FlowPackagerCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<FlowPackagerCalculatorOptions> _parser = new pb::MessageParser<FlowPackagerCalculatorOptions>(() => new FlowPackagerCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<FlowPackagerCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.FlowPackagerCalculatorReflection.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 FlowPackagerCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FlowPackagerCalculatorOptions(FlowPackagerCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
flowPackagerOptions_ = other.flowPackagerOptions_ != null ? other.flowPackagerOptions_.Clone() : null;
cachingChunkSizeMsec_ = other.cachingChunkSizeMsec_;
cacheFileFormat_ = other.cacheFileFormat_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FlowPackagerCalculatorOptions Clone() {
return new FlowPackagerCalculatorOptions(this);
}
/// <summary>Field number for the "flow_packager_options" field.</summary>
public const int FlowPackagerOptionsFieldNumber = 1;
private global::Mediapipe.FlowPackagerOptions flowPackagerOptions_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.FlowPackagerOptions FlowPackagerOptions {
get { return flowPackagerOptions_; }
set {
flowPackagerOptions_ = value;
}
}
/// <summary>Field number for the "caching_chunk_size_msec" field.</summary>
public const int CachingChunkSizeMsecFieldNumber = 2;
private readonly static int CachingChunkSizeMsecDefaultValue = 2500;
private int cachingChunkSizeMsec_;
/// <summary>
/// Chunk size for caching files that are written to the externally specified
/// caching directory. Specified in msec.
/// Note that each chunk always contains at its end the first frame of the
/// next chunk (to enable forward tracking across chunk boundaries).
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int CachingChunkSizeMsec {
get { if ((_hasBits0 & 1) != 0) { return cachingChunkSizeMsec_; } else { return CachingChunkSizeMsecDefaultValue; } }
set {
_hasBits0 |= 1;
cachingChunkSizeMsec_ = value;
}
}
/// <summary>Gets whether the "caching_chunk_size_msec" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasCachingChunkSizeMsec {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "caching_chunk_size_msec" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearCachingChunkSizeMsec() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "cache_file_format" field.</summary>
public const int CacheFileFormatFieldNumber = 3;
private readonly static string CacheFileFormatDefaultValue = global::System.Text.Encoding.UTF8.GetString(global::System.Convert.FromBase64String("Y2h1bmtfJTA0ZA=="), 0, 10);
private string cacheFileFormat_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string CacheFileFormat {
get { return cacheFileFormat_ ?? CacheFileFormatDefaultValue; }
set {
cacheFileFormat_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "cache_file_format" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasCacheFileFormat {
get { return cacheFileFormat_ != null; }
}
/// <summary>Clears the value of the "cache_file_format" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearCacheFileFormat() {
cacheFileFormat_ = null;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as FlowPackagerCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(FlowPackagerCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(FlowPackagerOptions, other.FlowPackagerOptions)) return false;
if (CachingChunkSizeMsec != other.CachingChunkSizeMsec) return false;
if (CacheFileFormat != other.CacheFileFormat) 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 (flowPackagerOptions_ != null) hash ^= FlowPackagerOptions.GetHashCode();
if (HasCachingChunkSizeMsec) hash ^= CachingChunkSizeMsec.GetHashCode();
if (HasCacheFileFormat) hash ^= CacheFileFormat.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 (flowPackagerOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(FlowPackagerOptions);
}
if (HasCachingChunkSizeMsec) {
output.WriteRawTag(16);
output.WriteInt32(CachingChunkSizeMsec);
}
if (HasCacheFileFormat) {
output.WriteRawTag(26);
output.WriteString(CacheFileFormat);
}
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 (flowPackagerOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(FlowPackagerOptions);
}
if (HasCachingChunkSizeMsec) {
output.WriteRawTag(16);
output.WriteInt32(CachingChunkSizeMsec);
}
if (HasCacheFileFormat) {
output.WriteRawTag(26);
output.WriteString(CacheFileFormat);
}
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 (flowPackagerOptions_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(FlowPackagerOptions);
}
if (HasCachingChunkSizeMsec) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(CachingChunkSizeMsec);
}
if (HasCacheFileFormat) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(CacheFileFormat);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(FlowPackagerCalculatorOptions other) {
if (other == null) {
return;
}
if (other.flowPackagerOptions_ != null) {
if (flowPackagerOptions_ == null) {
FlowPackagerOptions = new global::Mediapipe.FlowPackagerOptions();
}
FlowPackagerOptions.MergeFrom(other.FlowPackagerOptions);
}
if (other.HasCachingChunkSizeMsec) {
CachingChunkSizeMsec = other.CachingChunkSizeMsec;
}
if (other.HasCacheFileFormat) {
CacheFileFormat = other.CacheFileFormat;
}
_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 (flowPackagerOptions_ == null) {
FlowPackagerOptions = new global::Mediapipe.FlowPackagerOptions();
}
input.ReadMessage(FlowPackagerOptions);
break;
}
case 16: {
CachingChunkSizeMsec = input.ReadInt32();
break;
}
case 26: {
CacheFileFormat = 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: {
if (flowPackagerOptions_ == null) {
FlowPackagerOptions = new global::Mediapipe.FlowPackagerOptions();
}
input.ReadMessage(FlowPackagerOptions);
break;
}
case 16: {
CachingChunkSizeMsec = input.ReadInt32();
break;
}
case 26: {
CacheFileFormat = input.ReadString();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the FlowPackagerCalculatorOptions 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.FlowPackagerCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FlowPackagerCalculatorOptions>(271236147, pb::FieldCodec.ForMessage(2169889178, global::Mediapipe.FlowPackagerCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,320 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/video/flow_to_image_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/calculators/video/flow_to_image_calculator.proto</summary>
public static partial class FlowToImageCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/flow_to_image_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static FlowToImageCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CjptZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vZmxvd190b19pbWFnZV9j",
"YWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFtZXdv",
"cmsvY2FsY3VsYXRvci5wcm90byKkAQocRmxvd1RvSW1hZ2VDYWxjdWxhdG9y",
"T3B0aW9ucxIWCgltaW5fdmFsdWUYASABKAI6Ay00MBIVCgltYXhfdmFsdWUY",
"AiABKAI6AjQwMlUKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9u",
"cxjwu5IhIAEoCzInLm1lZGlhcGlwZS5GbG93VG9JbWFnZUNhbGN1bGF0b3JP",
"cHRpb25z"));
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.FlowToImageCalculatorOptions), global::Mediapipe.FlowToImageCalculatorOptions.Parser, new[]{ "MinValue", "MaxValue" }, null, null, new pb::Extension[] { global::Mediapipe.FlowToImageCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
/// <summary>
/// Specifies the maximum and minimum value to truncate when normalize optical
/// flow fields.
/// </summary>
public sealed partial class FlowToImageCalculatorOptions : pb::IMessage<FlowToImageCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<FlowToImageCalculatorOptions> _parser = new pb::MessageParser<FlowToImageCalculatorOptions>(() => new FlowToImageCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<FlowToImageCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.FlowToImageCalculatorReflection.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 FlowToImageCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FlowToImageCalculatorOptions(FlowToImageCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
minValue_ = other.minValue_;
maxValue_ = other.maxValue_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public FlowToImageCalculatorOptions Clone() {
return new FlowToImageCalculatorOptions(this);
}
/// <summary>Field number for the "min_value" field.</summary>
public const int MinValueFieldNumber = 1;
private readonly static float MinValueDefaultValue = -40F;
private float minValue_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float MinValue {
get { if ((_hasBits0 & 1) != 0) { return minValue_; } else { return MinValueDefaultValue; } }
set {
_hasBits0 |= 1;
minValue_ = value;
}
}
/// <summary>Gets whether the "min_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasMinValue {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "min_value" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearMinValue() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "max_value" field.</summary>
public const int MaxValueFieldNumber = 2;
private readonly static float MaxValueDefaultValue = 40F;
private float maxValue_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public float MaxValue {
get { if ((_hasBits0 & 2) != 0) { return maxValue_; } else { return MaxValueDefaultValue; } }
set {
_hasBits0 |= 2;
maxValue_ = value;
}
}
/// <summary>Gets whether the "max_value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasMaxValue {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "max_value" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearMaxValue() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as FlowToImageCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(FlowToImageCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinValue, other.MinValue)) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxValue, other.MaxValue)) 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 (HasMinValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinValue);
if (HasMaxValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxValue);
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 (HasMinValue) {
output.WriteRawTag(13);
output.WriteFloat(MinValue);
}
if (HasMaxValue) {
output.WriteRawTag(21);
output.WriteFloat(MaxValue);
}
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 (HasMinValue) {
output.WriteRawTag(13);
output.WriteFloat(MinValue);
}
if (HasMaxValue) {
output.WriteRawTag(21);
output.WriteFloat(MaxValue);
}
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 (HasMinValue) {
size += 1 + 4;
}
if (HasMaxValue) {
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(FlowToImageCalculatorOptions other) {
if (other == null) {
return;
}
if (other.HasMinValue) {
MinValue = other.MinValue;
}
if (other.HasMaxValue) {
MaxValue = other.MaxValue;
}
_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: {
MinValue = input.ReadFloat();
break;
}
case 21: {
MaxValue = 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: {
MinValue = input.ReadFloat();
break;
}
case 21: {
MaxValue = input.ReadFloat();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the FlowToImageCalculatorOptions 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.FlowToImageCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.FlowToImageCalculatorOptions>(69508592, pb::FieldCodec.ForMessage(556068738, global::Mediapipe.FlowToImageCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

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

View File

@@ -0,0 +1,483 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/video/opencv_video_encoder_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/calculators/video/opencv_video_encoder_calculator.proto</summary>
public static partial class OpencvVideoEncoderCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/opencv_video_encoder_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static OpencvVideoEncoderCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkFtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vb3BlbmN2X3ZpZGVvX2Vu",
"Y29kZXJfY2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUv",
"ZnJhbWV3b3JrL2NhbGN1bGF0b3IucHJvdG8i1AEKI09wZW5DdlZpZGVvRW5j",
"b2RlckNhbGN1bGF0b3JPcHRpb25zEg0KBWNvZGVjGAEgASgJEhQKDHZpZGVv",
"X2Zvcm1hdBgCIAEoCRILCgNmcHMYAyABKAESDQoFd2lkdGgYBCABKAUSDgoG",
"aGVpZ2h0GAUgASgFMlwKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0",
"aW9ucxj7uZNjIAEoCzIuLm1lZGlhcGlwZS5PcGVuQ3ZWaWRlb0VuY29kZXJD",
"YWxjdWxhdG9yT3B0aW9ucw=="));
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.OpenCvVideoEncoderCalculatorOptions), global::Mediapipe.OpenCvVideoEncoderCalculatorOptions.Parser, new[]{ "Codec", "VideoFormat", "Fps", "Width", "Height" }, null, null, new pb::Extension[] { global::Mediapipe.OpenCvVideoEncoderCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class OpenCvVideoEncoderCalculatorOptions : pb::IMessage<OpenCvVideoEncoderCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<OpenCvVideoEncoderCalculatorOptions> _parser = new pb::MessageParser<OpenCvVideoEncoderCalculatorOptions>(() => new OpenCvVideoEncoderCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<OpenCvVideoEncoderCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.OpencvVideoEncoderCalculatorReflection.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 OpenCvVideoEncoderCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvVideoEncoderCalculatorOptions(OpenCvVideoEncoderCalculatorOptions other) : this() {
_hasBits0 = other._hasBits0;
codec_ = other.codec_;
videoFormat_ = other.videoFormat_;
fps_ = other.fps_;
width_ = other.width_;
height_ = other.height_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public OpenCvVideoEncoderCalculatorOptions Clone() {
return new OpenCvVideoEncoderCalculatorOptions(this);
}
/// <summary>Field number for the "codec" field.</summary>
public const int CodecFieldNumber = 1;
private readonly static string CodecDefaultValue = "";
private string codec_;
/// <summary>
/// The 4-character code of the codec to encode the video.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string Codec {
get { return codec_ ?? CodecDefaultValue; }
set {
codec_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "codec" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasCodec {
get { return codec_ != null; }
}
/// <summary>Clears the value of the "codec" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearCodec() {
codec_ = null;
}
/// <summary>Field number for the "video_format" field.</summary>
public const int VideoFormatFieldNumber = 2;
private readonly static string VideoFormatDefaultValue = "";
private string videoFormat_;
/// <summary>
/// The video format of the output video file.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public string VideoFormat {
get { return videoFormat_ ?? VideoFormatDefaultValue; }
set {
videoFormat_ = pb::ProtoPreconditions.CheckNotNull(value, "value");
}
}
/// <summary>Gets whether the "video_format" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasVideoFormat {
get { return videoFormat_ != null; }
}
/// <summary>Clears the value of the "video_format" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearVideoFormat() {
videoFormat_ = null;
}
/// <summary>Field number for the "fps" field.</summary>
public const int FpsFieldNumber = 3;
private readonly static double FpsDefaultValue = 0D;
private double fps_;
/// <summary>
/// The frame rate in Hz at which the video frames are output.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Fps {
get { if ((_hasBits0 & 1) != 0) { return fps_; } else { return FpsDefaultValue; } }
set {
_hasBits0 |= 1;
fps_ = value;
}
}
/// <summary>Gets whether the "fps" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasFps {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "fps" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearFps() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "width" field.</summary>
public const int WidthFieldNumber = 4;
private readonly static int WidthDefaultValue = 0;
private int width_;
/// <summary>
/// Dimensions of the video in pixels.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Width {
get { if ((_hasBits0 & 2) != 0) { return width_; } else { return WidthDefaultValue; } }
set {
_hasBits0 |= 2;
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 & 2) != 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 &= ~2;
}
/// <summary>Field number for the "height" field.</summary>
public const int HeightFieldNumber = 5;
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 & 4) != 0) { return height_; } else { return HeightDefaultValue; } }
set {
_hasBits0 |= 4;
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 & 4) != 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 &= ~4;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as OpenCvVideoEncoderCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(OpenCvVideoEncoderCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Codec != other.Codec) return false;
if (VideoFormat != other.VideoFormat) return false;
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Fps, other.Fps)) return false;
if (Width != other.Width) return false;
if (Height != other.Height) 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 (HasCodec) hash ^= Codec.GetHashCode();
if (HasVideoFormat) hash ^= VideoFormat.GetHashCode();
if (HasFps) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Fps);
if (HasWidth) hash ^= Width.GetHashCode();
if (HasHeight) hash ^= Height.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 (HasCodec) {
output.WriteRawTag(10);
output.WriteString(Codec);
}
if (HasVideoFormat) {
output.WriteRawTag(18);
output.WriteString(VideoFormat);
}
if (HasFps) {
output.WriteRawTag(25);
output.WriteDouble(Fps);
}
if (HasWidth) {
output.WriteRawTag(32);
output.WriteInt32(Width);
}
if (HasHeight) {
output.WriteRawTag(40);
output.WriteInt32(Height);
}
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 (HasCodec) {
output.WriteRawTag(10);
output.WriteString(Codec);
}
if (HasVideoFormat) {
output.WriteRawTag(18);
output.WriteString(VideoFormat);
}
if (HasFps) {
output.WriteRawTag(25);
output.WriteDouble(Fps);
}
if (HasWidth) {
output.WriteRawTag(32);
output.WriteInt32(Width);
}
if (HasHeight) {
output.WriteRawTag(40);
output.WriteInt32(Height);
}
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 (HasCodec) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(Codec);
}
if (HasVideoFormat) {
size += 1 + pb::CodedOutputStream.ComputeStringSize(VideoFormat);
}
if (HasFps) {
size += 1 + 8;
}
if (HasWidth) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Width);
}
if (HasHeight) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Height);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(OpenCvVideoEncoderCalculatorOptions other) {
if (other == null) {
return;
}
if (other.HasCodec) {
Codec = other.Codec;
}
if (other.HasVideoFormat) {
VideoFormat = other.VideoFormat;
}
if (other.HasFps) {
Fps = other.Fps;
}
if (other.HasWidth) {
Width = other.Width;
}
if (other.HasHeight) {
Height = other.Height;
}
_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: {
Codec = input.ReadString();
break;
}
case 18: {
VideoFormat = input.ReadString();
break;
}
case 25: {
Fps = input.ReadDouble();
break;
}
case 32: {
Width = input.ReadInt32();
break;
}
case 40: {
Height = 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: {
Codec = input.ReadString();
break;
}
case 18: {
VideoFormat = input.ReadString();
break;
}
case 25: {
Fps = input.ReadDouble();
break;
}
case 32: {
Width = input.ReadInt32();
break;
}
case 40: {
Height = input.ReadInt32();
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the OpenCvVideoEncoderCalculatorOptions 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.OpenCvVideoEncoderCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.OpenCvVideoEncoderCalculatorOptions>(207936763, pb::FieldCodec.ForMessage(1663494106, global::Mediapipe.OpenCvVideoEncoderCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 19dbc641471fc57bc825ebfd937f4fc2
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/calculators/video/tracked_detection_manager_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/calculators/video/tracked_detection_manager_calculator.proto</summary>
public static partial class TrackedDetectionManagerCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/tracked_detection_manager_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static TrackedDetectionManagerCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"CkZtZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vdHJhY2tlZF9kZXRlY3Rp",
"b25fbWFuYWdlcl9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlh",
"cGlwZS9mcmFtZXdvcmsvY2FsY3VsYXRvci5wcm90bxo+bWVkaWFwaXBlL3V0",
"aWwvdHJhY2tpbmcvdHJhY2tlZF9kZXRlY3Rpb25fbWFuYWdlcl9jb25maWcu",
"cHJvdG8i4wEKKFRyYWNrZWREZXRlY3Rpb25NYW5hZ2VyQ2FsY3VsYXRvck9w",
"dGlvbnMSUwohdHJhY2tlZF9kZXRlY3Rpb25fbWFuYWdlcl9vcHRpb25zGAEg",
"ASgLMigubWVkaWFwaXBlLlRyYWNrZWREZXRlY3Rpb25NYW5hZ2VyQ29uZmln",
"MmIKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxi25v6PASAB",
"KAsyMy5tZWRpYXBpcGUuVHJhY2tlZERldGVjdGlvbk1hbmFnZXJDYWxjdWxh",
"dG9yT3B0aW9ucw=="));
descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
new pbr::FileDescriptor[] { global::Mediapipe.CalculatorReflection.Descriptor, global::Mediapipe.TrackedDetectionManagerConfigReflection.Descriptor, },
new pbr::GeneratedClrTypeInfo(null, null, new pbr::GeneratedClrTypeInfo[] {
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.TrackedDetectionManagerCalculatorOptions), global::Mediapipe.TrackedDetectionManagerCalculatorOptions.Parser, new[]{ "TrackedDetectionManagerOptions" }, null, null, new pb::Extension[] { global::Mediapipe.TrackedDetectionManagerCalculatorOptions.Extensions.Ext }, null)
}));
}
#endregion
}
#region Messages
public sealed partial class TrackedDetectionManagerCalculatorOptions : pb::IMessage<TrackedDetectionManagerCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<TrackedDetectionManagerCalculatorOptions> _parser = new pb::MessageParser<TrackedDetectionManagerCalculatorOptions>(() => new TrackedDetectionManagerCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<TrackedDetectionManagerCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.TrackedDetectionManagerCalculatorReflection.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 TrackedDetectionManagerCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TrackedDetectionManagerCalculatorOptions(TrackedDetectionManagerCalculatorOptions other) : this() {
trackedDetectionManagerOptions_ = other.trackedDetectionManagerOptions_ != null ? other.trackedDetectionManagerOptions_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public TrackedDetectionManagerCalculatorOptions Clone() {
return new TrackedDetectionManagerCalculatorOptions(this);
}
/// <summary>Field number for the "tracked_detection_manager_options" field.</summary>
public const int TrackedDetectionManagerOptionsFieldNumber = 1;
private global::Mediapipe.TrackedDetectionManagerConfig trackedDetectionManagerOptions_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.TrackedDetectionManagerConfig TrackedDetectionManagerOptions {
get { return trackedDetectionManagerOptions_; }
set {
trackedDetectionManagerOptions_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as TrackedDetectionManagerCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(TrackedDetectionManagerCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(TrackedDetectionManagerOptions, other.TrackedDetectionManagerOptions)) 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 (trackedDetectionManagerOptions_ != null) hash ^= TrackedDetectionManagerOptions.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 (trackedDetectionManagerOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TrackedDetectionManagerOptions);
}
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 (trackedDetectionManagerOptions_ != null) {
output.WriteRawTag(10);
output.WriteMessage(TrackedDetectionManagerOptions);
}
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 (trackedDetectionManagerOptions_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(TrackedDetectionManagerOptions);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(TrackedDetectionManagerCalculatorOptions other) {
if (other == null) {
return;
}
if (other.trackedDetectionManagerOptions_ != null) {
if (trackedDetectionManagerOptions_ == null) {
TrackedDetectionManagerOptions = new global::Mediapipe.TrackedDetectionManagerConfig();
}
TrackedDetectionManagerOptions.MergeFrom(other.TrackedDetectionManagerOptions);
}
_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 (trackedDetectionManagerOptions_ == null) {
TrackedDetectionManagerOptions = new global::Mediapipe.TrackedDetectionManagerConfig();
}
input.ReadMessage(TrackedDetectionManagerOptions);
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 (trackedDetectionManagerOptions_ == null) {
TrackedDetectionManagerOptions = new global::Mediapipe.TrackedDetectionManagerConfig();
}
input.ReadMessage(TrackedDetectionManagerOptions);
break;
}
}
}
}
#endif
#region Extensions
/// <summary>Container for extensions for other messages declared in the TrackedDetectionManagerCalculatorOptions 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.TrackedDetectionManagerCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TrackedDetectionManagerCalculatorOptions>(301970230, pb::FieldCodec.ForMessage(2415761842, global::Mediapipe.TrackedDetectionManagerCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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

View File

@@ -0,0 +1,798 @@
// <auto-generated>
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/calculators/video/video_pre_stream_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/calculators/video/video_pre_stream_calculator.proto</summary>
public static partial class VideoPreStreamCalculatorReflection {
#region Descriptor
/// <summary>File descriptor for mediapipe/calculators/video/video_pre_stream_calculator.proto</summary>
public static pbr::FileDescriptor Descriptor {
get { return descriptor; }
}
private static pbr::FileDescriptor descriptor;
static VideoPreStreamCalculatorReflection() {
byte[] descriptorData = global::System.Convert.FromBase64String(
string.Concat(
"Cj1tZWRpYXBpcGUvY2FsY3VsYXRvcnMvdmlkZW8vdmlkZW9fcHJlX3N0cmVh",
"bV9jYWxjdWxhdG9yLnByb3RvEgltZWRpYXBpcGUaJG1lZGlhcGlwZS9mcmFt",
"ZXdvcmsvY2FsY3VsYXRvci5wcm90byLPAgofVmlkZW9QcmVTdHJlYW1DYWxj",
"dWxhdG9yT3B0aW9ucxI7CgNmcHMYASABKAsyLi5tZWRpYXBpcGUuVmlkZW9Q",
"cmVTdHJlYW1DYWxjdWxhdG9yT3B0aW9ucy5GcHMalAEKA0ZwcxINCgV2YWx1",
"ZRgBIAEoARJICgVyYXRpbxgCIAEoCzI5Lm1lZGlhcGlwZS5WaWRlb1ByZVN0",
"cmVhbUNhbGN1bGF0b3JPcHRpb25zLkZwcy5SYXRpb25hbDMyGjQKClJhdGlv",
"bmFsMzISEQoJbnVtZXJhdG9yGAEgASgFEhMKC2Rlbm9taW5hdG9yGAIgASgF",
"MlgKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxiL8JdIIAEo",
"CzIqLm1lZGlhcGlwZS5WaWRlb1ByZVN0cmVhbUNhbGN1bGF0b3JPcHRpb25z"));
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.VideoPreStreamCalculatorOptions), global::Mediapipe.VideoPreStreamCalculatorOptions.Parser, new[]{ "Fps" }, null, null, new pb::Extension[] { global::Mediapipe.VideoPreStreamCalculatorOptions.Extensions.Ext }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps), global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Parser, new[]{ "Value", "Ratio" }, null, null, null, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32), global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32.Parser, new[]{ "Numerator", "Denominator" }, null, null, null, null)})})
}));
}
#endregion
}
#region Messages
public sealed partial class VideoPreStreamCalculatorOptions : pb::IMessage<VideoPreStreamCalculatorOptions>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<VideoPreStreamCalculatorOptions> _parser = new pb::MessageParser<VideoPreStreamCalculatorOptions>(() => new VideoPreStreamCalculatorOptions());
private pb::UnknownFieldSet _unknownFields;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<VideoPreStreamCalculatorOptions> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.VideoPreStreamCalculatorReflection.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 VideoPreStreamCalculatorOptions() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VideoPreStreamCalculatorOptions(VideoPreStreamCalculatorOptions other) : this() {
fps_ = other.fps_ != null ? other.fps_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public VideoPreStreamCalculatorOptions Clone() {
return new VideoPreStreamCalculatorOptions(this);
}
/// <summary>Field number for the "fps" field.</summary>
public const int FpsFieldNumber = 1;
private global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps fps_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps Fps {
get { return fps_; }
set {
fps_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as VideoPreStreamCalculatorOptions);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(VideoPreStreamCalculatorOptions other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!object.Equals(Fps, other.Fps)) 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 (fps_ != null) hash ^= Fps.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 (fps_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Fps);
}
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 (fps_ != null) {
output.WriteRawTag(10);
output.WriteMessage(Fps);
}
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 (fps_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Fps);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(VideoPreStreamCalculatorOptions other) {
if (other == null) {
return;
}
if (other.fps_ != null) {
if (fps_ == null) {
Fps = new global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps();
}
Fps.MergeFrom(other.Fps);
}
_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 (fps_ == null) {
Fps = new global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps();
}
input.ReadMessage(Fps);
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 (fps_ == null) {
Fps = new global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps();
}
input.ReadMessage(Fps);
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the VideoPreStreamCalculatorOptions message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
/// <summary>
/// An arbitrary number of frames per second.
/// Prefer the StandardFps enum to store industry-standard, safe FPS values.
/// </summary>
public sealed partial class Fps : pb::IMessage<Fps>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Fps> _parser = new pb::MessageParser<Fps>(() => new Fps());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Fps> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.VideoPreStreamCalculatorOptions.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 Fps() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Fps(Fps other) : this() {
_hasBits0 = other._hasBits0;
value_ = other.value_;
ratio_ = other.ratio_ != null ? other.ratio_.Clone() : null;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Fps Clone() {
return new Fps(this);
}
/// <summary>Field number for the "value" field.</summary>
public const int ValueFieldNumber = 1;
private readonly static double ValueDefaultValue = 0D;
private double value_;
/// <summary>
/// The possibly approximated value of the frame rate, in frames per second.
/// Unsafe to use in accurate computations because prone to rounding errors.
/// For example, the 23.976 FPS value has no exact representation as a
/// double.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public double Value {
get { if ((_hasBits0 & 1) != 0) { return value_; } else { return ValueDefaultValue; } }
set {
_hasBits0 |= 1;
value_ = value;
}
}
/// <summary>Gets whether the "value" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasValue {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "value" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearValue() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "ratio" field.</summary>
public const int RatioFieldNumber = 2;
private global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32 ratio_;
/// <summary>
/// The exact value of the frame rate, as a rational number.
/// </summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32 Ratio {
get { return ratio_; }
set {
ratio_ = value;
}
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Fps);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Fps other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Value, other.Value)) return false;
if (!object.Equals(Ratio, other.Ratio)) 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 (HasValue) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Value);
if (ratio_ != null) hash ^= Ratio.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 (HasValue) {
output.WriteRawTag(9);
output.WriteDouble(Value);
}
if (ratio_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Ratio);
}
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 (HasValue) {
output.WriteRawTag(9);
output.WriteDouble(Value);
}
if (ratio_ != null) {
output.WriteRawTag(18);
output.WriteMessage(Ratio);
}
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 (HasValue) {
size += 1 + 8;
}
if (ratio_ != null) {
size += 1 + pb::CodedOutputStream.ComputeMessageSize(Ratio);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Fps other) {
if (other == null) {
return;
}
if (other.HasValue) {
Value = other.Value;
}
if (other.ratio_ != null) {
if (ratio_ == null) {
Ratio = new global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32();
}
Ratio.MergeFrom(other.Ratio);
}
_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 9: {
Value = input.ReadDouble();
break;
}
case 18: {
if (ratio_ == null) {
Ratio = new global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32();
}
input.ReadMessage(Ratio);
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 9: {
Value = input.ReadDouble();
break;
}
case 18: {
if (ratio_ == null) {
Ratio = new global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.Types.Rational32();
}
input.ReadMessage(Ratio);
break;
}
}
}
}
#endif
#region Nested types
/// <summary>Container for nested types declared in the Fps message type.</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static partial class Types {
public sealed partial class Rational32 : pb::IMessage<Rational32>
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
, pb::IBufferMessage
#endif
{
private static readonly pb::MessageParser<Rational32> _parser = new pb::MessageParser<Rational32>(() => new Rational32());
private pb::UnknownFieldSet _unknownFields;
private int _hasBits0;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pb::MessageParser<Rational32> Parser { get { return _parser; } }
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public static pbr::MessageDescriptor Descriptor {
get { return global::Mediapipe.VideoPreStreamCalculatorOptions.Types.Fps.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 Rational32() {
OnConstruction();
}
partial void OnConstruction();
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rational32(Rational32 other) : this() {
_hasBits0 = other._hasBits0;
numerator_ = other.numerator_;
denominator_ = other.denominator_;
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public Rational32 Clone() {
return new Rational32(this);
}
/// <summary>Field number for the "numerator" field.</summary>
public const int NumeratorFieldNumber = 1;
private readonly static int NumeratorDefaultValue = 0;
private int numerator_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Numerator {
get { if ((_hasBits0 & 1) != 0) { return numerator_; } else { return NumeratorDefaultValue; } }
set {
_hasBits0 |= 1;
numerator_ = value;
}
}
/// <summary>Gets whether the "numerator" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasNumerator {
get { return (_hasBits0 & 1) != 0; }
}
/// <summary>Clears the value of the "numerator" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearNumerator() {
_hasBits0 &= ~1;
}
/// <summary>Field number for the "denominator" field.</summary>
public const int DenominatorFieldNumber = 2;
private readonly static int DenominatorDefaultValue = 0;
private int denominator_;
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public int Denominator {
get { if ((_hasBits0 & 2) != 0) { return denominator_; } else { return DenominatorDefaultValue; } }
set {
_hasBits0 |= 2;
denominator_ = value;
}
}
/// <summary>Gets whether the "denominator" field is set</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool HasDenominator {
get { return (_hasBits0 & 2) != 0; }
}
/// <summary>Clears the value of the "denominator" field</summary>
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void ClearDenominator() {
_hasBits0 &= ~2;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public override bool Equals(object other) {
return Equals(other as Rational32);
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public bool Equals(Rational32 other) {
if (ReferenceEquals(other, null)) {
return false;
}
if (ReferenceEquals(other, this)) {
return true;
}
if (Numerator != other.Numerator) return false;
if (Denominator != other.Denominator) 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 (HasNumerator) hash ^= Numerator.GetHashCode();
if (HasDenominator) hash ^= Denominator.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 (HasNumerator) {
output.WriteRawTag(8);
output.WriteInt32(Numerator);
}
if (HasDenominator) {
output.WriteRawTag(16);
output.WriteInt32(Denominator);
}
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 (HasNumerator) {
output.WriteRawTag(8);
output.WriteInt32(Numerator);
}
if (HasDenominator) {
output.WriteRawTag(16);
output.WriteInt32(Denominator);
}
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 (HasNumerator) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Numerator);
}
if (HasDenominator) {
size += 1 + pb::CodedOutputStream.ComputeInt32Size(Denominator);
}
if (_unknownFields != null) {
size += _unknownFields.CalculateSize();
}
return size;
}
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
public void MergeFrom(Rational32 other) {
if (other == null) {
return;
}
if (other.HasNumerator) {
Numerator = other.Numerator;
}
if (other.HasDenominator) {
Denominator = other.Denominator;
}
_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: {
Numerator = input.ReadInt32();
break;
}
case 16: {
Denominator = 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: {
Numerator = input.ReadInt32();
break;
}
case 16: {
Denominator = input.ReadInt32();
break;
}
}
}
}
#endif
}
}
#endregion
}
}
#endregion
#region Extensions
/// <summary>Container for extensions for other messages declared in the VideoPreStreamCalculatorOptions 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.VideoPreStreamCalculatorOptions> Ext =
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.VideoPreStreamCalculatorOptions>(151386123, pb::FieldCodec.ForMessage(1211088986, global::Mediapipe.VideoPreStreamCalculatorOptions.Parser));
}
#endregion
}
#endregion
}
#endregion Designer generated code

View File

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