Shrink corners

This commit is contained in:
Anthony Wang 2024-05-13 21:37:57 -04:00
parent 57a2ecb485
commit b5a725174a
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ parser.add_argument("-s", "--size", help="number of bytes to decode", type=int)
parser.add_argument("-p", "--psize", help="packet size", type=int)
args = parser.parse_args()
cheight = cwidth = max(args.height // 10, args.width // 10)
cheight = cwidth = max(args.height // 15, args.width // 15)
frame_size = args.height * args.width - 4 * cheight * cwidth
frame_bytes = frame_size * 3 // 8
frame_xor = np.arange(frame_bytes, dtype=np.uint8)

View file

@ -15,7 +15,7 @@ parser.add_argument("-m", "--mix", help="mix frames with original video", action
args = parser.parse_args()
cheight = cwidth = max(args.height // 10, args.width // 10)
cheight = cwidth = max(args.height // 15, args.width // 15)
midwidth = args.width - 2 * cwidth
frame_size = args.height * args.width - 4 * cheight * cwidth
# Divide by 8 / 3 for 3-bit color