-
Notifications
You must be signed in to change notification settings - Fork 346
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.
5435330
to
9fdbb95
Compare
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]>
There was a problem hiding this 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; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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]