Functions

gst_analytics_inference_caps_has_tensor_group

gboolean
gst_analytics_inference_caps_has_tensor_group (const GstCaps * caps,
                                               const gchar * group_id)

Checks whether any structure in caps declares a tensor group named group_id in its tensors field.

Parameters:

caps ( [transfer: none]) –

caps to check

group_id ( [nullable]) –

tensor group id to look for

Returns –

TRUE if caps declares a tensor group named group_id, FALSE otherwise or if group_id is NULL

Since : 1.30


GstAnalytics.prototype.inference_caps_has_tensor_group

function GstAnalytics.prototype.inference_caps_has_tensor_group(caps: Gst.Caps, group_id: String): {
    // javascript wrapper for 'gst_analytics_inference_caps_has_tensor_group'
}

Checks whether any structure in caps declares a tensor group named group_id in its tensors field.

Parameters:

caps (Gst.Caps) –

caps to check

group_id (String) –

tensor group id to look for

Returns (Number) –

true if caps declares a tensor group named group_id, false otherwise or if group_id is null

Since : 1.30


GstAnalytics.inference_caps_has_tensor_group

def GstAnalytics.inference_caps_has_tensor_group (caps, group_id):
    #python wrapper for 'gst_analytics_inference_caps_has_tensor_group'

Checks whether any structure in caps declares a tensor group named group_id in its tensors field.

Parameters:

caps (Gst.Caps) –

caps to check

group_id (str) –

tensor group id to look for

Returns (bool) –

True if caps declares a tensor group named group_id, False otherwise or if group_id is None

Since : 1.30


gst_analytics_inference_transform_sink_caps

GstCaps *
gst_analytics_inference_transform_sink_caps (GstCaps * caps,
                                             GstCaps * restrictions,
                                             const GstStructure * model_tensorgroups,
                                             const gchar * group_id)

Transforms caps, the caps on the sink pad, into the caps for the src pad.

Each structure of caps, without its tensors field, is intersected with restrictions. The tensor groups already declared in caps are kept and the group named group_id from model_tensorgroups is added to them.

A structure is dropped if group_id is set and either caps already declares a group with that id, which happens when the same model is chained twice, or model_tensorgroups has no group with that id.

If caps is ANY, restrictions is used in its place, so the result is restrictions with the group named group_id added. If both caps and restrictions are ANY, ANY is returned.

Parameters:

caps ( [transfer: none]) –

caps on the sink pad

restrictions ( [transfer: none]) –

caps the model accepts as input, including any caps features supported by the caller

model_tensorgroups ( [transfer: none][nullable]) –

the tensor groups the model produces, keyed by group id, as found in the tensors field of the caps describing the model output

group_id ( [nullable]) –

id of the tensor group the model produces, as declared in its model info, or NULL if the model doesn't declare one for its output

Returns ( [transfer: full]) –

the src caps

Since : 1.30


GstAnalytics.prototype.inference_transform_sink_caps

function GstAnalytics.prototype.inference_transform_sink_caps(caps: Gst.Caps, restrictions: Gst.Caps, model_tensorgroups: Gst.Structure, group_id: String): {
    // javascript wrapper for 'gst_analytics_inference_transform_sink_caps'
}

Transforms caps, the caps on the sink pad, into the caps for the src pad.

Each structure of caps, without its tensors field, is intersected with restrictions. The tensor groups already declared in caps are kept and the group named group_id from model_tensorgroups is added to them.

A structure is dropped if group_id is set and either caps already declares a group with that id, which happens when the same model is chained twice, or model_tensorgroups has no group with that id.

If caps is ANY, restrictions is used in its place, so the result is restrictions with the group named group_id added. If both caps and restrictions are ANY, ANY is returned.

Parameters:

caps (Gst.Caps) –

caps on the sink pad

restrictions (Gst.Caps) –

caps the model accepts as input, including any caps features supported by the caller

model_tensorgroups (Gst.Structure) –

the tensor groups the model produces, keyed by group id, as found in the tensors field of the caps describing the model output

group_id (String) –

id of the tensor group the model produces, as declared in its model info, or null if the model doesn't declare one for its output

Returns (Gst.Caps) –

the src caps

Since : 1.30


GstAnalytics.inference_transform_sink_caps

def GstAnalytics.inference_transform_sink_caps (caps, restrictions, model_tensorgroups, group_id):
    #python wrapper for 'gst_analytics_inference_transform_sink_caps'

Transforms caps, the caps on the sink pad, into the caps for the src pad.

Each structure of caps, without its tensors field, is intersected with restrictions. The tensor groups already declared in caps are kept and the group named group_id from model_tensorgroups is added to them.

A structure is dropped if group_id is set and either caps already declares a group with that id, which happens when the same model is chained twice, or model_tensorgroups has no group with that id.

If caps is ANY, restrictions is used in its place, so the result is restrictions with the group named group_id added. If both caps and restrictions are ANY, ANY is returned.

Parameters:

caps (Gst.Caps) –

caps on the sink pad

restrictions (Gst.Caps) –

caps the model accepts as input, including any caps features supported by the caller

model_tensorgroups (Gst.Structure) –

the tensor groups the model produces, keyed by group id, as found in the tensors field of the caps describing the model output

group_id (str) –

id of the tensor group the model produces, as declared in its model info, or None if the model doesn't declare one for its output

Returns (Gst.Caps) –

the src caps

Since : 1.30


gst_analytics_inference_transform_src_caps

GstCaps *
gst_analytics_inference_transform_src_caps (GstCaps * caps,
                                            GstCaps * restrictions)

Transforms caps, the caps on the src pad, into the caps for the sink pad.

The tensors field is removed from every structure of caps, so the tensor groups downstream expects are not propagated upstream, then the result is intersected with restrictions. This is the counterpart of gst_analytics_inference_transform_sink_caps, which adds the tensor group back on the way down.

If caps is ANY, the result is restrictions.

Parameters:

caps ( [transfer: none]) –

caps on the src pad

restrictions ( [transfer: none]) –

caps the model accepts as input, including any caps features supported by the caller

Returns ( [transfer: full]) –

the sink caps

Since : 1.30


GstAnalytics.prototype.inference_transform_src_caps

function GstAnalytics.prototype.inference_transform_src_caps(caps: Gst.Caps, restrictions: Gst.Caps): {
    // javascript wrapper for 'gst_analytics_inference_transform_src_caps'
}

Transforms caps, the caps on the src pad, into the caps for the sink pad.

The tensors field is removed from every structure of caps, so the tensor groups downstream expects are not propagated upstream, then the result is intersected with restrictions. This is the counterpart of GstAnalytics.prototype.inference_transform_sink_caps, which adds the tensor group back on the way down.

If caps is ANY, the result is restrictions.

Parameters:

caps (Gst.Caps) –

caps on the src pad

restrictions (Gst.Caps) –

caps the model accepts as input, including any caps features supported by the caller

Returns (Gst.Caps) –

the sink caps

Since : 1.30


GstAnalytics.inference_transform_src_caps

def GstAnalytics.inference_transform_src_caps (caps, restrictions):
    #python wrapper for 'gst_analytics_inference_transform_src_caps'

Transforms caps, the caps on the src pad, into the caps for the sink pad.

The tensors field is removed from every structure of caps, so the tensor groups downstream expects are not propagated upstream, then the result is intersected with restrictions. This is the counterpart of GstAnalytics.inference_transform_sink_caps, which adds the tensor group back on the way down.

If caps is ANY, the result is restrictions.

Parameters:

caps (Gst.Caps) –

caps on the src pad

restrictions (Gst.Caps) –

caps the model accepts as input, including any caps features supported by the caller

Returns (Gst.Caps) –

the sink caps

Since : 1.30


The results of the search are