Enum VideoStream.FrameRateConversionStrategy

java.lang.Object
java.lang.Enum<VideoStream.FrameRateConversionStrategy>
com.google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<VideoStream.FrameRateConversionStrategy>
Enclosing class:
VideoStream

public static enum VideoStream.FrameRateConversionStrategy extends Enum<VideoStream.FrameRateConversionStrategy> implements com.google.protobuf.ProtocolMessageEnum
 The conversion strategy for desired frame rate.
 
Protobuf enum google.cloud.video.transcoder.v1.VideoStream.FrameRateConversionStrategy
  • Enum Constant Details

    • FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED

      public static final VideoStream.FrameRateConversionStrategy FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED
       Unspecified frame rate conversion strategy.
       
      FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED = 0;
    • DOWNSAMPLE

      public static final VideoStream.FrameRateConversionStrategy DOWNSAMPLE
       Selectively retain frames to reduce the output frame rate.
       Every _n_ th frame is kept, where `n = ceil(input frame rate / target
       frame rate)`. When _n_ = 1 (that is, the target frame rate is greater
       than the input frame rate), the output frame rate matches the input frame
       rate. When _n_ > 1, frames are dropped and the output frame rate is
       equal to `(input frame rate / n)`. For more information, see
       [Calculate frame
       rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate).
       
      DOWNSAMPLE = 1;
    • DROP_DUPLICATE

      public static final VideoStream.FrameRateConversionStrategy DROP_DUPLICATE
       Drop or duplicate frames to match the specified frame rate.
       
      DROP_DUPLICATE = 2;
    • UNRECOGNIZED

      public static final VideoStream.FrameRateConversionStrategy UNRECOGNIZED
  • Field Details

    • FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED_VALUE

      public static final int FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED_VALUE
       Unspecified frame rate conversion strategy.
       
      FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED = 0;
      See Also:
    • DOWNSAMPLE_VALUE

      public static final int DOWNSAMPLE_VALUE
       Selectively retain frames to reduce the output frame rate.
       Every _n_ th frame is kept, where `n = ceil(input frame rate / target
       frame rate)`. When _n_ = 1 (that is, the target frame rate is greater
       than the input frame rate), the output frame rate matches the input frame
       rate. When _n_ > 1, frames are dropped and the output frame rate is
       equal to `(input frame rate / n)`. For more information, see
       [Calculate frame
       rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate).
       
      DOWNSAMPLE = 1;
      See Also:
    • DROP_DUPLICATE_VALUE

      public static final int DROP_DUPLICATE_VALUE
       Drop or duplicate frames to match the specified frame rate.
       
      DROP_DUPLICATE = 2;
      See Also:
  • Method Details

    • values

      public static VideoStream.FrameRateConversionStrategy[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static VideoStream.FrameRateConversionStrategy valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static VideoStream.FrameRateConversionStrategy valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static VideoStream.FrameRateConversionStrategy forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<VideoStream.FrameRateConversionStrategy> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static VideoStream.FrameRateConversionStrategy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null