mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-21 20:38:55 +00:00
media: accept FrameView in frame_to_image
This commit is contained in:
@@ -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