pub trait FromRawVideoFrame {
const FORMAT: u32;
// Required methods
fn check(video: &VideoOutputInfo) -> Result<(), String>;
unsafe fn from_raw(
video: &VideoOutputInfo,
frame_data_ptr: *const u8,
last_frame_id: Arc<AtomicUsize>,
frame_id: usize,
) -> Self;
}Available on crate feature
output only.Expand description
動画フレームを表すトレイト。 aviutl2-rsでは、このトレイトを実装した型で動画フレームのフォーマットを指定します。
Required Associated Constants§
Required Methods§
Sourcefn check(video: &VideoOutputInfo) -> Result<(), String>
fn check(video: &VideoOutputInfo) -> Result<(), String>
動画フレームのフォーマットが出力情報に適合するかをチェックする。
例えば、Yuy2VideoFrame(YUV
4:2:2)を使用する場合は、出力情報の幅と高さが偶数であることを確認します。
Sourceunsafe fn from_raw(
video: &VideoOutputInfo,
frame_data_ptr: *const u8,
last_frame_id: Arc<AtomicUsize>,
frame_id: usize,
) -> Self
unsafe fn from_raw( video: &VideoOutputInfo, frame_data_ptr: *const u8, last_frame_id: Arc<AtomicUsize>, frame_id: usize, ) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl FromRawVideoFrame for ImageBuffer<Rgba<u16>, Vec<u16>>
Available on crate feature image only.
impl FromRawVideoFrame for ImageBuffer<Rgba<u16>, Vec<u16>>
Available on crate feature
image only.Source§impl FromRawVideoFrame for RgbImage
Available on crate feature image only.
impl FromRawVideoFrame for RgbImage
Available on crate feature
image only.Source§impl FromRawVideoFrame for Rgba32FImage
Available on crate feature image only.
impl FromRawVideoFrame for Rgba32FImage
Available on crate feature
image only.