-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
How to get YUV images from swapchain? #152
Comments
In that case you may need to modify and build the driver with a modified swap chain buffer to one which supports outputting the correct format, making sure the swap chain is properly formatted, at least that's my best guess as of right now. May I enquire to why you want to do this ? |
@bud3699 Thanks for your reply. For you question, I'm trying to use virtio gpu driver from intel to display Windows image in qemu.(see |
I guess lets break it down
Again, this is only theory, I'm still setting up my computer after a clean install of windows so I can't test as of now. I'm sorry if this didn't help |
@bud3699 Thanks a lot. |
Did it work ???? |
Sorry for the late response.But I didn't figure out this. When I read the Microsoft document about the function"IddCxSwapChainReleaseAndAcquireBuffer2", I found the remarks : So I'm not sure is there anything I can do to achive that. |
I originally got the RGBA data from Swapchain, but it took a long time to Copy and Map it on my CPU. Therefore, I want to try to take YUV data directly from Swapchain to see if the Copy time can be reduced by reducing the size of image data.
In the functions:
IddSampleEvtIddCxAdapterQueryTargetInfo
IddSampleEvtIddCxParseMonitorDescription2
IddSampleEvtIddCxMonitorQueryTargetModes2
I sets YCbCr422 = IDDCX_BITS_PER_COMPONENT_8 and Rgb = IDDCX_BITS_PER_COMPONENT_NONE to make the color format of the virtual display YCbCr422, which does work. The color format of the virtual display did change to YCbCr422 in Windows setting, but the data I got from SwapChain was still in RGBA format.
What can I do to get YUV data directly from SwapChain
The text was updated successfully, but these errors were encountered: