Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
[feature] BIG Commit - Better UI, VHS recording speed, noise seed and…
Browse files Browse the repository at this point in the history
… overall code cleanups

This commit changes the overall code and UI. Most of the changes based on the pull request
on the original ntscQT by valadaptive. This includes:

- New feature: Noise seed (which allows you to set a seed for all video effects)
- New feature: VHS recording speed switch (SP, LP and EP)
- A better UI, overall
- Code cleanups

You can find more about these changes on his original pull request:
JargeZ/ntscqt#94

Other change, this time outside of the pull, is the logo which is now in
the topleft corner of the UI.

- Logo on topleft UI

Thanks to valadaptive for the changes.
  • Loading branch information
rgm89git committed Oct 8, 2023
1 parent 2333eb2 commit 128d871
Show file tree
Hide file tree
Showing 12 changed files with 922 additions and 522 deletions.
6 changes: 3 additions & 3 deletions app/InterlacedRenderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ class InterlacedRenderer(DefaultRenderer):
interlaced = True

@staticmethod
def apply_main_effect(nt: Ntsc, frame1, frame2=None, frameId=0):
def apply_main_effect(nt: Ntsc, frame1, frame2, frameno: int):
#raise NotImplementedError()
if frame2 is None:
frame2 = frame1

frame1 = nt.composite_layer(frame1, frame1, field=0, fieldno=0, frame=frameId)
frame1 = nt.composite_layer(frame1, frame1, field=0, fieldno=0, frameno=frameno)
frame1 = cv2.convertScaleAbs(frame1)

frame2 = cv2.copyMakeBorder(frame2,1,0,0,0,cv2.BORDER_CONSTANT)
frame2 = nt.composite_layer(frame2, frame2, field=2, fieldno=2, frame=frameId)
frame2 = nt.composite_layer(frame2, frame2, field=2, fieldno=2, frameno=frameno)
frame2 = cv2.convertScaleAbs(frame2)
frame = frame1
frame[1::2,:] = frame2[2::2,:]
Expand Down
Loading

0 comments on commit 128d871

Please sign in to comment.