-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
17 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use derive_more::{AsMut, AsRef, From}; | ||
|
||
#[derive(Debug, From, AsRef, AsMut)] | ||
pub struct VideoFrame(pub web_sys::VideoFrame); | ||
|
||
// Make sure we close the frame on drop. | ||
impl Drop for VideoFrame { | ||
fn drop(&mut self) { | ||
self.0.close(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
mod color; | ||
mod decoder; | ||
mod encoder; | ||
mod frame; | ||
|
||
pub use color::*; | ||
pub use decoder::*; | ||
|
||
pub type VideoFrame = web_sys::VideoFrame; | ||
pub use frame::*; |