rss.c File Reference

Include dependency graph for rss.c:


Data Structures

struct  rss_item_t
struct  rss_feed_t
struct  filter_sys_t
 filter_sys_t: chroma method descriptor More...

Defines

#define MSG_TEXT   N_("Feed URLs")
#define MSG_LONGTEXT   N_("RSS/Atom feed '|' (pipe) separated URLs.")
#define SPEED_TEXT   N_("Speed of feeds")
#define SPEED_LONGTEXT   N_("Speed of the RSS/Atom feeds in microseconds (bigger is slower).")
#define LENGTH_TEXT   N_("Max length")
#define LENGTH_LONGTEXT
#define TTL_TEXT   N_("Refresh time")
#define TTL_LONGTEXT
#define IMAGE_TEXT   N_("Feed images")
#define IMAGE_LONGTEXT   N_("Display feed images if available.")
#define POSX_TEXT   N_("X offset")
#define POSX_LONGTEXT   N_("X offset, from the left screen edge." )
#define POSY_TEXT   N_("Y offset")
#define POSY_LONGTEXT   N_("Y offset, down from the top." )
#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 POS_TEXT   N_("Text position")
#define POS_LONGTEXT
#define TITLE_TEXT   N_("Title display mode")
#define TITLE_LONGTEXT   N_("Title display mode. Default is 0 (hidden) if the feed has an image and feed images are enabled, 1 otherwise.")
#define RSS_HELP   N_("Display a RSS or ATOM Feed on your video")
#define CFG_PREFIX   "rss-"

Enumerations

enum  title_modes { default_title = -1, hide_title, prepend_title, scroll_title }

Functions

static int CreateFilter (vlc_object_t *)
static void DestroyFilter (vlc_object_t *)
static subpicture_tFilter (filter_t *, mtime_t)
static struct rss_feed_tFetchRSS (filter_t *)
static void FreeRSS (struct rss_feed_t *, int)
static int ParseUrls (filter_t *, char *)
static void Fetch (void *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static picture_tLoadImage (filter_t *p_filter, const char *psz_url)
static char * removeWhiteChars (const char *psz_src)
static bool ParseFeed (filter_t *p_filter, xml_reader_t *p_xml_reader, rss_feed_t *p_feed)

Variables

static const int pi_color_values []
static const char *const ppsz_color_descriptions []
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_title_modes [] = { default_title, hide_title, prepend_title, scroll_title }
static const char *const ppsz_title_modes []
static const char *const ppsz_filter_options []

Define Documentation

#define CFG_PREFIX   "rss-"

#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 IMAGE_LONGTEXT   N_("Display feed images if available.")

#define IMAGE_TEXT   N_("Feed images")

#define LENGTH_LONGTEXT

Value:

N_("Maximum number of characters displayed on the " \
                "screen." )

#define LENGTH_TEXT   N_("Max length")

#define MSG_LONGTEXT   N_("RSS/Atom feed '|' (pipe) separated URLs.")

#define MSG_TEXT   N_("Feed URLs")

#define OPACITY_LONGTEXT

Value:

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

#define OPACITY_TEXT   N_("Opacity")

#define POS_LONGTEXT

Value:

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

#define POS_TEXT   N_("Text position")

#define POSX_LONGTEXT   N_("X offset, from the left screen edge." )

#define POSX_TEXT   N_("X offset")

#define POSY_LONGTEXT   N_("Y offset, down from the top." )

#define POSY_TEXT   N_("Y offset")

#define RSS_HELP   N_("Display a RSS or ATOM Feed on your video")

#define SIZE_LONGTEXT

Value:

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

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

#define SPEED_LONGTEXT   N_("Speed of the RSS/Atom feeds in microseconds (bigger is slower).")

#define SPEED_TEXT   N_("Speed of feeds")

#define TITLE_LONGTEXT   N_("Title display mode. Default is 0 (hidden) if the feed has an image and feed images are enabled, 1 otherwise.")

#define TITLE_TEXT   N_("Title display mode")

#define TTL_LONGTEXT

Value:

N_("Number of seconds between each forced refresh " \
        "of the feeds. 0 means that the feeds are never updated." )

#define TTL_TEXT   N_("Refresh time")


Enumeration Type Documentation

Enumerator:
default_title 
hide_title 
prepend_title 
scroll_title 


Function Documentation

static int CreateFilter ( vlc_object_t p_this  )  [static]

static void DestroyFilter ( vlc_object_t p_this  )  [static]

static void Fetch ( void *  p_data  )  [static]

static rss_feed_t * FetchRSS ( filter_t p_filter  )  [static, read]

static subpicture_t * Filter ( filter_t p_filter,
mtime_t  date 
) [static]

static void FreeRSS ( struct rss_feed_t p_feeds,
int  i_feeds 
) [static]

static picture_t* LoadImage ( filter_t p_filter,
const char *  psz_url 
) [static]

static bool ParseFeed ( filter_t p_filter,
xml_reader_t p_xml_reader,
rss_feed_t p_feed 
) [static]

static int ParseUrls ( filter_t p_filter,
char *  psz_urls 
) [static]

static char* removeWhiteChars ( const char *  psz_src  )  [static]

References i, and strdup().

Referenced by ParseFeed().

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 int pi_title_modes[] = { default_title, hide_title, prepend_title, scroll_title } [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_filter_options[] [static]

Initial value:

 {
    "urls", "x", "y", "position", "color", "size", "speed", "length",
    "ttl", "images", "title", NULL
}

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") }

const char* const ppsz_title_modes[] [static]

Initial value:

    { N_("Default"), N_("Don't show"), N_("Always visible"), N_("Scroll with feed") }


Generated on Tue May 25 08:05:31 2010 for VLC by  doxygen 1.5.6