You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there!
I'm trying to do some speed tests writting encoded images to disk playing with jpeg quality factor.
I'm using the python wrapper for NvJpeg_write as follows:
I have tried with quality = [10, 70, 90] but I'm always obtaining the same buffer/file size (217936 for my case)
Regardless, when I directly use the NvJpeg_encode wrapper I achieve to get the proper sizes:
bar = nj.encode(raw, quality)
print(len(bar))
# 53096 for quality=10, 217936 for quality=70 and 447357 for quality=95
I've looked at the source code and it seems that NvJpeg_write just calls NvJpeg_encode and passes the arguments, but I'm not used at all to C code, so I'm probably missing out something.
Can anyone lend me a hand?
The text was updated successfully, but these errors were encountered:
Hello there!
I'm trying to do some speed tests writting encoded images to disk playing with jpeg quality factor.
I'm using the python wrapper for NvJpeg_write as follows:
I have tried with quality = [10, 70, 90] but I'm always obtaining the same buffer/file size (217936 for my case)
Regardless, when I directly use the NvJpeg_encode wrapper I achieve to get the proper sizes:
I've looked at the source code and it seems that NvJpeg_write just calls NvJpeg_encode and passes the arguments, but I'm not used at all to C code, so I'm probably missing out something.
Can anyone lend me a hand?
The text was updated successfully, but these errors were encountered: