47 #ifndef __NVOSD_DEFS__
48 #define __NVOSD_DEFS__
55 #define NVOSD_MAX_NUM_RECTS 128
struct _NvOSD_ArrowParams NvOSD_ArrowParams
Holds the arrow parameters to be overlayed.
NvOSD_ColorParams arrow_color
Holds boolean value indicating whether arrow head is at start or at end.
struct _NvOSD_ColorParams NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
struct _NvOSD_Color_info NvOSD_Color_info
struct _NvOSD_CircleParams NvOSD_CircleParams
Holds the circle parameters to be overlayed.
unsigned int radius
Holds radius of circle in pixels.
unsigned int y_offset
Holds vertical offset w.r.t top left pixel of the frame.
int nvosd_draw_rectangles(void *nvosd_ctx, NvOSD_Mode mode, int fd, int num_rects, NvOSD_RectParams *rect_params_list)
Overlays boxes at given location on a buffer.
Holds the font parameters of the text to be overlayed.
unsigned int x2
Holds end horizontal coordinate in pixels.
int nvosd_put_text(void *nvosd_ctx, NvOSD_Mode mode, int fd, int num_strings, NvOSD_TextParams *text_params_list)
Overlays clock and given text at given location on a buffer.
Holds the box parameters of the box to be overlayed.
int nvosd_init_colors_for_hw_blend(void *nvosd_ctx, NvOSD_Color_info *color_info, int num_classes)
unsigned int top
Holds top coordinate of the box in pixels.
Holds the circle parameters to be overlayed.
unsigned int x1
Holds start horizontal coordinate in pixels.
unsigned int arrow_width
Holds arrow_width in pixels.
void nvosd_destroy_context(void *nvosd_ctx)
Destroys NvOSD context.
unsigned int y1
Holds start vertical coordinate in pixels.
unsigned int height
Holds height of the box in pixels.
Holds the arrow parameters to be overlayed.
int nvosd_draw_arrows(void *nvosd_ctx, NvOSD_Mode mode, int fd, int num_arrows, NvOSD_ArrowParams *arrow_params_list)
NvOSD_ColorParams border_color
Holds color params of the border of the box.
NvOSD_Mode
List modes used to overlay boxes and text.
struct _NvOSD_TextParams NvOSD_TextParams
Holds the text parameters of the text to be overlayed.
unsigned int x_offset
Holds horizontal offset w.r.t top left pixel of the frame.
void nvosd_set_clock_params(void *nvosd_ctx, NvOSD_TextParams *clk_params)
Sets clock parameters for the given context.
char * display_text
Holds the text to be overlayed.
NvOSD_ColorParams circle_color
Holds color params of the arrow box.
unsigned int left
Holds left coordinate of the box in pixels.
double alpha
Holds alpha component of color.
Selects NV HW engine for rectangle draw and mask.
char * font_name
Holds pointer to the string containing font name.
unsigned int start_arrow_head
NvOSD_ColorParams font_color
Holds font color.
struct _NvOSD_RectParams NvOSD_RectParams
Holds the box parameters of the box to be overlayed.
int set_bg_clr
Boolean to indicate text has background color.
NvOSD_ColorParams text_bg_clr
Background color for text.
Holds the text parameters of the text to be overlayed.
unsigned int y2
Holds end vertical coordinate in pixels.
int nvosd_draw_circles(void *nvosd_ctx, NvOSD_Mode mode, int fd, int num_circles, NvOSD_CircleParams *circle_params_list)
struct _NvOSD_FontParams NvOSD_FontParams
Holds the font parameters of the text to be overlayed.
unsigned int reserved
reserved field for future usage.
Selects CPU for OSD processing.
unsigned int width
Holds width of the box in pixels.
unsigned int yc
Holds start vertical coordinate in pixels.
Holds the color parameters of the box or text to be overlayed.
unsigned int has_bg_color
Holds boolean value indicating whether box has background color.
unsigned int reserved
reserved field for future usage.
unsigned int border_width
Holds border_width of the box in pixels.
double blue
Holds blue component of color.
double red
Holds red component of color.
unsigned int font_size
Holds size of the font.
void * nvosd_create_context(void)
Creates NvOSD context.
NvOSD_FontParams font_params
font_params.
double green
Holds green component of color.
Selects GPU for OSD processing.
NvOSD_ColorParams bg_color
Reserved field for future usage.
unsigned int xc
Holds start horizontal coordinate in pixels.