Class protos.google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

Represents a H265CodecSettings.

Package

@google-cloud/video-transcoder

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.video.transcoder.v1.VideoStream.IH265CodecSettings);

Constructs a new H265CodecSettings.

Parameter
NameDescription
properties IH265CodecSettings

Properties to set

Properties

allowOpenGop

public allowOpenGop: boolean;

H265CodecSettings allowOpenGop.

aqStrength

public aqStrength: number;

H265CodecSettings aqStrength.

bFrameCount

public bFrameCount: number;

H265CodecSettings bFrameCount.

bitrateBps

public bitrateBps: number;

H265CodecSettings bitrateBps.

bPyramid

public bPyramid: boolean;

H265CodecSettings bPyramid.

crfLevel

public crfLevel: number;

H265CodecSettings crfLevel.

enableTwoPass

public enableTwoPass: boolean;

H265CodecSettings enableTwoPass.

frameRate

public frameRate: number;

H265CodecSettings frameRate.

gopDuration

public gopDuration?: (google.protobuf.IDuration|null);

H265CodecSettings gopDuration.

gopFrameCount

public gopFrameCount?: (number|null);

H265CodecSettings gopFrameCount.

gopMode

public gopMode?: ("gopFrameCount"|"gopDuration");

H265CodecSettings gopMode.

heightPixels

public heightPixels: number;

H265CodecSettings heightPixels.

pixelFormat

public pixelFormat: string;

H265CodecSettings pixelFormat.

preset

public preset: string;

H265CodecSettings preset.

profile

public profile: string;

H265CodecSettings profile.

rateControlMode

public rateControlMode: string;

H265CodecSettings rateControlMode.

tune

public tune: string;

H265CodecSettings tune.

vbvFullnessBits

public vbvFullnessBits: number;

H265CodecSettings vbvFullnessBits.

vbvSizeBits

public vbvSizeBits: number;

H265CodecSettings vbvSizeBits.

widthPixels

public widthPixels: number;

H265CodecSettings widthPixels.

Methods

create(properties)

public static create(properties?: google.cloud.video.transcoder.v1.VideoStream.IH265CodecSettings): google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings;

Creates a new H265CodecSettings instance using the specified properties.

Parameter
NameDescription
properties IH265CodecSettings

Properties to set

Returns
TypeDescription
google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

H265CodecSettings instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings;

Decodes a H265CodecSettings message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

H265CodecSettings

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings;

Decodes a H265CodecSettings message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

H265CodecSettings

encode(message, writer)

public static encode(message: google.cloud.video.transcoder.v1.VideoStream.IH265CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified H265CodecSettings message. Does not implicitly messages.

Parameters
NameDescription
message IH265CodecSettings

H265CodecSettings message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.video.transcoder.v1.VideoStream.IH265CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified H265CodecSettings message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IH265CodecSettings

H265CodecSettings message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings;

Creates a H265CodecSettings message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

H265CodecSettings

toJSON()

public toJSON(): { [k: string]: any };

Converts this H265CodecSettings to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a H265CodecSettings message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.video.transcoder.v1.VideoStream.H265CodecSettings

H265CodecSettings

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a H265CodecSettings message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not