- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does imsdk require mfxFrameSurface1::mfxFrameData::Pitch to be a multiple of 16/32? Or it can be any value >= Width * bytes_per_pixel?
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
So, it is allowed case: Width = 544, Pitch = 546, Y and U pointers are both 16-byte-aligned. Am I right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, for video memory the pitch must also be multiple of 16.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is Width = 544, Pitch = 560 allowed?
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