Skip to main content

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形式の画像データを取得します frame : フレーム番号 format : 画像フォーマット 0(BI_RGB) = RGB24bit / ‘P’‘A’‘6’‘4’ = PA64 / ‘H’‘F’‘6’‘4’ = HF64 / ‘Y’‘U’‘Y’‘2’ = YUY2 / ‘Y’‘C’‘4’‘8’ = YC48 ※PA64はDXGI_FORMAT_R16G16B16A16_UNORM(乗算済みα)です ※HF64はDXGI_FORMAT_R16G16B16A16_FLOAT(乗算済みα)です(内部フォーマット) ※YC48は互換対応のフォーマットです 戻り値 : データへのポインタ 画像データポインタの内容は次に外部関数を使うかメインに処理を戻すまで有効

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

PCM形式の音声データへのポインタを取得します start : 開始サンプル番号 length : 読み込むサンプル数 readed : 読み込まれたサンプル数 format : 音声フォーマット 1(WAVE_FORMAT_PCM) = PCM16bit / 3(WAVE_FORMAT_IEEE_FLOAT) = PCM(float)32bit 戻り値 : データへのポインタ 音声データポインタの内容は次に外部関数を使うかメインに処理を戻すまで有効

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

中断するか調べます 戻り値 : trueなら中断

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

残り時間を表示させます now : 処理しているフレーム番号 total : 処理する総フレーム数 戻り値 : trueなら成功

§func_set_buffer_size: Option<extern "C" fn(video_size: i32, audio_size: i32)>

データ取得のバッファ数(フレーム数)を設定します ※標準は4になります バッファ数の半分のデータを先読みリクエストするようになります video : 画像データのバッファ数 audio : 音声データのバッファ数

Implementations§

Source§

impl OUTPUT_INFO

Source

pub const FLAG_VIDEO: i32 = 1

画像データあり

Source

pub const FLAG_AUDIO: i32 = 2

画像データあり

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.