Class GstreamerRateControl
Binding from WebRTC rate-control targets to a GStreamer encoder property.
public sealed class GstreamerRateControl : Google.Protobuf.IMessage<GstreamerRateControl>, Google.Protobuf.IBufferMessage
- Inheritance
-
GstreamerRateControl
- Implements
-
IBufferMessage
- Extension Methods
Constructors
GstreamerRateControl()
public GstreamerRateControl()
GstreamerRateControl(GstreamerRateControl)
public GstreamerRateControl(GstreamerRateControl other)
Parameters
otherGstreamerRateControl
Fields
ElementFieldNumber
Field number for the "element" field.
public const int ElementFieldNumber = 1
Field Value
PropertyFieldNumber
Field number for the "property" field.
public const int PropertyFieldNumber = 2
Field Value
UnitFieldNumber
Field number for the "unit" field.
public const int UnitFieldNumber = 3
Field Value
Properties
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Element
Name of the encoder element in the pipeline (e.g. lk_encoder).
public string Element { get; set; }
Property Value
HasElement
Gets whether the "element" field is set
public bool HasElement { get; }
Property Value
HasProperty
Gets whether the "property" field is set
public bool HasProperty { get; }
Property Value
HasUnit
Gets whether the "unit" field is set
public bool HasUnit { get; }
Property Value
Parser
public static Google.Protobuf.MessageParser<GstreamerRateControl> Parser { get; }
Property Value
- MessageParser<GstreamerRateControl>
Property
Bitrate property to set on the element (e.g. bitrate for x264enc,
target-bitrate for vp8enc/vp9enc).
public string Property { get; set; }
Property Value
Unit
Unit the property expects.
public GstreamerBitrateUnit Unit { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearElement()
Clears the value of the "element" field
public void ClearElement()
ClearProperty()
Clears the value of the "property" field
public void ClearProperty()
ClearUnit()
Clears the value of the "unit" field
public void ClearUnit()
Clone()
public GstreamerRateControl Clone()
Returns
Equals(GstreamerRateControl)
public bool Equals(GstreamerRateControl other)
Parameters
otherGstreamerRateControl
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(GstreamerRateControl)
public void MergeFrom(GstreamerRateControl other)
Parameters
otherGstreamerRateControl
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream