| 1 |
windows_link::link!("msdmo.dll" "system" fn DMOEnum(guidcategory : *const windows_sys::core::GUID, dwflags : u32, cintypes : u32, pintypes : *const DMO_PARTIAL_MEDIATYPE, couttypes : u32, pouttypes : *const DMO_PARTIAL_MEDIATYPE, ppenum : *mut * mut core::ffi::c_void) -> windows_sys::core::HRESULT); |
| 2 |
windows_link::link!("msdmo.dll" "system" fn DMOGetName(clsiddmo : *const windows_sys::core::GUID, szname : windows_sys::core::PWSTR) -> windows_sys::core::HRESULT); |
| 3 |
windows_link::link!("msdmo.dll" "system" fn DMOGetTypes(clsiddmo : *const windows_sys::core::GUID, ulinputtypesrequested : u32, pulinputtypessupplied : *mut u32, pinputtypes : *mut DMO_PARTIAL_MEDIATYPE, uloutputtypesrequested : u32, puloutputtypessupplied : *mut u32, poutputtypes : *mut DMO_PARTIAL_MEDIATYPE) -> windows_sys::core::HRESULT); |
| 4 |
windows_link::link!("msdmo.dll" "system" fn DMORegister(szname : windows_sys::core::PCWSTR, clsiddmo : *const windows_sys::core::GUID, guidcategory : *const windows_sys::core::GUID, dwflags : u32, cintypes : u32, pintypes : *const DMO_PARTIAL_MEDIATYPE, couttypes : u32, pouttypes : *const DMO_PARTIAL_MEDIATYPE) -> windows_sys::core::HRESULT); |
| 5 |
windows_link::link!("msdmo.dll" "system" fn DMOUnregister(clsiddmo : *const windows_sys::core::GUID, guidcategory : *const windows_sys::core::GUID) -> windows_sys::core::HRESULT); |
| 6 |
windows_link::link!("msdmo.dll" "system" fn MoCopyMediaType(pmtdest : *mut DMO_MEDIA_TYPE, pmtsrc : *const DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT); |
| 7 |
windows_link::link!("msdmo.dll" "system" fn MoCreateMediaType(ppmt : *mut *mut DMO_MEDIA_TYPE, cbformat : u32) -> windows_sys::core::HRESULT); |
| 8 |
windows_link::link!("msdmo.dll" "system" fn MoDeleteMediaType(pmt : *mut DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT); |
| 9 |
windows_link::link!("msdmo.dll" "system" fn MoDuplicateMediaType(ppmtdest : *mut *mut DMO_MEDIA_TYPE, pmtsrc : *const DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT); |
| 10 |
windows_link::link!("msdmo.dll" "system" fn MoFreeMediaType(pmt : *mut DMO_MEDIA_TYPE) -> windows_sys::core::HRESULT); |
| 11 |
windows_link::link!("msdmo.dll" "system" fn MoInitMediaType(pmt : *mut DMO_MEDIA_TYPE, cbformat : u32) -> windows_sys::core::HRESULT); |
| 12 |
pub const DMOCATEGORY_ACOUSTIC_ECHO_CANCEL: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xbf963d80_c559_11d0_8a2b_00a0c9255ac1); |
| 13 |
pub const DMOCATEGORY_AGC: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe88c9ba0_c557_11d0_8a2b_00a0c9255ac1); |
| 14 |
pub const DMOCATEGORY_AUDIO_CAPTURE_EFFECT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf665aaba_3e09_4920_aa5f_219811148f09); |
| 15 |
pub const DMOCATEGORY_AUDIO_DECODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x57f2db8b_e6bb_4513_9d43_dcd2a6593125); |
| 16 |
pub const DMOCATEGORY_AUDIO_EFFECT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xf3602b3f_0592_48df_a4cd_674721e7ebeb); |
| 17 |
pub const DMOCATEGORY_AUDIO_ENCODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x33d9a761_90c8_11d0_bd43_00a0c911ce86); |
| 18 |
pub const DMOCATEGORY_AUDIO_NOISE_SUPPRESS: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xe07f903f_62fd_4e60_8cdd_dea7236665b5); |
| 19 |
pub const DMOCATEGORY_VIDEO_DECODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4a69b442_28be_4991_969c_b500adf5d8a8); |
| 20 |
pub const DMOCATEGORY_VIDEO_EFFECT: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xd990ee14_776c_4723_be46_3da2f56f10b9); |
| 21 |
pub const DMOCATEGORY_VIDEO_ENCODER: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x33d9a760_90c8_11d0_bd43_00a0c911ce86); |
| 22 |
pub const DMO_ENUMF_INCLUDE_KEYED: DMO_ENUM_FLAGS = 1i32; |
| 23 |
pub type DMO_ENUM_FLAGS = i32; |
| 24 |
pub const DMO_E_INVALIDSTREAMINDEX: windows_sys::core::HRESULT = 0x80040201_u32 as _; |
| 25 |
pub const DMO_E_INVALIDTYPE: windows_sys::core::HRESULT = 0x80040202_u32 as _; |
| 26 |
pub const DMO_E_NOTACCEPTING: windows_sys::core::HRESULT = 0x80040204_u32 as _; |
| 27 |
pub const DMO_E_NO_MORE_ITEMS: windows_sys::core::HRESULT = 0x80040206_u32 as _; |
| 28 |
pub const DMO_E_TYPE_NOT_ACCEPTED: windows_sys::core::HRESULT = 0x80040205_u32 as _; |
| 29 |
pub const DMO_E_TYPE_NOT_SET: windows_sys::core::HRESULT = 0x80040203_u32 as _; |
| 30 |
pub const DMO_INPLACE_NORMAL: _DMO_INPLACE_PROCESS_FLAGS = 0i32; |
| 31 |
pub const DMO_INPLACE_ZERO: _DMO_INPLACE_PROCESS_FLAGS = 1i32; |
| 32 |
pub const DMO_INPUT_DATA_BUFFERF_DISCONTINUITY: _DMO_INPUT_DATA_BUFFER_FLAGS = 8i32; |
| 33 |
pub const DMO_INPUT_DATA_BUFFERF_SYNCPOINT: _DMO_INPUT_DATA_BUFFER_FLAGS = 1i32; |
| 34 |
pub const DMO_INPUT_DATA_BUFFERF_TIME: _DMO_INPUT_DATA_BUFFER_FLAGS = 2i32; |
| 35 |
pub const DMO_INPUT_DATA_BUFFERF_TIMELENGTH: _DMO_INPUT_DATA_BUFFER_FLAGS = 4i32; |
| 36 |
pub const DMO_INPUT_STATUSF_ACCEPT_DATA: _DMO_INPUT_STATUS_FLAGS = 1i32; |
| 37 |
pub const DMO_INPUT_STREAMF_FIXED_SAMPLE_SIZE: _DMO_INPUT_STREAM_INFO_FLAGS = 4i32; |
| 38 |
pub const DMO_INPUT_STREAMF_HOLDS_BUFFERS: _DMO_INPUT_STREAM_INFO_FLAGS = 8i32; |
| 39 |
pub const DMO_INPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER: _DMO_INPUT_STREAM_INFO_FLAGS = 2i32; |
| 40 |
pub const DMO_INPUT_STREAMF_WHOLE_SAMPLES: _DMO_INPUT_STREAM_INFO_FLAGS = 1i32; |
| 41 |
#[repr(C)] |
| 42 |
#[derive(Clone, Copy)] |
| 43 |
pub struct DMO_MEDIA_TYPE { |
| 44 |
pub majortype: windows_sys::core::GUID, |
| 45 |
pub subtype: windows_sys::core::GUID, |
| 46 |
pub bFixedSizeSamples: windows_sys::core::BOOL, |
| 47 |
pub bTemporalCompression: windows_sys::core::BOOL, |
| 48 |
pub lSampleSize: u32, |
| 49 |
pub formattype: windows_sys::core::GUID, |
| 50 |
pub pUnk: *mut core::ffi::c_void, |
| 51 |
pub cbFormat: u32, |
| 52 |
pub pbFormat: *mut u8, |
| 53 |
} |
| 54 |
impl Default for DMO_MEDIA_TYPE { |
| 55 |
fn default() -> Self { |
| 56 |
unsafe { core::mem::zeroed() } |
| 57 |
} |
| 58 |
} |
| 59 |
#[repr(C)] |
| 60 |
#[derive(Clone, Copy)] |
| 61 |
pub struct DMO_OUTPUT_DATA_BUFFER { |
| 62 |
pub pBuffer: *mut core::ffi::c_void, |
| 63 |
pub dwStatus: u32, |
| 64 |
pub rtTimestamp: i64, |
| 65 |
pub rtTimelength: i64, |
| 66 |
} |
| 67 |
impl Default for DMO_OUTPUT_DATA_BUFFER { |
| 68 |
fn default() -> Self { |
| 69 |
unsafe { core::mem::zeroed() } |
| 70 |
} |
| 71 |
} |
| 72 |
pub const DMO_OUTPUT_DATA_BUFFERF_DISCONTINUITY: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 8i32; |
| 73 |
pub const DMO_OUTPUT_DATA_BUFFERF_INCOMPLETE: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 16777216i32; |
| 74 |
pub const DMO_OUTPUT_DATA_BUFFERF_SYNCPOINT: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 1i32; |
| 75 |
pub const DMO_OUTPUT_DATA_BUFFERF_TIME: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 2i32; |
| 76 |
pub const DMO_OUTPUT_DATA_BUFFERF_TIMELENGTH: _DMO_OUTPUT_DATA_BUFFER_FLAGS = 4i32; |
| 77 |
pub const DMO_OUTPUT_STREAMF_DISCARDABLE: _DMO_OUTPUT_STREAM_INFO_FLAGS = 8i32; |
| 78 |
pub const DMO_OUTPUT_STREAMF_FIXED_SAMPLE_SIZE: _DMO_OUTPUT_STREAM_INFO_FLAGS = 4i32; |
| 79 |
pub const DMO_OUTPUT_STREAMF_OPTIONAL: _DMO_OUTPUT_STREAM_INFO_FLAGS = 16i32; |
| 80 |
pub const DMO_OUTPUT_STREAMF_SINGLE_SAMPLE_PER_BUFFER: _DMO_OUTPUT_STREAM_INFO_FLAGS = 2i32; |
| 81 |
pub const DMO_OUTPUT_STREAMF_WHOLE_SAMPLES: _DMO_OUTPUT_STREAM_INFO_FLAGS = 1i32; |
| 82 |
#[repr(C)] |
| 83 |
#[derive(Clone, Copy, Default)] |
| 84 |
pub struct DMO_PARTIAL_MEDIATYPE { |
| 85 |
pub r#type: windows_sys::core::GUID, |
| 86 |
pub subtype: windows_sys::core::GUID, |
| 87 |
} |
| 88 |
pub const DMO_PROCESS_OUTPUT_DISCARD_WHEN_NO_BUFFER: _DMO_PROCESS_OUTPUT_FLAGS = 1i32; |
| 89 |
pub const DMO_QUALITY_STATUS_ENABLED: _DMO_QUALITY_STATUS_FLAGS = 1i32; |
| 90 |
pub const DMO_REGISTERF_IS_KEYED: DMO_REGISTER_FLAGS = 1i32; |
| 91 |
pub type DMO_REGISTER_FLAGS = i32; |
| 92 |
pub const DMO_SET_TYPEF_CLEAR: _DMO_SET_TYPE_FLAGS = 2i32; |
| 93 |
pub const DMO_SET_TYPEF_TEST_ONLY: _DMO_SET_TYPE_FLAGS = 1i32; |
| 94 |
pub const DMO_VOSF_NEEDS_PREVIOUS_SAMPLE: _DMO_VIDEO_OUTPUT_STREAM_FLAGS = 1i32; |
| 95 |
pub type _DMO_INPLACE_PROCESS_FLAGS = i32; |
| 96 |
pub type _DMO_INPUT_DATA_BUFFER_FLAGS = i32; |
| 97 |
pub type _DMO_INPUT_STATUS_FLAGS = i32; |
| 98 |
pub type _DMO_INPUT_STREAM_INFO_FLAGS = i32; |
| 99 |
pub type _DMO_OUTPUT_DATA_BUFFER_FLAGS = i32; |
| 100 |
pub type _DMO_OUTPUT_STREAM_INFO_FLAGS = i32; |
| 101 |
pub type _DMO_PROCESS_OUTPUT_FLAGS = i32; |
| 102 |
pub type _DMO_QUALITY_STATUS_FLAGS = i32; |
| 103 |
pub type _DMO_SET_TYPE_FLAGS = i32; |
| 104 |
pub type _DMO_VIDEO_OUTPUT_STREAM_FLAGS = i32; |