pub struct FilterProcVideo {
pub scene: SceneInfo,
pub object: ObjectInfo,
pub video_object: VideoObjectInfo,
/* private fields */
}Available on crate feature
filter only.Expand description
画像フィルタ処理のための構造体。
Fields§
§scene: SceneInfoシーン情報。
object: ObjectInfoオブジェクト情報。
video_object: VideoObjectInfo画像フィルタ特有のオブジェクト情報。
Implementations§
Source§impl FilterProcVideo
impl FilterProcVideo
Sourcepub fn get_image_data<T>(&mut self, buffer: &mut [T]) -> usizewhere
T: Copy + FromBytes + Immutable,
pub fn get_image_data<T>(&mut self, buffer: &mut [T]) -> usizewhere
T: Copy + FromBytes + Immutable,
現在の画像のデータを取得する。 RGBA32bit で取得されます。
§Panics
buffer をバイト列に変換した際の長さが width * height * 4 と一致しない場合、パニックします。
例えばu8 の場合、buffer の長さは width * height * 4 と一致する必要があり、
RgbaPixel の場合、buffer の長さは width * height と一致する必要があります。
§Note
FilterPluginTable::as_object が true の場合、この関数は何もせずに 0 を返します。
Trait Implementations§
Source§impl Debug for FilterProcVideo
impl Debug for FilterProcVideo
impl Send for FilterProcVideo
impl Sync for FilterProcVideo
Auto Trait Implementations§
impl Freeze for FilterProcVideo
impl RefUnwindSafe for FilterProcVideo
impl Unpin for FilterProcVideo
impl UnwindSafe for FilterProcVideo
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