Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Adjusting Pitch/Stride

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...

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?

0 Kudos
0 Replies