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.
| 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 |
|
a new OverlayRectangle. Unref with |