mirror of
https://github.com/storytold/effectcraft.git
synced 2026-12-04 13:03:22 -05:00
media: accept FrameView in frame_to_image
This commit is contained in:
1 file changed
+1
-1
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user