Optionalproperties: Partial<Static$gtypeAdjust the offset and stride fields in info so that the padding and
stride alignment in align is respected.
Extra padding will be added to the right side when stride alignment padding
is required and align will be updated with the new padding values.
alignment parameters
false if alignment could not be applied, e.g. because the size of a frame can't be represented as a 32 bit integer (Since: 1.12)
Extra padding will be added to the right side when stride alignment padding
is required and align will be updated with the new padding values.
This variant of gst_video_info_align() provides the updated size, in bytes,
of each video plane after the alignment, including all horizontal and vertical
paddings.
In case of GST_VIDEO_INTERLACE_MODE_ALTERNATE info, the returned sizes are the ones used to hold a single field, not the full frame.
alignment parameters
false if alignment could not be applied, e.g. because the size of a frame can't be represented as a 32 bit integer
Converts among various Gst.Format types. This function handles GST_FORMAT_BYTES, GST_FORMAT_TIME, and GST_FORMAT_DEFAULT. For raw video, GST_FORMAT_DEFAULT corresponds to video frames. This function can be used to handle pad queries of the type GST_QUERY_CONVERT.
Gst.Format of the src_value
value to convert
Gst.Format of the dest_value
TRUE if the conversion was successful.
Copy a GstVideoInfo structure.
a new GstVideo.VideoInfo. free with gst_video_info_free.
Free a GstVideoInfo structure previously allocated with gst_video_info_new()
or gst_video_info_copy().
Compares two GstVideo.VideoInfo and returns whether they are equal or not
true if info and other are equal, else false.
Set the default info for a video frame of format and width and height.
Note: This initializes info first, no values are preserved. This function
does not set the offsets correctly for interlaced vertically
subsampled formats.
the format
a width
a height
false if the returned video info is invalid, e.g. because the size of a frame can't be represented as a 32 bit integer (Since: 1.12)
Same as gst_video_info_set_format but also allowing to set the interlaced
mode.
the format
a width
a height
false if the returned video info is invalid, e.g. because the size of a frame can't be represented as a 32 bit integer.
Staticfrom_StaticinitInitialize info with default values.
StaticnewStaticnew_
Information describing image properties. This information can be filled in from GstCaps with
gst_video_info_from_caps(). The information is also used to store the specific video info when mapping a video frame withgst_video_frame_map().Use the provided macros to access the info in this structure.