Skip to content

Commit 8175931

Browse files
author
Simon Gladman
committed
remove unnecessary import, add missing docs.
1 parent ecd3676 commit 8175931

File tree

6 files changed

+16
-12
lines changed

6 files changed

+16
-12
lines changed

stdlib/public/Darwin/Accelerate/vImage_Buffer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Accelerate
14-
1513
//===----------------------------------------------------------------------===//
1614
//
1715
// vImage_Buffer

stdlib/public/Darwin/Accelerate/vImage_CGImageFormat.swift

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Accelerate
14-
1513
//===----------------------------------------------------------------------===//
1614
//
1715
// vImage_CGImageFormat
@@ -22,6 +20,10 @@ import Accelerate
2220
extension vImage_CGImageFormat {
2321

2422
/// Initializes an image format from a Core Graphics image.
23+
///
24+
/// - Parameter cgImage: The image from which to derive the image format.
25+
///
26+
/// - Returns: An initialized `vImage_CGImageFormat`.
2527
public init?(cgImage: CGImage) {
2628
guard
2729
let colorSpace = cgImage.colorSpace else {
@@ -39,6 +41,17 @@ extension vImage_CGImageFormat {
3941
}
4042

4143
/// Initializes an image format.
44+
///
45+
/// - Parameter bitsPerComponent: The number of bits needed to represent one
46+
/// channel of data in one pixel.
47+
/// - Parameter bitsPerPixel: The number of bits needed to represent one pixel.
48+
/// - Parameter colorSpace: The color space for the format.
49+
/// - Parameter bitmapInfo: The component information describing the color channels.
50+
/// - Parameter renderingIntent: A rendering intent constant that specifies how
51+
/// Core Graphics should handle colors that are not located within the gamut of the
52+
/// destination color space of a graphics context.
53+
///
54+
/// - Returns: An initialized `vImage_CGImageFormat`.
4255
public init?(bitsPerComponent: Int,
4356
bitsPerPixel: Int,
4457
colorSpace: CGColorSpace,

stdlib/public/Darwin/Accelerate/vImage_CVImageFormat.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Accelerate
14-
1513
//===----------------------------------------------------------------------===//
1614
//
1715
// vImageCVImageFormat

stdlib/public/Darwin/Accelerate/vImage_Converter.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Accelerate
14-
1513
//===----------------------------------------------------------------------===//
1614
//
1715
// vImageConverter

stdlib/public/Darwin/Accelerate/vImage_Error.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Accelerate
14-
1513
//===----------------------------------------------------------------------===//
1614
//
1715
// vImage_Error
@@ -21,6 +19,7 @@ import Accelerate
2119
@available(iOS 9999, OSX 9999, tvOS 9999, watchOS 9999, *)
2220
extension vImage {
2321

22+
/// Error codes returned by vImage operations.
2423
public enum Error: Int, Swift.Error {
2524
case noError = 0
2625
case roiLargerThanInputBuffer = -21766

stdlib/public/Darwin/Accelerate/vImage_Options.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
//
1111
//===----------------------------------------------------------------------===//
1212

13-
import Accelerate
14-
1513
//===----------------------------------------------------------------------===//
1614
//
1715
// vImage_Options

0 commit comments

Comments
 (0)