diff options
author | John Stebbins <[email protected]> | 2015-10-24 14:06:56 -0700 |
---|---|---|
committer | John Stebbins <[email protected]> | 2016-01-21 12:38:42 -0700 |
commit | 10ea76c71197b302b10088d93680a4bed4bc6b8e (patch) | |
tree | 459b46b16256c39ed34fe1f0a4b9476ec3439871 /libhb/grayscale.c | |
parent | ef956e695879c716dc22c96f7f8fa24e3fa5d08c (diff) |
libhb: Add libavfilter support and pad filter
New filter types HB_FILTER_AVFILTER and HB_FILTER_PAD.
Settings for HB_FILTER_AVFILTER are the same as you would pass to avconv
from the command line -vf option, except that we do not support
multi-input or multi-output filters.
Settings for HB_FILTER_PAD are "width:height:color:x_offset:y_offset".
width x height is the size of the output frame after padding.
color may be a w3c color name or RGB value (default black).
x_offset, y_offset is the position of the video within the padded area
(default centered).
Any of the values may be omitted or "auto".
Diffstat (limited to 'libhb/grayscale.c')
-rw-r--r-- | libhb/grayscale.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libhb/grayscale.c b/libhb/grayscale.c index 5942d43c5..195c5889b 100644 --- a/libhb/grayscale.c +++ b/libhb/grayscale.c @@ -37,13 +37,12 @@ static int hb_grayscale_work( hb_filter_object_t * filter, static void hb_grayscale_close( hb_filter_object_t * filter ); -static int hb_grayscale_info( hb_filter_object_t * filter, - hb_filter_info_t * info ); +static hb_filter_info_t * hb_grayscale_info( hb_filter_object_t * filter ); hb_filter_object_t hb_filter_grayscale = { .id = HB_FILTER_GRAYSCALE, - .enforce_order = 0, + .enforce_order = 1, .name = "Grayscale", .settings = NULL, .init = hb_grayscale_init, @@ -207,11 +206,9 @@ static int hb_grayscale_init( hb_filter_object_t * filter, return 0; } -static int hb_grayscale_info( hb_filter_object_t * filter, - hb_filter_info_t * info ) +static hb_filter_info_t * hb_grayscale_info( hb_filter_object_t * filter ) { - info->human_readable_desc[0] = 0; - return 0; + return NULL; } static void hb_grayscale_close( hb_filter_object_t * filter ) |