@@ -1422,17 +1422,17 @@ impl VideoFrame {
1422
1422
#[cfg(feature="windows-graphics")] #[inline] pub fn create_with_alpha(format: super::graphics::imaging::BitmapPixelFormat, width: i32, height: i32, alpha: super::graphics::imaging::BitmapAlphaMode) -> Result<ComPtr<VideoFrame>> {
1423
1423
<Self as RtActivatable<IVideoFrameFactory>>::get_activation_factory().create_with_alpha(format, width, height, alpha)
1424
1424
}
1425
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d_11_surface_backed (format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32) -> Result<Option<ComPtr<VideoFrame>>> {
1426
- <Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_as_direct3d_11_surface_backed (format, width, height)
1425
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d11_surface_backed (format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32) -> Result<Option<ComPtr<VideoFrame>>> {
1426
+ <Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_as_direct3d11_surface_backed (format, width, height)
1427
1427
}
1428
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d_11_surface_backed_with_device (format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32, device: &super::graphics::directx::direct3d11::IDirect3DDevice) -> Result<Option<ComPtr<VideoFrame>>> {
1429
- <Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_as_direct3d_11_surface_backed_with_device (format, width, height, device)
1428
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d11_surface_backed_with_device (format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32, device: &super::graphics::directx::direct3d11::IDirect3DDevice) -> Result<Option<ComPtr<VideoFrame>>> {
1429
+ <Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_as_direct3d11_surface_backed_with_device (format, width, height, device)
1430
1430
}
1431
1431
#[cfg(feature="windows-graphics")] #[inline] pub fn create_with_software_bitmap(bitmap: &super::graphics::imaging::SoftwareBitmap) -> Result<Option<ComPtr<VideoFrame>>> {
1432
1432
<Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_with_software_bitmap(bitmap)
1433
1433
}
1434
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_with_direct3d_11_surface (surface: &super::graphics::directx::direct3d11::IDirect3DSurface) -> Result<Option<ComPtr<VideoFrame>>> {
1435
- <Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_with_direct3d_11_surface (surface)
1434
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_with_direct3d11_surface (surface: &super::graphics::directx::direct3d11::IDirect3DSurface) -> Result<Option<ComPtr<VideoFrame>>> {
1435
+ <Self as RtActivatable<IVideoFrameStatics>>::get_activation_factory().create_with_direct3d11_surface (surface)
1436
1436
}
1437
1437
}
1438
1438
DEFINE_CLSID!(VideoFrame(&[87,105,110,100,111,119,115,46,77,101,100,105,97,46,86,105,100,101,111,70,114,97,109,101,0]) [CLSID_VideoFrame]);
@@ -1472,12 +1472,12 @@ RT_INTERFACE!{static interface IVideoFrameStatics(IVideoFrameStaticsVtbl): IInsp
1472
1472
#[cfg(feature="windows-graphics")] fn CreateWithDirect3D11Surface(&self, surface: *mut super::graphics::directx::direct3d11::IDirect3DSurface, out: *mut *mut VideoFrame) -> HRESULT
1473
1473
}}
1474
1474
impl IVideoFrameStatics {
1475
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d_11_surface_backed (&self, format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32) -> Result<Option<ComPtr<VideoFrame>>> { unsafe {
1475
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d11_surface_backed (&self, format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32) -> Result<Option<ComPtr<VideoFrame>>> { unsafe {
1476
1476
let mut out = null_mut();
1477
1477
let hr = ((*self.lpVtbl).CreateAsDirect3D11SurfaceBacked)(self as *const _ as *mut _, format, width, height, &mut out);
1478
1478
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
1479
1479
}}
1480
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d_11_surface_backed_with_device (&self, format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32, device: &super::graphics::directx::direct3d11::IDirect3DDevice) -> Result<Option<ComPtr<VideoFrame>>> { unsafe {
1480
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_as_direct3d11_surface_backed_with_device (&self, format: super::graphics::directx::DirectXPixelFormat, width: i32, height: i32, device: &super::graphics::directx::direct3d11::IDirect3DDevice) -> Result<Option<ComPtr<VideoFrame>>> { unsafe {
1481
1481
let mut out = null_mut();
1482
1482
let hr = ((*self.lpVtbl).CreateAsDirect3D11SurfaceBackedWithDevice)(self as *const _ as *mut _, format, width, height, device as *const _ as *mut _, &mut out);
1483
1483
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
@@ -1487,7 +1487,7 @@ impl IVideoFrameStatics {
1487
1487
let hr = ((*self.lpVtbl).CreateWithSoftwareBitmap)(self as *const _ as *mut _, bitmap as *const _ as *mut _, &mut out);
1488
1488
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
1489
1489
}}
1490
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_with_direct3d_11_surface (&self, surface: &super::graphics::directx::direct3d11::IDirect3DSurface) -> Result<Option<ComPtr<VideoFrame>>> { unsafe {
1490
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_with_direct3d11_surface (&self, surface: &super::graphics::directx::direct3d11::IDirect3DSurface) -> Result<Option<ComPtr<VideoFrame>>> { unsafe {
1491
1491
let mut out = null_mut();
1492
1492
let hr = ((*self.lpVtbl).CreateWithDirect3D11Surface)(self as *const _ as *mut _, surface as *const _ as *mut _, &mut out);
1493
1493
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
@@ -7853,7 +7853,7 @@ RT_INTERFACE!{interface IMediaCaptureSettings3(IMediaCaptureSettings3Vtbl): IIns
7853
7853
#[cfg(feature="windows-graphics")] fn get_Direct3D11Device(&self, out: *mut *mut super::super::graphics::directx::direct3d11::IDirect3DDevice) -> HRESULT
7854
7854
}}
7855
7855
impl IMediaCaptureSettings3 {
7856
- #[cfg(feature="windows-graphics")] #[inline] pub fn get_direct3d_11_device (&self) -> Result<Option<ComPtr<super::super::graphics::directx::direct3d11::IDirect3DDevice>>> { unsafe {
7856
+ #[cfg(feature="windows-graphics")] #[inline] pub fn get_direct3d11_device (&self) -> Result<Option<ComPtr<super::super::graphics::directx::direct3d11::IDirect3DDevice>>> { unsafe {
7857
7857
let mut out = null_mut();
7858
7858
let hr = ((*self.lpVtbl).get_Direct3D11Device)(self as *const _ as *mut _, &mut out);
7859
7859
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
@@ -11704,8 +11704,8 @@ impl MediaStreamSample {
11704
11704
#[cfg(feature="windows-storage")] #[inline] pub fn create_from_stream_async(stream: &super::super::storage::streams::IInputStream, count: u32, timestamp: foundation::TimeSpan) -> Result<ComPtr<foundation::IAsyncOperation<MediaStreamSample>>> {
11705
11705
<Self as RtActivatable<IMediaStreamSampleStatics>>::get_activation_factory().create_from_stream_async(stream, count, timestamp)
11706
11706
}
11707
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_from_direct3d_11_surface (surface: &super::super::graphics::directx::direct3d11::IDirect3DSurface, timestamp: foundation::TimeSpan) -> Result<Option<ComPtr<MediaStreamSample>>> {
11708
- <Self as RtActivatable<IMediaStreamSampleStatics2>>::get_activation_factory().create_from_direct3d_11_surface (surface, timestamp)
11707
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_from_direct3d11_surface (surface: &super::super::graphics::directx::direct3d11::IDirect3DSurface, timestamp: foundation::TimeSpan) -> Result<Option<ComPtr<MediaStreamSample>>> {
11708
+ <Self as RtActivatable<IMediaStreamSampleStatics2>>::get_activation_factory().create_from_direct3d11_surface (surface, timestamp)
11709
11709
}
11710
11710
}
11711
11711
DEFINE_CLSID!(MediaStreamSample(&[87,105,110,100,111,119,115,46,77,101,100,105,97,46,67,111,114,101,46,77,101,100,105,97,83,116,114,101,97,109,83,97,109,112,108,101,0]) [CLSID_MediaStreamSample]);
@@ -11714,7 +11714,7 @@ RT_INTERFACE!{interface IMediaStreamSample2(IMediaStreamSample2Vtbl): IInspectab
11714
11714
#[cfg(feature="windows-graphics")] fn get_Direct3D11Surface(&self, out: *mut *mut super::super::graphics::directx::direct3d11::IDirect3DSurface) -> HRESULT
11715
11715
}}
11716
11716
impl IMediaStreamSample2 {
11717
- #[cfg(feature="windows-graphics")] #[inline] pub fn get_direct3d_11_surface (&self) -> Result<Option<ComPtr<super::super::graphics::directx::direct3d11::IDirect3DSurface>>> { unsafe {
11717
+ #[cfg(feature="windows-graphics")] #[inline] pub fn get_direct3d11_surface (&self) -> Result<Option<ComPtr<super::super::graphics::directx::direct3d11::IDirect3DSurface>>> { unsafe {
11718
11718
let mut out = null_mut();
11719
11719
let hr = ((*self.lpVtbl).get_Direct3D11Surface)(self as *const _ as *mut _, &mut out);
11720
11720
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
@@ -11782,7 +11782,7 @@ RT_INTERFACE!{static interface IMediaStreamSampleStatics2(IMediaStreamSampleStat
11782
11782
#[cfg(feature="windows-graphics")] fn CreateFromDirect3D11Surface(&self, surface: *mut super::super::graphics::directx::direct3d11::IDirect3DSurface, timestamp: foundation::TimeSpan, out: *mut *mut MediaStreamSample) -> HRESULT
11783
11783
}}
11784
11784
impl IMediaStreamSampleStatics2 {
11785
- #[cfg(feature="windows-graphics")] #[inline] pub fn create_from_direct3d_11_surface (&self, surface: &super::super::graphics::directx::direct3d11::IDirect3DSurface, timestamp: foundation::TimeSpan) -> Result<Option<ComPtr<MediaStreamSample>>> { unsafe {
11785
+ #[cfg(feature="windows-graphics")] #[inline] pub fn create_from_direct3d11_surface (&self, surface: &super::super::graphics::directx::direct3d11::IDirect3DSurface, timestamp: foundation::TimeSpan) -> Result<Option<ComPtr<MediaStreamSample>>> { unsafe {
11786
11786
let mut out = null_mut();
11787
11787
let hr = ((*self.lpVtbl).CreateFromDirect3D11Surface)(self as *const _ as *mut _, surface as *const _ as *mut _, timestamp, &mut out);
11788
11788
if hr == S_OK { Ok(ComPtr::wrap_optional(out)) } else { err(hr) }
0 commit comments