Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clCreateFromVA_APIMediaSurfaceINTEL does NOT support VA_FOURCC_ABGR #739

Open
EmonLu opened this issue Jun 19, 2024 · 0 comments
Open

clCreateFromVA_APIMediaSurfaceINTEL does NOT support VA_FOURCC_ABGR #739

EmonLu opened this issue Jun 19, 2024 · 0 comments

Comments

@EmonLu
Copy link

EmonLu commented Jun 19, 2024

To create a opencl surface from libva surface, it fails when the color fomat is VA_FOURCC_ABGR. Added color format support as below, but the result still turns out to be wrong.
image

The background is to do JPEG encoding with Intel VPL. Basic steps are:

  1. export VPL surface
  2. define the exported as mfxSurfaceVAAPI described in https://github.com/intel/libvpl/blob/main/doc/surface_sharing_apis_overview.md
  3. create opencl memory object from mfxSurfaceVAAPI with clCreateFromVA_APIMediaSurfaceINTEL
  4. opencl kernel inference to implement RGB to BGRA conversion
  5. VPL do JPEG encoding

The demo works well for encodeParams.mfx.FrameInfo.FourCC = MFX_FOURCC_RGB4 result as below:
image

While for encodeParams.mfx.FrameInfo.FourCC = MFX_FOURCC_BGR4, it goes wrong:
image

As the only difference is the format support of clCreateFromVA_APIMediaSurfaceINTEL, so open an issue here to ask new feature added for VA_FOURCC_ABGR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant