Media (Intel® 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
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Pitch requirements

OTorg
New Contributor III
310 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
310 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
310 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
310 Views

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

0 Kudos
OTorg
New Contributor III
310 Views

Is Width = 544, Pitch = 560 allowed?

0 Kudos
Reply