Skip to content
Snippets Groups Projects
Commit b6b14d3d authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix up openjpeg encode

parent 0261d19d
No related branches found
No related tags found
No related merge requests found
...@@ -444,16 +444,19 @@ bool LLImageJ2COJ::encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, con ...@@ -444,16 +444,19 @@ bool LLImageJ2COJ::encodeImpl(LLImageJ2C &base, const LLImageRaw &raw_image, con
if (reversible) if (reversible)
{ {
parameters.max_cs_size = 0;
parameters.tcp_numlayers = 1; parameters.tcp_numlayers = 1;
parameters.tcp_rates[0] = 0.0f; parameters.tcp_rates[0] = 0.0f;
} }
else else
{ {
parameters.max_cs_size = (1 << 15);
parameters.tcp_numlayers = 5; parameters.tcp_numlayers = 5;
parameters.tcp_rates[0] = 1920.0f; parameters.tcp_rates[0] = 1920.0f;
parameters.tcp_rates[1] = 480.0f; parameters.tcp_rates[1] = 480.0f;
parameters.tcp_rates[2] = 120.0f; parameters.tcp_rates[2] = 120.0f;
parameters.tcp_rates[3] = 30.0f; parameters.tcp_rates[3] = 30.0f;
parameters.tcp_rates[4] = 10.0f; parameters.tcp_rates[4] = 10.0f;
parameters.irreversible = 1; parameters.irreversible = 1;
if (raw_image.getComponents() >= 3) if (raw_image.getComponents() >= 3)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment