Represents a H264CodecSettings.
Package
@google-cloud/video-transcoder!Constructors
(constructor)(properties)
constructor(properties?: google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings);Constructs a new H264CodecSettings.
| Name | Description |
| properties |
IH264CodecSettings
Properties to set |
Properties
allowOpenGop
public allowOpenGop: boolean;H264CodecSettings allowOpenGop.
| Type | Description |
| boolean |
aqStrength
public aqStrength: number;H264CodecSettings aqStrength.
| Type | Description |
| number |
bFrameCount
public bFrameCount: number;H264CodecSettings bFrameCount.
| Type | Description |
| number |
bitrateBps
public bitrateBps: number;H264CodecSettings bitrateBps.
| Type | Description |
| number |
bPyramid
public bPyramid: boolean;H264CodecSettings bPyramid.
| Type | Description |
| boolean |
crfLevel
public crfLevel: number;H264CodecSettings crfLevel.
| Type | Description |
| number |
enableTwoPass
public enableTwoPass: boolean;H264CodecSettings enableTwoPass.
| Type | Description |
| boolean |
entropyCoder
public entropyCoder: string;H264CodecSettings entropyCoder.
| Type | Description |
| string |
frameRate
public frameRate: number;H264CodecSettings frameRate.
| Type | Description |
| number |
gopDuration
public gopDuration?: (google.protobuf.IDuration|null);H264CodecSettings gopDuration.
| Type | Description |
| (google.protobuf.IDuration|null) |
gopFrameCount
public gopFrameCount?: (number|null);H264CodecSettings gopFrameCount.
| Type | Description |
| (number|null) |
gopMode
public gopMode?: ("gopFrameCount"|"gopDuration");H264CodecSettings gopMode.
| Type | Description |
| ("gopFrameCount"|"gopDuration") |
heightPixels
public heightPixels: number;H264CodecSettings heightPixels.
| Type | Description |
| number |
pixelFormat
public pixelFormat: string;H264CodecSettings pixelFormat.
| Type | Description |
| string |
preset
public preset: string;H264CodecSettings preset.
| Type | Description |
| string |
profile
public profile: string;H264CodecSettings profile.
| Type | Description |
| string |
rateControlMode
public rateControlMode: string;H264CodecSettings rateControlMode.
| Type | Description |
| string |
tune
public tune: string;H264CodecSettings tune.
| Type | Description |
| string |
vbvFullnessBits
public vbvFullnessBits: number;H264CodecSettings vbvFullnessBits.
| Type | Description |
| number |
vbvSizeBits
public vbvSizeBits: number;H264CodecSettings vbvSizeBits.
| Type | Description |
| number |
widthPixels
public widthPixels: number;H264CodecSettings widthPixels.
| Type | Description |
| number |
Methods
create(properties)
public static create(properties?: google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings): google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings;Creates a new H264CodecSettings instance using the specified properties.
| Name | Description |
| properties |
IH264CodecSettings
Properties to set |
| Type | Description |
| google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings | H264CodecSettings instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings;Decodes a H264CodecSettings message from the specified reader or buffer.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| length |
number
Message length if known beforehand |
| Type | Description |
| google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings | H264CodecSettings |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings;Decodes a H264CodecSettings message from the specified reader or buffer, length delimited.
| Name | Description |
| reader |
($protobuf.Reader|Uint8Array)
Reader or buffer to decode from |
| Type | Description |
| google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings | H264CodecSettings |
encode(message, writer)
public static encode(message: google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified H264CodecSettings message. Does not implicitly messages.
| Name | Description |
| message |
IH264CodecSettings
H264CodecSettings message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| Type | Description |
| $protobuf.Writer | Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: google.cloud.video.transcoder.v1.VideoStream.IH264CodecSettings, writer?: $protobuf.Writer): $protobuf.Writer;Encodes the specified H264CodecSettings message, length delimited. Does not implicitly messages.
| Name | Description |
| message |
IH264CodecSettings
H264CodecSettings message or plain object to encode |
| writer |
$protobuf.Writer
Writer to encode to |
| Type | Description |
| $protobuf.Writer | Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings;Creates a H264CodecSettings message from a plain object. Also converts values to their respective internal types.
| Name | Description |
| object |
{ [k: string]: any }
Plain object |
| Type | Description |
| google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings | H264CodecSettings |
toJSON()
public toJSON(): { [k: string]: any };Converts this H264CodecSettings to JSON.
| Type | Description |
| { [k: string]: any } | JSON object |
toObject(message, options)
public static toObject(message: google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };Creates a plain object from a H264CodecSettings message. Also converts values to other types if specified.
| Name | Description |
| message |
google.cloud.video.transcoder.v1.VideoStream.H264CodecSettings
H264CodecSettings |
| options |
$protobuf.IConversionOptions
Conversion options |
| Type | Description |
| { [k: string]: any } | Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);Verifies a H264CodecSettings message.
| Name | Description |
| message |
{ [k: string]: any }
Plain object to verify |
| Type | Description |
| (string|null) |
|