Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

IMFSourceReader and MFVideoFormat_NV12 subtype

$
0
0

I'm trying to get the RGB frames from a video using the IMFSourceReader, all works fine so far; but I've noticed the frame format returned by the IMFSample interface when the output subtype is MFVideoFormat_NV12 does not correspond with the description given in the documentation on:

http://msdn.microsoft.com/en-us/library/windows/desktop/dd206750%28v=vs.85%29.aspx

and actually corresponds to the YV12 format given on the same page.

That is, the NV12 data returned does not have the interleaved UV and channels, but instead has the halfsize U block and then the halfsize V block.

Just to be clear: this isn't a problem as I can handle both formats, but I'd like to know whether this a peculiarity of my machine or a consistent inconsistency(!) for when the software is deployed.

I'm running windows 7. MF_SDK_VERSION 0x0002 and MF_API_VERSION 0x0070


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>