Struct mltg_bindings::Windows::Win32::Graphics::Direct3D11::ID3D11VideoContext3 [−][src]
#[repr(transparent)]pub struct ID3D11VideoContext3(_);
Implementations
pub unsafe fn GetPrivateData(
&self,
guid: *const Guid,
pdatasize: *mut u32,
pdata: *mut c_void
) -> Result<()>
pub unsafe fn SetPrivateData(
&self,
guid: *const Guid,
datasize: u32,
pdata: *const c_void
) -> Result<()>
pub unsafe fn SetPrivateDataInterface<'a>(
&self,
guid: *const Guid,
pdata: impl IntoParam<'a, IUnknown>
) -> Result<()>
pub unsafe fn GetDecoderBuffer<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
type: D3D11_VIDEO_DECODER_BUFFER_TYPE,
pbuffersize: *mut u32,
ppbuffer: *mut *mut c_void
) -> Result<()>
pub unsafe fn ReleaseDecoderBuffer<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
type: D3D11_VIDEO_DECODER_BUFFER_TYPE
) -> Result<()>
pub unsafe fn DecoderBeginFrame<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
pview: impl IntoParam<'a, ID3D11VideoDecoderOutputView>,
contentkeysize: u32,
pcontentkey: *const c_void
) -> Result<()>
pub unsafe fn DecoderEndFrame<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>
) -> Result<()>
pub unsafe fn SubmitDecoderBuffers<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
numbuffers: u32,
pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC
) -> Result<()>
pub unsafe fn DecoderExtension<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
pextensiondata: *const D3D11_VIDEO_DECODER_EXTENSION
) -> i32
pub unsafe fn VideoProcessorSetOutputTargetRect<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
enable: impl IntoParam<'a, BOOL>,
prect: *const RECT
)
pub unsafe fn VideoProcessorSetOutputBackgroundColor<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
ycbcr: impl IntoParam<'a, BOOL>,
pcolor: *const D3D11_VIDEO_COLOR
)
pub unsafe fn VideoProcessorSetOutputColorSpace<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
)
pub unsafe fn VideoProcessorSetOutputAlphaFillMode<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
alphafillmode: D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE,
streamindex: u32
)
pub unsafe fn VideoProcessorSetOutputConstriction<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
enable: impl IntoParam<'a, BOOL>,
size: impl IntoParam<'a, SIZE>
)
pub unsafe fn VideoProcessorSetOutputStereoMode<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
enable: impl IntoParam<'a, BOOL>
)
pub unsafe fn VideoProcessorSetOutputExtension<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pextensionguid: *const Guid,
datasize: u32,
pdata: *mut c_void
) -> i32
pub unsafe fn VideoProcessorGetOutputTargetRect<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
enabled: *mut BOOL,
prect: *mut RECT
)
pub unsafe fn VideoProcessorGetOutputBackgroundColor<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pycbcr: *mut BOOL,
pcolor: *mut D3D11_VIDEO_COLOR
)
pub unsafe fn VideoProcessorGetOutputColorSpace<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE
)
pub unsafe fn VideoProcessorGetOutputAlphaFillMode<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
palphafillmode: *mut D3D11_VIDEO_PROCESSOR_ALPHA_FILL_MODE,
pstreamindex: *mut u32
)
pub unsafe fn VideoProcessorGetOutputConstriction<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
penabled: *mut BOOL,
psize: *mut SIZE
)
pub unsafe fn VideoProcessorGetOutputStereoMode<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
penabled: *mut BOOL
)
pub unsafe fn VideoProcessorGetOutputExtension<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pextensionguid: *const Guid,
datasize: u32,
pdata: *mut c_void
) -> i32
pub unsafe fn VideoProcessorSetStreamFrameFormat<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
frameformat: D3D11_VIDEO_FRAME_FORMAT
)
pub unsafe fn VideoProcessorSetStreamColorSpace<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
pcolorspace: *const D3D11_VIDEO_PROCESSOR_COLOR_SPACE
)
pub unsafe fn VideoProcessorSetStreamOutputRate<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
outputrate: D3D11_VIDEO_PROCESSOR_OUTPUT_RATE,
repeatframe: impl IntoParam<'a, BOOL>,
pcustomrate: *const DXGI_RATIONAL
)
pub unsafe fn VideoProcessorSetStreamSourceRect<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
prect: *const RECT
)
pub unsafe fn VideoProcessorSetStreamDestRect<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
prect: *const RECT
)
pub unsafe fn VideoProcessorSetStreamAlpha<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
alpha: f32
)
pub unsafe fn VideoProcessorSetStreamPalette<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
count: u32,
pentries: *const u32
)
pub unsafe fn VideoProcessorSetStreamPixelAspectRatio<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
psourceaspectratio: *const DXGI_RATIONAL,
pdestinationaspectratio: *const DXGI_RATIONAL
)
pub unsafe fn VideoProcessorSetStreamLumaKey<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
lower: f32,
upper: f32
)
pub unsafe fn VideoProcessorSetStreamStereoFormat<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
format: D3D11_VIDEO_PROCESSOR_STEREO_FORMAT,
leftviewframe0: impl IntoParam<'a, BOOL>,
baseviewframe0: impl IntoParam<'a, BOOL>,
flipmode: D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE,
monooffset: i32
)
pub unsafe fn VideoProcessorSetStreamAutoProcessingMode<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>
)
pub unsafe fn VideoProcessorSetStreamFilter<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
filter: D3D11_VIDEO_PROCESSOR_FILTER,
enable: impl IntoParam<'a, BOOL>,
level: i32
)
pub unsafe fn VideoProcessorSetStreamExtension<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
pextensionguid: *const Guid,
datasize: u32,
pdata: *mut c_void
) -> i32
pub unsafe fn VideoProcessorGetStreamFrameFormat<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
pframeformat: *mut D3D11_VIDEO_FRAME_FORMAT
)
pub unsafe fn VideoProcessorGetStreamColorSpace<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
pcolorspace: *mut D3D11_VIDEO_PROCESSOR_COLOR_SPACE
)
pub unsafe fn VideoProcessorGetStreamOutputRate<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
poutputrate: *mut D3D11_VIDEO_PROCESSOR_OUTPUT_RATE,
prepeatframe: *mut BOOL,
pcustomrate: *mut DXGI_RATIONAL
)
pub unsafe fn VideoProcessorGetStreamSourceRect<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penabled: *mut BOOL,
prect: *mut RECT
)
pub unsafe fn VideoProcessorGetStreamDestRect<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penabled: *mut BOOL,
prect: *mut RECT
)
pub unsafe fn VideoProcessorGetStreamAlpha<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penabled: *mut BOOL,
palpha: *mut f32
)
pub unsafe fn VideoProcessorGetStreamPalette<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
count: u32,
pentries: *mut u32
)
pub unsafe fn VideoProcessorGetStreamPixelAspectRatio<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penabled: *mut BOOL,
psourceaspectratio: *mut DXGI_RATIONAL,
pdestinationaspectratio: *mut DXGI_RATIONAL
)
pub unsafe fn VideoProcessorGetStreamLumaKey<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penabled: *mut BOOL,
plower: *mut f32,
pupper: *mut f32
)
pub unsafe fn VideoProcessorGetStreamStereoFormat<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penable: *mut BOOL,
pformat: *mut D3D11_VIDEO_PROCESSOR_STEREO_FORMAT,
pleftviewframe0: *mut BOOL,
pbaseviewframe0: *mut BOOL,
pflipmode: *mut D3D11_VIDEO_PROCESSOR_STEREO_FLIP_MODE,
monooffset: *mut i32
)
pub unsafe fn VideoProcessorGetStreamAutoProcessingMode<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penabled: *mut BOOL
)
pub unsafe fn VideoProcessorGetStreamFilter<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
filter: D3D11_VIDEO_PROCESSOR_FILTER,
penabled: *mut BOOL,
plevel: *mut i32
)
pub unsafe fn VideoProcessorGetStreamExtension<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
pextensionguid: *const Guid,
datasize: u32,
pdata: *mut c_void
) -> i32
pub unsafe fn VideoProcessorBlt<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pview: impl IntoParam<'a, ID3D11VideoProcessorOutputView>,
outputframe: u32,
streamcount: u32,
pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM
) -> Result<()>
pub unsafe fn NegotiateCryptoSessionKeyExchange<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>,
datasize: u32,
pdata: *mut c_void
) -> Result<()>
pub unsafe fn EncryptionBlt<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>,
psrcsurface: impl IntoParam<'a, ID3D11Texture2D>,
pdstsurface: impl IntoParam<'a, ID3D11Texture2D>,
ivsize: u32,
piv: *mut c_void
)
pub unsafe fn DecryptionBlt<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>,
psrcsurface: impl IntoParam<'a, ID3D11Texture2D>,
pdstsurface: impl IntoParam<'a, ID3D11Texture2D>,
pencryptedblockinfo: *mut D3D11_ENCRYPTED_BLOCK_INFO,
contentkeysize: u32,
pcontentkey: *const c_void,
ivsize: u32,
piv: *mut c_void
)
pub unsafe fn StartSessionKeyRefresh<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>,
randomnumbersize: u32,
prandomnumber: *mut c_void
)
pub unsafe fn FinishSessionKeyRefresh<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>
)
pub unsafe fn GetEncryptionBltKey<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>,
keysize: u32,
preadbackkey: *mut c_void
) -> Result<()>
pub unsafe fn NegotiateAuthenticatedChannelKeyExchange<'a>(
&self,
pchannel: impl IntoParam<'a, ID3D11AuthenticatedChannel>,
datasize: u32,
pdata: *mut c_void
) -> Result<()>
pub unsafe fn QueryAuthenticatedChannel<'a>(
&self,
pchannel: impl IntoParam<'a, ID3D11AuthenticatedChannel>,
inputsize: u32,
pinput: *const c_void,
outputsize: u32,
poutput: *mut c_void
) -> Result<()>
pub unsafe fn ConfigureAuthenticatedChannel<'a>(
&self,
pchannel: impl IntoParam<'a, ID3D11AuthenticatedChannel>,
inputsize: u32,
pinput: *const c_void
) -> Result<D3D11_AUTHENTICATED_CONFIGURE_OUTPUT>
pub unsafe fn VideoProcessorSetStreamRotation<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
rotation: D3D11_VIDEO_PROCESSOR_ROTATION
)
pub unsafe fn VideoProcessorGetStreamRotation<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penable: *mut BOOL,
protation: *mut D3D11_VIDEO_PROCESSOR_ROTATION
)
pub unsafe fn SubmitDecoderBuffers1<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
numbuffers: u32,
pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC1
) -> Result<()>
pub unsafe fn GetDataForNewHardwareKey<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>,
privateinputsize: u32,
pprivatinputdata: *const c_void
) -> Result<u64>
pub unsafe fn CheckCryptoSessionStatus<'a>(
&self,
pcryptosession: impl IntoParam<'a, ID3D11CryptoSession>
) -> Result<D3D11_CRYPTO_SESSION_STATUS>
pub unsafe fn DecoderEnableDownsampling<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
inputcolorspace: DXGI_COLOR_SPACE_TYPE,
poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC,
referenceframecount: u32
) -> Result<()>
pub unsafe fn DecoderUpdateDownsampling<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
poutputdesc: *const D3D11_VIDEO_SAMPLE_DESC
) -> Result<()>
pub unsafe fn VideoProcessorSetOutputColorSpace1<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
colorspace: DXGI_COLOR_SPACE_TYPE
)
pub unsafe fn VideoProcessorSetOutputShaderUsage<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
shaderusage: impl IntoParam<'a, BOOL>
)
pub unsafe fn VideoProcessorGetOutputColorSpace1<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pcolorspace: *mut DXGI_COLOR_SPACE_TYPE
)
pub unsafe fn VideoProcessorGetOutputShaderUsage<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
pshaderusage: *mut BOOL
)
pub unsafe fn VideoProcessorSetStreamColorSpace1<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
colorspace: DXGI_COLOR_SPACE_TYPE
)
pub unsafe fn VideoProcessorSetStreamMirror<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
enable: impl IntoParam<'a, BOOL>,
fliphorizontal: impl IntoParam<'a, BOOL>,
flipvertical: impl IntoParam<'a, BOOL>
)
pub unsafe fn VideoProcessorGetStreamColorSpace1<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
pcolorspace: *mut DXGI_COLOR_SPACE_TYPE
)
pub unsafe fn VideoProcessorGetStreamMirror<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
penable: *mut BOOL,
pfliphorizontal: *mut BOOL,
pflipvertical: *mut BOOL
)
pub unsafe fn VideoProcessorGetBehaviorHints<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
outputwidth: u32,
outputheight: u32,
outputformat: DXGI_FORMAT,
streamcount: u32,
pstreams: *const D3D11_VIDEO_PROCESSOR_STREAM_BEHAVIOR_HINT
) -> Result<u32>
pub unsafe fn VideoProcessorSetOutputHDRMetaData<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
type: DXGI_HDR_METADATA_TYPE,
size: u32,
phdrmetadata: *const c_void
)
pub unsafe fn VideoProcessorGetOutputHDRMetaData<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
ptype: *mut DXGI_HDR_METADATA_TYPE,
size: u32,
pmetadata: *mut c_void
)
pub unsafe fn VideoProcessorSetStreamHDRMetaData<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
type: DXGI_HDR_METADATA_TYPE,
size: u32,
phdrmetadata: *const c_void
)
pub unsafe fn VideoProcessorGetStreamHDRMetaData<'a>(
&self,
pvideoprocessor: impl IntoParam<'a, ID3D11VideoProcessor>,
streamindex: u32,
ptype: *mut DXGI_HDR_METADATA_TYPE,
size: u32,
pmetadata: *mut c_void
)
pub unsafe fn DecoderBeginFrame1<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
pview: impl IntoParam<'a, ID3D11VideoDecoderOutputView>,
contentkeysize: u32,
pcontentkey: *const c_void,
numcomponenthistograms: u32,
phistogramoffsets: *const u32,
pphistogrambuffers: *mut Option<ID3D11Buffer>
) -> Result<()>
pub unsafe fn SubmitDecoderBuffers2<'a>(
&self,
pdecoder: impl IntoParam<'a, ID3D11VideoDecoder>,
numbuffers: u32,
pbufferdesc: *const D3D11_VIDEO_DECODER_BUFFER_DESC2
) -> Result<()>
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ID3D11VideoContext3
impl !Send for ID3D11VideoContext3
impl !Sync for ID3D11VideoContext3
impl Unpin for ID3D11VideoContext3
impl UnwindSafe for ID3D11VideoContext3
Blanket Implementations
type DefaultType = Option<T>
Converts from Self::DefaultType
to Result<T>
.
Returns a pointer for setting the object’s value via an ABI call.
Mutably borrows from an owned value. Read more