# Structures

The following declarations are available globally.
- `
  ### [AudioDataFormat](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/AudioDataFormat.md.txt)

  ` Describes the channel count and sample rate of an audio stream or buffer.

  #### Declaration

  Swift

      struct AudioDataFormat: Sendable, Equatable, Hashable

- `
  ### [AudioPart](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/AudioPart.md.txt)

  ` Audio segment within a multimodal content block.

  #### Declaration

  Swift

      struct AudioPart: Sendable, Equatable, Hashable

- `
  ### [BaseOptions](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/BaseOptions.md.txt)

  ` Base options shared across MediaPipe Tasks for model loading and hardware delegation.

  #### Declaration

  Swift

      struct BaseOptions: Sendable, Equatable, Hashable

- `
  ### [ClassificationResult](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/ClassificationResult.md.txt)

  ` Classification results produced across all output heads of a classification model.

  #### Declaration

  Swift

      struct ClassificationResult: Sendable, Equatable, Hashable

- `
  ### [Classifications](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/Classifications.md.txt)

  ` Predicted categories for a single classifier output head.

  #### Declaration

  Swift

      struct Classifications: Sendable, Equatable, Hashable

- `
  ### [ClassifierOptions](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/ClassifierOptions.md.txt)

  ` Classifier options shared across MediaPipe classification tasks.

  #### Declaration

  Swift

      struct ClassifierOptions: Sendable, Equatable, Hashable

- `
  ### [Connection](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/Connection.md.txt)

  ` An undirected or directed edge connecting two landmark indices.

  #### Declaration

  Swift

      struct Connection: Sendable, Equatable, Hashable

- `
  ### [Detection](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/Detection.md.txt)

  ` A single detected object with predicted categories, bounding box, and optional keypoints.

  #### Declaration

  Swift

      struct Detection: Sendable, Equatable, Hashable

- `
  ### [DetectionResult](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/DetectionResult.md.txt)

  ` Detection results produced by a detection model.

  #### Declaration

  Swift

      struct DetectionResult: Sendable, Equatable, Hashable

- `
  ### [EmbedderOptions](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/EmbedderOptions.md.txt)

  ` Embedder options shared across MediaPipe embedding extraction tasks.

  #### Declaration

  Swift

      struct EmbedderOptions: Sendable, Equatable, Hashable

- `
  ### [Embedding](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/Embedding.md.txt)

  ` Feature vector produced by a single embedder output head.

  #### Declaration

  Swift

      struct Embedding: Sendable, Equatable, Hashable

- `
  ### [EmbeddingResult](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/EmbeddingResult.md.txt)

  ` Embedding results produced across all output heads of an embedding model.

  #### Declaration

  Swift

      struct EmbeddingResult: Sendable, Equatable, Hashable

- `
  ### [ImagePart](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/ImagePart.md.txt)

  ` Image segment within a multimodal content block.

  #### Declaration

  Swift

      struct ImagePart: Sendable, Equatable, Hashable

- `
  ### [ImageProcessingOptions](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/ImageProcessingOptions.md.txt)

  ` Options for cropping and rotating input images prior to MediaPipe Vision Task inference.

  #### Declaration

  Swift

      struct ImageProcessingOptions: Sendable, Equatable, Hashable

- `
  ### [Landmark](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/Landmark.md.txt)

  ` A 3D point in world space with coordinates measured in meters.

  #### Declaration

  Swift

      struct Landmark: Sendable, Equatable, Hashable

- `
  ### [NormalizedKeypoint](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/NormalizedKeypoint.md.txt)

  ` A 2D keypoint with coordinates normalized to `[0.0, 1.0]` by the image width and height.

  #### Declaration

  Swift

      struct NormalizedKeypoint: Sendable, Equatable, Hashable

- `
  ### [NormalizedLandmark](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/NormalizedLandmark.md.txt)

  ` A 3D point with `x` and `y` coordinates normalized to `[0.0, 1.0]` by the image dimensions.

  #### Declaration

  Swift

      struct NormalizedLandmark: Sendable, Equatable, Hashable

- `
  ### [RegionOfInterest](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/RegionOfInterest.md.txt)

  ` Region of interest (ROI) used to guide interactive segmentation inference.

  #### Declaration

  Swift

      struct RegionOfInterest: Sendable, Equatable, Hashable

- `
  ### [ResultCategory](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/ResultCategory.md.txt)

  ` A single classification category containing a label, optional display name, confidence score, and label index.

  #### Declaration

  Swift

      struct ResultCategory: Sendable, Equatable, Hashable

- `
  ### [TasksError](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/TasksError.md.txt)

  ` Structured error thrown by MediaPipe Tasks operations.

  #### Declaration

  Swift

      struct TasksError: Error, Sendable, Equatable, Hashable, LocalizedError, CustomNSError

- `
  ### [TextPart](https://developers.google.com/edge/api/mediapipe/swift/common/Structs/TextPart.md.txt)

  ` UTF-8 text segment within a multimodal content block.

  #### Declaration

  Swift

      struct TextPart: Sendable, Equatable, Hashable