@@ -66,7 +66,7 @@ fileprivate func assetFrom(name: String, fileExtension: String?) -> AVURLAsset?
66
66
/// Attempts to create a valid `URL` from a string that starts with `"file://"`.
67
67
/// - Parameter rawString: A file URL string, e.g. `"file:///Users/igor/My Folder/File.mp4"`.
68
68
/// - Returns: A `URL` if successfully parsed; otherwise `nil`.
69
- func fileURL( from rawString: String ) -> URL ? {
69
+ public func fileURL( from rawString: String ) -> URL ? {
70
70
guard rawString. hasPrefix ( " file:// " ) else {
71
71
// Not a file URL scheme
72
72
return nil
@@ -110,7 +110,7 @@ fileprivate func extractExtension(from name: String) -> String? {
110
110
/// - contrast: A Float value representing the contrast adjustment to apply.
111
111
///
112
112
/// - Returns: An array of CIFilter objects, including the original filters and the added brightness and contrast adjustments.
113
- internal func combineFilters( _ filters: [ CIFilter ] , _ brightness: Float , _ contrast: Float ) -> [ CIFilter ] {
113
+ func combineFilters( _ filters: [ CIFilter ] , _ brightness: Float , _ contrast: Float ) -> [ CIFilter ] {
114
114
var allFilters = filters
115
115
if let filter = CIFilter ( name: " CIColorControls " , parameters: [ kCIInputBrightnessKey: brightness] ) {
116
116
allFilters. append ( filter)
@@ -130,7 +130,7 @@ internal func combineFilters(_ filters: [CIFilter],_ brightness: Float,_ contra
130
130
///
131
131
/// The function starts by clamping the source image to ensure coordinates remain within the image bounds,
132
132
/// applies each filter in the provided array, and completes by returning the modified image to the composition request.
133
- internal func handleVideoComposition( request: AVAsynchronousCIImageFilteringRequest , filters: [ CIFilter ] ) {
133
+ func handleVideoComposition( request: AVAsynchronousCIImageFilteringRequest , filters: [ CIFilter ] ) {
134
134
// Start with the source image, ensuring it's clamped to avoid any coordinate issues
135
135
var currentImage = request. sourceImage. clampedToExtent ( )
136
136
0 commit comments