fromValue static method

LibRaw_progress fromValue(
  1. int value
)

Implementation

static LibRaw_progress fromValue(int value) => switch (value) {
      0 => LIBRAW_PROGRESS_START,
      1 => LIBRAW_PROGRESS_OPEN,
      2 => LIBRAW_PROGRESS_IDENTIFY,
      4 => LIBRAW_PROGRESS_SIZE_ADJUST,
      8 => LIBRAW_PROGRESS_LOAD_RAW,
      16 => LIBRAW_PROGRESS_RAW2_IMAGE,
      32 => LIBRAW_PROGRESS_REMOVE_ZEROES,
      64 => LIBRAW_PROGRESS_BAD_PIXELS,
      128 => LIBRAW_PROGRESS_DARK_FRAME,
      256 => LIBRAW_PROGRESS_FOVEON_INTERPOLATE,
      512 => LIBRAW_PROGRESS_SCALE_COLORS,
      1024 => LIBRAW_PROGRESS_PRE_INTERPOLATE,
      2048 => LIBRAW_PROGRESS_INTERPOLATE,
      4096 => LIBRAW_PROGRESS_MIX_GREEN,
      8192 => LIBRAW_PROGRESS_MEDIAN_FILTER,
      16384 => LIBRAW_PROGRESS_HIGHLIGHTS,
      32768 => LIBRAW_PROGRESS_FUJI_ROTATE,
      65536 => LIBRAW_PROGRESS_FLIP,
      131072 => LIBRAW_PROGRESS_APPLY_PROFILE,
      262144 => LIBRAW_PROGRESS_CONVERT_RGB,
      524288 => LIBRAW_PROGRESS_STRETCH,
      1048576 => LIBRAW_PROGRESS_STAGE20,
      2097152 => LIBRAW_PROGRESS_STAGE21,
      4194304 => LIBRAW_PROGRESS_STAGE22,
      8388608 => LIBRAW_PROGRESS_STAGE23,
      16777216 => LIBRAW_PROGRESS_STAGE24,
      33554432 => LIBRAW_PROGRESS_STAGE25,
      67108864 => LIBRAW_PROGRESS_STAGE26,
      134217728 => LIBRAW_PROGRESS_STAGE27,
      268435456 => LIBRAW_PROGRESS_THUMB_LOAD,
      536870912 => LIBRAW_PROGRESS_TRESERVED1,
      1073741824 => LIBRAW_PROGRESS_TRESERVED2,
      _ => throw ArgumentError("Unknown value for LibRaw_progress: $value"),
    };