Skip to content

Commit

Permalink
Merge pull request #241 from rgm89git/interlace_dotcrawl
Browse files Browse the repository at this point in the history
fix: moving dot crawl in interlaced inputs
  • Loading branch information
valadaptive authored Dec 15, 2024
2 parents 04ef5ea + 5928283 commit 89b04a4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion crates/gui/src/gst_utils/process_gst_frame.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ pub fn process_gst_frame<S: PixelFormat>(

let mut yiq = frame_to_yiq(in_frame, field)?;
let mut view = YiqView::from(&mut yiq);
settings.apply_effect_to_yiq(&mut view, frame as usize * 2);
settings.apply_effect_to_yiq(
&mut view,
if in_frame.is_onefield() {
frame as usize * 2
} else {
frame as usize
},
);
view.write_to_strided_buffer::<S, _>(
out_frame,
blit_info,
Expand Down

0 comments on commit 89b04a4

Please sign in to comment.