
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_t * | Filter (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 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:
colorList[RED].comp1 = 255; colorList[RED].comp2 = 0; \ colorList[RED].comp3 = 0; \ colorList[GREEN].comp1 = 0; colorList[GREEN].comp2 = 255; \ colorList[GREEN].comp3 = 0; \ colorList[BLUE].comp1 = 0; colorList[BLUE].comp2 = 0; \ colorList[BLUE].comp3 = 255; \ colorList[WHITE].comp1 = 255; colorList[WHITE].comp2 = 255; \ colorList[WHITE].comp3 = 255;
Referenced by Create().
| #define COLORS_YUV |
Value:
colorList[RED].comp1 = 82; colorList[RED].comp2 = 240; \ colorList[RED].comp3 = 90; \ colorList[GREEN].comp1 = 145; colorList[GREEN].comp2 = 34; \ colorList[GREEN].comp3 = 54 ; \ colorList[BLUE].comp1 = 41; colorList[BLUE].comp2 = 146; \ colorList[BLUE].comp3 = 240; \ colorList[WHITE].comp1 = 255; colorList[WHITE].comp2 = 128; \ colorList[WHITE].comp3 = 128;
Referenced by Create().
| #define EDGE_VISIBLE_LONGTEXT N_("Set edge visibility.") |
| #define EDGE_VISIBLE_TEXT N_("Edge visible") |
| #define FILTER_PREFIX "ball-" |
Referenced by ballCallback(), ClosePostproc(), Create(), Destroy(), ExtractCallback(), GradientCallback(), MotionBlurCallback(), OpenPostproc(), PPNameCallback(), and PPQCallback().
| #define GRAD_THRESH_LONGTEXT N_("Set gradient threshold for edge computation.") |
| #define GRAD_THRESH_TEXT N_("Gradient threshold") |
| static int ballCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References vlc_value_t::b_bool, filter_sys_t::b_edgeVisible, filter_sys_t::ballColor, FILTER_PREFIX, getBallColor(), filter_sys_t::i_ballSize, filter_sys_t::i_ballSpeed, filter_sys_t::i_gradThresh, vlc_value_t::i_int, filter_sys_t::lock, msg_Err, p_sys, vlc_value_t::psz_string, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
| static int Create | ( | vlc_object_t * | p_this | ) | [static] |
References filter_sys_t::b_edgeVisible, ballCallback(), filter_sys_t::ballColor, CASE_PACKED_YUV_422, COLORS_RGB, COLORS_YUV, config_ChainParse, filter_sys_t::drawingPixelFunction, drawPixelI420(), drawPixelPacked(), drawPixelRGB24(), filter_sys_t::f_lastVect_x, filter_sys_t::f_lastVect_y, Filter(), FILTER_PREFIX, filter_t::fmt_in, getBallColor(), GetPackedYuvOffsets(), filter_sys_t::i_ball_x, filter_sys_t::i_ball_y, filter_sys_t::i_ballSize, filter_sys_t::i_ballSpeed, video_format_t::i_chroma, filter_sys_t::i_gradThresh, filter_sys_t::i_u_offset, filter_sys_t::i_v_offset, filter_sys_t::i_y_offset, image_HandlerCreate, filter_sys_t::lock, msg_Err, filter_t::p_cfg, filter_sys_t::p_grad_x, filter_sys_t::p_grad_y, filter_sys_t::p_image, filter_sys_t::p_smooth, filter_t::p_sys, ppsz_filter_options, RED, var_AddCallback, var_CreateGetBoolCommand, var_CreateGetIntegerCommand, var_CreateGetNonEmptyStringCommand, es_format_t::video, VLC_CODEC_I420, VLC_CODEC_J420, VLC_CODEC_RGB24, VLC_EGENERIC, VLC_ENOMEM, vlc_mutex_init(), and VLC_SUCCESS.
| static void Destroy | ( | vlc_object_t * | p_this | ) | [static] |
| static void drawBall | ( | filter_sys_t * | p_sys, | |
| picture_t * | p_outpic | |||
| ) | [static] |
References filter_sys_t::ballColor, COLOR::comp1, COLOR::comp2, COLOR::comp3, filter_sys_t::drawingPixelFunction, i, filter_sys_t::i_ball_x, filter_sys_t::i_ball_y, filter_sys_t::i_ballSize, i_height, plane_t::i_visible_lines, plane_t::i_visible_pitch, picture_t::p, and size.
Referenced by FilterBall().
| 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] |
References plane_t::i_pitch, picture_t::p, plane_t::p_pixels, and VLC_UNUSED.
Referenced by Create().
| 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] |
References plane_t::i_pitch, filter_sys_t::i_u_offset, filter_sys_t::i_v_offset, filter_sys_t::i_y_offset, picture_t::p, and plane_t::p_pixels.
Referenced by Create().
| 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] |
References plane_t::i_pitch, picture_t::p, plane_t::p_pixels, and VLC_UNUSED.
Referenced by Create().
References filter_sys_t::b_edgeVisible, CASE_PACKED_YUV_422, drawBall(), filter_sys_t::drawingPixelFunction, filter_sys_t::f_lastVect_x, filter_sys_t::f_lastVect_y, filter_t::fmt_in, GaussianConvolution(), i, filter_sys_t::i_ball_x, filter_sys_t::i_ball_y, filter_sys_t::i_ballSize, filter_sys_t::i_ballSpeed, video_format_t::i_chroma, filter_sys_t::i_gradThresh, video_format_t::i_height, plane_t::i_lines, plane_t::i_pitch, video_format_t::i_visible_height, plane_t::i_visible_lines, plane_t::i_visible_pitch, video_format_t::i_visible_width, video_format_t::i_width, image_Convert, NormalizeVector(), picture_t::p, filter_sys_t::p_grad_x, filter_sys_t::p_grad_y, filter_sys_t::p_image, plane_t::p_pixels, filter_sys_t::p_smooth, filter_t::p_sys, p_sys, picture_Release(), es_format_t::video, VLC_CODEC_RGB24, VLC_FOURCC, vlc_memcpy(), and WHITE.
Referenced by Filter().
| static void GaussianConvolution | ( | picture_t * | p_inpic, | |
| uint32_t * | p_smooth | |||
| ) | [static] |
References plane_t::i_pitch, plane_t::i_visible_lines, plane_t::i_visible_pitch, picture_t::p, plane_t::p_pixels, and Y_PLANE.
Referenced by FilterBall(), FilterEdge(), FilterGradient(), FilterHough(), and FindShapes().
| static int getBallColor | ( | vlc_object_t * | p_this, | |
| char const * | psz_newval | |||
| ) | [static] |
| 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 | ) |
Referenced by SoundSlider::SoundSlider().
const char* const mode_list[] = { "red", "green", "blue", "white" } [static] |
const char* const mode_list_text[] [static] |
const char* const ppsz_filter_options[] [static] |
Initial value:
{
"ball-color", "ball-speed", "ball-size",
"gradient-threshold", "edge-visible", NULL
}
1.5.6