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 Summary
Enum ConstantsEnum ConstantDescriptionSelectively retain frames to reduce the output frame rate.Drop or duplicate frames to match the specified frame rate.Unspecified frame rate conversion strategy. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSelectively retain frames to reduce the output frame rate.static final intDrop or duplicate frames to match the specified frame rate.static final intUnspecified frame rate conversion strategy. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<VideoStream.FrameRateConversionStrategy>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED
public static final VideoStream.FrameRateConversionStrategy FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIEDUnspecified frame rate conversion strategy.
FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED = 0; -
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
Drop or duplicate frames to match the specified frame rate.
DROP_DUPLICATE = 2; -
UNRECOGNIZED
-
-
Field Details
-
FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED_VALUE
public static final int FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED_VALUEUnspecified frame rate conversion strategy.
FRAME_RATE_CONVERSION_STRATEGY_UNSPECIFIED = 0;- See Also:
-
DOWNSAMPLE_VALUE
public static final int DOWNSAMPLE_VALUESelectively 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_VALUEDrop or duplicate frames to match the specified frame rate.
DROP_DUPLICATE = 2;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-