-
Notifications
You must be signed in to change notification settings - Fork 303
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
add surface hint for recon/reference/raw #344
Conversation
73bfa02
to
3de8b05
Compare
this surface hint is used to require usage hint for some codec , to optimize the memory footprint reconstruct surface is use another format for example, if input surface is AYUV for encode, it 444 format, backend driver maybe just use YUV to be reference, A is ignored to safe memory. in this scenario, application should not confuse the raw input surface and reconstruct/reference surface. Signed-off-by: Carl Zhang <[email protected]>
Information is enough. |
Here is some comments from the community: The basic question is why not handling it transparently (and not to introduce extra attribute). |
to make it transparent, it will bring a lot of effort, 1. need to record the real format information inside driver. 2. do not create real surface until it is was used, it is difficult to implement it, we we call vaCreateSurfaces, we even don't know the context, config... |
close it for intel/media-driver#915 |
Signed-off-by: Carl Zhang [email protected]