[WIP] Break down JxlDecoder
to better support streaming, preview, animation, etc.
#426
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (5)
jpegxl-rs/src/decode/event.rs|5 col 21| error[E0432]: unresolved import jpegxl_sys::types
--> jpegxl-rs/src/decode/event.rs:5:21
|
5 | pub use jpegxl_sys::types::JxlPixelFormat;
| ^^^^^ could not find types
in jpegxl_sys
jpegxl-rs/src/decode/session.rs|3 col 18| error[E0432]: unresolved imports jpegxl_sys::color_encoding
, jpegxl_sys::types
--> jpegxl-rs/src/decode/session.rs:3:18
|
3 | use jpegxl_sys::{color_encoding::JxlColorEncoding, decode as d, types::JxlPixelFormat};
| ^^^^^^^^^^^^^^ ^^^^^ could not find types
in jpegxl_sys
| |
| could not find color_encoding
in jpegxl_sys
jpegxl-rs/src/decode/session.rs|110 col 16| error[E0599]: no variant or associated item named JpegReconstruction
found for enum jpegxl_sys::decode::JxlDecoderStatus
in the current scope
--> jpegxl-rs/src/decode/session.rs:110:16
|
110 | s::JpegReconstruction => {
| ^^^^^^^^^^^^^^^^^^ variant or associated item not found in JxlDecoderStatus
|
help: there is a variant with a similar name
|
110 | s::JPEGReconstruction => {
| ~~~~~~~~~~~~~~~~~~
jpegxl-rs/src/decode/session.rs|129 col 16| error[E0599]: no variant or associated item named JpegNeedMoreOutput
found for enum jpegxl_sys::decode::JxlDecoderStatus
in the current scope
--> jpegxl-rs/src/decode/session.rs:129:16
|
129 | s::JpegNeedMoreOutput => {
| ^^^^^^^^^^^^^^^^^^ variant or associated item not found in JxlDecoderStatus
|
help: there is a variant with a similar name
|
129 | s::JPEGNeedMoreOutput => {
| ~~~~~~~~~~~~~~~~~~
jpegxl-rs/src/decode/session.rs|244 col 13| error: unused variable: name
--> jpegxl-rs/src/decode/session.rs:244:13
|
244 | let name = CString::from_vec_with_nul(buffer)
| ^^^^ help: if this is intentional, prefix it with an underscore: _name
|
= note: -D unused-variables
implied by -D warnings
= help: to override -D warnings
add #[allow(unused_variables)]
Filtered Findings (0)
Annotations
Check failure on line 5 in jpegxl-rs/src/decode/event.rs
github-actions / clippy
[clippy] jpegxl-rs/src/decode/event.rs#L5
error[E0432]: unresolved import `jpegxl_sys::types`
--> jpegxl-rs/src/decode/event.rs:5:21
|
5 | pub use jpegxl_sys::types::JxlPixelFormat;
| ^^^^^ could not find `types` in `jpegxl_sys`
Raw output
jpegxl-rs/src/decode/event.rs:5:21:e:error[E0432]: unresolved import `jpegxl_sys::types`
--> jpegxl-rs/src/decode/event.rs:5:21
|
5 | pub use jpegxl_sys::types::JxlPixelFormat;
| ^^^^^ could not find `types` in `jpegxl_sys`
__END__
Check failure on line 3 in jpegxl-rs/src/decode/session.rs
github-actions / clippy
[clippy] jpegxl-rs/src/decode/session.rs#L3
error[E0432]: unresolved imports `jpegxl_sys::color_encoding`, `jpegxl_sys::types`
--> jpegxl-rs/src/decode/session.rs:3:18
|
3 | use jpegxl_sys::{color_encoding::JxlColorEncoding, decode as d, types::JxlPixelFormat};
| ^^^^^^^^^^^^^^ ^^^^^ could not find `types` in `jpegxl_sys`
| |
| could not find `color_encoding` in `jpegxl_sys`
Raw output
jpegxl-rs/src/decode/session.rs:3:18:e:error[E0432]: unresolved imports `jpegxl_sys::color_encoding`, `jpegxl_sys::types`
--> jpegxl-rs/src/decode/session.rs:3:18
|
3 | use jpegxl_sys::{color_encoding::JxlColorEncoding, decode as d, types::JxlPixelFormat};
| ^^^^^^^^^^^^^^ ^^^^^ could not find `types` in `jpegxl_sys`
| |
| could not find `color_encoding` in `jpegxl_sys`
__END__
Check failure on line 110 in jpegxl-rs/src/decode/session.rs
github-actions / clippy
[clippy] jpegxl-rs/src/decode/session.rs#L110
error[E0599]: no variant or associated item named `JpegReconstruction` found for enum `jpegxl_sys::decode::JxlDecoderStatus` in the current scope
--> jpegxl-rs/src/decode/session.rs:110:16
|
110 | s::JpegReconstruction => {
| ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `JxlDecoderStatus`
|
help: there is a variant with a similar name
|
110 | s::JPEGReconstruction => {
| ~~~~~~~~~~~~~~~~~~
Raw output
jpegxl-rs/src/decode/session.rs:110:16:e:error[E0599]: no variant or associated item named `JpegReconstruction` found for enum `jpegxl_sys::decode::JxlDecoderStatus` in the current scope
--> jpegxl-rs/src/decode/session.rs:110:16
|
110 | s::JpegReconstruction => {
| ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `JxlDecoderStatus`
|
help: there is a variant with a similar name
|
110 | s::JPEGReconstruction => {
| ~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 129 in jpegxl-rs/src/decode/session.rs
github-actions / clippy
[clippy] jpegxl-rs/src/decode/session.rs#L129
error[E0599]: no variant or associated item named `JpegNeedMoreOutput` found for enum `jpegxl_sys::decode::JxlDecoderStatus` in the current scope
--> jpegxl-rs/src/decode/session.rs:129:16
|
129 | s::JpegNeedMoreOutput => {
| ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `JxlDecoderStatus`
|
help: there is a variant with a similar name
|
129 | s::JPEGNeedMoreOutput => {
| ~~~~~~~~~~~~~~~~~~
Raw output
jpegxl-rs/src/decode/session.rs:129:16:e:error[E0599]: no variant or associated item named `JpegNeedMoreOutput` found for enum `jpegxl_sys::decode::JxlDecoderStatus` in the current scope
--> jpegxl-rs/src/decode/session.rs:129:16
|
129 | s::JpegNeedMoreOutput => {
| ^^^^^^^^^^^^^^^^^^ variant or associated item not found in `JxlDecoderStatus`
|
help: there is a variant with a similar name
|
129 | s::JPEGNeedMoreOutput => {
| ~~~~~~~~~~~~~~~~~~
__END__
Check failure on line 244 in jpegxl-rs/src/decode/session.rs
github-actions / clippy
[clippy] jpegxl-rs/src/decode/session.rs#L244
error: unused variable: `name`
--> jpegxl-rs/src/decode/session.rs:244:13
|
244 | let name = CString::from_vec_with_nul(buffer)
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
Raw output
jpegxl-rs/src/decode/session.rs:244:13:e:error: unused variable: `name`
--> jpegxl-rs/src/decode/session.rs:244:13
|
244 | let name = CString::from_vec_with_nul(buffer)
| ^^^^ help: if this is intentional, prefix it with an underscore: `_name`
|
= note: `-D unused-variables` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(unused_variables)]`
__END__