Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a43c248

Browse files
Update fn+.swift
1 parent 37dc3dc commit a43c248

File tree

1 file changed

+3
-3
lines changed
  • Sources/swiftui-loop-videoplayer/fn

1 file changed

+3
-3
lines changed

‎Sources/swiftui-loop-videoplayer/fn/fn+.swift‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fileprivate func assetFrom(name: String, fileExtension: String?) -> AVURLAsset?
6666
/// Attempts to create a valid `URL` from a string that starts with `"file://"`.
6767
/// - Parameter rawString: A file URL string, e.g. `"file:///Users/igor/My Folder/File.mp4"`.
6868
/// - Returns: A `URL` if successfully parsed; otherwise `nil`.
69-
func fileURL(from rawString: String) -> URL? {
69+
publicfunc fileURL(from rawString: String) -> URL? {
7070
guard rawString.hasPrefix("file://") else {
7171
// Not a file URL scheme
7272
return nil
@@ -110,7 +110,7 @@ fileprivate func extractExtension(from name: String) -> String? {
110110
/// - contrast: A Float value representing the contrast adjustment to apply.
111111
///
112112
/// - Returns: An array of CIFilter objects, including the original filters and the added brightness and contrast adjustments.
113-
internalfunc combineFilters(_ filters: [CIFilter],_ brightness: Float,_ contrast: Float) -> [CIFilter] {
113+
func combineFilters(_ filters: [CIFilter],_ brightness: Float,_ contrast: Float) -> [CIFilter] {
114114
var allFilters = filters
115115
if let filter = CIFilter(name: "CIColorControls", parameters: [kCIInputBrightnessKey: brightness]) {
116116
allFilters.append(filter)
@@ -130,7 +130,7 @@ internal func combineFilters(_ filters: [CIFilter],_ brightness: Float,_ contra
130130
///
131131
/// The function starts by clamping the source image to ensure coordinates remain within the image bounds,
132132
/// applies each filter in the provided array, and completes by returning the modified image to the composition request.
133-
internalfunc handleVideoComposition(request: AVAsynchronousCIImageFilteringRequest, filters: [CIFilter]) {
133+
func handleVideoComposition(request: AVAsynchronousCIImageFilteringRequest, filters: [CIFilter]) {
134134
// Start with the source image, ensuring it's clamped to avoid any coordinate issues
135135
var currentImage = request.sourceImage.clampedToExtent()
136136

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /