This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;nyquist plug-in | |
;version 4 | |
;type process | |
;name "VHF RTF" | |
;release "0.2.0" | |
;control text "Process audio to imitate VHF radio reception" | |
;control text "Filters derived from pierr3/afv-native" | |
;control preset "Filter preset" choice "Schmid ED137B,Garex 220,Rockwell Collins 2100" 0 | |
;control pregain "Pre-scale" float nil 1.0 0.0 1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "weird-discord-video" | |
version = "0.1.0" | |
edition = "2021" | |
[dependencies] | |
anyhow = "^1.0" | |
argh = "^0.1" | |
webm-iterable = "^0.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// depends on https://crates.io/crates/image ^0.23 | |
use std::env::args; | |
use std::process::exit; | |
use image::{ GenericImageView, GrayImage, ImageResult, RgbaImage }; | |
use image::imageops::FilterType; | |
const BRIGHTNESS_THRESHOLD: u8 = 64; | |
const COLOUR_A: [u8; 4] = [ 8, 8, 9, 255 ]; |