audiobargraph_v.c File Reference

Include dependency graph for audiobargraph_v.c:


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_tFilterSub (filter_t *p_filter, mtime_t date)
 Sub filter.
static picture_tFilterVideo (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_tLoadImage (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 Documentation

#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-"

#define DrawPointsBlack ( a,
b   ) 

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().

#define DrawPointsWhite ( a,
b   ) 

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


Function Documentation

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

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.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

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

static picture_t * FilterVideo ( filter_t p_filter,
picture_t p_src 
) [static]

static void LoadBarGraph ( vlc_object_t p_this,
BarGraph_t p_BarGraph 
) [static]

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]

static int OpenSub ( vlc_object_t p_this  )  [static]

Open the sub filter.

References OpenCommon().

static int OpenVideo ( vlc_object_t p_this  )  [static]

Open the video filter.

void parse_i_values ( BarGraph_t p_BarGraph,
char *  i_values 
)

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

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]

Initial value:

{ N_("Center"), N_("Left"), N_("Right"), N_("Top"), N_("Bottom"),
  N_("Top-Left"), N_("Top-Right"), N_("Bottom-Left"), N_("Bottom-Right") }


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