Wes xx mediapipe integration
This commit is contained in:
@@ -0,0 +1,651 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/audio/mfcc_mel_calculators.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/audio/mfcc_mel_calculators.proto</summary>
|
||||
public static partial class MfccMelCalculatorsReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/audio/mfcc_mel_calculators.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static MfccMelCalculatorsReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjZtZWRpYXBpcGUvY2FsY3VsYXRvcnMvYXVkaW8vbWZjY19tZWxfY2FsY3Vs",
|
||||
"YXRvcnMucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2ZyYW1ld29yay9j",
|
||||
"YWxjdWxhdG9yLnByb3RvItUBChxNZWxTcGVjdHJ1bUNhbGN1bGF0b3JPcHRp",
|
||||
"b25zEhkKDWNoYW5uZWxfY291bnQYASABKAU6AjIwEiAKE21pbl9mcmVxdWVu",
|
||||
"Y3lfaGVydHoYAiABKAI6AzEyNRIhChNtYXhfZnJlcXVlbmN5X2hlcnR6GAMg",
|
||||
"ASgCOgQzODAwMlUKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9u",
|
||||
"cxi0oLwlIAEoCzInLm1lZGlhcGlwZS5NZWxTcGVjdHJ1bUNhbGN1bGF0b3JP",
|
||||
"cHRpb25zIsUBChVNZmNjQ2FsY3VsYXRvck9wdGlvbnMSRAoTbWVsX3NwZWN0",
|
||||
"cnVtX3BhcmFtcxgBIAEoCzInLm1lZGlhcGlwZS5NZWxTcGVjdHJ1bUNhbGN1",
|
||||
"bGF0b3JPcHRpb25zEhYKCm1mY2NfY291bnQYAiABKA06AjEzMk4KA2V4dBIc",
|
||||
"Lm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxiJnrQlIAEoCzIgLm1lZGlh",
|
||||
"cGlwZS5NZmNjQ2FsY3VsYXRvck9wdGlvbnM="));
|
||||
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.MelSpectrumCalculatorOptions), global::Mediapipe.MelSpectrumCalculatorOptions.Parser, new[]{ "ChannelCount", "MinFrequencyHertz", "MaxFrequencyHertz" }, null, null, new pb::Extension[] { global::Mediapipe.MelSpectrumCalculatorOptions.Extensions.Ext }, null),
|
||||
new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.MfccCalculatorOptions), global::Mediapipe.MfccCalculatorOptions.Parser, new[]{ "MelSpectrumParams", "MfccCount" }, null, null, new pb::Extension[] { global::Mediapipe.MfccCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class MelSpectrumCalculatorOptions : pb::IMessage<MelSpectrumCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<MelSpectrumCalculatorOptions> _parser = new pb::MessageParser<MelSpectrumCalculatorOptions>(() => new MelSpectrumCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<MelSpectrumCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.MfccMelCalculatorsReflection.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 MelSpectrumCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MelSpectrumCalculatorOptions(MelSpectrumCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
channelCount_ = other.channelCount_;
|
||||
minFrequencyHertz_ = other.minFrequencyHertz_;
|
||||
maxFrequencyHertz_ = other.maxFrequencyHertz_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MelSpectrumCalculatorOptions Clone() {
|
||||
return new MelSpectrumCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "channel_count" field.</summary>
|
||||
public const int ChannelCountFieldNumber = 1;
|
||||
private readonly static int ChannelCountDefaultValue = 20;
|
||||
|
||||
private int channelCount_;
|
||||
/// <summary>
|
||||
/// Total number of frequency bands to use.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int ChannelCount {
|
||||
get { if ((_hasBits0 & 1) != 0) { return channelCount_; } else { return ChannelCountDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
channelCount_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "channel_count" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasChannelCount {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "channel_count" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearChannelCount() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "min_frequency_hertz" field.</summary>
|
||||
public const int MinFrequencyHertzFieldNumber = 2;
|
||||
private readonly static float MinFrequencyHertzDefaultValue = 125F;
|
||||
|
||||
private float minFrequencyHertz_;
|
||||
/// <summary>
|
||||
/// Lower edge of lowest triangular Mel band.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MinFrequencyHertz {
|
||||
get { if ((_hasBits0 & 2) != 0) { return minFrequencyHertz_; } else { return MinFrequencyHertzDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
minFrequencyHertz_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "min_frequency_hertz" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMinFrequencyHertz {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "min_frequency_hertz" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMinFrequencyHertz() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "max_frequency_hertz" field.</summary>
|
||||
public const int MaxFrequencyHertzFieldNumber = 3;
|
||||
private readonly static float MaxFrequencyHertzDefaultValue = 3800F;
|
||||
|
||||
private float maxFrequencyHertz_;
|
||||
/// <summary>
|
||||
/// Upper edge of highest triangular Mel band.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float MaxFrequencyHertz {
|
||||
get { if ((_hasBits0 & 4) != 0) { return maxFrequencyHertz_; } else { return MaxFrequencyHertzDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
maxFrequencyHertz_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "max_frequency_hertz" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMaxFrequencyHertz {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "max_frequency_hertz" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMaxFrequencyHertz() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as MelSpectrumCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(MelSpectrumCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (ChannelCount != other.ChannelCount) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MinFrequencyHertz, other.MinFrequencyHertz)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(MaxFrequencyHertz, other.MaxFrequencyHertz)) 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 (HasChannelCount) hash ^= ChannelCount.GetHashCode();
|
||||
if (HasMinFrequencyHertz) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MinFrequencyHertz);
|
||||
if (HasMaxFrequencyHertz) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(MaxFrequencyHertz);
|
||||
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 (HasChannelCount) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(ChannelCount);
|
||||
}
|
||||
if (HasMinFrequencyHertz) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(MinFrequencyHertz);
|
||||
}
|
||||
if (HasMaxFrequencyHertz) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(MaxFrequencyHertz);
|
||||
}
|
||||
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 (HasChannelCount) {
|
||||
output.WriteRawTag(8);
|
||||
output.WriteInt32(ChannelCount);
|
||||
}
|
||||
if (HasMinFrequencyHertz) {
|
||||
output.WriteRawTag(21);
|
||||
output.WriteFloat(MinFrequencyHertz);
|
||||
}
|
||||
if (HasMaxFrequencyHertz) {
|
||||
output.WriteRawTag(29);
|
||||
output.WriteFloat(MaxFrequencyHertz);
|
||||
}
|
||||
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 (HasChannelCount) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeInt32Size(ChannelCount);
|
||||
}
|
||||
if (HasMinFrequencyHertz) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasMaxFrequencyHertz) {
|
||||
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(MelSpectrumCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasChannelCount) {
|
||||
ChannelCount = other.ChannelCount;
|
||||
}
|
||||
if (other.HasMinFrequencyHertz) {
|
||||
MinFrequencyHertz = other.MinFrequencyHertz;
|
||||
}
|
||||
if (other.HasMaxFrequencyHertz) {
|
||||
MaxFrequencyHertz = other.MaxFrequencyHertz;
|
||||
}
|
||||
_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: {
|
||||
ChannelCount = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
MinFrequencyHertz = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
MaxFrequencyHertz = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 8: {
|
||||
ChannelCount = input.ReadInt32();
|
||||
break;
|
||||
}
|
||||
case 21: {
|
||||
MinFrequencyHertz = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 29: {
|
||||
MaxFrequencyHertz = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the MelSpectrumCalculatorOptions 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.MelSpectrumCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.MelSpectrumCalculatorOptions>(78581812, pb::FieldCodec.ForMessage(628654498, global::Mediapipe.MelSpectrumCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
public sealed partial class MfccCalculatorOptions : pb::IMessage<MfccCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<MfccCalculatorOptions> _parser = new pb::MessageParser<MfccCalculatorOptions>(() => new MfccCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<MfccCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.MfccMelCalculatorsReflection.Descriptor.MessageTypes[1]; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
pbr::MessageDescriptor pb::IMessage.Descriptor {
|
||||
get { return Descriptor; }
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MfccCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MfccCalculatorOptions(MfccCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
melSpectrumParams_ = other.melSpectrumParams_ != null ? other.melSpectrumParams_.Clone() : null;
|
||||
mfccCount_ = other.mfccCount_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public MfccCalculatorOptions Clone() {
|
||||
return new MfccCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "mel_spectrum_params" field.</summary>
|
||||
public const int MelSpectrumParamsFieldNumber = 1;
|
||||
private global::Mediapipe.MelSpectrumCalculatorOptions melSpectrumParams_;
|
||||
/// <summary>
|
||||
/// Specification of the underlying mel filterbank.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.MelSpectrumCalculatorOptions MelSpectrumParams {
|
||||
get { return melSpectrumParams_; }
|
||||
set {
|
||||
melSpectrumParams_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "mfcc_count" field.</summary>
|
||||
public const int MfccCountFieldNumber = 2;
|
||||
private readonly static uint MfccCountDefaultValue = 13;
|
||||
|
||||
private uint mfccCount_;
|
||||
/// <summary>
|
||||
/// How many MFCC coefficients to emit.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public uint MfccCount {
|
||||
get { if ((_hasBits0 & 1) != 0) { return mfccCount_; } else { return MfccCountDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
mfccCount_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "mfcc_count" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasMfccCount {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "mfcc_count" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearMfccCount() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as MfccCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(MfccCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!object.Equals(MelSpectrumParams, other.MelSpectrumParams)) return false;
|
||||
if (MfccCount != other.MfccCount) 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 (melSpectrumParams_ != null) hash ^= MelSpectrumParams.GetHashCode();
|
||||
if (HasMfccCount) hash ^= MfccCount.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 (melSpectrumParams_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(MelSpectrumParams);
|
||||
}
|
||||
if (HasMfccCount) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(MfccCount);
|
||||
}
|
||||
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 (melSpectrumParams_ != null) {
|
||||
output.WriteRawTag(10);
|
||||
output.WriteMessage(MelSpectrumParams);
|
||||
}
|
||||
if (HasMfccCount) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteUInt32(MfccCount);
|
||||
}
|
||||
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 (melSpectrumParams_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(MelSpectrumParams);
|
||||
}
|
||||
if (HasMfccCount) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeUInt32Size(MfccCount);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(MfccCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.melSpectrumParams_ != null) {
|
||||
if (melSpectrumParams_ == null) {
|
||||
MelSpectrumParams = new global::Mediapipe.MelSpectrumCalculatorOptions();
|
||||
}
|
||||
MelSpectrumParams.MergeFrom(other.MelSpectrumParams);
|
||||
}
|
||||
if (other.HasMfccCount) {
|
||||
MfccCount = other.MfccCount;
|
||||
}
|
||||
_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 (melSpectrumParams_ == null) {
|
||||
MelSpectrumParams = new global::Mediapipe.MelSpectrumCalculatorOptions();
|
||||
}
|
||||
input.ReadMessage(MelSpectrumParams);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
MfccCount = input.ReadUInt32();
|
||||
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 (melSpectrumParams_ == null) {
|
||||
MelSpectrumParams = new global::Mediapipe.MelSpectrumCalculatorOptions();
|
||||
}
|
||||
input.ReadMessage(MelSpectrumParams);
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
MfccCount = input.ReadUInt32();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the MfccCalculatorOptions 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.MfccCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.MfccCalculatorOptions>(78450441, pb::FieldCodec.ForMessage(627603530, global::Mediapipe.MfccCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9e942e5612d6f9bdaa65119f63c218fc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,711 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/audio/rational_factor_resample_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/audio/rational_factor_resample_calculator.proto</summary>
|
||||
public static partial class RationalFactorResampleCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/audio/rational_factor_resample_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static RationalFactorResampleCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CkVtZWRpYXBpcGUvY2FsY3VsYXRvcnMvYXVkaW8vcmF0aW9uYWxfZmFjdG9y",
|
||||
"X3Jlc2FtcGxlX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFw",
|
||||
"aXBlL2ZyYW1ld29yay9jYWxjdWxhdG9yLnByb3RvIqwDCidSYXRpb25hbEZh",
|
||||
"Y3RvclJlc2FtcGxlQ2FsY3VsYXRvck9wdGlvbnMSGgoSdGFyZ2V0X3NhbXBs",
|
||||
"ZV9yYXRlGAEgASgBEnwKIXJlc2FtcGxlcl9yYXRpb25hbF9mYWN0b3Jfb3B0",
|
||||
"aW9ucxgCIAEoCzJRLm1lZGlhcGlwZS5SYXRpb25hbEZhY3RvclJlc2FtcGxl",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnMuUmVzYW1wbGVyUmF0aW9uYWxGYWN0b3JPcHRp",
|
||||
"b25zEisKHWNoZWNrX2luY29uc2lzdGVudF90aW1lc3RhbXBzGAMgASgIOgR0",
|
||||
"cnVlGlgKHlJlc2FtcGxlclJhdGlvbmFsRmFjdG9yT3B0aW9ucxIOCgZyYWRp",
|
||||
"dXMYASABKAESDgoGY3V0b2ZmGAIgASgBEhYKC2thaXNlcl9iZXRhGAMgASgB",
|
||||
"OgE2MmAKA2V4dBIcLm1lZGlhcGlwZS5DYWxjdWxhdG9yT3B0aW9ucxjKv+57",
|
||||
"IAEoCzIyLm1lZGlhcGlwZS5SYXRpb25hbEZhY3RvclJlc2FtcGxlQ2FsY3Vs",
|
||||
"YXRvck9wdGlvbnM="));
|
||||
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.RationalFactorResampleCalculatorOptions), global::Mediapipe.RationalFactorResampleCalculatorOptions.Parser, new[]{ "TargetSampleRate", "ResamplerRationalFactorOptions", "CheckInconsistentTimestamps" }, null, null, new pb::Extension[] { global::Mediapipe.RationalFactorResampleCalculatorOptions.Extensions.Ext }, new pbr::GeneratedClrTypeInfo[] { new pbr::GeneratedClrTypeInfo(typeof(global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions), global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions.Parser, new[]{ "Radius", "Cutoff", "KaiserBeta" }, null, null, null, null)})
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
/// <summary>
|
||||
/// NOTE: This calculator uses QResampler, despite the name, which supersedes
|
||||
/// RationalFactorResampler.
|
||||
/// </summary>
|
||||
public sealed partial class RationalFactorResampleCalculatorOptions : pb::IMessage<RationalFactorResampleCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<RationalFactorResampleCalculatorOptions> _parser = new pb::MessageParser<RationalFactorResampleCalculatorOptions>(() => new RationalFactorResampleCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<RationalFactorResampleCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RationalFactorResampleCalculatorReflection.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 RationalFactorResampleCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RationalFactorResampleCalculatorOptions(RationalFactorResampleCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
targetSampleRate_ = other.targetSampleRate_;
|
||||
resamplerRationalFactorOptions_ = other.resamplerRationalFactorOptions_ != null ? other.resamplerRationalFactorOptions_.Clone() : null;
|
||||
checkInconsistentTimestamps_ = other.checkInconsistentTimestamps_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public RationalFactorResampleCalculatorOptions Clone() {
|
||||
return new RationalFactorResampleCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "target_sample_rate" field.</summary>
|
||||
public const int TargetSampleRateFieldNumber = 1;
|
||||
private readonly static double TargetSampleRateDefaultValue = 0D;
|
||||
|
||||
private double targetSampleRate_;
|
||||
/// <summary>
|
||||
/// target_sample_rate is the sample rate, in Hertz, of the output
|
||||
/// stream. Required. Must be greater than 0.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double TargetSampleRate {
|
||||
get { if ((_hasBits0 & 1) != 0) { return targetSampleRate_; } else { return TargetSampleRateDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
targetSampleRate_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "target_sample_rate" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasTargetSampleRate {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "target_sample_rate" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearTargetSampleRate() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "resampler_rational_factor_options" field.</summary>
|
||||
public const int ResamplerRationalFactorOptionsFieldNumber = 2;
|
||||
private global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions resamplerRationalFactorOptions_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions ResamplerRationalFactorOptions {
|
||||
get { return resamplerRationalFactorOptions_; }
|
||||
set {
|
||||
resamplerRationalFactorOptions_ = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "check_inconsistent_timestamps" field.</summary>
|
||||
public const int CheckInconsistentTimestampsFieldNumber = 3;
|
||||
private readonly static bool CheckInconsistentTimestampsDefaultValue = true;
|
||||
|
||||
private bool checkInconsistentTimestamps_;
|
||||
/// <summary>
|
||||
/// Set to false to disable checks for jitter in timestamp values. Useful with
|
||||
/// live audio input.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool CheckInconsistentTimestamps {
|
||||
get { if ((_hasBits0 & 2) != 0) { return checkInconsistentTimestamps_; } else { return CheckInconsistentTimestampsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
checkInconsistentTimestamps_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "check_inconsistent_timestamps" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCheckInconsistentTimestamps {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "check_inconsistent_timestamps" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCheckInconsistentTimestamps() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as RationalFactorResampleCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(RationalFactorResampleCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(TargetSampleRate, other.TargetSampleRate)) return false;
|
||||
if (!object.Equals(ResamplerRationalFactorOptions, other.ResamplerRationalFactorOptions)) return false;
|
||||
if (CheckInconsistentTimestamps != other.CheckInconsistentTimestamps) 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 (HasTargetSampleRate) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(TargetSampleRate);
|
||||
if (resamplerRationalFactorOptions_ != null) hash ^= ResamplerRationalFactorOptions.GetHashCode();
|
||||
if (HasCheckInconsistentTimestamps) hash ^= CheckInconsistentTimestamps.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 (HasTargetSampleRate) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(TargetSampleRate);
|
||||
}
|
||||
if (resamplerRationalFactorOptions_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(ResamplerRationalFactorOptions);
|
||||
}
|
||||
if (HasCheckInconsistentTimestamps) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(CheckInconsistentTimestamps);
|
||||
}
|
||||
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 (HasTargetSampleRate) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(TargetSampleRate);
|
||||
}
|
||||
if (resamplerRationalFactorOptions_ != null) {
|
||||
output.WriteRawTag(18);
|
||||
output.WriteMessage(ResamplerRationalFactorOptions);
|
||||
}
|
||||
if (HasCheckInconsistentTimestamps) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(CheckInconsistentTimestamps);
|
||||
}
|
||||
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 (HasTargetSampleRate) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (resamplerRationalFactorOptions_ != null) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeMessageSize(ResamplerRationalFactorOptions);
|
||||
}
|
||||
if (HasCheckInconsistentTimestamps) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(RationalFactorResampleCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasTargetSampleRate) {
|
||||
TargetSampleRate = other.TargetSampleRate;
|
||||
}
|
||||
if (other.resamplerRationalFactorOptions_ != null) {
|
||||
if (resamplerRationalFactorOptions_ == null) {
|
||||
ResamplerRationalFactorOptions = new global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions();
|
||||
}
|
||||
ResamplerRationalFactorOptions.MergeFrom(other.ResamplerRationalFactorOptions);
|
||||
}
|
||||
if (other.HasCheckInconsistentTimestamps) {
|
||||
CheckInconsistentTimestamps = other.CheckInconsistentTimestamps;
|
||||
}
|
||||
_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: {
|
||||
TargetSampleRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (resamplerRationalFactorOptions_ == null) {
|
||||
ResamplerRationalFactorOptions = new global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions();
|
||||
}
|
||||
input.ReadMessage(ResamplerRationalFactorOptions);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
CheckInconsistentTimestamps = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
TargetSampleRate = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
if (resamplerRationalFactorOptions_ == null) {
|
||||
ResamplerRationalFactorOptions = new global::Mediapipe.RationalFactorResampleCalculatorOptions.Types.ResamplerRationalFactorOptions();
|
||||
}
|
||||
input.ReadMessage(ResamplerRationalFactorOptions);
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
CheckInconsistentTimestamps = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the RationalFactorResampleCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// Parameters for initializing QResampler. See QResampler for more details.
|
||||
/// </summary>
|
||||
public sealed partial class ResamplerRationalFactorOptions : pb::IMessage<ResamplerRationalFactorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<ResamplerRationalFactorOptions> _parser = new pb::MessageParser<ResamplerRationalFactorOptions>(() => new ResamplerRationalFactorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<ResamplerRationalFactorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.RationalFactorResampleCalculatorOptions.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 ResamplerRationalFactorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ResamplerRationalFactorOptions(ResamplerRationalFactorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
radius_ = other.radius_;
|
||||
cutoff_ = other.cutoff_;
|
||||
kaiserBeta_ = other.kaiserBeta_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public ResamplerRationalFactorOptions Clone() {
|
||||
return new ResamplerRationalFactorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "radius" field.</summary>
|
||||
public const int RadiusFieldNumber = 1;
|
||||
private readonly static double RadiusDefaultValue = 0D;
|
||||
|
||||
private double radius_;
|
||||
/// <summary>
|
||||
/// Kernel radius in units of input samples.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Radius {
|
||||
get { if ((_hasBits0 & 1) != 0) { return radius_; } else { return RadiusDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
radius_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "radius" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasRadius {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "radius" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearRadius() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "cutoff" field.</summary>
|
||||
public const int CutoffFieldNumber = 2;
|
||||
private readonly static double CutoffDefaultValue = 0D;
|
||||
|
||||
private double cutoff_;
|
||||
/// <summary>
|
||||
/// Anti-aliasing cutoff frequency in Hertz. A reasonable setting is
|
||||
/// 0.45 * min(input_sample_rate, output_sample_rate).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double Cutoff {
|
||||
get { if ((_hasBits0 & 2) != 0) { return cutoff_; } else { return CutoffDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
cutoff_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "cutoff" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCutoff {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "cutoff" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCutoff() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "kaiser_beta" field.</summary>
|
||||
public const int KaiserBetaFieldNumber = 3;
|
||||
private readonly static double KaiserBetaDefaultValue = 6D;
|
||||
|
||||
private double kaiserBeta_;
|
||||
/// <summary>
|
||||
/// The Kaiser beta parameter for the kernel window.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double KaiserBeta {
|
||||
get { if ((_hasBits0 & 4) != 0) { return kaiserBeta_; } else { return KaiserBetaDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
kaiserBeta_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "kaiser_beta" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasKaiserBeta {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "kaiser_beta" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearKaiserBeta() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as ResamplerRationalFactorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(ResamplerRationalFactorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Radius, other.Radius)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(Cutoff, other.Cutoff)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(KaiserBeta, other.KaiserBeta)) 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 (HasRadius) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Radius);
|
||||
if (HasCutoff) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Cutoff);
|
||||
if (HasKaiserBeta) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(KaiserBeta);
|
||||
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 (HasRadius) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(Radius);
|
||||
}
|
||||
if (HasCutoff) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Cutoff);
|
||||
}
|
||||
if (HasKaiserBeta) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(KaiserBeta);
|
||||
}
|
||||
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 (HasRadius) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(Radius);
|
||||
}
|
||||
if (HasCutoff) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(Cutoff);
|
||||
}
|
||||
if (HasKaiserBeta) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(KaiserBeta);
|
||||
}
|
||||
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 (HasRadius) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasCutoff) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasKaiserBeta) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(ResamplerRationalFactorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasRadius) {
|
||||
Radius = other.Radius;
|
||||
}
|
||||
if (other.HasCutoff) {
|
||||
Cutoff = other.Cutoff;
|
||||
}
|
||||
if (other.HasKaiserBeta) {
|
||||
KaiserBeta = other.KaiserBeta;
|
||||
}
|
||||
_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: {
|
||||
Radius = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Cutoff = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
KaiserBeta = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
Radius = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
Cutoff = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
KaiserBeta = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the RationalFactorResampleCalculatorOptions 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.RationalFactorResampleCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.RationalFactorResampleCalculatorOptions>(259760074, pb::FieldCodec.ForMessage(2078080594, global::Mediapipe.RationalFactorResampleCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e299b58b16d1d889c9aac5beddbca7d2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,707 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/audio/spectrogram_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/audio/spectrogram_calculator.proto</summary>
|
||||
public static partial class SpectrogramCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/audio/spectrogram_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static SpectrogramCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjhtZWRpYXBpcGUvY2FsY3VsYXRvcnMvYXVkaW8vc3BlY3Ryb2dyYW1fY2Fs",
|
||||
"Y3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUvZnJhbWV3b3Jr",
|
||||
"L2NhbGN1bGF0b3IucHJvdG8i/gQKHFNwZWN0cm9ncmFtQ2FsY3VsYXRvck9w",
|
||||
"dGlvbnMSHgoWZnJhbWVfZHVyYXRpb25fc2Vjb25kcxgBIAEoARIgChVmcmFt",
|
||||
"ZV9vdmVybGFwX3NlY29uZHMYAiABKAE6ATASHgoQcGFkX2ZpbmFsX3BhY2tl",
|
||||
"dBgDIAEoCDoEdHJ1ZRJaCgtvdXRwdXRfdHlwZRgEIAEoDjIyLm1lZGlhcGlw",
|
||||
"ZS5TcGVjdHJvZ3JhbUNhbGN1bGF0b3JPcHRpb25zLk91dHB1dFR5cGU6EVNR",
|
||||
"VUFSRURfTUFHTklUVURFEicKGGFsbG93X211bHRpY2hhbm5lbF9pbnB1dBgF",
|
||||
"IAEoCDoFZmFsc2USTQoLd2luZG93X3R5cGUYBiABKA4yMi5tZWRpYXBpcGUu",
|
||||
"U3BlY3Ryb2dyYW1DYWxjdWxhdG9yT3B0aW9ucy5XaW5kb3dUeXBlOgRIQU5O",
|
||||
"EhcKDG91dHB1dF9zY2FsZRgHIAEoAToBMRIiChN1c2VfbG9jYWxfdGltZXN0",
|
||||
"YW1wGAggASgIOgVmYWxzZSJUCgpPdXRwdXRUeXBlEhUKEVNRVUFSRURfTUFH",
|
||||
"TklUVURFEAASFAoQTElORUFSX01BR05JVFVERRABEgwKCERFQ0lCRUxTEAIS",
|
||||
"CwoHQ09NUExFWBADIj4KCldpbmRvd1R5cGUSCAoESEFOThAAEgsKB0hBTU1J",
|
||||
"TkcQARIKCgZDT1NJTkUQAhINCglTUVJUX0hBTk4QBDJVCgNleHQSHC5tZWRp",
|
||||
"YXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMYwIiqJCABKAsyJy5tZWRpYXBpcGUu",
|
||||
"U3BlY3Ryb2dyYW1DYWxjdWxhdG9yT3B0aW9ucw=="));
|
||||
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.SpectrogramCalculatorOptions), global::Mediapipe.SpectrogramCalculatorOptions.Parser, new[]{ "FrameDurationSeconds", "FrameOverlapSeconds", "PadFinalPacket", "OutputType", "AllowMultichannelInput", "WindowType", "OutputScale", "UseLocalTimestamp" }, null, new[]{ typeof(global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType), typeof(global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType) }, new pb::Extension[] { global::Mediapipe.SpectrogramCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class SpectrogramCalculatorOptions : pb::IMessage<SpectrogramCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<SpectrogramCalculatorOptions> _parser = new pb::MessageParser<SpectrogramCalculatorOptions>(() => new SpectrogramCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<SpectrogramCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.SpectrogramCalculatorReflection.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 SpectrogramCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SpectrogramCalculatorOptions(SpectrogramCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
frameDurationSeconds_ = other.frameDurationSeconds_;
|
||||
frameOverlapSeconds_ = other.frameOverlapSeconds_;
|
||||
padFinalPacket_ = other.padFinalPacket_;
|
||||
outputType_ = other.outputType_;
|
||||
allowMultichannelInput_ = other.allowMultichannelInput_;
|
||||
windowType_ = other.windowType_;
|
||||
outputScale_ = other.outputScale_;
|
||||
useLocalTimestamp_ = other.useLocalTimestamp_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public SpectrogramCalculatorOptions Clone() {
|
||||
return new SpectrogramCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "frame_duration_seconds" field.</summary>
|
||||
public const int FrameDurationSecondsFieldNumber = 1;
|
||||
private readonly static double FrameDurationSecondsDefaultValue = 0D;
|
||||
|
||||
private double frameDurationSeconds_;
|
||||
/// <summary>
|
||||
/// Analysis window duration in seconds. Required. Must be greater than 0.
|
||||
/// (Note: the spectrogram DFT length will be the smallest power-of-2
|
||||
/// sample count that can hold this duration.)
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FrameDurationSeconds {
|
||||
get { if ((_hasBits0 & 1) != 0) { return frameDurationSeconds_; } else { return FrameDurationSecondsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
frameDurationSeconds_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "frame_duration_seconds" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFrameDurationSeconds {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "frame_duration_seconds" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFrameDurationSeconds() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "frame_overlap_seconds" field.</summary>
|
||||
public const int FrameOverlapSecondsFieldNumber = 2;
|
||||
private readonly static double FrameOverlapSecondsDefaultValue = 0D;
|
||||
|
||||
private double frameOverlapSeconds_;
|
||||
/// <summary>
|
||||
/// Duration of overlap between adjacent windows.
|
||||
/// Hence, frame_rate = 1/(frame_duration_seconds - frame_overlap_seconds).
|
||||
/// Note the frame_rate here is not the MediaPipe packet rate, the frame here
|
||||
/// means each Fourier transform analysis waveform frame, the output MediaPipe
|
||||
/// packet rate will the the same as input, if frame rate is lower than input
|
||||
/// packet rate, will result in intermittent empty output packets. Required
|
||||
/// that 0 <= frame_overlap_seconds < frame_duration_seconds.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FrameOverlapSeconds {
|
||||
get { if ((_hasBits0 & 2) != 0) { return frameOverlapSeconds_; } else { return FrameOverlapSecondsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
frameOverlapSeconds_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "frame_overlap_seconds" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFrameOverlapSeconds {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "frame_overlap_seconds" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFrameOverlapSeconds() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "pad_final_packet" field.</summary>
|
||||
public const int PadFinalPacketFieldNumber = 3;
|
||||
private readonly static bool PadFinalPacketDefaultValue = true;
|
||||
|
||||
private bool padFinalPacket_;
|
||||
/// <summary>
|
||||
/// Whether to pad the final packet with zeros. If true, guarantees that
|
||||
/// all input samples will output. If set to false, any partial packet
|
||||
/// at the end of the stream will be dropped.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool PadFinalPacket {
|
||||
get { if ((_hasBits0 & 4) != 0) { return padFinalPacket_; } else { return PadFinalPacketDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
padFinalPacket_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "pad_final_packet" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPadFinalPacket {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "pad_final_packet" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPadFinalPacket() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "output_type" field.</summary>
|
||||
public const int OutputTypeFieldNumber = 4;
|
||||
private readonly static global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType OutputTypeDefaultValue = global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType.SquaredMagnitude;
|
||||
|
||||
private global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType outputType_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType OutputType {
|
||||
get { if ((_hasBits0 & 8) != 0) { return outputType_; } else { return OutputTypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
outputType_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "output_type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOutputType {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "output_type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOutputType() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "allow_multichannel_input" field.</summary>
|
||||
public const int AllowMultichannelInputFieldNumber = 5;
|
||||
private readonly static bool AllowMultichannelInputDefaultValue = false;
|
||||
|
||||
private bool allowMultichannelInput_;
|
||||
/// <summary>
|
||||
/// If set to true then the output will be a vector of spectrograms, one for
|
||||
/// each channel and the stream will have a MultiStreamTimeSeriesHeader.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool AllowMultichannelInput {
|
||||
get { if ((_hasBits0 & 16) != 0) { return allowMultichannelInput_; } else { return AllowMultichannelInputDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
allowMultichannelInput_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "allow_multichannel_input" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasAllowMultichannelInput {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "allow_multichannel_input" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearAllowMultichannelInput() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "window_type" field.</summary>
|
||||
public const int WindowTypeFieldNumber = 6;
|
||||
private readonly static global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType WindowTypeDefaultValue = global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType.Hann;
|
||||
|
||||
private global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType windowType_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType WindowType {
|
||||
get { if ((_hasBits0 & 32) != 0) { return windowType_; } else { return WindowTypeDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
windowType_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "window_type" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasWindowType {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "window_type" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearWindowType() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "output_scale" field.</summary>
|
||||
public const int OutputScaleFieldNumber = 7;
|
||||
private readonly static double OutputScaleDefaultValue = 1D;
|
||||
|
||||
private double outputScale_;
|
||||
/// <summary>
|
||||
/// Support a fixed multiplicative scaling of the output. This is applied
|
||||
/// uniformly regardless of output type (i.e., even dBs are multiplied, not
|
||||
/// offset).
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double OutputScale {
|
||||
get { if ((_hasBits0 & 64) != 0) { return outputScale_; } else { return OutputScaleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 64;
|
||||
outputScale_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "output_scale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOutputScale {
|
||||
get { return (_hasBits0 & 64) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "output_scale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOutputScale() {
|
||||
_hasBits0 &= ~64;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "use_local_timestamp" field.</summary>
|
||||
public const int UseLocalTimestampFieldNumber = 8;
|
||||
private readonly static bool UseLocalTimestampDefaultValue = false;
|
||||
|
||||
private bool useLocalTimestamp_;
|
||||
/// <summary>
|
||||
/// If use_local_timestamp is true, the output packet's timestamp is based on
|
||||
/// the last sample of the packet and it's inferred from the latest input
|
||||
/// packet's timestamp. If false, the output packet's timestamp is based on
|
||||
/// the cumulative timestamping, which is inferred from the intial input
|
||||
/// timestamp and the cumulative number of samples.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UseLocalTimestamp {
|
||||
get { if ((_hasBits0 & 128) != 0) { return useLocalTimestamp_; } else { return UseLocalTimestampDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 128;
|
||||
useLocalTimestamp_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "use_local_timestamp" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUseLocalTimestamp {
|
||||
get { return (_hasBits0 & 128) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "use_local_timestamp" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUseLocalTimestamp() {
|
||||
_hasBits0 &= ~128;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as SpectrogramCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(SpectrogramCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FrameDurationSeconds, other.FrameDurationSeconds)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FrameOverlapSeconds, other.FrameOverlapSeconds)) return false;
|
||||
if (PadFinalPacket != other.PadFinalPacket) return false;
|
||||
if (OutputType != other.OutputType) return false;
|
||||
if (AllowMultichannelInput != other.AllowMultichannelInput) return false;
|
||||
if (WindowType != other.WindowType) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputScale, other.OutputScale)) return false;
|
||||
if (UseLocalTimestamp != other.UseLocalTimestamp) 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 (HasFrameDurationSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameDurationSeconds);
|
||||
if (HasFrameOverlapSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameOverlapSeconds);
|
||||
if (HasPadFinalPacket) hash ^= PadFinalPacket.GetHashCode();
|
||||
if (HasOutputType) hash ^= OutputType.GetHashCode();
|
||||
if (HasAllowMultichannelInput) hash ^= AllowMultichannelInput.GetHashCode();
|
||||
if (HasWindowType) hash ^= WindowType.GetHashCode();
|
||||
if (HasOutputScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputScale);
|
||||
if (HasUseLocalTimestamp) hash ^= UseLocalTimestamp.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 (HasFrameDurationSeconds) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(FrameDurationSeconds);
|
||||
}
|
||||
if (HasFrameOverlapSeconds) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(FrameOverlapSeconds);
|
||||
}
|
||||
if (HasPadFinalPacket) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(PadFinalPacket);
|
||||
}
|
||||
if (HasOutputType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) OutputType);
|
||||
}
|
||||
if (HasAllowMultichannelInput) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(AllowMultichannelInput);
|
||||
}
|
||||
if (HasWindowType) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) WindowType);
|
||||
}
|
||||
if (HasOutputScale) {
|
||||
output.WriteRawTag(57);
|
||||
output.WriteDouble(OutputScale);
|
||||
}
|
||||
if (HasUseLocalTimestamp) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(UseLocalTimestamp);
|
||||
}
|
||||
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 (HasFrameDurationSeconds) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(FrameDurationSeconds);
|
||||
}
|
||||
if (HasFrameOverlapSeconds) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(FrameOverlapSeconds);
|
||||
}
|
||||
if (HasPadFinalPacket) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(PadFinalPacket);
|
||||
}
|
||||
if (HasOutputType) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) OutputType);
|
||||
}
|
||||
if (HasAllowMultichannelInput) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(AllowMultichannelInput);
|
||||
}
|
||||
if (HasWindowType) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteEnum((int) WindowType);
|
||||
}
|
||||
if (HasOutputScale) {
|
||||
output.WriteRawTag(57);
|
||||
output.WriteDouble(OutputScale);
|
||||
}
|
||||
if (HasUseLocalTimestamp) {
|
||||
output.WriteRawTag(64);
|
||||
output.WriteBool(UseLocalTimestamp);
|
||||
}
|
||||
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 (HasFrameDurationSeconds) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasFrameOverlapSeconds) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasPadFinalPacket) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasOutputType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) OutputType);
|
||||
}
|
||||
if (HasAllowMultichannelInput) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasWindowType) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WindowType);
|
||||
}
|
||||
if (HasOutputScale) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasUseLocalTimestamp) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(SpectrogramCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasFrameDurationSeconds) {
|
||||
FrameDurationSeconds = other.FrameDurationSeconds;
|
||||
}
|
||||
if (other.HasFrameOverlapSeconds) {
|
||||
FrameOverlapSeconds = other.FrameOverlapSeconds;
|
||||
}
|
||||
if (other.HasPadFinalPacket) {
|
||||
PadFinalPacket = other.PadFinalPacket;
|
||||
}
|
||||
if (other.HasOutputType) {
|
||||
OutputType = other.OutputType;
|
||||
}
|
||||
if (other.HasAllowMultichannelInput) {
|
||||
AllowMultichannelInput = other.AllowMultichannelInput;
|
||||
}
|
||||
if (other.HasWindowType) {
|
||||
WindowType = other.WindowType;
|
||||
}
|
||||
if (other.HasOutputScale) {
|
||||
OutputScale = other.OutputScale;
|
||||
}
|
||||
if (other.HasUseLocalTimestamp) {
|
||||
UseLocalTimestamp = other.UseLocalTimestamp;
|
||||
}
|
||||
_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: {
|
||||
FrameDurationSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
FrameOverlapSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
PadFinalPacket = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
OutputType = (global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
AllowMultichannelInput = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
WindowType = (global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 57: {
|
||||
OutputScale = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
UseLocalTimestamp = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
FrameDurationSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
FrameOverlapSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
PadFinalPacket = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
OutputType = (global::Mediapipe.SpectrogramCalculatorOptions.Types.OutputType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
AllowMultichannelInput = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
WindowType = (global::Mediapipe.SpectrogramCalculatorOptions.Types.WindowType) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 57: {
|
||||
OutputScale = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 64: {
|
||||
UseLocalTimestamp = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the SpectrogramCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// Output value type can be squared-magnitude, linear-magnitude,
|
||||
/// deciBels (dB, = 20*log10(linear_magnitude)), or std::complex.
|
||||
/// Their relationship:
|
||||
/// COMPLEX c = Re + Im*i;
|
||||
/// SQUARED_MAGNITUDE = Re^2 + Im^2;
|
||||
/// LINEAR_MAGNITUDE = sqrt(SQUARED_MAGNITUDE);
|
||||
/// DECIBELS = 20*log10(LINEAR_MAGNITUDE) = 10*log10(SQUARED_MAGNITUDE);
|
||||
/// </summary>
|
||||
public enum OutputType {
|
||||
[pbr::OriginalName("SQUARED_MAGNITUDE")] SquaredMagnitude = 0,
|
||||
[pbr::OriginalName("LINEAR_MAGNITUDE")] LinearMagnitude = 1,
|
||||
[pbr::OriginalName("DECIBELS")] Decibels = 2,
|
||||
[pbr::OriginalName("COMPLEX")] Complex = 3,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Which window to use when computing the FFT.
|
||||
/// </summary>
|
||||
public enum WindowType {
|
||||
[pbr::OriginalName("HANN")] Hann = 0,
|
||||
[pbr::OriginalName("HAMMING")] Hamming = 1,
|
||||
[pbr::OriginalName("COSINE")] Cosine = 2,
|
||||
[pbr::OriginalName("SQRT_HANN")] SqrtHann = 4,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the SpectrogramCalculatorOptions 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.SpectrogramCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.SpectrogramCalculatorOptions>(76186688, pb::FieldCodec.ForMessage(609493506, global::Mediapipe.SpectrogramCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5b5bc8940ffca19b58e9817b89f87cc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,381 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/audio/stabilized_log_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/audio/stabilized_log_calculator.proto</summary>
|
||||
public static partial class StabilizedLogCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/audio/stabilized_log_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static StabilizedLogCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"CjttZWRpYXBpcGUvY2FsY3VsYXRvcnMvYXVkaW8vc3RhYmlsaXplZF9sb2df",
|
||||
"Y2FsY3VsYXRvci5wcm90bxIJbWVkaWFwaXBlGiRtZWRpYXBpcGUvZnJhbWV3",
|
||||
"b3JrL2NhbGN1bGF0b3IucHJvdG8i0AEKHlN0YWJpbGl6ZWRMb2dDYWxjdWxh",
|
||||
"dG9yT3B0aW9ucxIZCgpzdGFiaWxpemVyGAEgASgCOgUxZS0wNRIhChNjaGVj",
|
||||
"a19ub25uZWdhdGl2aXR5GAIgASgIOgR0cnVlEhcKDG91dHB1dF9zY2FsZRgD",
|
||||
"IAEoAToBMTJXCgNleHQSHC5tZWRpYXBpcGUuQ2FsY3VsYXRvck9wdGlvbnMY",
|
||||
"46HQMCABKAsyKS5tZWRpYXBpcGUuU3RhYmlsaXplZExvZ0NhbGN1bGF0b3JP",
|
||||
"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.StabilizedLogCalculatorOptions), global::Mediapipe.StabilizedLogCalculatorOptions.Parser, new[]{ "Stabilizer", "CheckNonnegativity", "OutputScale" }, null, null, new pb::Extension[] { global::Mediapipe.StabilizedLogCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class StabilizedLogCalculatorOptions : pb::IMessage<StabilizedLogCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<StabilizedLogCalculatorOptions> _parser = new pb::MessageParser<StabilizedLogCalculatorOptions>(() => new StabilizedLogCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<StabilizedLogCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.StabilizedLogCalculatorReflection.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 StabilizedLogCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public StabilizedLogCalculatorOptions(StabilizedLogCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
stabilizer_ = other.stabilizer_;
|
||||
checkNonnegativity_ = other.checkNonnegativity_;
|
||||
outputScale_ = other.outputScale_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public StabilizedLogCalculatorOptions Clone() {
|
||||
return new StabilizedLogCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "stabilizer" field.</summary>
|
||||
public const int StabilizerFieldNumber = 1;
|
||||
private readonly static float StabilizerDefaultValue = 1e-05F;
|
||||
|
||||
private float stabilizer_;
|
||||
/// <summary>
|
||||
/// The calculator computes log(x + stabilizer). stabilizer must be >=
|
||||
/// 0, with 0 indicating a lack of stabilization.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public float Stabilizer {
|
||||
get { if ((_hasBits0 & 1) != 0) { return stabilizer_; } else { return StabilizerDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
stabilizer_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "stabilizer" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasStabilizer {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "stabilizer" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearStabilizer() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "check_nonnegativity" field.</summary>
|
||||
public const int CheckNonnegativityFieldNumber = 2;
|
||||
private readonly static bool CheckNonnegativityDefaultValue = true;
|
||||
|
||||
private bool checkNonnegativity_;
|
||||
/// <summary>
|
||||
/// If true, CHECK that all input values in are >= 0. If false, the
|
||||
/// code will take the log of the potentially negative input values
|
||||
/// plus the stabilizer.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool CheckNonnegativity {
|
||||
get { if ((_hasBits0 & 2) != 0) { return checkNonnegativity_; } else { return CheckNonnegativityDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
checkNonnegativity_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "check_nonnegativity" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasCheckNonnegativity {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "check_nonnegativity" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearCheckNonnegativity() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "output_scale" field.</summary>
|
||||
public const int OutputScaleFieldNumber = 3;
|
||||
private readonly static double OutputScaleDefaultValue = 1D;
|
||||
|
||||
private double outputScale_;
|
||||
/// <summary>
|
||||
/// Support a fixed multiplicative scaling of the output.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double OutputScale {
|
||||
get { if ((_hasBits0 & 4) != 0) { return outputScale_; } else { return OutputScaleDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
outputScale_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "output_scale" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasOutputScale {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "output_scale" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearOutputScale() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as StabilizedLogCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(StabilizedLogCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.Equals(Stabilizer, other.Stabilizer)) return false;
|
||||
if (CheckNonnegativity != other.CheckNonnegativity) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(OutputScale, other.OutputScale)) 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 (HasStabilizer) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Stabilizer);
|
||||
if (HasCheckNonnegativity) hash ^= CheckNonnegativity.GetHashCode();
|
||||
if (HasOutputScale) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(OutputScale);
|
||||
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 (HasStabilizer) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Stabilizer);
|
||||
}
|
||||
if (HasCheckNonnegativity) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(CheckNonnegativity);
|
||||
}
|
||||
if (HasOutputScale) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(OutputScale);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(output);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalWriteTo(ref pb::WriteContext output) {
|
||||
if (HasStabilizer) {
|
||||
output.WriteRawTag(13);
|
||||
output.WriteFloat(Stabilizer);
|
||||
}
|
||||
if (HasCheckNonnegativity) {
|
||||
output.WriteRawTag(16);
|
||||
output.WriteBool(CheckNonnegativity);
|
||||
}
|
||||
if (HasOutputScale) {
|
||||
output.WriteRawTag(25);
|
||||
output.WriteDouble(OutputScale);
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
_unknownFields.WriteTo(ref output);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public int CalculateSize() {
|
||||
int size = 0;
|
||||
if (HasStabilizer) {
|
||||
size += 1 + 4;
|
||||
}
|
||||
if (HasCheckNonnegativity) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasOutputScale) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(StabilizedLogCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasStabilizer) {
|
||||
Stabilizer = other.Stabilizer;
|
||||
}
|
||||
if (other.HasCheckNonnegativity) {
|
||||
CheckNonnegativity = other.CheckNonnegativity;
|
||||
}
|
||||
if (other.HasOutputScale) {
|
||||
OutputScale = other.OutputScale;
|
||||
}
|
||||
_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: {
|
||||
Stabilizer = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
CheckNonnegativity = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
OutputScale = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 13: {
|
||||
Stabilizer = input.ReadFloat();
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
CheckNonnegativity = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 25: {
|
||||
OutputScale = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the StabilizedLogCalculatorOptions 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.StabilizedLogCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.StabilizedLogCalculatorOptions>(101978339, pb::FieldCodec.ForMessage(815826714, global::Mediapipe.StabilizedLogCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8aabac06e0c90cf0587cf5c799c349c0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,586 @@
|
||||
// <auto-generated>
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: mediapipe/calculators/audio/time_series_framer_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/audio/time_series_framer_calculator.proto</summary>
|
||||
public static partial class TimeSeriesFramerCalculatorReflection {
|
||||
|
||||
#region Descriptor
|
||||
/// <summary>File descriptor for mediapipe/calculators/audio/time_series_framer_calculator.proto</summary>
|
||||
public static pbr::FileDescriptor Descriptor {
|
||||
get { return descriptor; }
|
||||
}
|
||||
private static pbr::FileDescriptor descriptor;
|
||||
|
||||
static TimeSeriesFramerCalculatorReflection() {
|
||||
byte[] descriptorData = global::System.Convert.FromBase64String(
|
||||
string.Concat(
|
||||
"Cj9tZWRpYXBpcGUvY2FsY3VsYXRvcnMvYXVkaW8vdGltZV9zZXJpZXNfZnJh",
|
||||
"bWVyX2NhbGN1bGF0b3IucHJvdG8SCW1lZGlhcGlwZRokbWVkaWFwaXBlL2Zy",
|
||||
"YW1ld29yay9jYWxjdWxhdG9yLnByb3RvIsUDCiFUaW1lU2VyaWVzRnJhbWVy",
|
||||
"Q2FsY3VsYXRvck9wdGlvbnMSHgoWZnJhbWVfZHVyYXRpb25fc2Vjb25kcxgB",
|
||||
"IAEoARIgChVmcmFtZV9vdmVybGFwX3NlY29uZHMYAiABKAE6ATASLwogZW11",
|
||||
"bGF0ZV9mcmFjdGlvbmFsX2ZyYW1lX292ZXJsYXAYBSABKAg6BWZhbHNlEh4K",
|
||||
"EHBhZF9maW5hbF9wYWNrZXQYAyABKAg6BHRydWUSWgoPd2luZG93X2Z1bmN0",
|
||||
"aW9uGAQgASgOMjsubWVkaWFwaXBlLlRpbWVTZXJpZXNGcmFtZXJDYWxjdWxh",
|
||||
"dG9yT3B0aW9ucy5XaW5kb3dGdW5jdGlvbjoETk9ORRIiChN1c2VfbG9jYWxf",
|
||||
"dGltZXN0YW1wGAYgASgIOgVmYWxzZSIxCg5XaW5kb3dGdW5jdGlvbhIICgRO",
|
||||
"T05FEAASCwoHSEFNTUlORxABEggKBEhBTk4QAjJaCgNleHQSHC5tZWRpYXBp",
|
||||
"cGUuQ2FsY3VsYXRvck9wdGlvbnMYxaeSGCABKAsyLC5tZWRpYXBpcGUuVGlt",
|
||||
"ZVNlcmllc0ZyYW1lckNhbGN1bGF0b3JPcHRpb25z"));
|
||||
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.TimeSeriesFramerCalculatorOptions), global::Mediapipe.TimeSeriesFramerCalculatorOptions.Parser, new[]{ "FrameDurationSeconds", "FrameOverlapSeconds", "EmulateFractionalFrameOverlap", "PadFinalPacket", "WindowFunction", "UseLocalTimestamp" }, null, new[]{ typeof(global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction) }, new pb::Extension[] { global::Mediapipe.TimeSeriesFramerCalculatorOptions.Extensions.Ext }, null)
|
||||
}));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
#region Messages
|
||||
public sealed partial class TimeSeriesFramerCalculatorOptions : pb::IMessage<TimeSeriesFramerCalculatorOptions>
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
, pb::IBufferMessage
|
||||
#endif
|
||||
{
|
||||
private static readonly pb::MessageParser<TimeSeriesFramerCalculatorOptions> _parser = new pb::MessageParser<TimeSeriesFramerCalculatorOptions>(() => new TimeSeriesFramerCalculatorOptions());
|
||||
private pb::UnknownFieldSet _unknownFields;
|
||||
private int _hasBits0;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pb::MessageParser<TimeSeriesFramerCalculatorOptions> Parser { get { return _parser; } }
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static pbr::MessageDescriptor Descriptor {
|
||||
get { return global::Mediapipe.TimeSeriesFramerCalculatorReflection.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 TimeSeriesFramerCalculatorOptions() {
|
||||
OnConstruction();
|
||||
}
|
||||
|
||||
partial void OnConstruction();
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimeSeriesFramerCalculatorOptions(TimeSeriesFramerCalculatorOptions other) : this() {
|
||||
_hasBits0 = other._hasBits0;
|
||||
frameDurationSeconds_ = other.frameDurationSeconds_;
|
||||
frameOverlapSeconds_ = other.frameOverlapSeconds_;
|
||||
emulateFractionalFrameOverlap_ = other.emulateFractionalFrameOverlap_;
|
||||
padFinalPacket_ = other.padFinalPacket_;
|
||||
windowFunction_ = other.windowFunction_;
|
||||
useLocalTimestamp_ = other.useLocalTimestamp_;
|
||||
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public TimeSeriesFramerCalculatorOptions Clone() {
|
||||
return new TimeSeriesFramerCalculatorOptions(this);
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "frame_duration_seconds" field.</summary>
|
||||
public const int FrameDurationSecondsFieldNumber = 1;
|
||||
private readonly static double FrameDurationSecondsDefaultValue = 0D;
|
||||
|
||||
private double frameDurationSeconds_;
|
||||
/// <summary>
|
||||
/// Frame duration in seconds. Required. Must be greater than 0. This is
|
||||
/// rounded to the nearest integer number of samples.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FrameDurationSeconds {
|
||||
get { if ((_hasBits0 & 1) != 0) { return frameDurationSeconds_; } else { return FrameDurationSecondsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 1;
|
||||
frameDurationSeconds_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "frame_duration_seconds" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFrameDurationSeconds {
|
||||
get { return (_hasBits0 & 1) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "frame_duration_seconds" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFrameDurationSeconds() {
|
||||
_hasBits0 &= ~1;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "frame_overlap_seconds" field.</summary>
|
||||
public const int FrameOverlapSecondsFieldNumber = 2;
|
||||
private readonly static double FrameOverlapSecondsDefaultValue = 0D;
|
||||
|
||||
private double frameOverlapSeconds_;
|
||||
/// <summary>
|
||||
/// Frame overlap in seconds.
|
||||
///
|
||||
/// If emulate_fractional_frame_overlap is false (the default), then the frame
|
||||
/// overlap is rounded to the nearest integer number of samples, and the step
|
||||
/// from one frame to the next will be the difference between the number of
|
||||
/// samples in a frame and the number of samples in the overlap.
|
||||
///
|
||||
/// If emulate_fractional_frame_overlap is true, then frame overlap will be a
|
||||
/// variable number of samples, such that the long-time average time step from
|
||||
/// one frame to the next will be the difference between the (nominal, not
|
||||
/// rounded) frame_duration_seconds and frame_overlap_seconds. This is useful
|
||||
/// where the desired time step is not an integral number of input samples.
|
||||
///
|
||||
/// A negative frame_overlap_seconds corresponds to skipping some input samples
|
||||
/// between each frame of emitted samples.
|
||||
///
|
||||
/// Required that frame_overlap_seconds < frame_duration_seconds.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public double FrameOverlapSeconds {
|
||||
get { if ((_hasBits0 & 2) != 0) { return frameOverlapSeconds_; } else { return FrameOverlapSecondsDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 2;
|
||||
frameOverlapSeconds_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "frame_overlap_seconds" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasFrameOverlapSeconds {
|
||||
get { return (_hasBits0 & 2) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "frame_overlap_seconds" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearFrameOverlapSeconds() {
|
||||
_hasBits0 &= ~2;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "emulate_fractional_frame_overlap" field.</summary>
|
||||
public const int EmulateFractionalFrameOverlapFieldNumber = 5;
|
||||
private readonly static bool EmulateFractionalFrameOverlapDefaultValue = false;
|
||||
|
||||
private bool emulateFractionalFrameOverlap_;
|
||||
/// <summary>
|
||||
/// See frame_overlap_seconds for semantics.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool EmulateFractionalFrameOverlap {
|
||||
get { if ((_hasBits0 & 16) != 0) { return emulateFractionalFrameOverlap_; } else { return EmulateFractionalFrameOverlapDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 16;
|
||||
emulateFractionalFrameOverlap_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "emulate_fractional_frame_overlap" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasEmulateFractionalFrameOverlap {
|
||||
get { return (_hasBits0 & 16) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "emulate_fractional_frame_overlap" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearEmulateFractionalFrameOverlap() {
|
||||
_hasBits0 &= ~16;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "pad_final_packet" field.</summary>
|
||||
public const int PadFinalPacketFieldNumber = 3;
|
||||
private readonly static bool PadFinalPacketDefaultValue = true;
|
||||
|
||||
private bool padFinalPacket_;
|
||||
/// <summary>
|
||||
/// Whether to pad the final packet with zeros. If true, guarantees that all
|
||||
/// input samples (other than those that fall in gaps implied by negative
|
||||
/// frame_overlap_seconds) will be emitted. If set to false, any partial
|
||||
/// packet at the end of the stream will be dropped.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool PadFinalPacket {
|
||||
get { if ((_hasBits0 & 4) != 0) { return padFinalPacket_; } else { return PadFinalPacketDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 4;
|
||||
padFinalPacket_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "pad_final_packet" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasPadFinalPacket {
|
||||
get { return (_hasBits0 & 4) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "pad_final_packet" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearPadFinalPacket() {
|
||||
_hasBits0 &= ~4;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "window_function" field.</summary>
|
||||
public const int WindowFunctionFieldNumber = 4;
|
||||
private readonly static global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction WindowFunctionDefaultValue = global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction.None;
|
||||
|
||||
private global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction windowFunction_;
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction WindowFunction {
|
||||
get { if ((_hasBits0 & 8) != 0) { return windowFunction_; } else { return WindowFunctionDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 8;
|
||||
windowFunction_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "window_function" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasWindowFunction {
|
||||
get { return (_hasBits0 & 8) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "window_function" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearWindowFunction() {
|
||||
_hasBits0 &= ~8;
|
||||
}
|
||||
|
||||
/// <summary>Field number for the "use_local_timestamp" field.</summary>
|
||||
public const int UseLocalTimestampFieldNumber = 6;
|
||||
private readonly static bool UseLocalTimestampDefaultValue = false;
|
||||
|
||||
private bool useLocalTimestamp_;
|
||||
/// <summary>
|
||||
/// If use_local_timestamp is true, the output packet's timestamp is based on
|
||||
/// the last sample of the packet and it's inferred from the latest input
|
||||
/// packet's timestamp. If false, the output packet's timestamp is based on
|
||||
/// the cumulative timestamping, which is inferred from the intial input
|
||||
/// timestamp and the cumulative number of samples.
|
||||
/// </summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool UseLocalTimestamp {
|
||||
get { if ((_hasBits0 & 32) != 0) { return useLocalTimestamp_; } else { return UseLocalTimestampDefaultValue; } }
|
||||
set {
|
||||
_hasBits0 |= 32;
|
||||
useLocalTimestamp_ = value;
|
||||
}
|
||||
}
|
||||
/// <summary>Gets whether the "use_local_timestamp" field is set</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool HasUseLocalTimestamp {
|
||||
get { return (_hasBits0 & 32) != 0; }
|
||||
}
|
||||
/// <summary>Clears the value of the "use_local_timestamp" field</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void ClearUseLocalTimestamp() {
|
||||
_hasBits0 &= ~32;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public override bool Equals(object other) {
|
||||
return Equals(other as TimeSeriesFramerCalculatorOptions);
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public bool Equals(TimeSeriesFramerCalculatorOptions other) {
|
||||
if (ReferenceEquals(other, null)) {
|
||||
return false;
|
||||
}
|
||||
if (ReferenceEquals(other, this)) {
|
||||
return true;
|
||||
}
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FrameDurationSeconds, other.FrameDurationSeconds)) return false;
|
||||
if (!pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(FrameOverlapSeconds, other.FrameOverlapSeconds)) return false;
|
||||
if (EmulateFractionalFrameOverlap != other.EmulateFractionalFrameOverlap) return false;
|
||||
if (PadFinalPacket != other.PadFinalPacket) return false;
|
||||
if (WindowFunction != other.WindowFunction) return false;
|
||||
if (UseLocalTimestamp != other.UseLocalTimestamp) 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 (HasFrameDurationSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameDurationSeconds);
|
||||
if (HasFrameOverlapSeconds) hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FrameOverlapSeconds);
|
||||
if (HasEmulateFractionalFrameOverlap) hash ^= EmulateFractionalFrameOverlap.GetHashCode();
|
||||
if (HasPadFinalPacket) hash ^= PadFinalPacket.GetHashCode();
|
||||
if (HasWindowFunction) hash ^= WindowFunction.GetHashCode();
|
||||
if (HasUseLocalTimestamp) hash ^= UseLocalTimestamp.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 (HasFrameDurationSeconds) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(FrameDurationSeconds);
|
||||
}
|
||||
if (HasFrameOverlapSeconds) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(FrameOverlapSeconds);
|
||||
}
|
||||
if (HasPadFinalPacket) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(PadFinalPacket);
|
||||
}
|
||||
if (HasWindowFunction) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) WindowFunction);
|
||||
}
|
||||
if (HasEmulateFractionalFrameOverlap) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(EmulateFractionalFrameOverlap);
|
||||
}
|
||||
if (HasUseLocalTimestamp) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(UseLocalTimestamp);
|
||||
}
|
||||
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 (HasFrameDurationSeconds) {
|
||||
output.WriteRawTag(9);
|
||||
output.WriteDouble(FrameDurationSeconds);
|
||||
}
|
||||
if (HasFrameOverlapSeconds) {
|
||||
output.WriteRawTag(17);
|
||||
output.WriteDouble(FrameOverlapSeconds);
|
||||
}
|
||||
if (HasPadFinalPacket) {
|
||||
output.WriteRawTag(24);
|
||||
output.WriteBool(PadFinalPacket);
|
||||
}
|
||||
if (HasWindowFunction) {
|
||||
output.WriteRawTag(32);
|
||||
output.WriteEnum((int) WindowFunction);
|
||||
}
|
||||
if (HasEmulateFractionalFrameOverlap) {
|
||||
output.WriteRawTag(40);
|
||||
output.WriteBool(EmulateFractionalFrameOverlap);
|
||||
}
|
||||
if (HasUseLocalTimestamp) {
|
||||
output.WriteRawTag(48);
|
||||
output.WriteBool(UseLocalTimestamp);
|
||||
}
|
||||
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 (HasFrameDurationSeconds) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasFrameOverlapSeconds) {
|
||||
size += 1 + 8;
|
||||
}
|
||||
if (HasEmulateFractionalFrameOverlap) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasPadFinalPacket) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (HasWindowFunction) {
|
||||
size += 1 + pb::CodedOutputStream.ComputeEnumSize((int) WindowFunction);
|
||||
}
|
||||
if (HasUseLocalTimestamp) {
|
||||
size += 1 + 1;
|
||||
}
|
||||
if (_unknownFields != null) {
|
||||
size += _unknownFields.CalculateSize();
|
||||
}
|
||||
return size;
|
||||
}
|
||||
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public void MergeFrom(TimeSeriesFramerCalculatorOptions other) {
|
||||
if (other == null) {
|
||||
return;
|
||||
}
|
||||
if (other.HasFrameDurationSeconds) {
|
||||
FrameDurationSeconds = other.FrameDurationSeconds;
|
||||
}
|
||||
if (other.HasFrameOverlapSeconds) {
|
||||
FrameOverlapSeconds = other.FrameOverlapSeconds;
|
||||
}
|
||||
if (other.HasEmulateFractionalFrameOverlap) {
|
||||
EmulateFractionalFrameOverlap = other.EmulateFractionalFrameOverlap;
|
||||
}
|
||||
if (other.HasPadFinalPacket) {
|
||||
PadFinalPacket = other.PadFinalPacket;
|
||||
}
|
||||
if (other.HasWindowFunction) {
|
||||
WindowFunction = other.WindowFunction;
|
||||
}
|
||||
if (other.HasUseLocalTimestamp) {
|
||||
UseLocalTimestamp = other.UseLocalTimestamp;
|
||||
}
|
||||
_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: {
|
||||
FrameDurationSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
FrameOverlapSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
PadFinalPacket = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
WindowFunction = (global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
EmulateFractionalFrameOverlap = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
UseLocalTimestamp = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
void pb::IBufferMessage.InternalMergeFrom(ref pb::ParseContext input) {
|
||||
uint tag;
|
||||
while ((tag = input.ReadTag()) != 0) {
|
||||
switch(tag) {
|
||||
default:
|
||||
_unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, ref input);
|
||||
break;
|
||||
case 9: {
|
||||
FrameDurationSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 17: {
|
||||
FrameOverlapSeconds = input.ReadDouble();
|
||||
break;
|
||||
}
|
||||
case 24: {
|
||||
PadFinalPacket = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 32: {
|
||||
WindowFunction = (global::Mediapipe.TimeSeriesFramerCalculatorOptions.Types.WindowFunction) input.ReadEnum();
|
||||
break;
|
||||
}
|
||||
case 40: {
|
||||
EmulateFractionalFrameOverlap = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
case 48: {
|
||||
UseLocalTimestamp = input.ReadBool();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#region Nested types
|
||||
/// <summary>Container for nested types declared in the TimeSeriesFramerCalculatorOptions message type.</summary>
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
|
||||
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
|
||||
public static partial class Types {
|
||||
/// <summary>
|
||||
/// Optional windowing function. The default is NONE (no windowing function).
|
||||
/// </summary>
|
||||
public enum WindowFunction {
|
||||
[pbr::OriginalName("NONE")] None = 0,
|
||||
[pbr::OriginalName("HAMMING")] Hamming = 1,
|
||||
[pbr::OriginalName("HANN")] Hann = 2,
|
||||
}
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Extensions
|
||||
/// <summary>Container for extensions for other messages declared in the TimeSeriesFramerCalculatorOptions 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.TimeSeriesFramerCalculatorOptions> Ext =
|
||||
new pb::Extension<global::Mediapipe.CalculatorOptions, global::Mediapipe.TimeSeriesFramerCalculatorOptions>(50631621, pb::FieldCodec.ForMessage(405052970, global::Mediapipe.TimeSeriesFramerCalculatorOptions.Parser));
|
||||
}
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
||||
#endregion Designer generated code
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 958deb93c83159234bb9670b7990bad1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user