Implement native asset pipeline and cache (#64)
Some checks failed
Native code generation / deterministic (push) Failing after 2m18s
Imaging and meshing gate / native (push) Failing after 1m30s
JPEG 2000 feature / linux (push) Successful in 2m40s
Native Rust workspace compile / compile (push) Failing after 57s
Skia feature / linux (push) Successful in 31m8s
Some checks failed
Native code generation / deterministic (push) Failing after 2m18s
Imaging and meshing gate / native (push) Failing after 1m30s
JPEG 2000 feature / linux (push) Successful in 2m40s
Native Rust workspace compile / compile (push) Failing after 57s
Skia feature / linux (push) Successful in 31m8s
This commit is contained in:
@@ -223,10 +223,10 @@ impl J2kCodec {
|
||||
if options.max_encoded_bytes == 0 {
|
||||
return Err(Error::Argument);
|
||||
}
|
||||
if let J2kCompression::Lossy { compression_ratio } = options.compression {
|
||||
if !compression_ratio.is_finite() || compression_ratio < 1.0 {
|
||||
return Err(Error::Argument);
|
||||
}
|
||||
if let J2kCompression::Lossy { compression_ratio } = options.compression
|
||||
&& (!compression_ratio.is_finite() || compression_ratio < 1.0)
|
||||
{
|
||||
return Err(Error::Argument);
|
||||
}
|
||||
encode_with_openjpeg(image, options)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user