
Data Structures | |
| struct | filter_sys_t |
| filter_sys_t: chroma method descriptor More... | |
Defines | |
| #define | M_PI 3.14159265358979323846 |
| #define | eight_times(x) x x x x x x x x |
| #define | THRES_TEXT N_("Brightness threshold") |
| #define | THRES_LONGTEXT |
| #define | CONT_TEXT N_("Image contrast (0-2)") |
| #define | CONT_LONGTEXT N_("Set the image contrast, between 0 and 2. Defaults to 1.") |
| #define | HUE_TEXT N_("Image hue (0-360)") |
| #define | HUE_LONGTEXT N_("Set the image hue, between 0 and 360. Defaults to 0.") |
| #define | SAT_TEXT N_("Image saturation (0-3)") |
| #define | SAT_LONGTEXT N_("Set the image saturation, between 0 and 3. Defaults to 1.") |
| #define | LUM_TEXT N_("Image brightness (0-2)") |
| #define | LUM_LONGTEXT N_("Set the image brightness, between 0 and 2. Defaults to 1.") |
| #define | GAMMA_TEXT N_("Image gamma (0-10)") |
| #define | GAMMA_LONGTEXT N_("Set the image gamma, between 0.01 and 10. Defaults to 1.") |
| #define | WRITE_UV_CLIP() |
| #define | WRITE_UV() |
| #define | WRITE_UV_CLIP() |
| #define | WRITE_UV() |
Functions | |
| static int | Create (vlc_object_t *) |
| static void | Destroy (vlc_object_t *) |
| static picture_t * | FilterPlanar (filter_t *, picture_t *) |
| static picture_t * | FilterPacked (filter_t *, picture_t *) |
| static int | AdjustCallback (vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data) |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
Variables | |
| static const char *const | ppsz_filter_options [] |
| #define CONT_LONGTEXT N_("Set the image contrast, between 0 and 2. Defaults to 1.") |
| #define CONT_TEXT N_("Image contrast (0-2)") |
| #define eight_times | ( | x | ) | x x x x x x x x |
| #define GAMMA_LONGTEXT N_("Set the image gamma, between 0.01 and 10. Defaults to 1.") |
| #define GAMMA_TEXT N_("Image gamma (0-10)") |
| #define HUE_LONGTEXT N_("Set the image hue, between 0 and 360. Defaults to 0.") |
| #define HUE_TEXT N_("Image hue (0-360)") |
| #define LUM_LONGTEXT N_("Set the image brightness, between 0 and 2. Defaults to 1.") |
| #define LUM_TEXT N_("Image brightness (0-2)") |
| #define M_PI 3.14159265358979323846 |
| #define SAT_LONGTEXT N_("Set the image saturation, between 0 and 3. Defaults to 1.") |
| #define SAT_TEXT N_("Image saturation (0-3)") |
| #define THRES_LONGTEXT |
Value:
N_("When this mode is enabled, pixels will be " \ "shown as black or white. The threshold value will be the brighness " \ "defined below." )
| #define THRES_TEXT N_("Brightness threshold") |
| #define WRITE_UV | ( | ) |
Value:
i_u = *p_in; p_in += 4; i_v = *p_in_v; p_in_v += 4; \
*p_out = (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
* i_sat) >> 8) + 128; \
p_out += 4; \
*p_out_v = (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
* i_sat) >> 8) + 128; \
p_out_v += 4
| #define WRITE_UV | ( | ) |
Value:
i_u = *p_in++ ; i_v = *p_in_v++ ; \
*p_out++ = (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
* i_sat) >> 8) + 128; \
*p_out_v++ = (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
* i_sat) >> 8) + 128
Referenced by FilterPacked(), and FilterPlanar().
| #define WRITE_UV_CLIP | ( | ) |
Value:
i_u = *p_in; p_in += 4; i_v = *p_in_v; p_in_v += 4; \
*p_out = clip_uint8_vlc( (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
* i_sat) >> 8) + 128); \
p_out += 4; \
*p_out_v = clip_uint8_vlc( (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
* i_sat) >> 8) + 128); \
p_out_v += 4
| #define WRITE_UV_CLIP | ( | ) |
Value:
i_u = *p_in++ ; i_v = *p_in_v++ ; \
*p_out++ = clip_uint8_vlc( (( ((i_u * i_cos + i_v * i_sin - i_x) >> 8) \
* i_sat) >> 8) + 128); \
*p_out_v++ = clip_uint8_vlc( (( ((i_v * i_cos - i_u * i_sin - i_y) >> 8) \
* i_sat) >> 8) + 128)
Referenced by FilterPacked(), and FilterPlanar().
| static int AdjustCallback | ( | 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_brightness_threshold, filter_sys_t::f_brightness, filter_sys_t::f_contrast, vlc_value_t::f_float, filter_sys_t::f_gamma, filter_sys_t::f_saturation, filter_sys_t::i_hue, vlc_value_t::i_int, filter_sys_t::lock, p_sys, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
| static int Create | ( | vlc_object_t * | p_this | ) | [static] |
References AdjustCallback(), filter_sys_t::b_brightness_threshold, CASE_PACKED_YUV_422, CASE_PLANAR_YUV, config_ChainParse, filter_sys_t::f_brightness, filter_sys_t::f_contrast, filter_sys_t::f_gamma, filter_sys_t::f_saturation, FilterPacked(), FilterPlanar(), filter_t::fmt_in, filter_t::fmt_out, video_format_t::i_chroma, filter_sys_t::i_hue, filter_sys_t::lock, msg_Err, filter_t::p_cfg, filter_t::p_sys, p_sys, ppsz_filter_options, var_AddCallback, var_CreateGetBoolCommand, var_CreateGetFloatCommand, var_CreateGetIntegerCommand, es_format_t::video, VLC_EGENERIC, VLC_ENOMEM, vlc_mutex_init(), and VLC_SUCCESS.
| static void Destroy | ( | vlc_object_t * | p_this | ) | [static] |
References AdjustCallback(), filter_sys_t::lock, filter_t::p_sys, p_sys, var_DelCallback, and vlc_mutex_destroy().
References filter_sys_t::b_brightness_threshold, clip_uint8_vlc(), CopyInfoAndRelease(), filter_sys_t::f_brightness, filter_sys_t::f_contrast, filter_sys_t::f_gamma, filter_sys_t::f_saturation, filter_NewPicture(), picture_t::format, GetPackedYuvOffsets(), i, video_format_t::i_chroma, filter_sys_t::i_hue, plane_t::i_lines, plane_t::i_pitch, plane_t::i_visible_lines, plane_t::i_visible_pitch, filter_sys_t::lock, M_PI, msg_Warn, picture_t::p, plane_t::p_pixels, filter_t::p_sys, p_sys, pi_gamma, picture_Release(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, WRITE_UV, and WRITE_UV_CLIP.
Referenced by Create().
References filter_sys_t::b_brightness_threshold, clip_uint8_vlc(), CopyInfoAndRelease(), filter_sys_t::f_brightness, filter_sys_t::f_contrast, filter_sys_t::f_gamma, filter_sys_t::f_saturation, filter_NewPicture(), i, filter_sys_t::i_hue, plane_t::i_pitch, plane_t::i_visible_lines, plane_t::i_visible_pitch, filter_sys_t::lock, M_PI, picture_t::p, plane_t::p_pixels, filter_t::p_sys, p_sys, pi_gamma, picture_Release(), U_PLANE, V_PLANE, vlc_mutex_lock(), vlc_mutex_unlock(), WRITE_UV, WRITE_UV_CLIP, and Y_PLANE.
Referenced by Create(), Filter(), FilterI422(), and FilterYUYV().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const char* const ppsz_filter_options[] [static] |
Initial value:
{
"contrast", "brightness", "hue", "saturation", "gamma",
"brightness-threshold", NULL
}
Referenced by Activate(), Create(), CreateFilter(), OpenCommon(), OpenFilter(), and OpenPostproc().
1.5.6