Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
test(cap-muxer): name the encoded packet tuple
Richie McIlroya9d29960108e
diff --git a/crates/cap-muxer/tests/orphaned.rs b/crates/cap-muxer/tests/orphaned.rsindex f5f86bd79..9fa988ed3 100644--- a/crates/cap-muxer/tests/orphaned.rs+++ b/crates/cap-muxer/tests/orphaned.rs@@ -17,8 +17,11 @@ const WIDTH: u32 = 320;const HEIGHT: u32 = 240;const FPS: i32 = 30;+/// pts, dts, keyframe, payload.+type EncodedPacket = (i64, i64, bool, Vec<u8>);+/// libx264 packets for `count` gray frames with a keyframe every `gop`.-fn encode(count: i64, gop: u32) -> (Vec<u8>, Vec<(i64, i64, bool, Vec<u8>)>) {+fn encode(count: i64, gop: u32) -> (Vec<u8>, Vec<EncodedPacket>) {ffmpeg::init().unwrap();let codec = codec::encoder::find_by_name("libx264").expect("libx264");let mut context = codec::context::Context::new_with_codec(codec)