fbosd.c File Reference

Include dependency graph for fbosd.c:


Data Structures

struct  fbosd_render_t
struct  intf_sys_t

Defines

#define DEVICE_TEXT   N_("Framebuffer device")
#define DEVICE_LONGTEXT
#define ASPECT_RATIO_TEXT   N_("Video aspect ratio")
#define ASPECT_RATIO_LONGTEXT
#define FBOSD_IMAGE_TEXT   N_("Image file")
#define FBOSD_IMAGE_LONGTEXT
#define ALPHA_TEXT   N_("Transparency of the image")
#define ALPHA_LONGTEXT
#define FBOSD_TEXT   N_("Text")
#define FBOSD_LONGTEXT   N_( "Text to display on the overlay framebuffer." )
#define POSX_TEXT   N_("X coordinate")
#define POSX_LONGTEXT   N_("X coordinate of the rendered image")
#define POSY_TEXT   N_("Y coordinate")
#define POSY_LONGTEXT   N_("Y coordinate of the rendered image")
#define POS_TEXT   N_("Position")
#define POS_LONGTEXT
#define OPACITY_TEXT   N_("Opacity")
#define OPACITY_LONGTEXT
#define SIZE_TEXT   N_("Font size, pixels")
#define SIZE_LONGTEXT
#define COLOR_TEXT   N_("Color")
#define COLOR_LONGTEXT
#define CLEAR_TEXT   N_( "Clear overlay framebuffer" )
#define CLEAR_LONGTEXT
#define RENDER_TEXT   N_( "Render text or image" )
#define RENDER_LONGTEXT
#define DISPLAY_TEXT   N_( "Display on overlay framebuffer" )
#define DISPLAY_LONGTEXT
#define FBOSD_RENDER_IMAGE   0
#define FBOSD_RENDER_TEXT   1
#define FBOSD_STATE_FREE   0
#define FBOSD_STATE_RESERVED   1
#define FBOSD_STATE_RENDER   2
#define FBOSD_RENDER_MAX   10

Functions

static int Create (vlc_object_t *)
static void Destroy (vlc_object_t *)
static void Run (intf_thread_t *)
static int Init (intf_thread_t *)
static void End (intf_thread_t *)
static int OpenDisplay (intf_thread_t *)
static void CloseDisplay (intf_thread_t *)
static int OpenTextRenderer (intf_thread_t *)
static void CloseTextRenderer (intf_thread_t *)
static int OverlayCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static picture_tAllocatePicture (vlc_object_t *, video_format_t *)
static void DeAllocatePicture (vlc_object_t *, picture_t *, video_format_t *)
static void SetOverlayTransparency (intf_thread_t *, bool)
static picture_tLoadImage (intf_thread_t *, video_format_t *, char *)
static picture_tConvertImage (intf_thread_t *, picture_t *, video_format_t *, video_format_t *)
static int RenderPicture (intf_thread_t *, int, int, picture_t *, picture_t *)
static picture_tRenderText (intf_thread_t *, const char *, text_style_t *, video_format_t *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void Render (intf_thread_t *p_intf, struct fbosd_render_t *render)
static void RenderClear (intf_thread_t *p_intf, struct fbosd_render_t *render)
static bool isRendererReady (intf_thread_t *p_intf)

Variables

static const int pi_pos_values [] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 }
static const char *const ppsz_pos_descriptions []
static const int pi_color_values []
static const char *const ppsz_color_descriptions []

Define Documentation

#define ALPHA_LONGTEXT

Value:

N_( "Transparency value of the new image " \
    "used in blending. By default it set to fully opaque (255). " \
    "(from 0 for full transparency to 255 for full opacity)" )

#define ALPHA_TEXT   N_("Transparency of the image")

#define ASPECT_RATIO_LONGTEXT

Value:

N_( \
    "Aspect ratio of the video image (4:3, 16:9). Default is square pixels." )

#define ASPECT_RATIO_TEXT   N_("Video aspect ratio")

#define CLEAR_LONGTEXT

Value:

N_( "The displayed overlay images is cleared by " \
    "making the overlay completely transparent. All previously rendered " \
    "images and text will be cleared from the cache." )

#define CLEAR_TEXT   N_( "Clear overlay framebuffer" )

#define COLOR_LONGTEXT

Value:

N_("Color of the text that will be rendered on "\
    "the video. This must be an hexadecimal (like HTML colors). The first two "\
    "chars are for red, then green, then blue. #000000 = black, #FF0000 = red,"\
    " #00FF00 = green, #FFFF00 = yellow (red + green), #FFFFFF = white" )

#define COLOR_TEXT   N_("Color")

#define DEVICE_LONGTEXT

Value:

N_( \
    "Framebuffer device to use for rendering (usually /dev/fb0).")

#define DEVICE_TEXT   N_("Framebuffer device")

#define DISPLAY_LONGTEXT

Value:

N_( "All rendered images and text will be " \
    "displayed on the overlay framebuffer." )

#define DISPLAY_TEXT   N_( "Display on overlay framebuffer" )

#define FBOSD_IMAGE_LONGTEXT

Value:

N_( \
    "Filename of image file to use on the overlay framebuffer." )

#define FBOSD_IMAGE_TEXT   N_("Image file")

#define FBOSD_LONGTEXT   N_( "Text to display on the overlay framebuffer." )

#define FBOSD_RENDER_IMAGE   0

#define FBOSD_RENDER_MAX   10

#define FBOSD_RENDER_TEXT   1

#define FBOSD_STATE_FREE   0

#define FBOSD_STATE_RENDER   2

#define FBOSD_STATE_RESERVED   1

#define FBOSD_TEXT   N_("Text")

#define OPACITY_LONGTEXT

Value:

N_("Opacity (inverse of transparency) of " \
    "overlayed text. 0 = transparent, 255 = totally opaque. " )

#define OPACITY_TEXT   N_("Opacity")

#define POS_LONGTEXT

Value:

N_( \
  "You can enforce the picture position on the overlay " \
  "(0=center, 1=left, 2=right, 4=top, 8=bottom, you can " \
  "also use combinations of these values, e.g. 6=top-right).")

#define POS_TEXT   N_("Position")

#define POSX_LONGTEXT   N_("X coordinate of the rendered image")

#define POSX_TEXT   N_("X coordinate")

#define POSY_LONGTEXT   N_("Y coordinate of the rendered image")

#define POSY_TEXT   N_("Y coordinate")

#define RENDER_LONGTEXT

Value:

N_( "Render the image or text in current overlay " \
    "buffer." )

#define RENDER_TEXT   N_( "Render text or image" )

#define SIZE_LONGTEXT

Value:

N_("Font size, in pixels. Default is -1 (use default " \
    "font size)." )

#define SIZE_TEXT   N_("Font size, pixels")


Function Documentation

static picture_t * AllocatePicture ( vlc_object_t ,
video_format_t  
) [static]

static void CloseDisplay ( intf_thread_t  )  [static]

static void CloseTextRenderer ( intf_thread_t  )  [static]

static picture_t * ConvertImage ( intf_thread_t ,
picture_t ,
video_format_t ,
video_format_t  
) [static]

static int Create ( vlc_object_t  )  [static]

static void DeAllocatePicture ( vlc_object_t ,
picture_t ,
video_format_t  
) [static]

static void Destroy ( vlc_object_t  )  [static]

static void End ( intf_thread_t  )  [static]

static int Init ( intf_thread_t  )  [static]

static bool isRendererReady ( intf_thread_t p_intf  )  [static]

static picture_t * LoadImage ( intf_thread_t ,
video_format_t ,
char *   
) [static]

static int OpenDisplay ( intf_thread_t  )  [static]

static int OpenTextRenderer ( intf_thread_t  )  [static]

static int OverlayCallback ( vlc_object_t ,
char const *  ,
vlc_value_t  ,
vlc_value_t  ,
void *   
) [static]

static void Render ( intf_thread_t p_intf,
struct fbosd_render_t render 
) [static]

static void RenderClear ( intf_thread_t p_intf,
struct fbosd_render_t render 
) [static]

static int RenderPicture ( intf_thread_t ,
int  ,
int  ,
picture_t ,
picture_t  
) [static]

static picture_t * RenderText ( intf_thread_t ,
const char *  ,
text_style_t ,
video_format_t  
) [static]

static void Run ( intf_thread_t  )  [static]

static void SetOverlayTransparency ( intf_thread_t ,
bool   
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int pi_color_values[] [static]

Initial value:

 {
               0xf0000000, 0x00000000, 0x00808080, 0x00C0C0C0,
               0x00FFFFFF, 0x00800000, 0x00FF0000, 0x00FF00FF, 0x00FFFF00,
               0x00808000, 0x00008000, 0x00008080, 0x0000FF00, 0x00800080,
               0x00000080, 0x000000FF, 0x0000FFFF}

const int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 } [static]

const char* const ppsz_color_descriptions[] [static]

Initial value:

 {
               N_("Default"), N_("Black"),
               N_("Gray"), N_("Silver"), N_("White"), N_("Maroon"), N_("Red"),
               N_("Fuchsia"), N_("Yellow"), N_("Olive"), N_("Green"),
               N_("Teal"), N_("Lime"), N_("Purple"), N_("Navy"), N_("Blue"),
               N_("Aqua") }

const char* const ppsz_pos_descriptions[] [static]

Initial value:

{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
  N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }


Generated on Wed Aug 13 08:03:35 2008 for VLC by  doxygen 1.5.1