public static final class VideoStream.Vp9CodecSettings extends com.google.protobuf.GeneratedMessageV3 implements VideoStream.Vp9CodecSettingsOrBuilder
VP9 codec settings.Protobuf type
google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings| Modifier and Type | Class and Description |
|---|---|
static class |
VideoStream.Vp9CodecSettings.Builder
VP9 codec settings.
|
static class |
VideoStream.Vp9CodecSettings.GopModeCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BITRATE_BPS_FIELD_NUMBER |
static int |
CRF_LEVEL_FIELD_NUMBER |
static int |
FRAME_RATE_FIELD_NUMBER |
static int |
GOP_DURATION_FIELD_NUMBER |
static int |
GOP_FRAME_COUNT_FIELD_NUMBER |
static int |
HEIGHT_PIXELS_FIELD_NUMBER |
static int |
PIXEL_FORMAT_FIELD_NUMBER |
static int |
PROFILE_FIELD_NUMBER |
static int |
RATE_CONTROL_MODE_FIELD_NUMBER |
static int |
WIDTH_PIXELS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getBitrateBps()
Required.
|
int |
getCrfLevel()
Target CRF level.
|
static VideoStream.Vp9CodecSettings |
getDefaultInstance() |
VideoStream.Vp9CodecSettings |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
double |
getFrameRate()
Required.
|
com.google.protobuf.Duration |
getGopDuration()
Select the GOP size based on the specified duration.
|
com.google.protobuf.DurationOrBuilder |
getGopDurationOrBuilder()
Select the GOP size based on the specified duration.
|
int |
getGopFrameCount()
Select the GOP size based on the specified frame count.
|
VideoStream.Vp9CodecSettings.GopModeCase |
getGopModeCase() |
int |
getHeightPixels()
The height of the video in pixels.
|
com.google.protobuf.Parser<VideoStream.Vp9CodecSettings> |
getParserForType() |
String |
getPixelFormat()
Pixel format to use.
|
com.google.protobuf.ByteString |
getPixelFormatBytes()
Pixel format to use.
|
String |
getProfile()
Enforces the specified codec profile.
|
com.google.protobuf.ByteString |
getProfileBytes()
Enforces the specified codec profile.
|
String |
getRateControlMode()
Specify the `rate_control_mode`.
|
com.google.protobuf.ByteString |
getRateControlModeBytes()
Specify the `rate_control_mode`.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
getWidthPixels()
The width of the video in pixels.
|
boolean |
hasGopDuration()
Select the GOP size based on the specified duration.
|
boolean |
hasGopFrameCount()
Select the GOP size based on the specified frame count.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static VideoStream.Vp9CodecSettings.Builder |
newBuilder() |
static VideoStream.Vp9CodecSettings.Builder |
newBuilder(VideoStream.Vp9CodecSettings prototype) |
VideoStream.Vp9CodecSettings.Builder |
newBuilderForType() |
protected VideoStream.Vp9CodecSettings.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static VideoStream.Vp9CodecSettings |
parseDelimitedFrom(InputStream input) |
static VideoStream.Vp9CodecSettings |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VideoStream.Vp9CodecSettings |
parseFrom(byte[] data) |
static VideoStream.Vp9CodecSettings |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VideoStream.Vp9CodecSettings |
parseFrom(ByteBuffer data) |
static VideoStream.Vp9CodecSettings |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VideoStream.Vp9CodecSettings |
parseFrom(com.google.protobuf.ByteString data) |
static VideoStream.Vp9CodecSettings |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VideoStream.Vp9CodecSettings |
parseFrom(com.google.protobuf.CodedInputStream input) |
static VideoStream.Vp9CodecSettings |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static VideoStream.Vp9CodecSettings |
parseFrom(InputStream input) |
static VideoStream.Vp9CodecSettings |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<VideoStream.Vp9CodecSettings> |
parser() |
VideoStream.Vp9CodecSettings.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int WIDTH_PIXELS_FIELD_NUMBER
public static final int HEIGHT_PIXELS_FIELD_NUMBER
public static final int FRAME_RATE_FIELD_NUMBER
public static final int BITRATE_BPS_FIELD_NUMBER
public static final int PIXEL_FORMAT_FIELD_NUMBER
public static final int RATE_CONTROL_MODE_FIELD_NUMBER
public static final int CRF_LEVEL_FIELD_NUMBER
public static final int GOP_FRAME_COUNT_FIELD_NUMBER
public static final int GOP_DURATION_FIELD_NUMBER
public static final int PROFILE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public VideoStream.Vp9CodecSettings.GopModeCase getGopModeCase()
getGopModeCase in interface VideoStream.Vp9CodecSettingsOrBuilderpublic int getWidthPixels()
The width of the video in pixels. Must be an even integer. When not specified, the width is adjusted to match the specified height and input aspect ratio. If both are omitted, the input width is used.
int32 width_pixels = 1;getWidthPixels in interface VideoStream.Vp9CodecSettingsOrBuilderpublic int getHeightPixels()
The height of the video in pixels. Must be an even integer. When not specified, the height is adjusted to match the specified width and input aspect ratio. If both are omitted, the input height is used.
int32 height_pixels = 2;getHeightPixels in interface VideoStream.Vp9CodecSettingsOrBuilderpublic double getFrameRate()
Required. The target video frame rate in frames per second (FPS). Must be less than or equal to 120. Will default to the input frame rate if larger than the input frame rate. The API will generate an output FPS that is divisible by the input FPS, and smaller or equal to the target FPS. See [Calculating frame rate](https://cloud.google.com/transcoder/docs/concepts/frame-rate) for more information.
double frame_rate = 3 [(.google.api.field_behavior) = REQUIRED];getFrameRate in interface VideoStream.Vp9CodecSettingsOrBuilderpublic int getBitrateBps()
Required. The video bitrate in bits per second. The minimum value is 1,000. The maximum value is 480,000,000.
int32 bitrate_bps = 4 [(.google.api.field_behavior) = REQUIRED];getBitrateBps in interface VideoStream.Vp9CodecSettingsOrBuilderpublic String getPixelFormat()
Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format
string pixel_format = 5;getPixelFormat in interface VideoStream.Vp9CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getPixelFormatBytes()
Pixel format to use. The default is `yuv420p`. Supported pixel formats: - `yuv420p` pixel format - `yuv422p` pixel format - `yuv444p` pixel format - `yuv420p10` 10-bit HDR pixel format - `yuv422p10` 10-bit HDR pixel format - `yuv444p10` 10-bit HDR pixel format - `yuv420p12` 12-bit HDR pixel format - `yuv422p12` 12-bit HDR pixel format - `yuv444p12` 12-bit HDR pixel format
string pixel_format = 5;getPixelFormatBytes in interface VideoStream.Vp9CodecSettingsOrBuilderpublic String getRateControlMode()
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate
string rate_control_mode = 6;getRateControlMode in interface VideoStream.Vp9CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getRateControlModeBytes()
Specify the `rate_control_mode`. The default is `vbr`. Supported rate control modes: - `vbr` - variable bitrate
string rate_control_mode = 6;getRateControlModeBytes in interface VideoStream.Vp9CodecSettingsOrBuilderpublic int getCrfLevel()
Target CRF level. Must be between 10 and 36, where 10 is the highest quality and 36 is the most efficient compression. The default is 21. **Note:** This field is not supported.
int32 crf_level = 7;getCrfLevel in interface VideoStream.Vp9CodecSettingsOrBuilderpublic boolean hasGopFrameCount()
Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 8;hasGopFrameCount in interface VideoStream.Vp9CodecSettingsOrBuilderpublic int getGopFrameCount()
Select the GOP size based on the specified frame count. Must be greater than zero.
int32 gop_frame_count = 8;getGopFrameCount in interface VideoStream.Vp9CodecSettingsOrBuilderpublic boolean hasGopDuration()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 9;hasGopDuration in interface VideoStream.Vp9CodecSettingsOrBuilderpublic com.google.protobuf.Duration getGopDuration()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 9;getGopDuration in interface VideoStream.Vp9CodecSettingsOrBuilderpublic com.google.protobuf.DurationOrBuilder getGopDurationOrBuilder()
Select the GOP size based on the specified duration. The default is `3s`. Note that `gopDuration` must be less than or equal to [`segmentDuration`](#SegmentSettings), and [`segmentDuration`](#SegmentSettings) must be divisible by `gopDuration`.
.google.protobuf.Duration gop_duration = 9;getGopDurationOrBuilder in interface VideoStream.Vp9CodecSettingsOrBuilderpublic String getProfile()
Enforces the specified codec profile. The following profiles are supported: * `profile0` (default) * `profile1` * `profile2` * `profile3` The available options are [WebM-compatible](https://www.webmproject.org/vp9/profiles/). Note that certain values for this field may cause the transcoder to override other fields you set in the `Vp9CodecSettings` message.
string profile = 10;getProfile in interface VideoStream.Vp9CodecSettingsOrBuilderpublic com.google.protobuf.ByteString getProfileBytes()
Enforces the specified codec profile. The following profiles are supported: * `profile0` (default) * `profile1` * `profile2` * `profile3` The available options are [WebM-compatible](https://www.webmproject.org/vp9/profiles/). Note that certain values for this field may cause the transcoder to override other fields you set in the `Vp9CodecSettings` message.
string profile = 10;getProfileBytes in interface VideoStream.Vp9CodecSettingsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static VideoStream.Vp9CodecSettings parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(InputStream input) throws IOException
IOExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VideoStream.Vp9CodecSettings parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static VideoStream.Vp9CodecSettings parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static VideoStream.Vp9CodecSettings parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic VideoStream.Vp9CodecSettings.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static VideoStream.Vp9CodecSettings.Builder newBuilder()
public static VideoStream.Vp9CodecSettings.Builder newBuilder(VideoStream.Vp9CodecSettings prototype)
public VideoStream.Vp9CodecSettings.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected VideoStream.Vp9CodecSettings.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static VideoStream.Vp9CodecSettings getDefaultInstance()
public static com.google.protobuf.Parser<VideoStream.Vp9CodecSettings> parser()
public com.google.protobuf.Parser<VideoStream.Vp9CodecSettings> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public VideoStream.Vp9CodecSettings getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.