-
Notifications
You must be signed in to change notification settings - Fork 978
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
Is this code neccessary if the input jpeg is already grayscale? #255
Comments
Glad someone is still interested in this software (like I am! Don't expect any answer from anyone here). I only have one hint if you want to optimize the process: Try to further optimize the already optimized version at https://github.com/ianhuang-777/guetzli-cuda-opencl instead this one. I have to say the added '--c' command reduce processing time by ~30% which is great. Please let me know if you have any success in further optimizing guetzli. |
thanks @koboltzz |
No since for the most people guetzli is too heavy to RAM and CPU, it's kinda dead. The only people that could help you are Google employees and they don't work on guetzli anymore. |
thanks again I may have to spend more time to understand the code then. Therefore, the above code can be treated as redundant if we don't modify the parameter. |
Dear All,
I am trying to understand processor.cc, specially the function bool Processor::ProcessJpegData().
I see an if statement to check if the input has cbcr colorspace HasYCbCrColorSpace().
And, before the function try to optimize the quantization table, I found the following code:
{
JPEGData jpg = jpg_in;
RemoveOriginalQuantization(&jpg, q_in);
OutputImage img(jpg.width, jpg.height);
img.CopyFromJpegData(jpg);
comparator_->Compare(img);
}
MaybeOutput(encoded_jpg);
My question is, if the above code neccessary if my input is always have ycbcr (non grayscale) and always yuv420? Because I also try to optimize the code for our own usage.
guetzli/guetzli/processor.cc
Line 839 in 0b78c7c
Thanks,
Sunny
The text was updated successfully, but these errors were encountered: