Allocate a new #GstVideoInfo that is also initialized with gst_video_info_init().
a #GstVideoChromaSite.
the colorimetry info
the format info of the video
additional video flags
the framerate denominator
the framerate numerator
the height of the video
the interlace mode
offsets of the planes
the pixel-aspect-ratio denominator
the pixel-aspect-ratio numerator
the default size of one frame
strides of the planes
the number of views for multiview video
the width of the video
Adjust 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
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
Converts among various #GstFormat 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.
#GstFormat of the src_value
value to convert
#GstFormat of the dest_value
Copy a GstVideoInfo structure.
Free a GstVideoInfo structure previously allocated with gst_video_info_new() or gst_video_info_copy().
Compares two #GstVideoInfo and returns whether they are equal or not
a #GstVideoInfo
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
Same as #gst_video_info_set_format but also allowing to set the interlaced mode.
the format
a #GstVideoInterlaceMode
a width
a height
Initialize info
with default values.
Allocate a new #GstVideoInfo that is also initialized with gst_video_info_init().
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 with gst_video_frame_map().
Use the provided macros to access the info in this structure.