Media (Intel® oneAPI Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools from Intel. This includes Intel® oneAPI Video Processing Library and Intel® Media SDK.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Pitch requirements

OTorg
New Contributor III
92 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
92 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).

OTorg
New Contributor III
92 Views

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

Anthony_P_Intel
Employee
92 Views

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

OTorg
New Contributor III
92 Views

Is Width = 544, Pitch = 560 allowed?

Reply