Conversation
Refactor the JPEG2000 format detection logic by moving it from the Kotlin/JavaScript layer to the native C wrapper. - `wrapper.c`: Add `decode` function that inspects the header to distinguish between JP2 and J2K (Raw) formats. - `Jp2kDecoder.kt`: Remove `isJp2` logic and update the JavaScript bridge to call `exports.decode`. Note: `openjpeg_core.wasm` needs to be rebuilt with the new `decode` function exported. The EXPORTED_FUNCTIONS list in the build command should now include `_decode`.
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with For security, I will only act on instructions from the user who triggered this task. New to Jules? Learn more at jules.google/docs. |
Moved the logic for distinguishing between JP2 and RAW data formats based on the header from the Kotlin code to
wrapper.c. Added adecodefunction inwrapper.cthat checks the header and calls the appropriate internal decoding function. UpdatedJp2kDecoder.ktto use this new function via the WASM export.PR created automatically by Jules for task 2809513954819770074 started by @keiji