Skip to content

Commit

Permalink
organize
Browse files Browse the repository at this point in the history
  • Loading branch information
dnjulek committed Jan 20, 2025
1 parent fcdf191 commit 4e6af3d
Show file tree
Hide file tree
Showing 18 changed files with 49 additions and 53 deletions.
4 changes: 2 additions & 2 deletions src/filters/bilateral.zig
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const math = std.math;

const helper = @import("../helper.zig");
const Data = @import("../vapoursynth/bilateral.zig").Data;
const math = std.math;

const allocator = std.heap.c_allocator;

Expand Down
2 changes: 0 additions & 2 deletions src/filters/boxblur_comptime.zig
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
//! BoxBlur with comptime radius size

const std = @import("std");
const vszip = @import("../vszip.zig");
const Data = @import("../vapoursynth/boxblur.zig").Data;
const math = std.math;

const allocator = std.heap.c_allocator;
Expand Down
3 changes: 0 additions & 3 deletions src/filters/boxblur_runtime.zig
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
//! BoxBlur with runtime radius size

const std = @import("std");
const vszip = @import("../vszip.zig");
const Data = @import("../vapoursynth/boxblur.zig").Data;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
Expand Down
2 changes: 1 addition & 1 deletion src/filters/checkmate.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const std = @import("std");
const hz = @import("../helper.zig");
const math = std.math;
const hz = @import("../helper.zig");

pub fn process(
dstp: []u8,
Expand Down
2 changes: 1 addition & 1 deletion src/filters/metric_ssimulacra2.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const std = @import("std");
const helper = @import("../helper.zig");
const math = std.math;
const helper = @import("../helper.zig");

const allocator = std.heap.c_allocator;

Expand Down
4 changes: 2 additions & 2 deletions src/filters/planeminmax.zig
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const std = @import("std");
const math = std.math;

const helper = @import("../helper.zig");
const Data = @import("../vapoursynth/planeminmax.zig").Data;

const math = std.math;
const allocator = std.heap.c_allocator;
pub const filter_name = "PlaneMinMax";

const StatsFloat = struct {
max: f32,
Expand Down
3 changes: 2 additions & 1 deletion src/helper.zig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const std = @import("std");
const vszip = @import("vszip.zig");
const math = std.math;

const vszip = @import("vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
Expand Down
6 changes: 3 additions & 3 deletions src/vapoursynth/adaptive_binarize.zig
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const math = std.math;

const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "AdaptiveBinarize";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/bilateral.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const filter = @import("../filters/bilateral.zig");
const math = std.math;

const filter = @import("../filters/bilateral.zig");
const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "Bilateral";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/boxblur.zig
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const math = std.math;

const boxblur_ct = @import("../filters/boxblur_comptime.zig");
const boxblur_rt = @import("../filters/boxblur_runtime.zig");

const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "BoxBlur";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/checkmate.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const hz = @import("../helper.zig");
const filter = @import("../filters/checkmate.zig");
const math = std.math;

const filter = @import("../filters/checkmate.zig");
const hz = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "Checkmate";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/clahe.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const filter = @import("../filters/clahe.zig");
const math = std.math;

const filter = @import("../filters/clahe.zig");
const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "CLAHE";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/comb_mask_mt.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const filter = @import("../filters/comb_mask_mt.zig");
const math = std.math;

const filter = @import("../filters/comb_mask_mt.zig");
const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "CombMaskMT";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/metrics.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const ssimulacra2 = @import("../filters/metric_ssimulacra2.zig");
const math = std.math;

const ssimulacra2 = @import("../filters/metric_ssimulacra2.zig");
const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "Metrics";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/planeaverage.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const filter = @import("../filters/planeaverage.zig");
const math = std.math;

const filter = @import("../filters/planeaverage.zig");
const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "PlaneAverage";
Expand Down
8 changes: 4 additions & 4 deletions src/vapoursynth/planeminmax.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");
const filter = @import("../filters/planeminmax.zig");
const math = std.math;

const filter = @import("../filters/planeminmax.zig");
const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
const math = std.math;

const allocator = std.heap.c_allocator;
pub const filter_name = "PlaneMinMax";
Expand Down
4 changes: 2 additions & 2 deletions src/vapoursynth/rfs.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const std = @import("std");
const vszip = @import("../vszip.zig");
const helper = @import("../helper.zig");

const helper = @import("../helper.zig");
const vszip = @import("../vszip.zig");
const vs = vszip.vs;
const vsh = vszip.vsh;
const zapi = vszip.zapi;
Expand Down
8 changes: 4 additions & 4 deletions src/vszip.zig
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
const vapoursynth = @import("vapoursynth");
pub const vs = vapoursynth.vapoursynth4;
pub const vsh = vapoursynth.vshelper;
pub const zapi = vapoursynth.zigapi;

const adaptive_binarize = @import("vapoursynth/adaptive_binarize.zig");
const bilateral = @import("vapoursynth/bilateral.zig");
const boxblur = @import("vapoursynth/boxblur.zig");
Expand All @@ -10,10 +14,6 @@ const pavg = @import("vapoursynth/planeaverage.zig");
const pmm = @import("vapoursynth/planeminmax.zig");
const rfs = @import("vapoursynth/rfs.zig");

pub const vs = vapoursynth.vapoursynth4;
pub const vsh = vapoursynth.vshelper;
pub const zapi = vapoursynth.zigapi;

export fn VapourSynthPluginInit2(plugin: *vs.Plugin, vspapi: *const vs.PLUGINAPI) void {
_ = vspapi.configPlugin.?(
"com.julek.vszip",
Expand Down

0 comments on commit 4e6af3d

Please sign in to comment.