H264CodecSettings

google.cloud.video.transcoder.v1.VideoStream. H264CodecSettings

Represents a H264CodecSettings.

Constructor

new H264CodecSettings(propertiesopt)

Constructs a new H264CodecSettings.

Parameters:
Name Type Attributes Description
properties google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings <optional>

Properties to set

Implements:
  • IH264CodecSettings

Members

allowOpenGop

H264CodecSettings allowOpenGop.

aqStrength

H264CodecSettings aqStrength.

bFrameCount

H264CodecSettings bFrameCount.

bPyramid

H264CodecSettings bPyramid.

bitrateBps

H264CodecSettings bitrateBps.

crfLevel

H264CodecSettings crfLevel.

enableTwoPass

H264CodecSettings enableTwoPass.

entropyCoder

H264CodecSettings entropyCoder.

frameRate

H264CodecSettings frameRate.

gopDuration

H264CodecSettings gopDuration.

gopFrameCount

H264CodecSettings gopFrameCount.

gopMode

H264CodecSettings gopMode.

heightPixels

H264CodecSettings heightPixels.

pixelFormat

H264CodecSettings pixelFormat.

preset

H264CodecSettings preset.

profile

H264CodecSettings profile.

rateControlMode

H264CodecSettings rateControlMode.

tune

H264CodecSettings tune.

vbvFullnessBits

H264CodecSettings vbvFullnessBits.

vbvSizeBits

H264CodecSettings vbvSizeBits.

widthPixels

H264CodecSettings widthPixels.

Methods

toJSON() → {Object.<string, *>}

Converts this H264CodecSettings to JSON.

Returns:
Type Description
Object.<string, *>

JSON object

(static) create(propertiesopt) → {google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings}

Creates a new H264CodecSettings instance using the specified properties.

Parameters:
Name Type Attributes Description
properties google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings <optional>

Properties to set

Returns:
Type Description
google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings

H264CodecSettings instance

(static) decode(reader, lengthopt) → {google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings}

Decodes a H264CodecSettings message from the specified reader or buffer.

Parameters:
Name Type Attributes Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

length number <optional>

Message length if known beforehand

Returns:
Type Description
google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings

H264CodecSettings

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) decodeDelimited(reader) → {google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings}

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

Parameters:
Name Type Description
reader $protobuf.Reader | Uint8Array

Reader or buffer to decode from

Returns:
Type Description
google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings

H264CodecSettings

Throws:
  • If the payload is not a reader or valid buffer

    Type
    Error
  • If required fields are missing

    Type
    $protobuf.util.ProtocolError

(static) encode(message, writeropt) → {$protobuf.Writer}

Encodes the specified H264CodecSettings message. Does not implicitly verify messages.

Parameters:
Name Type Attributes Description
message google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings

H264CodecSettings message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}

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

Parameters:
Name Type Attributes Description
message google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings

H264CodecSettings message or plain object to encode

writer $protobuf.Writer <optional>

Writer to encode to

Returns:
Type Description
$protobuf.Writer

Writer

(static) fromObject(object) → {google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings}

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

Parameters:
Name Type Description
object Object.<string, *>

Plain object

Returns:
Type Description
google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings

H264CodecSettings

(static) getTypeUrl(typeUrlPrefixopt) → {string}

Gets the default type url for H264CodecSettings

Parameters:
Name Type Attributes Description
typeUrlPrefix string <optional>

your custom typeUrlPrefix(default "type.googleapis.com")

Returns:
Type Description
string

The default type url

(static) toObject(message, optionsopt) → {Object.<string, *>}

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

Parameters:
Name Type Attributes Description
message google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings

H264CodecSettings

options $protobuf.IConversionOptions <optional>

Conversion options

Returns:
Type Description
Object.<string, *>

Plain object

(static) verify(message) → {string|null}

Verifies a H264CodecSettings message.

Parameters:
Name Type Description
message Object.<string, *>

Plain object to verify

Returns:
Type Description
string | null

null if valid, otherwise the reason why it is not