summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2019-03-18 17:33:36 -0600
committerJohn Stebbins <[email protected]>2019-05-02 08:50:07 -0600
commit28bac379078b23d98e2ba91597c155c0cc7c5145 (patch)
tree8a9f097c36f0b0bb259de0d513d3bb1d4cfee585 /gtk/src/hb-backend.c
parent6d9d23d9103ad7086880b36ad671190fe1ab6519 (diff)
deblock: replace pp7 with avfilter vf_deblock
Adds deblock presets and tunes. Old preset values are converted upon preset import. Old PictureDeblock preset key is now PictureDeblockPreset.
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index b80bed556..6d70fb300 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -360,6 +360,18 @@ typedef struct
gboolean preset;
} filter_opts_t;
+static filter_opts_t deblock_preset_opts =
+{
+ .filter_id = HB_FILTER_DEBLOCK,
+ .preset = TRUE
+};
+
+static filter_opts_t deblock_tune_opts =
+{
+ .filter_id = HB_FILTER_DEBLOCK,
+ .preset = FALSE
+};
+
static filter_opts_t deint_preset_opts =
{
.filter_id = HB_FILTER_DECOMB,
@@ -565,6 +577,18 @@ combo_name_map_t combo_name_map[] =
filter_opt_get
},
{
+ "PictureDeblockPreset",
+ &deblock_preset_opts,
+ filter_opts_set,
+ filter_opt_get
+ },
+ {
+ "PictureDeblockTune",
+ &deblock_tune_opts,
+ filter_opts_set,
+ filter_opt_get
+ },
+ {
"PictureDenoiseFilter",
&denoise_opts,
small_opts_set,