fromValue static method

VideoAccelerationType fromValue(
  1. int value
)

Implementation

static VideoAccelerationType fromValue(int value) => switch (value) {
      0 => VIDEO_ACCELERATION_NONE,
      1 => VIDEO_ACCELERATION_ANY,
      2 => VIDEO_ACCELERATION_D3D11,
      3 => VIDEO_ACCELERATION_VAAPI,
      4 => VIDEO_ACCELERATION_MFX,
      _ => throw ArgumentError(
          "Unknown value for VideoAccelerationType: $value"),
    };