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
Wrong byte order for RGB565 #422
Labels
Comments
Yes, my test here is the same as yours. The problem may be caused by the wrong byte order of the |
Ok, thanks for confirming! I'll make a PR tomorrow
…On Wed, Jul 20, 2022, 11:33 PM yuxinwww ***@***.***> wrote:
Yes, my test here is the same as yours. The problem may be caused by the
wrong byte order of the jpg2rgb565() function, because when the camera
outputs data in standard RGB format, the fmt2jpg() function is normal.
—
Reply to this email directly, view it on GitHub
<#422 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGKJRO5AZWGFJR37H3S7MJLVVDAKJANCNFSM532W4Z3Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
r-downing
added a commit
to r-downing/esp32-camera
that referenced
this issue
Jul 21, 2022
This issue appears to be stale. Please close it if its no longer valid. |
Bump. |
This issue appears to be stale. Please close it if its no longer valid. |
JojoS62
pushed a commit
to JojoS62/esp32-camera
that referenced
this issue
Jun 8, 2023
Resolves espressif#177, resolves espressif#422
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I take a framebuffer from the camera in jpeg format, and pass it through jpg2rgb565(...), then back through fmt2jpg(...) the colors are all screwed up - the rgb channels seem to be swapped and shifted.
For context I was capturing high-res images, then passing them to the jpg2rgb... to scale them down and do some image processing.
But if I take the output buffer of jpg2rgb565(...) and swap every alternating byte before passing it back to fmt2jpg(...) then the image appears correct.
So I believe either the output of jpg2rgb565() or the expected input format of fmt2jpg(...) is wrong, but I'm not sure which. If you guys know, I can make a fix
The text was updated successfully, but these errors were encountered: