zt
06/07/2025, 5:54 PMval graph = FilterGraph {
// split input into 2 (default) outputs
filter("split") {
// get first output and assign to variable
val tmp = output {
filter("crop") {
option("out_w", "iw")
option("out_h", "ih/2")
option("x", 0)
option("y", 0)
}
// flip vertically
filter("vflip")
}
// get the second output
output {
// overlay tmp on top of this output
filter("overlay", tmp)
}
}
}