You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The background is to do JPEG encoding with Intel VPL. Basic steps are:
create opencl memory object from mfxSurfaceVAAPI with clCreateFromVA_APIMediaSurfaceINTEL
opencl kernel inference to implement RGB to BGRA conversion
VPL do JPEG encoding
The demo works well for encodeParams.mfx.FrameInfo.FourCC = MFX_FOURCC_RGB4 result as below:
While for encodeParams.mfx.FrameInfo.FourCC = MFX_FOURCC_BGR4, it goes wrong:
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.
The text was updated successfully, but these errors were encountered:
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](https://private-user-images.githubusercontent.com/53183584/340883463-d71cd851-bb1b-47e2-8e30-7bd541cbbbfa.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NjE1NDYsIm5iZiI6MTcyNTY2MTI0NiwicGF0aCI6Ii81MzE4MzU4NC8zNDA4ODM0NjMtZDcxY2Q4NTEtYmIxYi00N2UyLThlMzAtN2JkNTQxY2JiYmZhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIyMjA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI4ZWZhNmNjODNhOTZiZWI2MDE4NDRjYzQ5OTQ0Y2NjN2JmMmRmMTI1ZDVjMTZlMDgwMjYzZGEyMDExYmRkMzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.oFcd57WRDJN0daEjP54NSiRo1qBxckC-Nw90pBEDIeY)
The background is to do JPEG encoding with Intel VPL. Basic steps are:
The demo works well for encodeParams.mfx.FrameInfo.FourCC = MFX_FOURCC_RGB4 result as below:
![image](https://private-user-images.githubusercontent.com/53183584/340885892-bac0e714-5be5-4f28-84ab-13979af47a5a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NjE1NDYsIm5iZiI6MTcyNTY2MTI0NiwicGF0aCI6Ii81MzE4MzU4NC8zNDA4ODU4OTItYmFjMGU3MTQtNWJlNS00ZjI4LTg0YWItMTM5NzlhZjQ3YTVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIyMjA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTU1MmI1NGQ0OGEyODk3ODViYTc3MDYwNjE0ZGQ0ODA3NjQ1MDZjMTMyYWVkNDJlN2QzZDQwZWY2M2QyZjYwMzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.VD6Pf8w53jBgPnF1fbNJTwxHRp1vgoaiCBAQp-46b9s)
While for encodeParams.mfx.FrameInfo.FourCC = MFX_FOURCC_BGR4, it goes wrong:
![image](https://private-user-images.githubusercontent.com/53183584/340885497-ea3f2542-ce3b-4f84-86f9-aec6001356e1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NjE1NDYsIm5iZiI6MTcyNTY2MTI0NiwicGF0aCI6Ii81MzE4MzU4NC8zNDA4ODU0OTctZWEzZjI1NDItY2UzYi00Zjg0LTg2ZjktYWVjNjAwMTM1NmUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA2VDIyMjA0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRkZGUwM2MwNDAyN2E4MjQwNDk0MjEzZmMxOTQyZWU5MzBlMzQ3ODY0YzdmOGIwZTdiMmNkMDA1NDhlYzUxZTgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.HSpMUeteUrGDw91XD-Tkot72sWdBt9GYPOUeCRLMwSU)
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.
The text was updated successfully, but these errors were encountered: