OUTPUT_INFO

Struct OUTPUT_INFO 

Source
#[repr(C)]
pub struct OUTPUT_INFO {
Show 15 fields pub flag: i32, pub w: i32, pub h: i32, pub rate: i32, pub scale: i32, pub n: i32, pub audio_rate: i32, pub audio_ch: i32, pub audio_n: i32, pub savefile: LPCWSTR, pub func_get_video: Option<extern "C" fn(frame: i32, format: u32) -> *mut c_void>, pub func_get_audio: Option<extern "C" fn(start: i32, length: i32, readed: *mut i32, format: u32) -> *mut c_void>, pub func_is_abort: Option<extern "C" fn() -> bool>, pub func_rest_time_disp: Option<extern "C" fn(now: i32, total: i32)>, pub func_set_buffer_size: Option<extern "C" fn(video_size: i32, audio_size: i32)>,
}
Expand description

出力情報構造体

Fields§

§flag: i32

フラグ

§w: i32

縦横サイズ

§h: i32

縦横サイズ

§rate: i32

フレームレート

§scale: i32

フレームレート(スケール)

§n: i32

フレーム数

§audio_rate: i32

音声サンプリングレート

§audio_ch: i32

音声チャンネル数

§audio_n: i32

音声サンプリング数

§savefile: LPCWSTR

セーブファイル名へのポインタ

§func_get_video: Option<extern "C" fn(frame: i32, format: u32) -> *mut c_void>

DIB形式の画像データを取得します

§Safety

画像データポインタの内容は次に外部関数を使うかメインに処理を戻すまで有効

§See Also

crate::common::BI_RGB crate::common::BI_YUY2 crate::common::BI_PA64 crate::common::BI_YC48 crate::common::BI_HF64

§func_get_audio: Option<extern "C" fn(start: i32, length: i32, readed: *mut i32, format: u32) -> *mut c_void>

PCM形式の音声データへのポインタを取得します

§Safety

音声データポインタの内容は次に外部関数を使うかメインに処理を戻すまで有効

§See Also

WAVE_FORMAT_PCM WAVE_FORMAT_IEEE_FLOAT

§func_is_abort: Option<extern "C" fn() -> bool>

中断するか調べます

§Returns

trueなら中断

§func_rest_time_disp: Option<extern "C" fn(now: i32, total: i32)>

残り時間を表示させます

§Args

  • now: 処理しているフレーム番号
  • total: 処理する総フレーム数
§func_set_buffer_size: Option<extern "C" fn(video_size: i32, audio_size: i32)>

データ取得のバッファ数(フレーム数)を設定します ※標準は4になります

バッファ数の半分のデータを先読みリクエストするようになります

§Args

  • video_size: 画像データのバッファ数
  • audio_size: 音声データのバッファ数

Implementations§

Source§

impl OUTPUT_INFO

Source

pub const FLAG_VIDEO: i32 = 1i32

画像データあり

Source

pub const FLAG_AUDIO: i32 = 2i32

音声データあり

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, 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.