BorrowedRawYc48VideoFrame

Struct BorrowedRawYc48VideoFrame 

Source
pub struct BorrowedRawYc48VideoFrame { /* private fields */ }
Available on crate feature output only.
Expand description

生のYC48形式の動画フレームデータ。 RawYc48VideoFrameYc48VideoFrameとは違い、フレームデータを所有しません。

Implementations§

Source§

impl BorrowedRawYc48VideoFrame

Source

pub fn len(&self) -> usize

この型が参照するデータの長さを返します。

Source

pub fn is_empty(&self) -> bool

この型が参照するデータが空かどうかを返します。

§Note

常にfalseを返します。

Source

pub fn as_ptr(&self) -> *const i16

この型の内部のポインタを返します。

Source

pub fn is_valid(&self) -> bool

この型がまだ有効かどうかを返します。

Source

pub fn as_slice(&self) -> &[i16]

この型の持っているデータをスライスとして返します。

§Panics

次のフレーム取得が行われた後や、OutputInfoが破棄された後に呼び出すとパニックになります。

Source

pub unsafe fn as_slice_unchecked(&self) -> &[i16]

この型の持っているデータをスライスとして返します。

§Safety

次のフレーム取得が行われた後や、OutputInfoが破棄された後に呼び出すと未定義動作になります。

Source

pub fn to_owned(&self) -> RawYc48VideoFrame

この型の持っているデータを所有する型に変換します。

§Panics

次のフレーム取得が行われた後や、OutputInfoが破棄された後に呼び出すとパニックになります。

Source

pub unsafe fn to_owned_unchecked(&self) -> RawYc48VideoFrame

この型の持っているデータを所有する型に変換します。

§Safety

次のフレーム取得が行われた後や、OutputInfoが破棄された後に呼び出すと未定義動作になります。

Source

pub fn to_parsed(&self) -> Yc48VideoFrame

この型の持っているデータを解析した型に変換します。

§Panics

次のフレーム取得が行われた後や、OutputInfoが破棄された後に呼び出すとパニックになります。

Source

pub unsafe fn to_parsed_unchecked(&self) -> Yc48VideoFrame

この型の持っているデータを解析した型に変換します。

§Safety

次のフレーム取得が行われた後や、OutputInfoが破棄された後に呼び出すと未定義動作になります。

Trait Implementations§

Source§

impl Debug for BorrowedRawYc48VideoFrame

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl FromRawVideoFrame for BorrowedRawYc48VideoFrame

Source§

const FORMAT: u32 = 942_949_209u32

動画フレームのフォーマットを表す定数。
Source§

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

動画フレームを生のポインタから取得する。 Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.