OverlayRectangle.raw


Description:

[ CCode ( has_construct_function = false ) ]
public OverlayRectangle.raw (Buffer pixels, int render_x, int render_y, uint render_width, uint render_height, OverlayFormatFlags flags)

Creates a new video overlay rectangle with ARGB or AYUV pixel data.

The layout in case of ARGB of the components in memory is B-G-R-A on little-endian platforms (corresponding to BGRA) and A-R-G-B on big-endian platforms (corresponding to ARGB). In other words, pixels are treated as 32-bit words and the lowest 8 bits then contain the blue component value and the highest 8 bits contain the alpha component value. Unless specified in the flags, the RGB values are non-premultiplied. This is the format that is used by most hardware, and also many rendering libraries such as Cairo, for example. The pixel data buffer must have Meta set.

Parameters:

pixels

a Buffer pointing to the pixel memory

render_x

the X co-ordinate on the video where the top-left corner of this overlay rectangle should be rendered to

render_y

the Y co-ordinate on the video where the top-left corner of this overlay rectangle should be rendered to

render_width

the render width of this rectangle on the video

render_height

the render height of this rectangle on the video

flags

flags

Returns:

a new OverlayRectangle. Unref with gst_video_overlay_rectangle_unref when no longer needed.