
Data Structures | |
| struct | BarGraph_t |
| struct | filter_sys_t |
| filter_sys_t: chroma method descriptor More... | |
Defines | |
| #define | I_VALUES_TEXT N_("Value of the audio channels levels") |
| #define | I_VALUES_LONGTEXT |
| #define | POSX_TEXT N_("X coordinate") |
| #define | POSX_LONGTEXT N_("X coordinate of the bargraph." ) |
| #define | POSY_TEXT N_("Y coordinate") |
| #define | POSY_LONGTEXT N_("Y coordinate of the bargraph." ) |
| #define | TRANS_TEXT N_("Transparency of the bargraph") |
| #define | TRANS_LONGTEXT |
| #define | POS_TEXT N_("Bargraph position") |
| #define | POS_LONGTEXT |
| #define | ALARM_TEXT N_("Alarm") |
| #define | ALARM_LONGTEXT |
| #define | BARWIDTH_TEXT N_("Bar width in pixel (default : 10)") |
| #define | BARWIDTH_LONGTEXT |
| #define | CFG_PREFIX "audiobargraph_v-" |
| #define | DrawPointsBlack(a, b) |
| #define | DrawPointsWhite(a, b) |
Functions | |
| static int | OpenSub (vlc_object_t *p_this) |
| Open the sub filter. | |
| static int | OpenVideo (vlc_object_t *p_this) |
| Open the video filter. | |
| static void | Close (vlc_object_t *p_this) |
| Common close function. | |
| int | vlc_entry__main (module_t *p_module) |
| const char * | vlc_entry_license__main (void) |
| static int | OpenCommon (vlc_object_t *p_this, bool b_sub) |
| Common open function. | |
| static subpicture_t * | FilterSub (filter_t *p_filter, mtime_t date) |
| Sub filter. | |
| static picture_t * | FilterVideo (filter_t *p_filter, picture_t *p_src) |
| Video filter. | |
| static int | BarGraphCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *) |
| static void | LoadBarGraph (vlc_object_t *, BarGraph_t *) |
| void | parse_i_values (BarGraph_t *p_BarGraph, char *i_values) |
| static picture_t * | LoadImage (vlc_object_t *p_this, int nbChannels, int *i_values, int scale, int alarm, int barWidth) |
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 char *const | ppsz_filter_options [] |
| static const char *const | ppsz_filter_callbacks [] |
| #define ALARM_LONGTEXT |
Value:
N_("Signals a silence and displays and alert " \ "(0=no alarm, 1=alarm).")
| #define ALARM_TEXT N_("Alarm") |
| #define BARWIDTH_LONGTEXT |
Value:
N_("Width in pixel of each bar in the BarGraph to be displayed " \ "(default : 10).")
| #define BARWIDTH_TEXT N_("Bar width in pixel (default : 10)") |
| #define CFG_PREFIX "audiobargraph_v-" |
Value:
{\
for (i=a; i<b; i++) {\
*(p_pic->p[0].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[0].i_pitch + i ) = 0x00; \
*(p_pic->p[1].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[1].i_pitch + i ) = 128; \
*(p_pic->p[2].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[2].i_pitch + i ) = 128; \
*(p_pic->p[3].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[3].i_pitch + i ) = 0xFF; \
}\
}
Referenced by LoadImage().
Value:
{\
for (i=a; i<b; i++) {\
*(p_pic->p[0].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[0].i_pitch + i ) = 0xFF;\
*(p_pic->p[1].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[1].i_pitch + i ) = 128;\
*(p_pic->p[2].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[2].i_pitch + i ) = 128;\
*(p_pic->p[3].p_pixels + (scale + 30 - i_line - 1) * p_pic->p[3].i_pitch + i ) = 0xFF; \
}\
}
Referenced by LoadImage().
| #define I_VALUES_LONGTEXT |
Value:
N_("Value of the audio level of each channels between 0 and 1" \ "Each level should be separated with ':'.")
| #define I_VALUES_TEXT N_("Value of the audio channels levels") |
| #define POS_LONGTEXT |
Value:
N_( \ "Enforce the bargraph 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_("Bargraph position") |
| #define POSX_LONGTEXT N_("X coordinate of the bargraph." ) |
| #define POSX_TEXT N_("X coordinate") |
| #define POSY_LONGTEXT N_("Y coordinate of the bargraph." ) |
| #define POSY_TEXT N_("Y coordinate") |
| #define TRANS_LONGTEXT |
Value:
N_("Bargraph transparency value " \ "(from 0 for full transparency to 255 for full opacity)." )
| #define TRANS_TEXT N_("Transparency of the bargraph") |
| static int BarGraphCallback | ( | vlc_object_t * | p_this, | |
| char const * | psz_var, | |||
| vlc_value_t | oldval, | |||
| vlc_value_t | newval, | |||
| void * | p_data | |||
| ) | [static] |
References __MAX, __MIN, BarGraph_t::alarm, filter_sys_t::b_spu_update, BarGraph_t::barWidth, BarGraph_t::i_alpha, vlc_value_t::i_int, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, BarGraph_t::i_values, LoadBarGraph(), filter_sys_t::lock, filter_sys_t::p_BarGraph, BarGraph_t::p_pic, parse_i_values(), picture_Release(), vlc_value_t::psz_string, strdup(), vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
Referenced by OpenCommon().
| static void Close | ( | vlc_object_t * | p_this | ) | [static] |
Common close function.
Close the module.
Destroys the X11 window.
Disconnect from the X server.
Close a SDL video output.
It destroys an OpenGL vout display.
Terminate a vout display created by Open.
It destroyes a Direct3D vout display.
Terminate an output method created by Open.
Release the drawable.
Close a libcaca video output.
Close a aa video output method.
Close the filter.
Terminate a splitter module.
This function closes a clone video splitter module.
Common close function.
Releases allocate resources.
Close: Destructor.
| p_this | pointer to this filter object | |
| p_this,: | the filter object |
| static subpicture_t * FilterSub | ( | filter_t * | p_filter, | |
| mtime_t | date | |||
| ) | [static] |
Sub filter.
References filter_sys_t::b_absolute, subpicture_t::b_absolute, subpicture_t::b_ephemer, filter_sys_t::b_spu_update, filter_NewSubpicture(), subpicture_region_t::i_align, subpicture_t::i_alpha, BarGraph_t::i_alpha, video_format_t::i_chroma, video_format_t::i_height, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, video_format_t::i_sar_den, video_format_t::i_sar_num, subpicture_t::i_start, subpicture_t::i_stop, 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, subpicture_region_t::i_x, video_format_t::i_x_offset, subpicture_region_t::i_y, video_format_t::i_y_offset, filter_sys_t::lock, msg_Err, picture_t::p, filter_sys_t::p_BarGraph, BarGraph_t::p_pic, subpicture_region_t::p_picture, subpicture_t::p_region, filter_t::p_sys, picture_Copy(), SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, subpicture_region_New(), VLC_CODEC_YUVA, vlc_mutex_lock(), vlc_mutex_unlock(), and Y_PLANE.
Referenced by OpenCommon().
Video filter.
References filter_Blend(), filter_ConfigureBlend(), filter_NewPicture(), filter_t::fmt_out, picture_t::format, BarGraph_t::i_alpha, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, video_format_t::i_visible_height, video_format_t::i_visible_width, filter_sys_t::lock, msg_Err, filter_sys_t::p_BarGraph, filter_sys_t::p_blend, p_dst, BarGraph_t::p_pic, filter_t::p_sys, picture_Copy(), picture_Release(), SUBPICTURE_ALIGN_BOTTOM, SUBPICTURE_ALIGN_LEFT, SUBPICTURE_ALIGN_RIGHT, SUBPICTURE_ALIGN_TOP, es_format_t::video, vlc_mutex_lock(), and vlc_mutex_unlock().
Referenced by OpenCommon().
| static void LoadBarGraph | ( | vlc_object_t * | p_this, | |
| BarGraph_t * | p_BarGraph | |||
| ) | [static] |
References BarGraph_t::alarm, BarGraph_t::barWidth, BarGraph_t::i_values, LoadImage(), msg_Warn, BarGraph_t::nbChannels, BarGraph_t::p_pic, and BarGraph_t::scale.
Referenced by BarGraphCallback(), and OpenCommon().
| static picture_t* LoadImage | ( | vlc_object_t * | p_this, | |
| int | nbChannels, | |||
| int * | i_values, | |||
| int | scale, | |||
| int | alarm, | |||
| int | barWidth | |||
| ) | [static] |
| static int OpenCommon | ( | vlc_object_t * | p_this, | |
| bool | b_sub | |||
| ) | [static] |
Common open function.
References __MAX, __MIN, BarGraph_t::alarm, filter_sys_t::b_spu_update, BarGraphCallback(), BarGraph_t::barWidth, CFG_PREFIX, config_ChainParse, es_format_IsSimilar(), filter_NewBlend(), FilterSub(), FilterVideo(), filter_t::fmt_in, filter_t::fmt_out, i, BarGraph_t::i_alpha, filter_sys_t::i_pos, filter_sys_t::i_pos_x, filter_sys_t::i_pos_y, LoadBarGraph(), filter_sys_t::lock, msg_Err, filter_sys_t::p_BarGraph, filter_sys_t::p_blend, filter_t::p_cfg, filter_t::p_sys, p_sys, parse_i_values(), ppsz_filter_callbacks, ppsz_filter_options, BarGraph_t::scale, var_AddCallback, var_CreateGetIntegerCommand, var_CreateGetStringCommand, es_format_t::video, VLC_EGENERIC, VLC_ENOMEM, vlc_mutex_init(), VLC_OBJECT, and VLC_SUCCESS.
| static int OpenSub | ( | vlc_object_t * | p_this | ) | [static] |
| static int OpenVideo | ( | vlc_object_t * | p_this | ) | [static] |
Open the video filter.
| void parse_i_values | ( | BarGraph_t * | p_BarGraph, | |
| char * | i_values | |||
| ) |
References __MAX, __MIN, atof(), BarGraph_t::i_values, BarGraph_t::nbChannels, BarGraph_t::scale, strtok_r(), and xrealloc().
Referenced by BarGraphCallback(), and OpenCommon().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
const int pi_pos_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 } [static] |
const char* const ppsz_filter_callbacks[] [static] |
Initial value:
{
"audiobargraph_v-i_values",
"audiobargraph_v-x",
"audiobargraph_v-y",
"audiobargraph_v-transparency",
"audiobargraph_v-position",
"audiobargraph_v-alarm",
"audiobargraph_v-barWidth",
NULL
}
Referenced by OpenCommon().
const char* const ppsz_filter_options[] [static] |
Initial value:
{
"i_values", "x", "y", "transparency", "position", "alarm", "barWidth", NULL
}
const char* const ppsz_pos_descriptions[] [static] |
1.5.6