I am trying to use H265 HEVC Video decoder with MFT as described here:
https://msdn.microsoft.com/en-us/library/windows/desktop/mt218785(v=vs.85).aspx
Here is the code to create the decoder:
MFStartup(MF_VERSION, MFSTARTUP_FULL); CoCreateInstance(__uuidof(CMSH264DecoderMFT), NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(m_pDecoder)) MFCreateMediaType(&m_pInputStreamType); m_pInputStreamType->SetGUID(MF_MT_MAJOR_TYPE, MFMediaType_Video); m_pInputStreamType->SetGUID(MF_MT_SUBTYPE, MFVideoFormat_HEVC_ES); rc = m_pDecoder->SetInputType(0, m_pInputStreamType, 0);
It fails at the last statement, rc = 0xc00d36b4 : The data specified for the media type is invalid, inconsistent, or not supported by this object.
I am using Window10 professional. Is there a sample to show how the decoding could be done and output to a raw buffer?