| 3009 | } |
| 3010 | |
| 3011 | int jpeg_decoder::begin_decoding() |
| 3012 | { |
| 3013 | if (m_ready_flag) |
| 3014 | return JPGD_SUCCESS; |
| 3015 | |
| 3016 | if (m_error_code) |
| 3017 | return JPGD_FAILED; |
| 3018 | |
| 3019 | #ifndef __wasi__ |
| 3020 | if (setjmp(m_jmp_state)) |
| 3021 | return JPGD_FAILED; |
| 3022 | #endif |
| 3023 | |
| 3024 | decode_start(); |
| 3025 | |
| 3026 | m_ready_flag = true; |
| 3027 | |
| 3028 | return JPGD_SUCCESS; |
| 3029 | } |
| 3030 | |
| 3031 | jpeg_decoder::~jpeg_decoder() |
| 3032 | { |
no outgoing calls
no test coverage detected