49 #ifndef __NVOSD_DEFS__
50 #define __NVOSD_DEFS__
57 #define NVOSD_MAX_NUM_RECTS 128
struct _NvOSD_ColorParams NvOSD_ColorParams
Holds the color parameters of the box or text to be overlayed.
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.
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.
unsigned int top
Holds top coordinate of the box in pixels.
void nvosd_destroy_context(void *nvosd_ctx)
Destroys NvOSD context.
unsigned int height
Holds height of the box in pixels.
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.
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.
NvOSD_ColorParams font_color
Holds font color.
struct _NvOSD_RectParams NvOSD_RectParams
Holds the box parameters of the box to be overlayed.
Holds the text parameters of the text to be overlayed.
struct _NvOSD_FontParams NvOSD_FontParams
Holds the font parameters of the text to be overlayed.
Selects CPU for OSD processing.
unsigned int width
Holds width of the box 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 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.