diff options
author | Damiano Galassi <[email protected]> | 2019-05-02 16:58:29 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2019-05-02 16:58:29 +0200 |
commit | 851c732ad36525175db37ad9f59b31361ba8f876 (patch) | |
tree | fae3b009c0ccbc528802c12bea5cae925d26a9bf /macosx/HBJob+HBJobConversion.m | |
parent | 28bac379078b23d98e2ba91597c155c0cc7c5145 (diff) |
MacGui: update UI for the new deblock filter.
Diffstat (limited to 'macosx/HBJob+HBJobConversion.m')
-rw-r--r-- | macosx/HBJob+HBJobConversion.m | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/macosx/HBJob+HBJobConversion.m b/macosx/HBJob+HBJobConversion.m index c9d01885f..073612b26 100644 --- a/macosx/HBJob+HBJobConversion.m +++ b/macosx/HBJob+HBJobConversion.m @@ -469,11 +469,17 @@ hb_dict_free(&filter_dict); } - // Deblock (uses pp7 default) - if (self.filters.deblock) + // Deblock + if (![self.filters.deblock isEqualToString:@"off"]) { - filter = hb_filter_init(HB_FILTER_DEBLOCK); - hb_add_filter(job, filter, [NSString stringWithFormat:@"qp=%d", self.filters.deblock].UTF8String); + int filter_id = HB_FILTER_DEBLOCK; + hb_dict_t *filter_dict = hb_generate_filter_settings(filter_id, + self.filters.deblock.UTF8String, + self.filters.deblockTune.UTF8String, + self.filters.deblockCustomString.UTF8String); + filter = hb_filter_init(filter_id); + hb_add_filter_dict(job, filter, filter_dict); + hb_value_free(&filter_dict); } // Add Crop/Scale filter |