Skip to content
Snippets Groups Projects

va: allocator: Decide the use derived flag when set_format().

Merged He Junyan requested to merge He_Junyan/gst-plugins-bad:va_allocator_derive into master

The current allocator does not set use_derived flag to check the video info when set_format(). So it always creates a new image and updates the video info based on that. But When mapping the surface later, the image may derive from the surface. This causes a latent issue. On some platform, the image created by vaCreateImage has different pitch and stride from the image derived by vaDeriveImage. The surface is used by GPU HW and may have more limitation, such as size, stride and pitch. So when the image derived from that surface, its info is different from the new created one. We should decide the use_derived flag at allocator's init time.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading