If you can only use 12.0, the errors that I encountered on that versions were solved by rounding up the pitch t 4 or 8 (like you did in your code example). However, it was also necessary to set the memory outside the image (but inside this pitch) to zero, to get consistent results. Even then, it could be the case that a horizontal green and purple line would appear at the bottom of the image, after encoding, which I found no fix for (other than updating to 12.1).
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Encode to chroma-subsampled JPEG fails with RGB data | 2 | 516 | October 25, 2024 | |
| NVJPEG_STATUS_EXECUTION_FAILED on a simple JPEG compression example | 5 | 2149 | October 19, 2021 | |
| Encoding NV12 by nvJPEG | 3 | 2980 | June 7, 2024 | |
| Unexpected bugs when using nvjpeg to decode image | 1 | 1121 | May 1, 2021 | |
| nvjpegEncodeImage 4K image with random data crash at quality 100 issue | 0 | 671 | April 28, 2022 | |
| Nvjpeg_status_execution_failed | 3 | 561 | February 2, 2024 | |
| nvjpegEncodeImage returns error | 1 | 965 | April 20, 2020 | |
| nvJPEG encoding issue | 1 | 1437 | July 31, 2022 | |
| nvjpegEncodeImage() in nvJPEG Error#2 | 2 | 2247 | August 29, 2019 | |
| NVJPEG can not be used in jetpack6.2 | 13 | 247 | July 10, 2025 |