ball.c File Reference

Include dependency graph for ball.c:


Data Structures

struct  COLOR
struct  filter_sys_t
 filter_sys_t: chroma method descriptor More...

Defines

#define COLORS_RGB
#define COLORS_YUV
#define BALL_COLOR_TEXT   N_("Ball color")
#define BALL_COLOR_LONGTEXT   N_("Ball color, one of \"red\", \"blue\" and \"green\".")
#define EDGE_VISIBLE_TEXT   N_("Edge visible")
#define EDGE_VISIBLE_LONGTEXT   N_("Set edge visibility.")
#define BALL_SPEED_TEXT   N_("Ball speed")
#define BALL_SPEED_LONGTEXT   N_("Set ball speed, the displacement value \ in number of pixels by frame.")
#define BALL_SIZE_TEXT   N_("Ball size")
#define BALL_SIZE_LONGTEXT   N_("Set ball size giving its radius in number \ of pixels")
#define GRAD_THRESH_TEXT   N_("Gradient threshold")
#define GRAD_THRESH_LONGTEXT   N_("Set gradient threshold for edge computation.")
#define BALL_HELP   N_("Augmented reality ball game")
#define FILTER_PREFIX   "ball-"

Enumerations

enum  { RED, GREEN, BLUE, WHITE }

Functions

static int Create (vlc_object_t *)
static void Destroy (vlc_object_t *)
static picture_tFilter (filter_t *, picture_t *)
static void drawBall (filter_sys_t *p_sys, picture_t *p_outpic)
static void drawPixelRGB24 (filter_sys_t *p_sys, picture_t *p_outpic, uint8_t R, uint8_t G, uint8_t B, int x, int y, bool b_skip)
static void drawPixelI420 (filter_sys_t *p_sys, picture_t *p_outpic, uint8_t Y, uint8_t U, uint8_t V, int x, int y, bool b_skip)
static void drawPixelPacked (filter_sys_t *p_sys, picture_t *p_outpic, uint8_t Y, uint8_t U, uint8_t V, int x, int y, bool b_skip)
static void FilterBall (filter_t *, picture_t *, picture_t *)
static int ballCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
static int getBallColor (vlc_object_t *p_this, char const *psz_newval)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static void NormalizeVector (float *vect_x, float *vect_y)
static void GaussianConvolution (picture_t *p_inpic, uint32_t *p_smooth)

Variables

static COLOR colorList [4]
static const char *const mode_list [] = { "red", "green", "blue", "white" }
static const char *const mode_list_text []
static const char *const ppsz_filter_options []

Define Documentation

#define BALL_COLOR_LONGTEXT   N_("Ball color, one of \"red\", \"blue\" and \"green\".")

#define BALL_COLOR_TEXT   N_("Ball color")

#define BALL_HELP   N_("Augmented reality ball game")

#define BALL_SIZE_LONGTEXT   N_("Set ball size giving its radius in number \ of pixels")

#define BALL_SIZE_TEXT   N_("Ball size")

#define BALL_SPEED_LONGTEXT   N_("Set ball speed, the displacement value \ in number of pixels by frame.")

#define BALL_SPEED_TEXT   N_("Ball speed")

#define COLORS_RGB

Value:

Referenced by Create().

#define COLORS_YUV

Value:

Referenced by Create().

#define EDGE_VISIBLE_LONGTEXT   N_("Set edge visibility.")

#define EDGE_VISIBLE_TEXT   N_("Edge visible")

#define FILTER_PREFIX   "ball-"

#define GRAD_THRESH_LONGTEXT   N_("Set gradient threshold for edge computation.")

#define GRAD_THRESH_TEXT   N_("Gradient threshold")


Enumeration Type Documentation

anonymous enum

Enumerator:
RED 
GREEN 
BLUE 
WHITE 


Function Documentation

static int ballCallback ( vlc_object_t p_this,
char const *  psz_var,
vlc_value_t  oldval,
vlc_value_t  newval,
void *  p_data 
) [static]

static int Create ( vlc_object_t p_this  )  [static]

static void Destroy ( vlc_object_t p_this  )  [static]

static void drawBall ( filter_sys_t p_sys,
picture_t p_outpic 
) [static]

static void drawPixelI420 ( filter_sys_t p_sys,
picture_t p_outpic,
uint8_t  Y,
uint8_t  U,
uint8_t  V,
int  x,
int  y,
bool  b_skip 
) [static]

static void drawPixelPacked ( filter_sys_t p_sys,
picture_t p_outpic,
uint8_t  Y,
uint8_t  U,
uint8_t  V,
int  x,
int  y,
bool  b_skip 
) [static]

static void drawPixelRGB24 ( filter_sys_t p_sys,
picture_t p_outpic,
uint8_t  R,
uint8_t  G,
uint8_t  B,
int  x,
int  y,
bool  b_skip 
) [static]

static picture_t * Filter ( filter_t p_filter,
picture_t p_pic 
) [static]

static void FilterBall ( filter_t p_filter,
picture_t p_inpic,
picture_t p_outpic 
) [static]

static void GaussianConvolution ( picture_t p_inpic,
uint32_t *  p_smooth 
) [static]

static int getBallColor ( vlc_object_t p_this,
char const *  psz_newval 
) [static]

References BLUE, GREEN, msg_Err, RED, and WHITE.

Referenced by ballCallback(), and Create().

static void NormalizeVector ( float *  vect_x,
float *  vect_y 
) [static]

Referenced by FilterBall().

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

COLOR colorList[4] [static]

const char* const mode_list[] = { "red", "green", "blue", "white" } [static]

const char* const mode_list_text[] [static]

Initial value:

 { N_("Red"), N_("Green"),
                                              N_("Blue"), N_("White") }

const char* const ppsz_filter_options[] [static]

Initial value:

 {
    "ball-color", "ball-speed", "ball-size",
    "gradient-threshold", "edge-visible", NULL
}


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