… | |
… | |
574 | error = "JxlDecoderSetParallelRunner failed"; |
574 | error = "JxlDecoderSetParallelRunner failed"; |
575 | if (JxlDecoderSetParallelRunner (dec, JxlThreadParallelRunner, runner) != JXL_DEC_SUCCESS) |
575 | if (JxlDecoderSetParallelRunner (dec, JxlThreadParallelRunner, runner) != JXL_DEC_SUCCESS) |
576 | goto done; |
576 | goto done; |
577 | |
577 | |
578 | error = "JxlDecoderSubscribeEvents failed"; |
578 | error = "JxlDecoderSubscribeEvents failed"; |
579 | if (JxlDecoderSubscribeEvents (dec, JXL_DEC_FULL_IMAGE | 0xffc0) != JXL_DEC_SUCCESS) |
579 | if (JxlDecoderSubscribeEvents (dec, JXL_DEC_FULL_IMAGE | JXL_DEC_BASIC_INFO) != JXL_DEC_SUCCESS) |
580 | goto done; |
580 | goto done; |
581 | |
581 | |
|
|
582 | error = "JxlDecoderSetInput failed"; |
|
|
583 | if (JxlDecoderSetInput (dec, next_in, avail_in) != JXL_DEC_SUCCESS) |
|
|
584 | goto done; |
|
|
585 | |
582 | for (;;) |
586 | for (;;) |
583 | { |
587 | { |
584 | JxlDecoderStatus status = JxlDecoderProcessInput (dec, &next_in, &avail_in); |
588 | JxlDecoderStatus status = JxlDecoderProcessInput (dec); |
585 | |
589 | |
586 | printf ("status %d\n",status); |
590 | printf ("status %d\n",status); |
587 | |
591 | |
588 | switch (status) |
592 | switch (status) |
589 | { |
593 | { |