fromMpv static method

HighshelfPrecision fromMpv(
  1. String? raw
)

Parses a mpv wire string back into a HighshelfPrecision. Unknown / empty input falls back to the first member.

Implementation

static HighshelfPrecision fromMpv(String? raw) {
  switch (raw) {
    case 'auto':
      return HighshelfPrecision.auto;
    case 's16':
      return HighshelfPrecision.s16;
    case 's32':
      return HighshelfPrecision.s32;
    case 'f32':
      return HighshelfPrecision.f32;
    case 'f64':
      return HighshelfPrecision.f64;
    default:
      return HighshelfPrecision.auto;
  }
}