Skip to main content

CACHE_HANDLE

Struct CACHE_HANDLE 

Source
#[repr(C)]
pub struct CACHE_HANDLE {
Show 13 fields pub get_image_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR) -> CACHE_IMAGE, pub create_image_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR, width: i32, height: i32) -> CACHE_IMAGE, pub get_audio_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR) -> CACHE_AUDIO, pub create_audio_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR, sample_num: i32, channel_num: i32) -> CACHE_AUDIO, pub deprecated_get_image_file_cache: unsafe extern "C" fn(file: LPCWSTR) -> CACHE_IMAGE, pub get_video_file_info: unsafe extern "C" fn(file: LPCWSTR, info: *mut VIDEO_INFO, info_size: i32) -> bool, pub get_audio_file_info: unsafe extern "C" fn(file: LPCWSTR, info: *mut AUDIO_INFO, info_size: i32) -> bool, pub get_image_file_cache: unsafe extern "C" fn(file: LPCWSTR) -> CACHE_FILE_IMAGE, pub get_video_file_cache: unsafe extern "C" fn(file: LPCWSTR, track: i32, frame: i32) -> CACHE_FILE_IMAGE, pub get_video_file_cache_by_time: unsafe extern "C" fn(file: LPCWSTR, track: i32, time: f64) -> CACHE_FILE_IMAGE, pub get_audio_file_data: unsafe extern "C" fn(file: LPCWSTR, track: i32, sample_index: i64, sample_num: i32, buffer0: *mut f32, buffer1: *mut f32) -> i32, pub clear_image_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR), pub clear_audio_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR),
}
Expand description

キャッシュハンドル

Fields§

§get_image_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR) -> CACHE_IMAGE

画像キャッシュデータを取得する

§create_image_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR, width: i32, height: i32) -> CACHE_IMAGE

画像キャッシュデータを作成する

§get_audio_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR) -> CACHE_AUDIO

音声キャッシュデータを取得する

§create_audio_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR, sample_num: i32, channel_num: i32) -> CACHE_AUDIO

音声キャッシュデータを作成する

§deprecated_get_image_file_cache: unsafe extern "C" fn(file: LPCWSTR) -> CACHE_IMAGE

新しい関数に差し替えるので廃止します

§get_video_file_info: unsafe extern "C" fn(file: LPCWSTR, info: *mut VIDEO_INFO, info_size: i32) -> bool

メディアファイルのビデオ情報を取得する

§get_audio_file_info: unsafe extern "C" fn(file: LPCWSTR, info: *mut AUDIO_INFO, info_size: i32) -> bool

メディアファイルのオーディオ情報を取得する

§get_image_file_cache: unsafe extern "C" fn(file: LPCWSTR) -> CACHE_FILE_IMAGE

画像ファイルから画像データをキャッシュ経由で取得する

§get_video_file_cache: unsafe extern "C" fn(file: LPCWSTR, track: i32, frame: i32) -> CACHE_FILE_IMAGE

メディアファイルから画像データをキャッシュ経由で取得する

§get_video_file_cache_by_time: unsafe extern "C" fn(file: LPCWSTR, track: i32, time: f64) -> CACHE_FILE_IMAGE

メディアファイルから画像データをキャッシュ経由で取得する

§get_audio_file_data: unsafe extern "C" fn(file: LPCWSTR, track: i32, sample_index: i64, sample_num: i32, buffer0: *mut f32, buffer1: *mut f32) -> i32

メディアファイルから音声データをキャッシュ経由で取得する

§clear_image_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR)

画像キャッシュデータをクリアする

§clear_audio_cache: unsafe extern "C" fn(identifier: *mut c_void, name: LPCWSTR)

音声キャッシュデータをクリアする

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.