GstVvasOverlayMeta holds VvasOverlayShapeInfo, which in turn holds
the information of different geometric structures and text to be drawn on a frame.
-
struct GstVvasOverlayMeta
GStreamer metadata structure attached to each buffer carrying overlay draw instructions.
Definition
struct GstVvasOverlayMeta {
GstMeta meta;
VvasOverlayShapeInfo shape_info;
};
Members
metaGStreamer metadata base object.
shape_infoOverlay shape information - rectangles, text, lines, arrows, circles, polygons, and masks to be drawn on the frame. See
VvasOverlayShapeInfoin the following section.
-
struct VvasOverlayShapeInfo
Structure representing the complete overlay shape information for a frame. Aggregates all shape lists to be drawn in a single pass by
vvas_xoverlay.
Definition
struct VvasOverlayShapeInfo {
uint32_t num_rects;
uint32_t num_text;
uint32_t num_lines;
uint32_t num_arrows;
uint32_t num_circles;
uint32_t num_polys;
uint32_t num_masks;
VvasList *rect_params;
VvasList *text_params;
VvasList *line_params;
VvasList *arrow_params;
VvasList *circle_params;
VvasList *polygn_params;
VvasList *mask_params;
};
Members
num_rects/rect_paramsNumber of rectangles and their parameter list (
VvasOverlayRectParams).num_text/text_paramsNumber of text overlays and their parameter list (
VvasOverlayTextParams).num_lines/line_paramsNumber of lines and their parameter list (
VvasOverlayLineParams).num_arrows/arrow_paramsNumber of arrows and their parameter list (
VvasOverlayArrowParams).num_circles/circle_paramsNumber of circles and their parameter list (
VvasOverlayCircleParams).num_polys/polygn_paramsNumber of polygons and their parameter list (
VvasOverlayPolygonParams).num_masks/mask_paramsNumber of masks and their parameter list.
-
enum VvasOverlayArrowDirection
Structure representing arrow direction information.
Constants
ARROW_DIRECTION_STARTSTART
ARROW_DIRECTION_ENDEND
ARROW_DIRECTION_BOTH_ENDSBOTH_ENDS
-
struct VvasOverlayCoordinates
Structure representing coordinate information.
Definition
struct VvasOverlayCoordinates {
int32_t x;
int32_t y;
};
Members
xX offset.
yY offset.
-
struct VvasOverlayColorData
Structure representing color information.
Definition
struct VvasOverlayColorData {
uint8_t red;
uint8_t green;
uint8_t blue;
uint8_t alpha;
};
Members
redRed value.
greenGreen value.
blueBlue value.
alphaAlpha (transparency) value.
-
struct VvasOverlayFontData
Structure representing font information.
Definition
struct VvasOverlayFontData {
uint32_t font_num;
float font_size;
VvasOverlayColorData font_color;
};
Members
font_numFont style number from OpenCV. For more information, refer to OpenCV drawing functions.
font_sizeFont size.
font_colorFont color.
-
struct VvasOverlayRectParams
Structure representing information to draw a rectangle on a frame.
Definition
struct VvasOverlayRectParams {
VvasOverlayCoordinates points;
uint32_t width;
uint32_t height;
uint32_t thickness;
uint32_t apply_bg_color;
VvasOverlayColorData rect_color;
VvasOverlayColorData bg_color;
};
Members
pointsCoordinates of the upper-left corner of the rectangle.
widthWidth of the rectangle in pixels.
heightHeight of the rectangle in pixels.
thicknessThickness of the rectangle edges in pixels.
apply_bg_colorSet to non-zero to fill the rectangle interior with
bg_color.rect_colorColor of the rectangle edges.
bg_colorBackground fill color (used when
apply_bg_coloris non-zero).
-
struct VvasOverlayTextParams
Structure representing text overlay information.
Definition
struct VvasOverlayTextParams {
VvasOverlayCoordinates points;
char *disp_text;
uint32_t bottom_left_origin;
uint32_t apply_bg_color;
VvasOverlayFontData text_font;
VvasOverlayColorData bg_color;
};
Members
pointsAnchor coordinate for the text.
disp_textNull-terminated string to display.
bottom_left_originSet to non-zero to draw the text above
points(bottom-left origin).apply_bg_colorSet to non-zero to fill the text background with
bg_color.text_fontFont style, size, and color.
bg_colorBackground fill color (used when
apply_bg_coloris non-zero).
-
struct VvasOverlayLineParams
Structure representing line information.
Definition
struct VvasOverlayLineParams {
VvasOverlayCoordinates start_pt;
VvasOverlayCoordinates end_pt;
uint32_t thickness;
VvasOverlayColorData line_color;
};
Members
start_ptLine start coordinate.
end_ptLine end coordinate.
thicknessLine thickness in pixels.
line_colorLine color.
-
struct VvasOverlayArrowParams
Structure representing arrow information.
Definition
struct VvasOverlayArrowParams {
VvasOverlayCoordinates start_pt;
VvasOverlayCoordinates end_pt;
VvasOverlayArrowDirection arrow_direction;
uint32_t thickness;
float tipLength;
VvasOverlayColorData line_color;
};
Members
start_ptArrow start coordinate.
end_ptArrow end coordinate.
arrow_directionDirection of the arrowhead(s).
thicknessLine thickness in pixels.
tipLengthLength of the arrowhead tip relative to the arrow length.
line_colorArrow color.
-
struct VvasOverlayCircleParams
Structure representing circle information.
Definition
struct VvasOverlayCircleParams {
VvasOverlayCoordinates center_pt;
uint32_t thickness;
uint32_t radius;
VvasOverlayColorData circle_color;
};
Members
center_ptCenter coordinates of the circle.
thicknessCircle edge thickness in pixels.
radiusCircle radius in pixels.
circle_colorCircle color.
-
struct VvasOverlayPolygonParams
Structure representing polygon information.
Definition
struct VvasOverlayPolygonParams {
VvasList *poly_pts;
uint32_t thickness;
int32_t num_pts;
VvasOverlayColorData poly_color;
};
Members
poly_ptsList of
VvasOverlayCoordinatesdefining the polygon vertices.thicknessPolygon edge thickness in pixels.
num_ptsNumber of polygon vertices.
poly_colorPolygon color.