Represents a Vp9CodecSettings.
Package
@google-cloud/video-transcoderConstructors
(constructor)(properties)
constructor(properties?: google.cloud.video.transcoder.v1.VideoStream.IVp9CodecSettings);Constructs a new Vp9CodecSettings.
| Parameter | |
|---|---|
| Name | Description |
properties |
IVp9CodecSettings
Properties to set |
Properties
bitrateBps
public bitrateBps: number;Vp9CodecSettings bitrateBps.
crfLevel
public crfLevel: number;Vp9CodecSettings crfLevel.
frameRate
public frameRate: number;Vp9CodecSettings frameRate.
gopDuration
public gopDuration?: (google.protobuf.IDuration|null);Vp9CodecSettings gopDuration.
gopFrameCount
public gopFrameCount?: (number|null);Vp9CodecSettings gopFrameCount.
gopMode
public gopMode?: ("gopFrameCount"|"gopDuration");Vp9CodecSettings gopMode.
heightPixels
public heightPixels: number;Vp9CodecSettings heightPixels.
pixelFormat
public pixelFormat: string;Vp9CodecSettings pixelFormat.
profile
public profile: string;Vp9CodecSettings profile.
rateControlMode
public rateControlMode: string;Vp9CodecSettings rateControlMode.
widthPixels
public widthPixels: number;Vp9CodecSettings widthPixels.
Methods
create(properties)
public static create(properties?: google.cloud.video.transcoder.v1.VideoStream.IVp9CodecSettings): google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings;Creates a new Vp9CodecSettings instance using the specified properties.
| Parameter | |
|---|---|
| Name | Description |
properties |
IVp9CodecSettings
Properties to set |
| Returns | |
|---|---|
| Type | Description |
google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings |
Vp9CodecSettings instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings;Decodes a Vp9CodecSettings message from the specified reader or buffer.
| Parameters | |
|---|---|
| Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
| Returns | |
|---|---|
| Type | Description |
google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings |
Vp9CodecSettings |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings;Decodes a Vp9CodecSettings message from the specified reader or buffer, length delimited.
| Parameter | |
|---|---|
| Name | Description |
reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings |
Vp9CodecSettings |
encode(message, writer)
public static encode(message: google.cloud.video.transcoder.v1.VideoStream.IVp9CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified Vp9CodecSettings message. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IVp9CodecSettings
Vp9CodecSettings message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.video.transcoder.v1.VideoStream.IVp9CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified Vp9CodecSettings message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IVp9CodecSettings
Vp9CodecSettings message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
| Returns | |
|---|---|
| Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings;Creates a Vp9CodecSettings message from a plain object. Also converts values to their respective internal types.
| Parameter | |
|---|---|
| Name | Description |
object |
{ [k: string]: any }
Plain object |
| Returns | |
|---|---|
| Type | Description |
google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings |
Vp9CodecSettings |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for Vp9CodecSettings
| Parameter | |
|---|---|
| Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
| Returns | |
|---|---|
| Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };Converts this Vp9CodecSettings to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a Vp9CodecSettings message. Also converts values to other types if specified.
| Parameters | |
|---|---|
| Name | Description |
message |
google.cloud.video.transcoder.v1.VideoStream.Vp9CodecSettings
Vp9CodecSettings |
options |
$protobuf.IConversionOptions
Conversion options |
| Returns | |
|---|---|
| Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a Vp9CodecSettings message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|