# MPImageSourceType

    struct MPImageSourceType: Hashable, Equatable, RawRepresentable, Sendable, BitwiseCopyable

Types of image sources.
- `
  ### [image](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/MPImageSourceType.md.txt#/c:MPPImage.h_MPPImageSourceTypeImage)

  ` Image source is a `UIImage`.

  #### Declaration

  Swift

      static let image: MPImageSourceType

- `
  ### [pixelBuffer](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/MPImageSourceType.md.txt#/c:MPPImage.h_MPPImageSourceTypePixelBuffer)

  ` Image source is a `CVPixelBuffer`.

  #### Declaration

  Swift

      static let pixelBuffer: MPImageSourceType

- `
  ### [sampleBuffer](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/MPImageSourceType.md.txt#/c:MPPImage.h_MPPImageSourceTypeSampleBuffer)

  ` Image source is a `CMSampleBuffer`.

  #### Declaration

  Swift

      static let sampleBuffer: MPImageSourceType

- `
  ### [init(rawValue:)](https://developers.google.com/edge/api/mediapipe/swift/vision/Structs/MPImageSourceType.md.txt#/s:So18MPPImageSourceTypea8rawValueABSi_tcfc)

  `

  #### Declaration

  Swift

      init(rawValue: Int)