-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
The morph function causes many rectangles in the image #1407
Comments
Will check on it. Thanks for finding the issue. |
Hi, this is related to the full MDMA offload. In order to get that working I have MDMA reading from the same line buffer written by DMA2 over and over again. Assuming MDMA is able to flush it's internal fifo to SDRAM fast enough you don't see these graphical issues. However, if there's a backup then MDMA doesn't read the line in time before the next line starts over writing it. In less than full MDMA offload there's two line buffers which prevents the issue from happening. But, the processor now has to be interrupted per line. MDMA still offloads the processor form having to do the copy operation however. I made the full offload easy to turn off via: OMV_ENABLE_SENSOR_MDMA_TOTAL_OFFLOAD So, I'll set that to zero. Unfortunately, the only fix without doing this is to slow down the camera pixclk, use a larger resolution, or increase the horizontal blanking. The combo of what works changes all over the place. |
Why a single buffer for DMA2? Because MDMA can't be used in a more complex mode without a linked list struct per line to tell it what to do :/. Anyway, the only fix for this is to tune each camera settings to not have issues. |
Fixed: #1498 |
The morph function causes many rectangles in the image. It may be an algorithm error, or it may be a transmission error.
Seems to be related to resolution
code:
The text was updated successfully, but these errors were encountered: