
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 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") |
| static int Control | ( | vout_thread_t * | p_vout, | |
| int | i_query, | |||
| va_list | args | |||
| ) | [static] |
| static int Create | ( | vlc_object_t * | p_this | ) | [static] |
References Control(), End(), Init(), Manage(), Render(), VLC_ENOMEM, and VLC_SUCCESS.
| 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] |
References vlc_value_t::psz_string, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, and VLC_UNUSED.
| static int Init | ( | vout_thread_t * | p_vout | ) | [static] |
References _, dialog_Fatal, FilterCallback(), video_format_t::i_chroma, video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, MouseEvent(), msg_Dbg, msg_Err, msg_Info, var_AddCallback, var_InheritBool, var_InheritInteger, var_InheritString, var_SetString, VLC_EGENERIC, vlc_mutex_init(), VLC_SUCCESS, VOUT_ASPECT_FACTOR, and VOUT_MAX_PICTURES.
| static int Manage | ( | vout_thread_t * | p_vout | ) | [static] |
References _, dialog_Fatal, video_format_t::i_chroma, video_format_t::i_height, video_format_t::i_sar_den, video_format_t::i_sar_num, video_format_t::i_visible_height, video_format_t::i_visible_width, video_format_t::i_width, video_format_t::i_x_offset, video_format_t::i_y_offset, MouseEvent(), msg_Dbg, msg_Err, msg_Info, VLC_EGENERIC, vlc_mutex_lock(), vlc_mutex_unlock(), VLC_SUCCESS, VOUT_ASPECT_FACTOR, and vout_CloseAndRelease().
| 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] |
References VLC_CODEC_I410, VLC_CODEC_I411, VLC_CODEC_I420, VLC_CODEC_I422, VLC_CODEC_I444, VLC_CODEC_RGB15, VLC_CODEC_RGB16, VLC_CODEC_RGB24, VLC_CODEC_RGB32, VLC_CODEC_RGB8, VLC_CODEC_UYVY, VLC_CODEC_YUVA, VLC_CODEC_YUYV, and VLC_CODEC_YV12.
Referenced by UpdateStats().
| 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] |
References i, i_height, plane_t::i_pitch, plane_t::i_visible_lines, plane_t::i_visible_pitch, NonBlackLine(), picture_t::p, plane_t::p_pixels, and VLC_CODEC_I420.
Referenced by Render().
| int vlc_entry__main | ( | module_t * | p_module | ) |
| const char* vlc_entry_license__main | ( | void | ) |
1.5.6