- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am writing a Directshow H264 decoder using the IPP. The downstream renderer will often require a different pitch. When using YUV formats (YV12 in my case) Ifound through a mix of educated guesses and experimentation thatthe following code worked.
VideoData DataOut;
....
// if new stride proposed by downstream filter...
VideoData DataOut;
....
// if new stride proposed by downstream filter...
DataOut.SetPlanePitch(m_pitch/2, 2);
DataOut.SetPlanePitch(m_pitch/2, 1);
DataOut.SetPlanePitch(m_pitch, 0);
RGB24 on the other hand has only one plane.
Is there a 'cleaner' i.e. more general way to know how to do this based on the type? Is this documented anywhere?
Link Copied
0 Replies
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page