UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:mfapi.MFInitVideoFormat_RGB |
MFInitVideoFormat_RGB function (mfapi.h) |
Initializes an MFVIDEOFORMAT structure for an uncompressed RGB video format. |
|
mf\mfinitvideoformat_rgb.htm |
mf |
4c437f26-6fe1-477d-9955-bc900215aa59 |
12/05/2018 |
4c437f26-6fe1-477d-9955-bc900215aa59, MFInitVideoFormat_RGB, MFInitVideoFormat_RGB function [Media Foundation], mf.mfinitvideoformat_rgb, mfapi/MFInitVideoFormat_RGB |
mfapi.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008 [desktop apps only] |
Evr.lib |
Mfplat.dll |
Windows |
19H1 |
|
|
|
|
|
|
[This API is not supported and may be altered or unavailable in the future. Applications should avoid using the MFVIDEOFORMAT structure, and use media type attributes instead. For more information, see Video Media Types.]
Initializes an MFVIDEOFORMAT structure for an uncompressed RGB video format.
A pointer to an MFVIDEOFORMAT structure. The functions fills in the structure members with the format information.
The width of the video, in pixels.
The height of the video, in pixels.
A D3DFORMAT value that specifies the RGB format.
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
This function fills in some reasonable default values for the specified RGB format.
Developers are encouraged to use media type attributes instead of using the MFVIDEOFORMAT structure. See Media Type Attributes.
In general, you should avoid calling this function. If you know all of the format details, you can fill in the MFVIDEOFORMAT structure without this function. If you do not know all of the format details, attributes are preferable to using the MFVIDEOFORMAT structure.