Accelerate sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the Accelerate folder.
- Catalog module label:
Accelerate - Coverage: 31 / 31 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Adding a bokeh effect to images | macOS | A Swift sample with the source-visible chain vImageMorphologyApp → ContentView → MorphologyTransformer → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Adjusting saturation and applying tone mapping | macOS | A Swift sample with the source-visible chain YpCbCrAdjustmentApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Adjusting the brightness and contrast of an image | macOS | A Swift sample with the source-visible chain GammaCorrectionApp → ContentView → GammaCorrectionEngine → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Adjusting the hue of an image | macOS | A Swift sample with the source-visible chain HueAdjustmentApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Applying biquadratic filters to a music loop | macOS | A Swift sample with the source-visible chain BiquadCoefficientsCalculatorApp → ContentView → FilterableMusicProvider → Accelerate APIs. |
Protocol-oriented abstraction, SwiftUI environment injection |
| Applying tone curve adjustments to images | macOS | A Swift sample with the source-visible chain vImage_PolynomialApp → ContentView → PolynomialTransformer → Accelerate APIs. |
SwiftUI environment injection, Binding-based state propagation, Publisher-backed observable state |
| Applying transformations to selected colors in an image | macOS | A Swift sample with the source-visible chain vImage_selective_desaturationApp → ContentView → ColorConverter → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Applying vImage operations to video sample buffers | macOS | A Swift sample with the source-visible chain VideoCaptureApp → ContentView → Accelerate APIs. |
Delegate or data-source callbacks, SwiftUI environment injection |
| Blurring an image | macOS | A Swift sample with the source-visible chain vImageConvolutionApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Calculating the dominant colors in an image | macOS | A Swift sample with the source-visible chain AccelerateKMeansApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Compressing an image using linear algebra | macOS | A Swift sample with the source-visible chain SVDImageCompressionApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Compressing and decompressing files with stream compression | macOS | A Swift sample with the source-visible chain CompressionStreamingApp → ContentView → SwiftUI / Compression APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Converting color images to grayscale | macOS | A Swift sample with the source-visible chain GrayscaleConversionApp → ContentView → GrayscaleConverter → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Converting luminance and chrominance planes to an ARGB image | macOS | A Swift sample with the source-visible chain YUVtoRGBApp → ContentView → YUVtoRGBConverter → Accelerate APIs. |
Delegate or data-source callbacks, SwiftUI environment injection, Publisher-backed observable state |
| Creating an audio unit extension using the vDSP library | macOS | A C/Objective-C header, Objective-C++, Swift sample with the source-visible chain vDSP_audio_unitApp → ContentView → AudioUnitViewModel → SimplePlayEngine → SwiftUI / AudioToolbox APIs. |
Model-View-ViewModel, View-controller organization, Protocol-oriented abstraction, Builder, Publisher-backed observable state |
| Cropping to the subject in a chroma-keyed image | macOS | A Swift sample with the source-visible chain TrimTransparentPixelsApp → ContentView → ImageProvider → Accelerate APIs. |
SwiftUI environment injection |
| Equalizing audio with discrete cosine transforms (DCTs) | macOS | A Swift sample with the source-visible chain AudioEqualizationApp → ContentView → DrumLoopProvider → Accelerate APIs. |
Protocol-oriented abstraction, SwiftUI environment injection, Publisher-backed observable state |
| Finding the sharpest image in a sequence of captured images | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AccelerateBlurDetectionApp → BlurDetectorView → BlurDetectorResultModel → BlurDetectionItemRenderer → Accelerate APIs. |
Protocol-oriented abstraction, Delegate or data-source callbacks, SwiftUI environment injection, Publisher-backed observable state |
| Halftone descreening with 2D fast Fourier transform | macOS | A Swift sample with the source-visible chain HalftoneDescreenerApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Improving the quality of quantized images with dithering | macOS | A Swift sample with the source-visible chain ImageDitherApp → ContentView → ImageDitherEngine → Accelerate APIs. |
SwiftUI environment injection |
| Integrating vImage pixel buffers into a Core Image workflow | macOS | A Swift sample with the source-visible chain ContrastStretchApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Reducing artifacts with custom resampling filters | macOS | A Swift sample with the source-visible chain CustomResamplingApp → ContentView → CustomResamplingEngine → Accelerate APIs. |
SwiftUI environment injection |
| Rotating a cube by transforming its vertices | macOS | A Swift sample with the source-visible chain QuaternionDemonstrationApp → ContentView → SceneKit / SwiftUI APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Sharing texture data between the Model I/O framework and the vImage library | macOS | A Swift sample with the source-visible chain vimage_sky_compositorApp → ContentView → ImageProvider → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Signal extraction from noise | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain SignalExtractionFromNoiseApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Solving systems of linear equations with LAPACK | macOS | A Swift sample centered on main, with direct use of Accelerate. |
— |
| Specifying histograms with vImage | macOS | A Swift sample with the source-visible chain HistogramSpecificationApp → ContentView → Accelerate APIs. |
SwiftUI environment injection, Publisher-backed observable state |
| Supporting real-time ML inference on the CPU | macOS | A C/Objective-C header, Objective-C++, Python, Swift sample with the source-visible chain BNNSBitcrusherApp → ContentView → AudioUnitViewModel → SimplePlayEngine → SwiftUI / AudioToolbox APIs. |
Model-View-ViewModel, View-controller organization, Protocol-oriented abstraction, Builder, Publisher-backed observable state |
| Training a neural network to recognize digits | macOS | A Swift sample centered on Digits, with direct use of Accelerate. |
— |
| Using vImage pixel buffers to generate video effects | macOS | A Swift sample with the source-visible chain vImagePixelBuffer_VideoEffectsApp → ContentView → VideoEffectsEngine → Accelerate APIs. |
Delegate or data-source callbacks, SwiftUI environment injection, Publisher-backed observable state |
| Visualizing sound as an audio spectrogram | macOS | A Swift sample with the source-visible chain AudioSpectrogramApp → ContentView → Accelerate APIs. |
Delegate or data-source callbacks, SwiftUI environment injection, Publisher-backed observable state |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| SwiftUI environment injection | 27 |
| Publisher-backed observable state | 24 |
| Protocol-oriented abstraction | 5 |
| Delegate or data-source callbacks | 5 |
| Model-View-ViewModel | 2 |
| View-controller organization | 2 |
| Builder | 2 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
View |
35 |
App |
29 |
Engine |
6 |
Provider |
6 |
Converter |
4 |
Model |
3 |
Transformer |
2 |
Generator |
2 |
Delegate |
2 |
Builder |
2 |
Controller |
2 |
Manager |
2 |
ViewModel |
2 |
Renderer |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
1998 |
private |
152 |
public |
66 |
private(set) |
6 |
fileprivate |
3 |
References
Generated from the verified local catalog and completed Markdown documents.