Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge branch 'perf/mf-decoder-state-machine' into perf/mf-pipelined-readback

Marcos Daniel Rivera Gonzalez3fa67a2df515
diff --cc crates/rendering/src/decoder/media_foundation.rs
index 9b0bfdfa6,562754e44..cd0cfa7ad
--- a/crates/rendering/src/decoder/media_foundation.rs
+++ b/crates/rendering/src/decoder/media_foundation.rs
@@@ -190,15 -258,7 +191,16 @@@ impl MFDecoder
video_height,
)
},
- |frame| frame.to_decoded_frame().with_matrix(matrix),
+ |data| {
+ DecodedFrame::new_nv12_with_arc(
+ data.data,
+ video_width,
+ video_height,
+ data.y_stride,
+ data.uv_stride,
+ )
++ .with_matrix(matrix)
+ },
));
};