pub struct BorrowedRawHf64VideoFrame { /* private fields */ }Available on crate feature
output only.Expand description
生のDXGI_FORMAT_R16G16B16A16_FLOAT(乗算済みα)形式の動画フレームデータ。
RawHf64VideoFrameやHf64VideoFrameとは違い、フレームデータを所有しません。
Implementations§
Source§impl BorrowedRawHf64VideoFrame
impl BorrowedRawHf64VideoFrame
Sourcepub unsafe fn as_slice_unchecked(&self) -> &[f16]
pub unsafe fn as_slice_unchecked(&self) -> &[f16]
Sourcepub fn to_owned(&self) -> RawHf64VideoFrame
pub fn to_owned(&self) -> RawHf64VideoFrame
Sourcepub unsafe fn to_owned_unchecked(&self) -> RawHf64VideoFrame
pub unsafe fn to_owned_unchecked(&self) -> RawHf64VideoFrame
Sourcepub fn to_parsed(&self) -> Hf64VideoFrame
pub fn to_parsed(&self) -> Hf64VideoFrame
Sourcepub unsafe fn to_parsed_unchecked(&self) -> Hf64VideoFrame
pub unsafe fn to_parsed_unchecked(&self) -> Hf64VideoFrame
Trait Implementations§
Source§impl Debug for BorrowedRawHf64VideoFrame
impl Debug for BorrowedRawHf64VideoFrame
Source§impl FromRawVideoFrame for BorrowedRawHf64VideoFrame
impl FromRawVideoFrame for BorrowedRawHf64VideoFrame
Source§fn check(_video: &VideoOutputInfo) -> Result<(), String>
fn check(_video: &VideoOutputInfo) -> Result<(), String>
動画フレームのフォーマットが出力情報に適合するかをチェックする。
例えば、
Yuy2VideoFrame(YUV
4:2:2)を使用する場合は、出力情報の幅と高さが偶数であることを確認します。Source§unsafe 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
動画フレームを生のポインタから取得する。 Read more
Auto Trait Implementations§
impl Freeze for BorrowedRawHf64VideoFrame
impl RefUnwindSafe for BorrowedRawHf64VideoFrame
impl !Send for BorrowedRawHf64VideoFrame
impl !Sync for BorrowedRawHf64VideoFrame
impl Unpin for BorrowedRawHf64VideoFrame
impl UnwindSafe for BorrowedRawHf64VideoFrame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more