-
Notifications
You must be signed in to change notification settings - Fork 10.4k
ui: use YUV vipc stream #22905
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
ui: use YUV vipc stream #22905
Conversation
8e1f3e6 to
36d9846
Compare
b3159d5 to
1847f25
Compare
|
Is this ready for review? If not, what's missing? |
|
The only problem is c2 , do we need to use rgb on c2 and yuv on other devices? |
|
What do you mean by C2 is optimized for RGB? We want all devices to run the same code. |
|
how about EGLImageTexture? it's used for avoid rgb memory copy on C2, should we remove it? |
ed8bed6 to
1cbf5b8
Compare
|
You can remove it in this PR. We have to verify using the snapdragon profiler that the end result is the same or better. You should still be able to skip the copy on C2 right? |
|
let's keep it until find a general way to avoid copy |
|
Now there is an additional VISIONSTREAM RGB MAP, Can it be changed to yuv format? |
|
Not sure if it makes sense to convert that to YUV. Is it a problem to keep it as RGB for now? It's fine if displaying it in watch3 is inefficient, it only has to be viewed for debugging. |
|
it can't be displayed after this Pr. |
|
That's ok. I'll think of a way to display it again after merging this. Feel free to remove it from watch3 temporarily. |
|
The cpu usage on c2 is almost the same as before after use YUV stream . I think it's ready for review now. |
2d9c5c8 to
e581c6c
Compare
0951c9e to
9f01624
Compare
|
I did some profiling on this PR and it seems there is no real performance or memory benefit yet. Can you also look into the openCL kernels in camerad to use the yuv buffers, this should then allow to remove some of the used rgb buffers. |
|
To save on memory bandwidth we need to skip the intermediate step into an RGB buffer, and make the debayer step go straight to a YUV output buffer. Feel free to only do the C2 debayer kernel first, so we can profile and see it there are any actual benefits. |
No description provided.