-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6fdc90
commit 4bd5dbf
Showing
100 changed files
with
10,420 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
code/Photo Curves.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
code/Photo Curves.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
8 changes: 8 additions & 0 deletions
8
code/Photo Curves.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>PreviewsEnabled</key> | ||
<false/> | ||
</dict> | ||
</plist> |
5 changes: 5 additions & 0 deletions
5
...deproj/project.xcworkspace/xcuserdata/chinpinboo.xcuserdatad/IDEFindNavigatorScopes.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<array/> | ||
</plist> |
Binary file added
BIN
+5.68 MB
...proj/project.xcworkspace/xcuserdata/chinpinboo.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
...deproj/project.xcworkspace/xcuserdata/chinpinboo.xcuserdatad/WorkspaceSettings.xcsettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>BuildLocationStyle</key> | ||
<string>UseAppPreferences</string> | ||
<key>CustomBuildLocationType</key> | ||
<string>RelativeToDerivedData</string> | ||
<key>DerivedDataLocationStyle</key> | ||
<string>Default</string> | ||
<key>IssueFilterStyle</key> | ||
<string>ShowActiveSchemeOnly</string> | ||
<key>LiveSourceIssuesEnabled</key> | ||
<true/> | ||
<key>ShowSharedSchemesAutomaticallyEnabled</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+72.2 KB
...roj/project.xcworkspace/xcuserdata/technoriver.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
125 changes: 125 additions & 0 deletions
125
code/Photo Curves.xcodeproj/xcshareddata/xcschemes/SketchEffects (iOS).xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Scheme | ||
LastUpgradeVersion = "1420" | ||
version = "1.3"> | ||
<BuildAction | ||
parallelizeBuildables = "YES" | ||
buildImplicitDependencies = "YES"> | ||
<BuildActionEntries> | ||
<BuildActionEntry | ||
buildForTesting = "YES" | ||
buildForRunning = "YES" | ||
buildForProfiling = "YES" | ||
buildForArchiving = "YES" | ||
buildForAnalyzing = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "01626BCC25C163D7001D69F4" | ||
BuildableName = "Photo Curves.app" | ||
BlueprintName = "Photo Curves (iOS)" | ||
ReferencedContainer = "container:Photo Curves.xcodeproj"> | ||
</BuildableReference> | ||
</BuildActionEntry> | ||
</BuildActionEntries> | ||
</BuildAction> | ||
<TestAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
shouldUseLaunchSchemeArgsEnv = "YES"> | ||
<Testables> | ||
<TestableReference | ||
skipped = "NO"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "01626BDC25C163D7001D69F4" | ||
BuildableName = "Tests iOS.xctest" | ||
BlueprintName = "Tests iOS" | ||
ReferencedContainer = "container:Photo Curves.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
<TestableReference | ||
skipped = "NO" | ||
parallelizable = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "2001F061293D836300C8D626" | ||
BuildableName = "SketchEffectsTests.xctest" | ||
BlueprintName = "SketchEffectsTests" | ||
ReferencedContainer = "container:Photo Curves.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
<TestableReference | ||
skipped = "NO" | ||
parallelizable = "YES"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "2001F083293D88AA00C8D626" | ||
BuildableName = "CSVTests.xctest" | ||
BlueprintName = "CSVTests" | ||
ReferencedContainer = "container:Photo Curves.xcodeproj"> | ||
</BuildableReference> | ||
</TestableReference> | ||
</Testables> | ||
</TestAction> | ||
<LaunchAction | ||
buildConfiguration = "Debug" | ||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" | ||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" | ||
launchStyle = "0" | ||
useCustomWorkingDirectory = "NO" | ||
ignoresPersistentStateOnLaunch = "NO" | ||
debugDocumentVersioning = "YES" | ||
debugServiceExtension = "internal" | ||
allowLocationSimulation = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "01626BCC25C163D7001D69F4" | ||
BuildableName = "Photo Curves.app" | ||
BlueprintName = "Photo Curves (iOS)" | ||
ReferencedContainer = "container:Photo Curves.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
<AdditionalOptions> | ||
<AdditionalOption | ||
key = "MallocStackLogging" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
<AdditionalOption | ||
key = "PrefersMallocStackLoggingLite" | ||
value = "" | ||
isEnabled = "YES"> | ||
</AdditionalOption> | ||
</AdditionalOptions> | ||
<StoreKitConfigurationFileReference | ||
identifier = "../../Shared/BarcodeLabel/LabelStore/LabelConfiguration.storekit"> | ||
</StoreKitConfigurationFileReference> | ||
</LaunchAction> | ||
<ProfileAction | ||
buildConfiguration = "Release" | ||
shouldUseLaunchSchemeArgsEnv = "YES" | ||
savedToolIdentifier = "" | ||
useCustomWorkingDirectory = "NO" | ||
debugDocumentVersioning = "YES"> | ||
<BuildableProductRunnable | ||
runnableDebuggingMode = "0"> | ||
<BuildableReference | ||
BuildableIdentifier = "primary" | ||
BlueprintIdentifier = "01626BCC25C163D7001D69F4" | ||
BuildableName = "Photo Curves.app" | ||
BlueprintName = "Photo Curves (iOS)" | ||
ReferencedContainer = "container:Photo Curves.xcodeproj"> | ||
</BuildableReference> | ||
</BuildableProductRunnable> | ||
</ProfileAction> | ||
<AnalyzeAction | ||
buildConfiguration = "Debug"> | ||
</AnalyzeAction> | ||
<ArchiveAction | ||
buildConfiguration = "Release" | ||
revealArchiveInOrganizer = "YES"> | ||
</ArchiveAction> | ||
</Scheme> |
6 changes: 6 additions & 0 deletions
6
...o Curves.xcodeproj/xcuserdata/chinpinboo.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Bucket | ||
uuid = "941FAF4A-2FEE-45AA-BD16-3283891EFB61" | ||
type = "1" | ||
version = "2.0"> | ||
</Bucket> |
47 changes: 47 additions & 0 deletions
47
...oto Curves.xcodeproj/xcuserdata/chinpinboo.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>Photo Curve (macOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
<key>Photo Curves (macOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
<key>Pipeline (macOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
<key>SketchEffects (iOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
<key>SketchEffects (macOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
</dict> | ||
<key>SuppressBuildableAutocreation</key> | ||
<dict> | ||
<key>01626BCC25C163D7001D69F4</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
<key>01626BDC25C163D7001D69F4</key> | ||
<dict> | ||
<key>primary</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
19 changes: 19 additions & 0 deletions
19
...to Curves.xcodeproj/xcuserdata/technoriver.xcuserdatad/xcschemes/xcschememanagement.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>SchemeUserState</key> | ||
<dict> | ||
<key>SketchEffects (iOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>0</integer> | ||
</dict> | ||
<key>SketchEffects (macOS).xcscheme_^#shared#^_</key> | ||
<dict> | ||
<key>orderHint</key> | ||
<integer>1</integer> | ||
</dict> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file not shown.
Binary file not shown.
142 changes: 142 additions & 0 deletions
142
code/Shared/App/Nodef/Filters/Shaders/Effects/InProgress/CIFiltersExtensions/animTex04.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
// | ||
// Copyright © 2022 James Boo. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import CoreImage | ||
import Accelerate | ||
import SwiftUI | ||
|
||
|
||
|
||
class FBMNoiseFilter: CIFilter { | ||
|
||
private let kernel: CIKernel | ||
|
||
@objc dynamic var inputImage: CIImage? | ||
@objc dynamic var inputAnimType: CGFloat = 0 | ||
@objc dynamic var inputAuraMask: CGFloat = 0 | ||
@objc dynamic var inputRotation: CGFloat = 0 | ||
@objc dynamic var inputColor : CIVector = CIVector(x: 0.5, y: 0.8, z: 1.0) | ||
|
||
@objc dynamic var param_sampletype : CGFloat = 0.0 | ||
|
||
|
||
//ver 1.1 | ||
@objc dynamic var inputTime : CGFloat = 0 | ||
|
||
override init() { | ||
let url = Bundle.main.url(forResource: "default", withExtension: "metallib")! | ||
let data = try! Data(contentsOf: url) | ||
kernel = try! CIKernel(functionName: "animTex04Filter", fromMetalLibraryData: data) | ||
|
||
//kernel = try! CIColorKernel(functionName: "artFilter", fromMetalLibraryData: data) | ||
|
||
super.init() | ||
|
||
} | ||
|
||
required init?(coder aDecoder: NSCoder) { | ||
fatalError("init(coder:) has not been implemented") | ||
} | ||
|
||
//func outputImage() -> CIImage? { | ||
override var outputImage: CIImage? { | ||
guard let inputImage = inputImage else {return nil} | ||
|
||
//let inputMaskImage = inputImage | ||
//let maskImage = inputImage | ||
//let maskExtend = inputImage | ||
|
||
|
||
//guard let inputMaskImage = inputMask else {return nil} | ||
|
||
|
||
|
||
//let maskImage = inputMaskImage.samplingLinear(); | ||
|
||
|
||
|
||
|
||
|
||
|
||
/* | ||
var maskExtend : CIImage | ||
|
||
|
||
let genx = CIFilter.discBlur(); | ||
genx.inputImage = inputMaskImage; | ||
genx.radius = 8.0 * Float(radiusFactor); | ||
maskExtend = genx.outputImage?.samplingLinear() ?? maskImage; | ||
|
||
|
||
if (inputAuraMask==1) | ||
{ | ||
genx.radius = 7.0; | ||
maskExtend = genx.outputImage?.samplingLinear() ?? maskImage; | ||
|
||
} | ||
else if (inputAuraMask==2) | ||
{ | ||
|
||
//not yet | ||
genx.radius = 5.0 * Float(sqrt(radiusFactor)); | ||
maskExtend = genx.outputImage?.samplingLinear() ?? maskImage; | ||
|
||
//maskExtend = inputMaskImage.applyingGaussianBlur(sigma: 3).samplingLinear(); | ||
} | ||
else if (inputAuraMask==3) | ||
{ | ||
//genx.radius = 8.0; | ||
//maskExtend = genx.outputImage?.samplingLinear() ?? maskImage; | ||
|
||
maskExtend = inputMaskImage.applyingGaussianBlur(sigma: 5 ).samplingLinear(); | ||
|
||
} | ||
else if (inputAuraMask==4) | ||
{ | ||
//genx.radius = 8.0; | ||
//maskExtend = genx.outputImage?.samplingLinear() ?? maskImage; | ||
|
||
maskExtend = inputMaskImage.applyingGaussianBlur(sigma: 5).samplingLinear(); | ||
|
||
} | ||
else if (inputAuraMask==5) | ||
{ | ||
genx.radius = 7.0 * Float(sqrt(radiusFactor)); | ||
//genx.radius = 7.0; | ||
maskExtend = genx.outputImage?.samplingLinear() ?? maskImage; | ||
|
||
|
||
} | ||
else if (inputAuraMask==6) | ||
{ | ||
maskExtend = inputMaskImage.applyingGaussianBlur(sigma: 6 * radiusFactor ).samplingLinear(); | ||
} | ||
*/ | ||
|
||
|
||
let samplingImage = inputImage; | ||
let extent = inputImage.extent | ||
|
||
|
||
|
||
let arguments = [inputImage, samplingImage, inputAnimType, inputAuraMask,inputRotation,inputTime,inputColor, param_sampletype] as [Any] | ||
|
||
|
||
|
||
return kernel.apply(extent: extent, | ||
roiCallback: | ||
{ | ||
(index, rect) in | ||
return rect | ||
}, | ||
arguments: arguments) | ||
|
||
} | ||
|
||
|
||
|
||
} | ||
|
||
|
Binary file not shown.
Oops, something went wrong.