| 22 | } |
| 23 | |
| 24 | int LibRaw::get_decoder_info(libraw_decoder_info_t *d_info) |
| 25 | { |
| 26 | if (!d_info) |
| 27 | return LIBRAW_UNSPECIFIED_ERROR; |
| 28 | d_info->decoder_name = 0; |
| 29 | d_info->decoder_flags = 0; |
| 30 | if (!load_raw) |
| 31 | return LIBRAW_OUT_OF_ORDER_CALL; |
| 32 | |
| 33 | // dcraw.c names order |
| 34 | if (load_raw == &LibRaw::android_tight_load_raw) |
| 35 | { |
| 36 | d_info->decoder_name = "android_tight_load_raw()"; |
| 37 | d_info->decoder_flags = LIBRAW_DECODER_FIXEDMAXC; |
| 38 | } |
| 39 | else if (load_raw == &LibRaw::android_loose_load_raw) |
| 40 | { |
| 41 | d_info->decoder_name = "android_loose_load_raw()"; |
| 42 | d_info->decoder_flags = LIBRAW_DECODER_FIXEDMAXC; |
| 43 | } |
| 44 | else if (load_raw == &LibRaw::vc5_dng_load_raw_placeholder) |
| 45 | { |
| 46 | d_info->decoder_name = "vc5_dng_load_raw_placeholder()"; |
| 47 | #ifndef USE_GPRSDK |
| 48 | d_info->decoder_flags = LIBRAW_DECODER_UNSUPPORTED_FORMAT; |
| 49 | #endif |
| 50 | } |
| 51 | else if (load_raw == &LibRaw::jxl_dng_load_raw_placeholder) |
| 52 | { |
| 53 | d_info->decoder_name = "jxl_dng_load_raw_placeholder()"; |
| 54 | #ifndef USE_DNGSDK |
| 55 | d_info->decoder_flags = LIBRAW_DECODER_UNSUPPORTED_FORMAT; |
| 56 | #endif |
| 57 | } |
| 58 | else if (load_raw == &LibRaw::canon_600_load_raw) |
| 59 | { |
| 60 | d_info->decoder_name = "canon_600_load_raw()"; |
| 61 | d_info->decoder_flags = LIBRAW_DECODER_FIXEDMAXC; |
| 62 | } |
| 63 | else if (load_raw == &LibRaw::fuji_compressed_load_raw) |
| 64 | { |
| 65 | d_info->decoder_name = "fuji_compressed_load_raw()"; |
| 66 | } |
| 67 | else if (load_raw == &LibRaw::fuji_14bit_load_raw) |
| 68 | { |
| 69 | d_info->decoder_name = "fuji_14bit_load_raw()"; |
| 70 | } |
| 71 | else if (load_raw == &LibRaw::canon_load_raw) |
| 72 | { |
| 73 | d_info->decoder_name = "canon_load_raw()"; |
| 74 | } |
| 75 | else if (load_raw == &LibRaw::lossless_jpeg_load_raw) |
| 76 | { |
| 77 | d_info->decoder_name = "lossless_jpeg_load_raw()"; |
| 78 | d_info->decoder_flags = |
| 79 | LIBRAW_DECODER_HASCURVE | LIBRAW_DECODER_TRYRAWSPEED | LIBRAW_DECODER_TRYRAWSPEED3; |
| 80 | } |
| 81 | else if (load_raw == &LibRaw::canon_sraw_load_raw) |
no outgoing calls
no test coverage detected