Functions

gst_video_convertscale_fixate_caps

GstCaps *
gst_video_convertscale_fixate_caps (GstObject * object,
                                    GstPadDirection direction,
                                    GstVideoOrientationMethod orientation,
                                    GstVideoConvertScaleFormatLossFunc format_loss,
                                    GstVideoConvertScaleFixateFlags flags,
                                    GstCaps * caps,
                                    GstCaps * othercaps,
                                    gpointer user_data)

Fixates the output video format and resolution given the input caps and the pad direction. This uses heuristics to minimize the loss when converting the video format and/or resolution.

When fixating the format, also transfer colorimetry and chroma-site from the input if possible.

format_loss callback is used to estimate the conversion loss between input and output formats. If NULL, all format conversions are considered supported.

Parameters:

object –

The object to use for logging

direction –

The GstPadDirection of the pad

orientation –

The GstVideoOrientationMethod

format_loss ( [nullable][scope call][closure]) –

A callback to estimate the conversion loss, or NULL

caps –

The input GstCaps

othercaps –

The output GstCaps

user_data ( [nullable]) –

User data passed to format_loss

Returns ( [transfer: full][nullable]) –

The fixated output caps or NULL if fixating failed.

Since : 1.30


GstVideo.prototype.video_convertscale_fixate_caps

function GstVideo.prototype.video_convertscale_fixate_caps(object: Gst.Object, direction: Gst.PadDirection, orientation: GstVideo.VideoOrientationMethod, format_loss: GstVideo.VideoConvertScaleFormatLossFunc, flags: GstVideo.VideoConvertScaleFixateFlags, caps: Gst.Caps, othercaps: Gst.Caps, user_data: Object): {
    // javascript wrapper for 'gst_video_convertscale_fixate_caps'
}

Fixates the output video format and resolution given the input caps and the pad direction. This uses heuristics to minimize the loss when converting the video format and/or resolution.

When fixating the format, also transfer colorimetry and chroma-site from the input if possible.

format_loss callback is used to estimate the conversion loss between input and output formats. If null, all format conversions are considered supported.

Parameters:

object (Gst.Object) –

The object to use for logging

direction (Gst.PadDirection) –

The Gst.PadDirection of the pad

A callback to estimate the conversion loss, or null

caps (Gst.Caps) –

The input Gst.Caps

othercaps (Gst.Caps) –

The output Gst.Caps

user_data (Object) –

User data passed to format_loss

Returns (Gst.Caps) –

The fixated output caps or null if fixating failed.

Since : 1.30


GstVideo.video_convertscale_fixate_caps

def GstVideo.video_convertscale_fixate_caps (object, direction, orientation, format_loss, flags, caps, othercaps, *user_data):
    #python wrapper for 'gst_video_convertscale_fixate_caps'

Fixates the output video format and resolution given the input caps and the pad direction. This uses heuristics to minimize the loss when converting the video format and/or resolution.

When fixating the format, also transfer colorimetry and chroma-site from the input if possible.

format_loss callback is used to estimate the conversion loss between input and output formats. If None, all format conversions are considered supported.

Parameters:

object (Gst.Object) –

The object to use for logging

direction (Gst.PadDirection) –

The Gst.PadDirection of the pad

A callback to estimate the conversion loss, or None

caps (Gst.Caps) –

The input Gst.Caps

othercaps (Gst.Caps) –

The output Gst.Caps

user_data (variadic) –

User data passed to format_loss

Returns (Gst.Caps) –

The fixated output caps or None if fixating failed.

Since : 1.30


Enumerations

GstVideoConvertScaleFixateFlags

Flags for gst_video_convertscale_fixate_caps.

Members
GST_VIDEO_CONVERTSCALE_FIXATE_FLAG_NONE (0) –

no flags

GST_VIDEO_CONVERTSCALE_FIXATE_FLAG_FORMAT (1) –

fixate the format

GST_VIDEO_CONVERTSCALE_FIXATE_FLAG_SIZE (2) –

fixate the size

GST_VIDEO_CONVERTSCALE_FIXATE_FLAG_DEFAULT_COLORIMETRY (4) –

if colorimetry is not present in the output caps, set the default colorimetry of the output format instead of copying the colorimetry from the input caps. This should be used when the conversion also changes colorimetry, for example when doing HDR tone mapping.

Since : 1.30


GstVideo.VideoConvertScaleFixateFlags

Flags for GstVideo.prototype.video_convertscale_fixate_caps.

Members
GstVideo.VideoConvertScaleFixateFlags.NONE (0) –

no flags

GstVideo.VideoConvertScaleFixateFlags.FORMAT (1) –

fixate the format

GstVideo.VideoConvertScaleFixateFlags.SIZE (2) –

fixate the size

GstVideo.VideoConvertScaleFixateFlags.DEFAULT_COLORIMETRY (4) –

if colorimetry is not present in the output caps, set the default colorimetry of the output format instead of copying the colorimetry from the input caps. This should be used when the conversion also changes colorimetry, for example when doing HDR tone mapping.

Since : 1.30


GstVideo.VideoConvertScaleFixateFlags

Flags for GstVideo.video_convertscale_fixate_caps.

Members
GstVideo.VideoConvertScaleFixateFlags.NONE (0) –

no flags

GstVideo.VideoConvertScaleFixateFlags.FORMAT (1) –

fixate the format

GstVideo.VideoConvertScaleFixateFlags.SIZE (2) –

fixate the size

GstVideo.VideoConvertScaleFixateFlags.DEFAULT_COLORIMETRY (4) –

if colorimetry is not present in the output caps, set the default colorimetry of the output format instead of copying the colorimetry from the input caps. This should be used when the conversion also changes colorimetry, for example when doing HDR tone mapping.

Since : 1.30


Callbacks

GstVideoConvertScaleFormatLossFunc

gint
(*GstVideoConvertScaleFormatLossFunc) (GstObject * object,
                                       const GstVideoFormatInfo * in_info,
                                       const GstVideoFormatInfo * out_info,
                                       const GstCapsFeatures * out_features,
                                       const GstStructure * ins,
                                       GstStructure * outs,
                                       gpointer user_data)

Callback to guestimate conversion loss between the input and output formats. A value of G_MAXINT means the conversion is not possible, a value of 0 means it is passthrough.

This function only needs to consider extra loss caused by custom fields, "format" and "drm-format" are already taken into account.

outs is writable to allow custom fields to be fixated. For example, this is used by glcolorconvert to fixate "target-texture" field.

Parameters:

object –

The object passed to gst_video_convertscale_fixate_caps

in_info –

The input GstVideoFormatInfo

out_info –

The output GstVideoFormatInfo

out_features –

The output GstCapsFeatures

ins –

GstStructure of the input caps

outs –

GstStructure of the output caps

user_data –

The user data passed to gst_video_convertscale_fixate_caps

Returns –

An integer representing the estimated loss. Lower values indicate less loss.

Since : 1.30


GstVideo.VideoConvertScaleFormatLossFunc

function GstVideo.VideoConvertScaleFormatLossFunc(object: Gst.Object, in_info: GstVideo.VideoFormatInfo, out_info: GstVideo.VideoFormatInfo, out_features: Gst.CapsFeatures, ins: Gst.Structure, outs: Gst.Structure, user_data: Object): {
    // javascript wrapper for 'GstVideoConvertScaleFormatLossFunc'
}

Callback to guestimate conversion loss between the input and output formats. A value of G_MAXINT (not introspectable) means the conversion is not possible, a value of 0 means it is passthrough.

This function only needs to consider extra loss caused by custom fields, "format" and "drm-format" are already taken into account.

outs is writable to allow custom fields to be fixated. For example, this is used by glcolorconvert to fixate "target-texture" field.

Parameters:

out_features (Gst.CapsFeatures) –

The output Gst.CapsFeatures

ins (Gst.Structure) –

Gst.Structure of the input caps

outs (Gst.Structure) –

Gst.Structure of the output caps

user_data (Object) –

The user data passed to GstVideo.prototype.video_convertscale_fixate_caps

Returns (Number) –

An integer representing the estimated loss. Lower values indicate less loss.

Since : 1.30


GstVideo.VideoConvertScaleFormatLossFunc

def GstVideo.VideoConvertScaleFormatLossFunc (object, in_info, out_info, out_features, ins, outs, *user_data):
    #python wrapper for 'GstVideoConvertScaleFormatLossFunc'

Callback to guestimate conversion loss between the input and output formats. A value of G_MAXINT (not introspectable) means the conversion is not possible, a value of 0 means it is passthrough.

This function only needs to consider extra loss caused by custom fields, "format" and "drm-format" are already taken into account.

outs is writable to allow custom fields to be fixated. For example, this is used by glcolorconvert to fixate "target-texture" field.

Parameters:

object (Gst.Object) –

The object passed to GstVideo.video_convertscale_fixate_caps

out_features (Gst.CapsFeatures) –

The output Gst.CapsFeatures

ins (Gst.Structure) –

Gst.Structure of the input caps

outs (Gst.Structure) –

Gst.Structure of the output caps

user_data (variadic) –

The user data passed to GstVideo.video_convertscale_fixate_caps

Returns (int) –

An integer representing the estimated loss. Lower values indicate less loss.

Since : 1.30


The results of the search are