Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK

Pitch requirements

OTorg
New Contributor III
146 Views

Does imsdk require mfxFrameSurface1::mfxFrameData::Pitch to be a multiple of 16/32? Or it can be any value >= Width * bytes_per_pixel?

0 Kudos
4 Replies
Anthony_P_Intel
Employee
146 Views

The pitch must be the number of bytes between the start of two consecutive rows in a frame, and the memory allocation of frames must use multiple of 16 for width (generally a hardware requirement for memory allocation of surfaces in video memory).

0 Kudos
OTorg
New Contributor III
146 Views

So, it is allowed case: Width = 544, Pitch = 546, Y and U pointers are both 16-byte-aligned. Am I right?

0 Kudos
Anthony_P_Intel
Employee
146 Views

No, for video memory the pitch must also be multiple of 16. 

0 Kudos
OTorg
New Contributor III
146 Views

Is Width = 544, Pitch = 560 allowed?

0 Kudos
Reply