Skip to content

Commit

Permalink
avfilter: simplify internal API to avfilter
Browse files Browse the repository at this point in the history
Use this interface in decavcodec.
Remove cropscale.c and use avfilter for crop and scale.
Improve log output of filters that are aliases for avfilter.
  • Loading branch information
jstebbins committed Apr 8, 2019
1 parent 80aa720 commit 248c880
Show file tree
Hide file tree
Showing 12 changed files with 910 additions and 827 deletions.
1,022 changes: 684 additions & 338 deletions libhb/avfilter.c

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion libhb/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ struct hb_geometry_settings_s
struct hb_image_s
{
int format;
int max_plane;
int width;
int height;
uint8_t *data;
Expand Down Expand Up @@ -1250,23 +1251,29 @@ typedef struct hb_filter_init_s
{
hb_job_t * job;
int pix_fmt;
int color_prim;
int color_transfer;
int color_matrix;
hb_geometry_t geometry;
int crop[4];
hb_rational_t vrate;
int cfr;
int grayscale;
hb_rational_t time_base;
} hb_filter_init_t;

typedef struct hb_filter_info_s
{
char * human_readable_desc;
hb_filter_init_t out;
hb_filter_init_t output;
} hb_filter_info_t;

struct hb_filter_object_s
{
int id;
int enforce_order;
int skip;
int aliased;
char * name;
hb_dict_t * settings;

Expand Down
228 changes: 0 additions & 228 deletions libhb/cropscale.c

This file was deleted.

0 comments on commit 248c880

Please sign in to comment.