pub struct BorrowedRawBgrVideoFrame { /* private fields */ }Available on crate feature
output only.Expand description
生のBGR24形式の動画フレームデータ。下の行から順に並び、各行は4バイト境界に揃えるパディングを含みます。パディングを除いた各行は Self::rows で取得できます。
RawBgrVideoFrameやRgbVideoFrameとは違い、フレームデータを所有しません。
Implementations§
Source§impl BorrowedRawBgrVideoFrame
impl BorrowedRawBgrVideoFrame
Sourcepub unsafe fn as_slice_unchecked(&self) -> &[u8] ⓘ
pub unsafe fn as_slice_unchecked(&self) -> &[u8] ⓘ
Sourcepub fn to_owned(&self) -> RawBgrVideoFrame
pub fn to_owned(&self) -> RawBgrVideoFrame
Sourcepub unsafe fn to_owned_unchecked(&self) -> RawBgrVideoFrame
pub unsafe fn to_owned_unchecked(&self) -> RawBgrVideoFrame
Sourcepub fn to_parsed(&self) -> RgbVideoFrame
pub fn to_parsed(&self) -> RgbVideoFrame
Sourcepub unsafe fn to_parsed_unchecked(&self) -> RgbVideoFrame
pub unsafe fn to_parsed_unchecked(&self) -> RgbVideoFrame
Source§impl BorrowedRawBgrVideoFrame
impl BorrowedRawBgrVideoFrame
Sourcepub fn rows(&self) -> impl DoubleEndedIterator<Item = &[u8]> + ExactSizeIterator
pub fn rows(&self) -> impl DoubleEndedIterator<Item = &[u8]> + ExactSizeIterator
Trait Implementations§
Source§impl Debug for BorrowedRawBgrVideoFrame
impl Debug for BorrowedRawBgrVideoFrame
Source§impl FromRawVideoFrame for BorrowedRawBgrVideoFrame
impl FromRawVideoFrame for BorrowedRawBgrVideoFrame
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 !Send for BorrowedRawBgrVideoFrame
impl !Sync for BorrowedRawBgrVideoFrame
impl Freeze for BorrowedRawBgrVideoFrame
impl RefUnwindSafe for BorrowedRawBgrVideoFrame
impl Unpin for BorrowedRawBgrVideoFrame
impl UnsafeUnpin for BorrowedRawBgrVideoFrame
impl UnwindSafe for BorrowedRawBgrVideoFrame
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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