crop.c File Reference

Include dependency graph for crop.c:


Data Structures

struct  vout_sys_t

Defines

#define BEST_AUTOCROP   1
#define RATIO_MAX   15000
#define GEOMETRY_TEXT   N_("Crop geometry (pixels)")
#define GEOMETRY_LONGTEXT   N_("Set the geometry of the zone to crop. This is set as <width> x <height> + <left offset> + <top offset>.")
#define AUTOCROP_TEXT   N_("Automatic cropping")
#define AUTOCROP_LONGTEXT   N_("Automatically detect black borders and crop them.")
#define CROP_HELP   N_("Remove borders of the video and replace them by black borders")
#define RATIOMAX_TEXT   N_("Ratio max (x 1000)")
#define RATIOMAX_LONGTEXT   N_("Maximum image ratio. The crop plugin will never automatically crop to a higher ratio (ie, to a more \"flat\" image). The value is x1000: 1333 means 4/3.")
#define RATIO_TEXT   N_("Manual ratio")
#define RATIO_LONGTEXT   N_("Force a ratio (0 for automatic). Value is x1000: 1333 means 4/3.")
#define TIME_TEXT   N_("Number of images for change")
#define TIME_LONGTEXT   N_("The number of consecutive images with the same detected ratio (different from the previously detected ratio) to consider that ratio chnged and trigger recrop.")
#define DIFF_TEXT   N_("Number of lines for change")
#define DIFF_LONGTEXT   N_("The minimum difference in the number of detected black lines to consider that ratio changed and trigger recrop.")
#define NBP_TEXT   N_("Number of non black pixels ")
#define NBP_LONGTEXT
#define SKIP_TEXT   N_("Skip percentage (%)")
#define SKIP_LONGTEXT   N_("Percentage of the line to consider while checking for black lines. This allows to skip logos in black borders and crop them anyway.")
#define LUM_TEXT   N_("Luminance threshold ")
#define LUM_LONGTEXT   N_("Maximum luminance to consider a pixel as black (0-255).")

Functions

static int Create (vlc_object_t *)
static void Destroy (vlc_object_t *)
static int Init (vout_thread_t *)
static void End (vout_thread_t *)
static int Manage (vout_thread_t *)
static void Render (vout_thread_t *, picture_t *)
static void UpdateStats (vout_thread_t *, picture_t *)
static int MouseEvent (vlc_object_t *p_this, char const *psz_var, vlc_value_t oldval, vlc_value_t newval, void *p_data)
 Forward mouse event with proper conversion.
static int FilterCallback (vlc_object_t *, char const *, vlc_value_t, vlc_value_t, void *)
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int Control (vout_thread_t *p_vout, int i_query, va_list args)
static bool NonBlackLine (uint8_t *p_in, int i_line, int i_pitch, int i_visible_pitch, int i_lines, int i_lumThreshold, int i_skipCountPercent, int i_nonBlackPixel, int i_chroma)

Define Documentation

#define AUTOCROP_LONGTEXT   N_("Automatically detect black borders and crop them.")

#define AUTOCROP_TEXT   N_("Automatic cropping")

#define BEST_AUTOCROP   1

#define CROP_HELP   N_("Remove borders of the video and replace them by black borders")

#define DIFF_LONGTEXT   N_("The minimum difference in the number of detected black lines to consider that ratio changed and trigger recrop.")

#define DIFF_TEXT   N_("Number of lines for change")

#define GEOMETRY_LONGTEXT   N_("Set the geometry of the zone to crop. This is set as <width> x <height> + <left offset> + <top offset>.")

#define GEOMETRY_TEXT   N_("Crop geometry (pixels)")

#define LUM_LONGTEXT   N_("Maximum luminance to consider a pixel as black (0-255).")

#define LUM_TEXT   N_("Luminance threshold ")

#define NBP_LONGTEXT

Value:

N_("The maximum of non-black pixels in a line to consider"\
                        " that the line is black.")

#define NBP_TEXT   N_("Number of non black pixels ")

#define RATIO_LONGTEXT   N_("Force a ratio (0 for automatic). Value is x1000: 1333 means 4/3.")

#define RATIO_MAX   15000

#define RATIO_TEXT   N_("Manual ratio")

#define RATIOMAX_LONGTEXT   N_("Maximum image ratio. The crop plugin will never automatically crop to a higher ratio (ie, to a more \"flat\" image). The value is x1000: 1333 means 4/3.")

#define RATIOMAX_TEXT   N_("Ratio max (x 1000)")

#define SKIP_LONGTEXT   N_("Percentage of the line to consider while checking for black lines. This allows to skip logos in black borders and crop them anyway.")

#define SKIP_TEXT   N_("Skip percentage (%)")

#define TIME_LONGTEXT   N_("The number of consecutive images with the same detected ratio (different from the previously detected ratio) to consider that ratio chnged and trigger recrop.")

#define TIME_TEXT   N_("Number of images for change")


Function Documentation

static int Control ( vout_thread_t p_vout,
int  i_query,
va_list  args 
) [static]

static int Create ( vlc_object_t p_this  )  [static]

static void Destroy ( vlc_object_t p_this  )  [static]

static void End ( vout_thread_t p_vout  )  [static]

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

static int Init ( vout_thread_t p_vout  )  [static]

static int Manage ( vout_thread_t p_vout  )  [static]

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

Forward mouse event with proper conversion.

References vlc_value_t::coords, var_SetChecked, VLC_UNUSED, VLC_VAR_COORDS, VLC_VAR_INTEGER, vlc_value_t::x, and vlc_value_t::y.

static bool NonBlackLine ( uint8_t *  p_in,
int  i_line,
int  i_pitch,
int  i_visible_pitch,
int  i_lines,
int  i_lumThreshold,
int  i_skipCountPercent,
int  i_nonBlackPixel,
int  i_chroma 
) [static]

static void Render ( vout_thread_t p_vout,
picture_t p_pic 
) [static]

static void UpdateStats ( vout_thread_t p_vout,
picture_t p_pic 
) [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


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