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

Do not advertise support for nonexistent alpha channels in #950

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

weizhu-intel
Copy link
Contributor

decode/encode

Change decode/encode in YUV 4:4:4 formats to only support surfaces with
no alpha channel, since there is no alpha support.

Signed-off-by: Mark Thompson [email protected]

@@ -2279,20 +2294,20 @@ DdiMedia_CreateSurfaces2(
expected_fourcc = VA_FOURCC_Y216;
break;
case VA_RT_FORMAT_YUV444:
expected_fourcc = VA_FOURCC_444P;
expected_fourcc = VA_FOURCC_XYUV;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the decoder wants a VA_FOURCC_444P?
IIRC, JPEG decoding for 444P seems to require VA_FOURCC_444P. (I could be wrong since it's been some time since my last check)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks linjie's input.
I will use VA_FOURCC_444P as default for yuv444.
If you want to xyuv, you can use VA_FOURCC_XYUV directly.

@weizhu-intel weizhu-intel force-pushed the wayne_media branch 3 times, most recently from 5435330 to 9fdbb95 Compare May 29, 2020 08:52
 decode/encode

Change decode/encode in YUV 4:4:4 formats to only support surfaces with
no alpha channel, since there is no alpha support.

Signed-off-by: Mark Thompson <[email protected]>
Copy link
Contributor

@FurongZhang FurongZhang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please give some background of XV30 and XV48. Thanks in advance!

case Media_Format_Y410:
return VA_FOURCC_Y410;
case Media_Format_XV30:
return VA_FOURCC_XV30;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is XV30? XV48? Could you please provide some background of these definitions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FuRong,
Before our video driver advertise to support alpha channel, but actually not.
So now we remove all alpha channel support.
XV30 is for Y410, and XV48 is for Y416.

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

Successfully merging this pull request may close these issues.

3 participants