media: accept FrameView in frame_to_image

This commit is contained in:
Dylan M. Taylor
2026-11-21 04:37:13 -05:00
parent 127ffbab34
commit 07fa7f0830
+1 -1
View File
@@ -137,7 +137,7 @@ impl<'a> From<&'a crate::stream::DecodedFrame> for FrameView<'a> {
/// Convert a FilmCraft frame to an [`Image`].
#[cfg(test)]
pub(crate) fn frame_to_image(f: &VideoFrame, op: AlphaOp) -> Image {
pub(crate) fn frame_to_image<'a>(f: impl Into<FrameView<'a>>, op: AlphaOp) -> Image {
frame_to_image_in(f, op, Vec::new())
}