-
Notifications
You must be signed in to change notification settings - Fork 307
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
decode error #108
Comments
What's the context here? Is the decode/encode being attempted via the For reference, that function signature is here: libcimbar/src/exe/cimbar/cimbar.cpp Lines 259 to 265 in 75d6cfb
... which is a decode in the basic, non-fountain format. In other words it does the reedsolomon error correction decoding but not wirehair. This is mostly useful for debugging -- if we have a single image, we can see if the reedsolomon part of the decode succeeds or not. If it doesn't, that can mean a few things:
|
Thank you for your reply.I employed the command-line input, namely “./cimbar --encode -i inputfile.txt -o outputprefix” as mentioned in the example, to obtain the image. When I attempted to decode it, no result was yielded, just as I previously stated. Nevertheless, when I utilized the app for decoding, the corresponding file could be obtained. Maybe I am not yet quite familiar with the code and I should study it more earnestly. |
When the file is too small, for example, less than 183 bytes, it is likely to encounter the above problems. |
It's possible that there's a different failure mode I'm not aware of. If you have an example file that can reproduces the issue, I might be able to take a look. 🙂 |
Excuse me. I've run into a problem when using the decoding function. The bytes in this line of code is 0:
int bytes = decodefun(img, color_mode, shouldPreprocess, color_correct);
Among them, img can be loaded correctly.
color_mode: 1.
shouldPreprocess: 1
color_correct: 2
The encoding function is normal.
The text was updated successfully, but these errors were encountered: