Google Cloud Vision Ai V1 Client - Class GstreamerBufferDescriptor (0.1.0)

Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class GstreamerBufferDescriptor.

The descriptor for a gstreamer buffer payload.

Generated from protobuf message google.cloud.visionai.v1.GstreamerBufferDescriptor

Namespace

Google \ Cloud \ VisionAI \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ caps_string string

The caps string of the payload.

↳ is_key_frame bool

Whether the buffer is a key frame.

↳ pts_time Google\Protobuf\Timestamp

PTS of the frame.

↳ dts_time Google\Protobuf\Timestamp

DTS of the frame.

↳ duration Google\Protobuf\Duration

Duration of the frame.

getCapsString

The caps string of the payload.

Returns
Type Description
string

setCapsString

The caps string of the payload.

Parameter
Name Description
var string
Returns
Type Description
$this

getIsKeyFrame

Whether the buffer is a key frame.

Returns
Type Description
bool

setIsKeyFrame

Whether the buffer is a key frame.

Parameter
Name Description
var bool
Returns
Type Description
$this

getPtsTime

PTS of the frame.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasPtsTime

clearPtsTime

setPtsTime

PTS of the frame.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDtsTime

DTS of the frame.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasDtsTime

clearDtsTime

setDtsTime

DTS of the frame.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDuration

Duration of the frame.

Returns
Type Description
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

Duration of the frame.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this