Represents a H265CodecSettings.
Package
@google-cloud/video-transcoderConstructors
(constructor)(properties)
constructor(properties?: google.cloud.video.transcoder.v1.VideoStream.IH265CodecSettings);Constructs a new H265CodecSettings.
| Parameter | |
|---|---|
| Name | Description |
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 | |
|---|---|
| Name | Description |
properties |
IH265CodecSettings
Properties to set |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
message |
IH265CodecSettings
H265CodecSettings 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.IH265CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified H265CodecSettings message, length delimited. Does not implicitly messages.
| Parameters | |
|---|---|
| Name | Description |
message |
IH265CodecSettings
H265CodecSettings 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.H265CodecSettings;Creates a H265CodecSettings 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 |
H265CodecSettings |
H265CodecSettings |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;Gets the default type url for H265CodecSettings
| 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 H265CodecSettings to JSON.
| Returns | |
|---|---|
| Type | Description |
{ [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 | |
|---|---|
| Name | Description |
message |
H265CodecSettings
H265CodecSettings |
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 H265CodecSettings message.
| Parameter | |
|---|---|
| Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
| Returns | |
|---|---|
| Type | Description |
(string|null) |
|