react-native-video-processing 1.20.0 → 3.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -172
- package/VideoProcessing.podspec +29 -0
- package/android/build.gradle +42 -26
- package/android/src/main/AndroidManifest.xml +1 -3
- package/android/src/main/java/com/shahenlibrary/videoprocessing/MediaProbe.kt +105 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/PlanMath.kt +69 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/ProcessPlan.kt +100 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/SampleReverser.kt +79 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/SourceResolver.kt +81 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/ThumbnailGenerator.kt +61 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/TransformerRunner.kt +86 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/VideoProcessingError.kt +16 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/VideoProcessingModule.kt +133 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/VideoProcessingPackage.kt +25 -0
- package/android/src/main/java/com/shahenlibrary/videoprocessing/VideoProcessor.kt +146 -0
- package/ios/AudioSampleSource.swift +231 -0
- package/ios/FrameRenderer.swift +67 -0
- package/ios/MediaProbe.swift +93 -0
- package/ios/PlanMath.swift +67 -0
- package/ios/ProcessPlan.swift +112 -0
- package/ios/SourceResolver.swift +72 -0
- package/ios/ThumbnailGenerator.swift +65 -0
- package/ios/VideoExporter.swift +191 -0
- package/ios/VideoFrameSource.swift +169 -0
- package/ios/VideoProcessing.h +5 -0
- package/ios/VideoProcessing.mm +71 -0
- package/ios/VideoProcessingError.swift +26 -0
- package/ios/VideoProcessingImpl.swift +120 -0
- package/lib/module/NativeVideoProcessing.js +9 -0
- package/lib/module/NativeVideoProcessing.js.map +1 -0
- package/lib/module/Trimmer/Trimmer.js +246 -0
- package/lib/module/Trimmer/Trimmer.js.map +1 -0
- package/lib/module/Trimmer/trimmerMath.js +83 -0
- package/lib/module/Trimmer/trimmerMath.js.map +1 -0
- package/lib/module/VideoProcessing.js +127 -0
- package/lib/module/VideoProcessing.js.map +1 -0
- package/lib/module/errors.js +13 -0
- package/lib/module/errors.js.map +1 -0
- package/lib/module/index.js +6 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/source.js +21 -0
- package/lib/module/source.js.map +1 -0
- package/lib/module/types.js +2 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/validation.js +121 -0
- package/lib/module/validation.js.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/NativeVideoProcessing.d.ts +36 -0
- package/lib/typescript/src/NativeVideoProcessing.d.ts.map +1 -0
- package/lib/typescript/src/Trimmer/Trimmer.d.ts +26 -0
- package/lib/typescript/src/Trimmer/Trimmer.d.ts.map +1 -0
- package/lib/typescript/src/Trimmer/trimmerMath.d.ts +17 -0
- package/lib/typescript/src/Trimmer/trimmerMath.d.ts.map +1 -0
- package/lib/typescript/src/VideoProcessing.d.ts +14 -0
- package/lib/typescript/src/VideoProcessing.d.ts.map +1 -0
- package/lib/typescript/src/errors.d.ts +7 -0
- package/lib/typescript/src/errors.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +6 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/source.d.ts +3 -0
- package/lib/typescript/src/source.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +95 -0
- package/lib/typescript/src/types.d.ts.map +1 -0
- package/lib/typescript/src/validation.d.ts +21 -0
- package/lib/typescript/src/validation.d.ts.map +1 -0
- package/package.json +134 -57
- package/src/NativeVideoProcessing.ts +57 -0
- package/src/Trimmer/Trimmer.tsx +323 -0
- package/src/Trimmer/trimmerMath.ts +99 -0
- package/src/VideoProcessing.ts +152 -0
- package/src/errors.ts +15 -0
- package/src/index.tsx +16 -0
- package/src/source.ts +21 -0
- package/src/types.ts +101 -0
- package/src/validation.ts +168 -0
- package/.babelrc +0 -3
- package/.eslintrc +0 -28
- package/.flowconfig +0 -7
- package/.travis.yml +0 -16
- package/CODE_OF_CONDUCT.md +0 -46
- package/ISSUE_TEMPLATE.md +0 -21
- package/android/react-native-video-processing.iml +0 -126
- package/android/src/main/assets/armeabi-v7a/ffmpeg +0 -0
- package/android/src/main/java/com/shahenlibrary/Events/Events.java +0 -17
- package/android/src/main/java/com/shahenlibrary/Events/EventsEnum.java +0 -19
- package/android/src/main/java/com/shahenlibrary/RNVideoProcessingPackage.java +0 -56
- package/android/src/main/java/com/shahenlibrary/Trimmer/Trimmer.java +0 -831
- package/android/src/main/java/com/shahenlibrary/Trimmer/TrimmerManager.java +0 -114
- package/android/src/main/java/com/shahenlibrary/VideoPlayer/VideoPlayerView.java +0 -524
- package/android/src/main/java/com/shahenlibrary/VideoPlayer/VideoPlayerViewManager.java +0 -202
- package/android/src/main/java/com/shahenlibrary/interfaces/OnCompressVideoListener.java +0 -8
- package/android/src/main/java/com/shahenlibrary/interfaces/OnTrimVideoListener.java +0 -36
- package/android/src/main/java/com/shahenlibrary/utils/VideoEdit.java +0 -239
- package/index.js +0 -1
- package/init/index.js +0 -7
- package/ios/GPUImage/.travis.yml +0 -26
- package/ios/GPUImage/GPUImage.podspec +0 -27
- package/ios/GPUImage/License.txt +0 -9
- package/ios/GPUImage/README.md +0 -756
- package/ios/GPUImage/build.sh +0 -31
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/FilterShowcase-Info.plist +0 -34
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/FilterShowcase-Prefix.pch +0 -7
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/SLSAppDelegate.h +0 -9
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/SLSAppDelegate.m +0 -13
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/en.lproj/Credits.rtf +0 -29
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/en.lproj/MainMenu.xib +0 -3139
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase/main.m +0 -6
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase.xcodeproj/project.pbxproj +0 -429
- package/ios/GPUImage/examples/Mac/FilterShowcase/FilterShowcase.xcodeproj/xcshareddata/xcschemes/FilterShowcase.xcscheme +0 -86
- package/ios/GPUImage/examples/Mac/FilterShowcase/SLSFilterShowcaseWindowController.h +0 -134
- package/ios/GPUImage/examples/Mac/FilterShowcase/SLSFilterShowcaseWindowController.m +0 -1408
- package/ios/GPUImage/examples/Mac/FilterShowcase/SLSFilterShowcaseWindowController.xib +0 -581
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/AppDelegate.swift +0 -14
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/Base.lproj/MainMenu.xib +0 -666
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/FilterShowcaseWindowController.swift +0 -97
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/FilterShowcaseWindowController.xib +0 -95
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/Images.xcassets/AppIcon.appiconset/Contents.json +0 -58
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/Info.plist +0 -34
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift/main.swift +0 -3
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwift.xcodeproj/project.pbxproj +0 -538
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwiftTests/FilterShowcaseSwiftTests.swift +0 -36
- package/ios/GPUImage/examples/Mac/FilterShowcaseSwift/FilterShowcaseSwiftTests/Info.plist +0 -24
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/MultiViewFilterExample-Info.plist +0 -34
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/MultiViewFilterExample-Prefix.pch +0 -7
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/SLSAppDelegate.h +0 -11
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/SLSAppDelegate.m +0 -11
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/SLSMultiViewWindowController.h +0 -12
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/SLSMultiViewWindowController.m +0 -45
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/SLSMultiViewWindowController.xib +0 -309
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/Shader1.fsh +0 -19
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/Shader2.fsh +0 -11
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/en.lproj/Credits.rtf +0 -29
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/en.lproj/MainMenu.xib +0 -3128
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample/main.m +0 -6
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample.xcodeproj/project.pbxproj +0 -401
- package/ios/GPUImage/examples/Mac/MultiViewFilterExample/MultiViewFilterExample.xcodeproj/xcshareddata/xcschemes/MultiViewFilterExample.xcscheme +0 -86
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample/GPUImagePlayground.playground/Resources/ChairTest.png +0 -0
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample/GPUImagePlayground.playground/Resources/CustomFilter.fsh +0 -19
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample/GPUImagePlayground.playground/contents.xcplayground +0 -7
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample/GPUImagePlayground.playground/section-1.swift +0 -10
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample/GPUImagePlayground.playground/timeline.xctimeline +0 -15
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample/main.swift +0 -4
- package/ios/GPUImage/examples/Mac/PlaygroundExample/PlaygroundExample.xcodeproj/project.pbxproj +0 -307
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/AppDelegate.h +0 -10
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/AppDelegate.m +0 -16
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/Base.lproj/MainMenu.xib +0 -417
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/Images.xcassets/AppIcon.appiconset/Contents.json +0 -58
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/Info.plist +0 -34
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/ShaderDesignerWindowController.h +0 -31
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/ShaderDesignerWindowController.m +0 -165
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/ShaderDesignerWindowController.xib +0 -216
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner/main.m +0 -5
- package/ios/GPUImage/examples/Mac/ShaderDesigner/ShaderDesigner.xcodeproj/project.pbxproj +0 -361
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/SLSDocument.h +0 -13
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/SLSDocument.m +0 -83
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/SimplePhotoFilter-Info.plist +0 -67
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/SimplePhotoFilter-Prefix.pch +0 -7
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/en.lproj/Credits.rtf +0 -29
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/en.lproj/MainMenu.xib +0 -4562
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/en.lproj/SLSDocument.xib +0 -537
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter/main.m +0 -14
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter.xcodeproj/project.pbxproj +0 -389
- package/ios/GPUImage/examples/Mac/SimplePhotoFilter/SimplePhotoFilter.xcodeproj/xcshareddata/xcschemes/SimplePhotoFilter.xcscheme +0 -86
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFileFilter.xcodeproj/project.pbxproj +0 -500
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/AppDelegate.h +0 -10
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/AppDelegate.m +0 -21
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/Base.lproj/MainMenu.xib +0 -676
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/Images.xcassets/AppIcon.appiconset/Contents.json +0 -58
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/Info.plist +0 -34
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/SLSSimpleVideoFileFilterWindowController.h +0 -5
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/SLSSimpleVideoFileFilterWindowController.m +0 -116
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/SLSSimpleVideoFileFilterWindowController.xib +0 -95
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/main.m +0 -13
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilter/sample_iPod.m4v +0 -0
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilterTests/Info.plist +0 -24
- package/ios/GPUImage/examples/Mac/SimpleVideoFileFilter/SimpleVideoFilterTests/SimpleVideoFilterTests.m +0 -40
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/AppDelegate.h +0 -10
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/AppDelegate.m +0 -21
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/Base.lproj/MainMenu.xib +0 -676
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/Images.xcassets/AppIcon.appiconset/Contents.json +0 -58
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/Info.plist +0 -34
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/SLSSimpleVideoFilterWindowController.h +0 -13
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/SLSSimpleVideoFilterWindowController.m +0 -65
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/SLSSimpleVideoFilterWindowController.xib +0 -34
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter/main.m +0 -13
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilter.xcodeproj/project.pbxproj +0 -495
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilterTests/Info.plist +0 -24
- package/ios/GPUImage/examples/Mac/SimpleVideoFilter/SimpleVideoFilterTests/SimpleVideoFilterTests.m +0 -40
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/41-picture-frame.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/41-picture-frame@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/46-movie-2.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/46-movie-2@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/86-camera.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/86-camera@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkAppDelegate.h +0 -13
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkAppDelegate.m +0 -81
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkSuite-Info.plist +0 -51
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkSuite-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkTableViewController.h +0 -11
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkTableViewController.m +0 -152
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/BenchmarkTableViewController.xib +0 -186
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/ImageFilteringBenchmarkController.h +0 -14
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/ImageFilteringBenchmarkController.m +0 -166
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringBenchmarkController.h +0 -9
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringBenchmarkController.m +0 -28
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.h +0 -46
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.m +0 -305
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/VideoFilteringDisplayController.xib +0 -119
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite/main.m +0 -10
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite.xcodeproj/project.pbxproj +0 -473
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/BenchmarkSuite.xcodeproj/xcshareddata/xcschemes/BenchmarkSuite.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/BenchmarkSuite/GlyphishIconLicense.txt +0 -14
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/ColorObjectTracking-Info.plist +0 -51
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/ColorObjectTracking-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/ColorTrackingAppDelegate.h +0 -12
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/ColorTrackingAppDelegate.m +0 -33
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/ColorTrackingViewController.h +0 -31
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/ColorTrackingViewController.m +0 -292
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/PositionColor.fsh +0 -45
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/Threshold.fsh +0 -39
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking/main.m +0 -10
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking.xcodeproj/project.pbxproj +0 -425
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/ColorObjectTracking.xcodeproj/xcshareddata/xcschemes/ColorObjectTracking.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/ColorObjectTracking/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/CubeExampleAppDelegate.h +0 -15
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/CubeExampleAppDelegate.m +0 -42
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/DisplayViewController.h +0 -21
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/DisplayViewController.m +0 -98
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/ES2Renderer.h +0 -44
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/ES2Renderer.m +0 -491
- package/ios/GPUImage/examples/iOS/CubeExample/Classes/ESRenderer.h +0 -10
- package/ios/GPUImage/examples/iOS/CubeExample/CubeExample-Info.plist +0 -49
- package/ios/GPUImage/examples/iOS/CubeExample/CubeExample.xcodeproj/project.pbxproj +0 -402
- package/ios/GPUImage/examples/iOS/CubeExample/CubeExample.xcodeproj/xcshareddata/xcschemes/CubeExample.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/CubeExample/CubeExample_Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/CubeExample/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/CubeExample/Shaders/Shader.fsh +0 -9
- package/ios/GPUImage/examples/iOS/CubeExample/Shaders/Shader.vsh +0 -12
- package/ios/GPUImage/examples/iOS/CubeExample/main.m +0 -17
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/71yih.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/8pixeltest.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/ChairTest.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/FeatureExtractionAppDelegate.h +0 -15
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/FeatureExtractionAppDelegate.m +0 -298
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/FeatureExtractionTest-Info.plist +0 -49
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/FeatureExtractionTest-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/GaussianTest.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/LBPTest.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/LineTest.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/LineTest2.png +0 -0
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest/main.m +0 -10
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest.xcodeproj/project.pbxproj +0 -432
- package/ios/GPUImage/examples/iOS/FeatureExtractionTest/FeatureExtractionTest.xcodeproj/xcshareddata/xcschemes/FeatureExtractionTest.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/FilterShowcase/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/CustomFilter.fsh +0 -19
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/FilterShowcase-Info.plist +0 -47
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/FilterShowcase-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/SampleConfiguration.plist +0 -24
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseAppDelegate.h +0 -14
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseAppDelegate.m +0 -24
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseFilterListController.h +0 -5
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseFilterListController.m +0 -242
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseFilterViewController.h +0 -157
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseFilterViewController.m +0 -1842
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/ShowcaseFilterViewController.xib +0 -242
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/curvies.png +0 -0
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/dotletterstiles.png +0 -0
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/main.m +0 -10
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/mask.png +0 -0
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/squares.png +0 -0
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase/voroni_points2.png +0 -0
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase.xcodeproj/project.pbxproj +0 -493
- package/ios/GPUImage/examples/iOS/FilterShowcase/FilterShowcase.xcodeproj/xcshareddata/xcschemes/FilterShowcase.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/AppDelegate.swift +0 -12
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/Base.lproj/Main.storyboard +0 -104
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/FilterDisplayViewController.swift +0 -91
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/FilterListViewController.swift +0 -37
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/FilterOperationTypes.swift +0 -69
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/FilterOperations.swift +0 -1211
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/Images.xcassets/AppIcon.appiconset/Contents.json +0 -68
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/Images.xcassets/LaunchImage.launchimage/Contents.json +0 -51
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift/Info.plist +0 -50
- package/ios/GPUImage/examples/iOS/FilterShowcaseSwift/FilterShowcaseSwift.xcodeproj/project.pbxproj +0 -430
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/MultiViewAppDelegate.h +0 -11
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/MultiViewAppDelegate.m +0 -66
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/MultiViewFilterExample-Info.plist +0 -49
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/MultiViewFilterExample-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/MultiViewViewController.h +0 -10
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/MultiViewViewController.m +0 -98
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/Shader1.fsh +0 -19
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/Shader2.fsh +0 -11
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample/main.m +0 -10
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample.xcodeproj/project.pbxproj +0 -423
- package/ios/GPUImage/examples/iOS/MultiViewFilterExample/MultiViewFilterExample.xcodeproj/xcshareddata/xcschemes/MultiViewFilterExample.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/RawDataTest/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/CalculationShader.fsh +0 -11
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/RawDataTest-Info.plist +0 -47
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/RawDataTest-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/RawDataTestAppDelegate.h +0 -8
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/RawDataTestAppDelegate.m +0 -56
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest/main.m +0 -10
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest.xcodeproj/project.pbxproj +0 -404
- package/ios/GPUImage/examples/iOS/RawDataTest/RawDataTest.xcodeproj/xcshareddata/xcschemes/RawDataTest.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon-72.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon-72@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon-Small-50.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon-Small-50@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon-Small.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon-Small@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/Icon@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SharedIcons/iTunesArtwork.png +0 -0
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/Lambeau.jpg +0 -0
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/SimpleImageAppDelegate.h +0 -12
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/SimpleImageAppDelegate.m +0 -20
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/SimpleImageFilter-Info.plist +0 -46
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/SimpleImageFilter-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/SimpleImageViewController.h +0 -19
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/SimpleImageViewController.m +0 -189
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/WID-small.jpg +0 -0
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter/main.m +0 -10
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter.xcodeproj/project.pbxproj +0 -421
- package/ios/GPUImage/examples/iOS/SimpleImageFilter/SimpleImageFilter.xcodeproj/xcshareddata/xcschemes/SimpleImageFilter.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/PhotoAppDelegate.h +0 -12
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/PhotoAppDelegate.m +0 -49
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/PhotoViewController.h +0 -17
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/PhotoViewController.m +0 -132
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/SimplePhotoFilter-Info.plist +0 -49
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/SimplePhotoFilter-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter/main.m +0 -10
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter.xcodeproj/project.pbxproj +0 -414
- package/ios/GPUImage/examples/iOS/SimplePhotoFilter/SimplePhotoFilter.xcodeproj/xcshareddata/xcschemes/SimplePhotoFilter.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample/AppDelegate.swift +0 -11
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample/Base.lproj/Main.storyboard +0 -26
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample/Images.xcassets/LaunchImage.launchimage/Contents.json +0 -51
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample/Info.plist +0 -36
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample/ViewController.swift +0 -19
- package/ios/GPUImage/examples/iOS/SimpleSwiftVideoFilterExample/SimpleSwiftVideoFilterExample.xcodeproj/project.pbxproj +0 -375
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilter-Info.plist +0 -51
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilter-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilterAppDelegate.h +0 -11
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilterAppDelegate.m +0 -71
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilterViewController.h +0 -15
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilterViewController.m +0 -97
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/SimpleVideoFileFilterViewController.xib +0 -47
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/WID-small.jpg +0 -0
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/main.m +0 -10
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter/sample_iPod.m4v +0 -0
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter.xcodeproj/project.pbxproj +0 -431
- package/ios/GPUImage/examples/iOS/SimpleVideoFileFilter/SimpleVideoFileFilter.xcodeproj/xcshareddata/xcschemes/SimpleVideoFileFilter.xcscheme +0 -86
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/Default-568h@2x.png +0 -0
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilter-Info.plist +0 -51
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilter-Prefix.pch +0 -14
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilterAppDelegate.h +0 -11
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilterAppDelegate.m +0 -70
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilterViewController.h +0 -13
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilterViewController.m +0 -167
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/SimpleVideoFilterViewController.xib +0 -30
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter/main.m +0 -10
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter.xcodeproj/project.pbxproj +0 -430
- package/ios/GPUImage/examples/iOS/SimpleVideoFilter/SimpleVideoFilter.xcodeproj/xcshareddata/xcschemes/SimpleVideoFilter.xcscheme +0 -86
- package/ios/GPUImage/framework/GPUImage.xcodeproj/project.pbxproj +0 -2609
- package/ios/GPUImage/framework/GPUImage.xcodeproj/xcshareddata/xcschemes/Documentation.xcscheme +0 -71
- package/ios/GPUImage/framework/GPUImage.xcodeproj/xcshareddata/xcschemes/GPUImage.xcscheme +0 -81
- package/ios/GPUImage/framework/GPUImage.xcodeproj/xcshareddata/xcschemes/GPUImageFramework.xcscheme +0 -73
- package/ios/GPUImage/framework/GPUImageMac.xcodeproj/project.pbxproj +0 -1647
- package/ios/GPUImage/framework/GPUImageMac.xcodeproj/xcshareddata/xcschemes/GPUImage.xcscheme +0 -59
- package/ios/GPUImage/framework/Resources/lookup.png +0 -0
- package/ios/GPUImage/framework/Resources/lookup_amatorka.png +0 -0
- package/ios/GPUImage/framework/Resources/lookup_miss_etikate.png +0 -0
- package/ios/GPUImage/framework/Resources/lookup_soft_elegance_1.png +0 -0
- package/ios/GPUImage/framework/Resources/lookup_soft_elegance_2.png +0 -0
- package/ios/GPUImage/framework/Source/GLProgram.h +0 -42
- package/ios/GPUImage/framework/Source/GLProgram.m +0 -236
- package/ios/GPUImage/framework/Source/GPUImage.h +0 -170
- package/ios/GPUImage/framework/Source/GPUImage3x3ConvolutionFilter.h +0 -18
- package/ios/GPUImage/framework/Source/GPUImage3x3ConvolutionFilter.m +0 -128
- package/ios/GPUImage/framework/Source/GPUImage3x3TextureSamplingFilter.h +0 -18
- package/ios/GPUImage/framework/Source/GPUImage3x3TextureSamplingFilter.m +0 -121
- package/ios/GPUImage/framework/Source/GPUImageAdaptiveThresholdFilter.h +0 -9
- package/ios/GPUImage/framework/Source/GPUImageAdaptiveThresholdFilter.m +0 -100
- package/ios/GPUImage/framework/Source/GPUImageAddBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageAddBlendFilter.m +0 -100
- package/ios/GPUImage/framework/Source/GPUImageAlphaBlendFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageAlphaBlendFilter.m +0 -72
- package/ios/GPUImage/framework/Source/GPUImageAmatorkaFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageAmatorkaFilter.m +0 -38
- package/ios/GPUImage/framework/Source/GPUImageAverageColor.h +0 -20
- package/ios/GPUImage/framework/Source/GPUImageAverageColor.m +0 -204
- package/ios/GPUImage/framework/Source/GPUImageAverageLuminanceThresholdFilter.h +0 -8
- package/ios/GPUImage/framework/Source/GPUImageAverageLuminanceThresholdFilter.m +0 -47
- package/ios/GPUImage/framework/Source/GPUImageBilateralFilter.h +0 -10
- package/ios/GPUImage/framework/Source/GPUImageBilateralFilter.m +0 -231
- package/ios/GPUImage/framework/Source/GPUImageBoxBlurFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageBoxBlurFilter.m +0 -178
- package/ios/GPUImage/framework/Source/GPUImageBrightnessFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageBrightnessFilter.m +0 -66
- package/ios/GPUImage/framework/Source/GPUImageBuffer.h +0 -10
- package/ios/GPUImage/framework/Source/GPUImageBuffer.m +0 -112
- package/ios/GPUImage/framework/Source/GPUImageBulgeDistortionFilter.h +0 -16
- package/ios/GPUImage/framework/Source/GPUImageBulgeDistortionFilter.m +0 -174
- package/ios/GPUImage/framework/Source/GPUImageCGAColorspaceFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageCGAColorspaceFilter.m +0 -113
- package/ios/GPUImage/framework/Source/GPUImageCannyEdgeDetectionFilter.h +0 -62
- package/ios/GPUImage/framework/Source/GPUImageCannyEdgeDetectionFilter.m +0 -125
- package/ios/GPUImage/framework/Source/GPUImageChromaKeyBlendFilter.h +0 -32
- package/ios/GPUImage/framework/Source/GPUImageChromaKeyBlendFilter.m +0 -117
- package/ios/GPUImage/framework/Source/GPUImageChromaKeyFilter.h +0 -30
- package/ios/GPUImage/framework/Source/GPUImageChromaKeyFilter.m +0 -113
- package/ios/GPUImage/framework/Source/GPUImageClosingFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageClosingFilter.m +0 -57
- package/ios/GPUImage/framework/Source/GPUImageColorBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageColorBlendFilter.m +0 -113
- package/ios/GPUImage/framework/Source/GPUImageColorBurnBlendFilter.h +0 -9
- package/ios/GPUImage/framework/Source/GPUImageColorBurnBlendFilter.m +0 -52
- package/ios/GPUImage/framework/Source/GPUImageColorConversion.h +0 -12
- package/ios/GPUImage/framework/Source/GPUImageColorConversion.m +0 -159
- package/ios/GPUImage/framework/Source/GPUImageColorDodgeBlendFilter.h +0 -9
- package/ios/GPUImage/framework/Source/GPUImageColorDodgeBlendFilter.m +0 -75
- package/ios/GPUImage/framework/Source/GPUImageColorInvertFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageColorInvertFilter.m +0 -46
- package/ios/GPUImage/framework/Source/GPUImageColorLocalBinaryPatternFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageColorLocalBinaryPatternFilter.m +0 -159
- package/ios/GPUImage/framework/Source/GPUImageColorMatrixFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageColorMatrixFilter.m +0 -87
- package/ios/GPUImage/framework/Source/GPUImageColorPackingFilter.h +0 -10
- package/ios/GPUImage/framework/Source/GPUImageColorPackingFilter.m +0 -139
- package/ios/GPUImage/framework/Source/GPUImageColourFASTFeatureDetector.h +0 -21
- package/ios/GPUImage/framework/Source/GPUImageColourFASTFeatureDetector.m +0 -48
- package/ios/GPUImage/framework/Source/GPUImageColourFASTSamplingOperation.h +0 -22
- package/ios/GPUImage/framework/Source/GPUImageColourFASTSamplingOperation.m +0 -204
- package/ios/GPUImage/framework/Source/GPUImageContrastFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageContrastFilter.m +0 -66
- package/ios/GPUImage/framework/Source/GPUImageCropFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageCropFilter.m +0 -274
- package/ios/GPUImage/framework/Source/GPUImageCrosshairGenerator.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageCrosshairGenerator.m +0 -139
- package/ios/GPUImage/framework/Source/GPUImageCrosshatchFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageCrosshatchFilter.m +0 -163
- package/ios/GPUImage/framework/Source/GPUImageDarkenBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageDarkenBlendFilter.m +0 -52
- package/ios/GPUImage/framework/Source/GPUImageDifferenceBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageDifferenceBlendFilter.m +0 -50
- package/ios/GPUImage/framework/Source/GPUImageDilationFilter.h +0 -16
- package/ios/GPUImage/framework/Source/GPUImageDilationFilter.m +0 -431
- package/ios/GPUImage/framework/Source/GPUImageDirectionalNonMaximumSuppressionFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageDirectionalNonMaximumSuppressionFilter.m +0 -141
- package/ios/GPUImage/framework/Source/GPUImageDirectionalSobelEdgeDetectionFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageDirectionalSobelEdgeDetectionFilter.m +0 -103
- package/ios/GPUImage/framework/Source/GPUImageDissolveBlendFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageDissolveBlendFilter.m +0 -72
- package/ios/GPUImage/framework/Source/GPUImageDivideBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageDivideBlendFilter.m +0 -96
- package/ios/GPUImage/framework/Source/GPUImageEmbossFilter.h +0 -8
- package/ios/GPUImage/framework/Source/GPUImageEmbossFilter.m +0 -49
- package/ios/GPUImage/framework/Source/GPUImageErosionFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageErosionFilter.m +0 -312
- package/ios/GPUImage/framework/Source/GPUImageExclusionBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageExclusionBlendFilter.m +0 -56
- package/ios/GPUImage/framework/Source/GPUImageExposureFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageExposureFilter.m +0 -66
- package/ios/GPUImage/framework/Source/GPUImageFASTCornerDetectionFilter.h +0 -33
- package/ios/GPUImage/framework/Source/GPUImageFASTCornerDetectionFilter.m +0 -89
- package/ios/GPUImage/framework/Source/GPUImageFalseColorFilter.h +0 -15
- package/ios/GPUImage/framework/Source/GPUImageFalseColorFilter.m +0 -101
- package/ios/GPUImage/framework/Source/GPUImageFilter.h +0 -134
- package/ios/GPUImage/framework/Source/GPUImageFilter.m +0 -753
- package/ios/GPUImage/framework/Source/GPUImageFilterGroup.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageFilterGroup.m +0 -208
- package/ios/GPUImage/framework/Source/GPUImageFilterPipeline.h +0 -30
- package/ios/GPUImage/framework/Source/GPUImageFilterPipeline.m +0 -218
- package/ios/GPUImage/framework/Source/GPUImageFourInputFilter.h +0 -21
- package/ios/GPUImage/framework/Source/GPUImageFourInputFilter.m +0 -401
- package/ios/GPUImage/framework/Source/GPUImageFramebuffer.h +0 -59
- package/ios/GPUImage/framework/Source/GPUImageFramebuffer.m +0 -457
- package/ios/GPUImage/framework/Source/GPUImageFramebufferCache.h +0 -15
- package/ios/GPUImage/framework/Source/GPUImageFramebufferCache.m +0 -190
- package/ios/GPUImage/framework/Source/GPUImageGammaFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageGammaFilter.m +0 -66
- package/ios/GPUImage/framework/Source/GPUImageGaussianBlurFilter.h +0 -36
- package/ios/GPUImage/framework/Source/GPUImageGaussianBlurFilter.m +0 -513
- package/ios/GPUImage/framework/Source/GPUImageGaussianBlurPositionFilter.h +0 -22
- package/ios/GPUImage/framework/Source/GPUImageGaussianBlurPositionFilter.m +0 -232
- package/ios/GPUImage/framework/Source/GPUImageGaussianSelectiveBlurFilter.h +0 -30
- package/ios/GPUImage/framework/Source/GPUImageGaussianSelectiveBlurFilter.m +0 -147
- package/ios/GPUImage/framework/Source/GPUImageGlassSphereFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageGlassSphereFilter.m +0 -106
- package/ios/GPUImage/framework/Source/GPUImageGrayscaleFilter.h +0 -9
- package/ios/GPUImage/framework/Source/GPUImageGrayscaleFilter.m +0 -141
- package/ios/GPUImage/framework/Source/GPUImageHSBFilter.h +0 -27
- package/ios/GPUImage/framework/Source/GPUImageHSBFilter.m +0 -414
- package/ios/GPUImage/framework/Source/GPUImageHalftoneFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageHalftoneFilter.m +0 -79
- package/ios/GPUImage/framework/Source/GPUImageHardLightBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageHardLightBlendFilter.m +0 -99
- package/ios/GPUImage/framework/Source/GPUImageHarrisCornerDetectionFilter.h +0 -53
- package/ios/GPUImage/framework/Source/GPUImageHarrisCornerDetectionFilter.m +0 -292
- package/ios/GPUImage/framework/Source/GPUImageHazeFilter.h +0 -29
- package/ios/GPUImage/framework/Source/GPUImageHazeFilter.m +0 -96
- package/ios/GPUImage/framework/Source/GPUImageHighPassFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageHighPassFilter.m +0 -46
- package/ios/GPUImage/framework/Source/GPUImageHighlightShadowFilter.h +0 -20
- package/ios/GPUImage/framework/Source/GPUImageHighlightShadowFilter.m +0 -93
- package/ios/GPUImage/framework/Source/GPUImageHighlightShadowTintFilter.h +0 -25
- package/ios/GPUImage/framework/Source/GPUImageHighlightShadowTintFilter.m +0 -136
- package/ios/GPUImage/framework/Source/GPUImageHistogramEqualizationFilter.h +0 -26
- package/ios/GPUImage/framework/Source/GPUImageHistogramEqualizationFilter.m +0 -307
- package/ios/GPUImage/framework/Source/GPUImageHistogramFilter.h +0 -22
- package/ios/GPUImage/framework/Source/GPUImageHistogramFilter.m +0 -341
- package/ios/GPUImage/framework/Source/GPUImageHistogramGenerator.h +0 -8
- package/ios/GPUImage/framework/Source/GPUImageHistogramGenerator.m +0 -87
- package/ios/GPUImage/framework/Source/GPUImageHoughTransformLineDetector.h +0 -49
- package/ios/GPUImage/framework/Source/GPUImageHoughTransformLineDetector.m +0 -241
- package/ios/GPUImage/framework/Source/GPUImageHueBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageHueBlendFilter.m +0 -212
- package/ios/GPUImage/framework/Source/GPUImageHueFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageHueFilter.m +0 -123
- package/ios/GPUImage/framework/Source/GPUImageJFAVoronoiFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageJFAVoronoiFilter.m +0 -446
- package/ios/GPUImage/framework/Source/GPUImageKuwaharaFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageKuwaharaFilter.m +0 -223
- package/ios/GPUImage/framework/Source/GPUImageKuwaharaRadius3Filter.h +0 -8
- package/ios/GPUImage/framework/Source/GPUImageKuwaharaRadius3Filter.m +0 -547
- package/ios/GPUImage/framework/Source/GPUImageLanczosResamplingFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageLanczosResamplingFilter.m +0 -239
- package/ios/GPUImage/framework/Source/GPUImageLaplacianFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageLaplacianFilter.m +0 -115
- package/ios/GPUImage/framework/Source/GPUImageLevelsFilter.h +0 -45
- package/ios/GPUImage/framework/Source/GPUImageLevelsFilter.m +0 -152
- package/ios/GPUImage/framework/Source/GPUImageLightenBlendFilter.h +0 -8
- package/ios/GPUImage/framework/Source/GPUImageLightenBlendFilter.m +0 -52
- package/ios/GPUImage/framework/Source/GPUImageLineGenerator.h +0 -18
- package/ios/GPUImage/framework/Source/GPUImageLineGenerator.m +0 -164
- package/ios/GPUImage/framework/Source/GPUImageLinearBurnBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageLinearBurnBlendFilter.m +0 -51
- package/ios/GPUImage/framework/Source/GPUImageLocalBinaryPatternFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageLocalBinaryPatternFilter.m +0 -123
- package/ios/GPUImage/framework/Source/GPUImageLookupFilter.h +0 -34
- package/ios/GPUImage/framework/Source/GPUImageLookupFilter.m +0 -115
- package/ios/GPUImage/framework/Source/GPUImageLowPassFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageLowPassFilter.m +0 -61
- package/ios/GPUImage/framework/Source/GPUImageLuminanceRangeFilter.h +0 -12
- package/ios/GPUImage/framework/Source/GPUImageLuminanceRangeFilter.m +0 -76
- package/ios/GPUImage/framework/Source/GPUImageLuminanceThresholdFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageLuminanceThresholdFilter.m +0 -74
- package/ios/GPUImage/framework/Source/GPUImageLuminosity.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageLuminosity.m +0 -329
- package/ios/GPUImage/framework/Source/GPUImageLuminosityBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageLuminosityBlendFilter.m +0 -113
- package/ios/GPUImage/framework/Source/GPUImageMaskFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageMaskFilter.m +0 -76
- package/ios/GPUImage/framework/Source/GPUImageMedianFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageMedianFilter.m +0 -178
- package/ios/GPUImage/framework/Source/GPUImageMissEtikateFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageMissEtikateFilter.m +0 -38
- package/ios/GPUImage/framework/Source/GPUImageMonochromeFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageMonochromeFilter.m +0 -115
- package/ios/GPUImage/framework/Source/GPUImageMosaicFilter.h +0 -22
- package/ios/GPUImage/framework/Source/GPUImageMosaicFilter.m +0 -188
- package/ios/GPUImage/framework/Source/GPUImageMotionBlurFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageMotionBlurFilter.m +0 -209
- package/ios/GPUImage/framework/Source/GPUImageMotionDetector.h +0 -18
- package/ios/GPUImage/framework/Source/GPUImageMotionDetector.m +0 -112
- package/ios/GPUImage/framework/Source/GPUImageMovie.h +0 -61
- package/ios/GPUImage/framework/Source/GPUImageMovie.m +0 -876
- package/ios/GPUImage/framework/Source/GPUImageMovieComposition.h +0 -21
- package/ios/GPUImage/framework/Source/GPUImageMovieComposition.m +0 -70
- package/ios/GPUImage/framework/Source/GPUImageMultiplyBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageMultiplyBlendFilter.m +0 -52
- package/ios/GPUImage/framework/Source/GPUImageNobleCornerDetectionFilter.h +0 -12
- package/ios/GPUImage/framework/Source/GPUImageNobleCornerDetectionFilter.m +0 -74
- package/ios/GPUImage/framework/Source/GPUImageNonMaximumSuppressionFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageNonMaximumSuppressionFilter.m +0 -107
- package/ios/GPUImage/framework/Source/GPUImageNormalBlendFilter.h +0 -8
- package/ios/GPUImage/framework/Source/GPUImageNormalBlendFilter.m +0 -96
- package/ios/GPUImage/framework/Source/GPUImageOpacityFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageOpacityFilter.m +0 -65
- package/ios/GPUImage/framework/Source/GPUImageOpeningFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageOpeningFilter.m +0 -57
- package/ios/GPUImage/framework/Source/GPUImageOutput.h +0 -128
- package/ios/GPUImage/framework/Source/GPUImageOutput.m +0 -439
- package/ios/GPUImage/framework/Source/GPUImageOverlayBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageOverlayBlendFilter.m +0 -94
- package/ios/GPUImage/framework/Source/GPUImageParallelCoordinateLineTransformFilter.h +0 -16
- package/ios/GPUImage/framework/Source/GPUImageParallelCoordinateLineTransformFilter.m +0 -266
- package/ios/GPUImage/framework/Source/GPUImagePerlinNoiseFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImagePerlinNoiseFilter.m +0 -239
- package/ios/GPUImage/framework/Source/GPUImagePinchDistortionFilter.h +0 -20
- package/ios/GPUImage/framework/Source/GPUImagePinchDistortionFilter.m +0 -176
- package/ios/GPUImage/framework/Source/GPUImagePixellateFilter.h +0 -12
- package/ios/GPUImage/framework/Source/GPUImagePixellateFilter.m +0 -151
- package/ios/GPUImage/framework/Source/GPUImagePixellatePositionFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImagePixellatePositionFilter.m +0 -194
- package/ios/GPUImage/framework/Source/GPUImagePoissonBlendFilter.h +0 -18
- package/ios/GPUImage/framework/Source/GPUImagePoissonBlendFilter.m +0 -175
- package/ios/GPUImage/framework/Source/GPUImagePolarPixellateFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImagePolarPixellateFilter.m +0 -128
- package/ios/GPUImage/framework/Source/GPUImagePolkaDotFilter.h +0 -10
- package/ios/GPUImage/framework/Source/GPUImagePolkaDotFilter.m +0 -85
- package/ios/GPUImage/framework/Source/GPUImagePosterizeFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImagePosterizeFilter.m +0 -66
- package/ios/GPUImage/framework/Source/GPUImagePrewittEdgeDetectionFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImagePrewittEdgeDetectionFilter.m +0 -97
- package/ios/GPUImage/framework/Source/GPUImageRGBClosingFilter.h +0 -18
- package/ios/GPUImage/framework/Source/GPUImageRGBClosingFilter.m +0 -41
- package/ios/GPUImage/framework/Source/GPUImageRGBDilationFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageRGBDilationFilter.m +0 -306
- package/ios/GPUImage/framework/Source/GPUImageRGBErosionFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageRGBErosionFilter.m +0 -304
- package/ios/GPUImage/framework/Source/GPUImageRGBFilter.h +0 -15
- package/ios/GPUImage/framework/Source/GPUImageRGBFilter.m +0 -89
- package/ios/GPUImage/framework/Source/GPUImageRGBOpeningFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageRGBOpeningFilter.m +0 -41
- package/ios/GPUImage/framework/Source/GPUImageRawDataInput.h +0 -43
- package/ios/GPUImage/framework/Source/GPUImageRawDataInput.m +0 -139
- package/ios/GPUImage/framework/Source/GPUImageRawDataOutput.h +0 -44
- package/ios/GPUImage/framework/Source/GPUImageRawDataOutput.m +0 -307
- package/ios/GPUImage/framework/Source/GPUImageSaturationBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageSaturationBlendFilter.m +0 -213
- package/ios/GPUImage/framework/Source/GPUImageSaturationFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageSaturationFilter.m +0 -78
- package/ios/GPUImage/framework/Source/GPUImageScreenBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageScreenBlendFilter.m +0 -52
- package/ios/GPUImage/framework/Source/GPUImageSepiaFilter.h +0 -6
- package/ios/GPUImage/framework/Source/GPUImageSepiaFilter.m +0 -24
- package/ios/GPUImage/framework/Source/GPUImageSharpenFilter.h +0 -12
- package/ios/GPUImage/framework/Source/GPUImageSharpenFilter.m +0 -147
- package/ios/GPUImage/framework/Source/GPUImageShiTomasiFeatureDetectionFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageShiTomasiFeatureDetectionFilter.m +0 -65
- package/ios/GPUImage/framework/Source/GPUImageSingleComponentGaussianBlurFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageSingleComponentGaussianBlurFilter.m +0 -189
- package/ios/GPUImage/framework/Source/GPUImageSketchFilter.h +0 -11
- package/ios/GPUImage/framework/Source/GPUImageSketchFilter.m +0 -98
- package/ios/GPUImage/framework/Source/GPUImageSkinToneFilter.h +0 -47
- package/ios/GPUImage/framework/Source/GPUImageSkinToneFilter.m +0 -246
- package/ios/GPUImage/framework/Source/GPUImageSmoothToonFilter.h +0 -28
- package/ios/GPUImage/framework/Source/GPUImageSmoothToonFilter.m +0 -94
- package/ios/GPUImage/framework/Source/GPUImageSobelEdgeDetectionFilter.h +0 -16
- package/ios/GPUImage/framework/Source/GPUImageSobelEdgeDetectionFilter.m +0 -188
- package/ios/GPUImage/framework/Source/GPUImageSoftEleganceFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageSoftEleganceFilter.m +0 -62
- package/ios/GPUImage/framework/Source/GPUImageSoftLightBlendFilter.h +0 -7
- package/ios/GPUImage/framework/Source/GPUImageSoftLightBlendFilter.m +0 -54
- package/ios/GPUImage/framework/Source/GPUImageSolarizeFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageSolarizeFilter.m +0 -76
- package/ios/GPUImage/framework/Source/GPUImageSolidColorGenerator.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageSolidColorGenerator.m +0 -123
- package/ios/GPUImage/framework/Source/GPUImageSourceOverBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageSourceOverBlendFilter.m +0 -51
- package/ios/GPUImage/framework/Source/GPUImageSphereRefractionFilter.h +0 -15
- package/ios/GPUImage/framework/Source/GPUImageSphereRefractionFilter.m +0 -179
- package/ios/GPUImage/framework/Source/GPUImageStillCamera.h +0 -24
- package/ios/GPUImage/framework/Source/GPUImageStillCamera.m +0 -338
- package/ios/GPUImage/framework/Source/GPUImageStretchDistortionFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageStretchDistortionFilter.m +0 -99
- package/ios/GPUImage/framework/Source/GPUImageSubtractBlendFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageSubtractBlendFilter.m +0 -52
- package/ios/GPUImage/framework/Source/GPUImageSwirlFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageSwirlFilter.m +0 -123
- package/ios/GPUImage/framework/Source/GPUImageTextureInput.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageTextureInput.m +0 -46
- package/ios/GPUImage/framework/Source/GPUImageTextureOutput.h +0 -21
- package/ios/GPUImage/framework/Source/GPUImageTextureOutput.m +0 -83
- package/ios/GPUImage/framework/Source/GPUImageThreeInputFilter.h +0 -21
- package/ios/GPUImage/framework/Source/GPUImageThreeInputFilter.m +0 -328
- package/ios/GPUImage/framework/Source/GPUImageThresholdEdgeDetectionFilter.h +0 -12
- package/ios/GPUImage/framework/Source/GPUImageThresholdEdgeDetectionFilter.m +0 -145
- package/ios/GPUImage/framework/Source/GPUImageThresholdSketchFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageThresholdSketchFilter.m +0 -103
- package/ios/GPUImage/framework/Source/GPUImageThresholdedNonMaximumSuppressionFilter.h +0 -14
- package/ios/GPUImage/framework/Source/GPUImageThresholdedNonMaximumSuppressionFilter.m +0 -297
- package/ios/GPUImage/framework/Source/GPUImageTiltShiftFilter.h +0 -24
- package/ios/GPUImage/framework/Source/GPUImageTiltShiftFilter.m +0 -126
- package/ios/GPUImage/framework/Source/GPUImageToneCurveFilter.h +0 -30
- package/ios/GPUImage/framework/Source/GPUImageToneCurveFilter.m +0 -621
- package/ios/GPUImage/framework/Source/GPUImageToonFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageToonFilter.m +0 -149
- package/ios/GPUImage/framework/Source/GPUImageTransformFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageTransformFilter.m +0 -260
- package/ios/GPUImage/framework/Source/GPUImageTwoInputCrossTextureSamplingFilter.h +0 -15
- package/ios/GPUImage/framework/Source/GPUImageTwoInputCrossTextureSamplingFilter.m +0 -108
- package/ios/GPUImage/framework/Source/GPUImageTwoInputFilter.h +0 -21
- package/ios/GPUImage/framework/Source/GPUImageTwoInputFilter.m +0 -264
- package/ios/GPUImage/framework/Source/GPUImageTwoPassFilter.h +0 -19
- package/ios/GPUImage/framework/Source/GPUImageTwoPassFilter.m +0 -201
- package/ios/GPUImage/framework/Source/GPUImageTwoPassTextureSamplingFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageTwoPassTextureSamplingFilter.m +0 -85
- package/ios/GPUImage/framework/Source/GPUImageUIElement.h +0 -15
- package/ios/GPUImage/framework/Source/GPUImageUIElement.m +0 -123
- package/ios/GPUImage/framework/Source/GPUImageUnsharpMaskFilter.h +0 -16
- package/ios/GPUImage/framework/Source/GPUImageUnsharpMaskFilter.m +0 -101
- package/ios/GPUImage/framework/Source/GPUImageVibranceFilter.h +0 -20
- package/ios/GPUImage/framework/Source/GPUImageVibranceFilter.m +0 -78
- package/ios/GPUImage/framework/Source/GPUImageVideoCamera.h +0 -156
- package/ios/GPUImage/framework/Source/GPUImageVideoCamera.m +0 -1062
- package/ios/GPUImage/framework/Source/GPUImageVignetteFilter.h +0 -22
- package/ios/GPUImage/framework/Source/GPUImageVignetteFilter.m +0 -104
- package/ios/GPUImage/framework/Source/GPUImageVoronoiConsumerFilter.h +0 -10
- package/ios/GPUImage/framework/Source/GPUImageVoronoiConsumerFilter.m +0 -94
- package/ios/GPUImage/framework/Source/GPUImageWeakPixelInclusionFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageWeakPixelInclusionFilter.m +0 -94
- package/ios/GPUImage/framework/Source/GPUImageWhiteBalanceFilter.h +0 -17
- package/ios/GPUImage/framework/Source/GPUImageWhiteBalanceFilter.m +0 -107
- package/ios/GPUImage/framework/Source/GPUImageXYDerivativeFilter.h +0 -5
- package/ios/GPUImage/framework/Source/GPUImageXYDerivativeFilter.m +0 -106
- package/ios/GPUImage/framework/Source/GPUImageZoomBlurFilter.h +0 -13
- package/ios/GPUImage/framework/Source/GPUImageZoomBlurFilter.m +0 -115
- package/ios/GPUImage/framework/Source/GPUImageiOSBlurFilter.h +0 -31
- package/ios/GPUImage/framework/Source/GPUImageiOSBlurFilter.m +0 -114
- package/ios/GPUImage/framework/Source/Mac/GPUImage.h +0 -167
- package/ios/GPUImage/framework/Source/Mac/GPUImageAVCamera.h +0 -132
- package/ios/GPUImage/framework/Source/Mac/GPUImageAVCamera.m +0 -771
- package/ios/GPUImage/framework/Source/Mac/GPUImageContext.h +0 -55
- package/ios/GPUImage/framework/Source/Mac/GPUImageContext.m +0 -268
- package/ios/GPUImage/framework/Source/Mac/GPUImageMac-Info.plist +0 -30
- package/ios/GPUImage/framework/Source/Mac/GPUImageMac-Prefix.pch +0 -7
- package/ios/GPUImage/framework/Source/Mac/GPUImageMovieWriter.h +0 -57
- package/ios/GPUImage/framework/Source/Mac/GPUImageMovieWriter.m +0 -644
- package/ios/GPUImage/framework/Source/Mac/GPUImagePicture.h +0 -25
- package/ios/GPUImage/framework/Source/Mac/GPUImagePicture.m +0 -299
- package/ios/GPUImage/framework/Source/Mac/GPUImageView.h +0 -39
- package/ios/GPUImage/framework/Source/Mac/GPUImageView.m +0 -458
- package/ios/GPUImage/framework/Source/Mac/en.lproj/InfoPlist.strings +0 -2
- package/ios/GPUImage/framework/Source/iOS/Framework/GPUImageFramework.h +0 -177
- package/ios/GPUImage/framework/Source/iOS/Framework/Info.plist +0 -26
- package/ios/GPUImage/framework/Source/iOS/Framework/module.modulemap +0 -6
- package/ios/GPUImage/framework/Source/iOS/GPUImage-Prefix.pch +0 -7
- package/ios/GPUImage/framework/Source/iOS/GPUImageContext.h +0 -64
- package/ios/GPUImage/framework/Source/iOS/GPUImageContext.m +0 -320
- package/ios/GPUImage/framework/Source/iOS/GPUImageMovieWriter.h +0 -67
- package/ios/GPUImage/framework/Source/iOS/GPUImageMovieWriter.m +0 -1016
- package/ios/GPUImage/framework/Source/iOS/GPUImagePicture+TextureSubimage.h +0 -19
- package/ios/GPUImage/framework/Source/iOS/GPUImagePicture+TextureSubimage.m +0 -103
- package/ios/GPUImage/framework/Source/iOS/GPUImagePicture.h +0 -38
- package/ios/GPUImage/framework/Source/iOS/GPUImagePicture.m +0 -371
- package/ios/GPUImage/framework/Source/iOS/GPUImageView.h +0 -41
- package/ios/GPUImage/framework/Source/iOS/GPUImageView.m +0 -484
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGRulerView.h +0 -26
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGRulerView.m +0 -102
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGThumbView.h +0 -27
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGThumbView.m +0 -98
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGVideoTrimmer.h +0 -16
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGVideoTrimmerView.h +0 -80
- package/ios/RNVideoProcessing/RNTrimmerView/ICGVideoTrimmer/ICGVideoTrimmerView.m +0 -464
- package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerView-Bridging-Header.h +0 -11
- package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerView.h +0 -15
- package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerView.swift +0 -239
- package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerViewBridge.m +0 -27
- package/ios/RNVideoProcessing/RNTrimmerView/RNTrimmerViewManager.swift +0 -14
- package/ios/RNVideoProcessing/RNVideoPlayer.swift +0 -416
- package/ios/RNVideoProcessing/RNVideoProcessing-Bridging-Header.h +0 -6
- package/ios/RNVideoProcessing/RNVideoProcessing.h +0 -13
- package/ios/RNVideoProcessing/RNVideoProcessingBridge.m +0 -26
- package/ios/RNVideoProcessing/RNVideoProcessingManager.swift +0 -29
- package/ios/RNVideoProcessing/RNVideoTrimmer/AVUtilities.swift +0 -83
- package/ios/RNVideoProcessing/RNVideoTrimmer/RNVideoTrimmer-Bridging-Header.h +0 -11
- package/ios/RNVideoProcessing/RNVideoTrimmer/RNVideoTrimmer.swift +0 -628
- package/ios/RNVideoProcessing/RNVideoTrimmer/RNVideoTrimmerBridge.m +0 -20
- package/ios/RNVideoProcessing/RNVideoTrimmer/SDAVAssetExportSession.h +0 -194
- package/ios/RNVideoProcessing/RNVideoTrimmer/SDAVAssetExportSession.m +0 -465
- package/ios/RNVideoProcessing/VideoProcessingGPUFilters.swift +0 -30
- package/ios/RNVideoProcessing.xcodeproj/project.pbxproj +0 -398
- package/lib/ProcessingManager/ProcessingManager.android.js +0 -82
- package/lib/ProcessingManager/ProcessingManager.ios.js +0 -107
- package/lib/ProcessingManager/index.js +0 -1
- package/lib/ProcessingManager/test/ProcessingManager.test.js +0 -24
- package/lib/ProcessingManager/types.android.js +0 -42
- package/lib/ProcessingManager/types.ios.js +0 -58
- package/lib/Trimmer/Trimmer.android.js +0 -263
- package/lib/Trimmer/Trimmer.ios.js +0 -92
- package/lib/Trimmer/index.js +0 -1
- package/lib/Trimmer/test/Trimmer.test.js +0 -39
- package/lib/Trimmer/test/__snapshots__/Trimmer.test.js.snap +0 -11
- package/lib/VideoPlayer/VideoPlayer.android.js +0 -225
- package/lib/VideoPlayer/VideoPlayer.ios.js +0 -210
- package/lib/VideoPlayer/index.js +0 -3
- package/lib/VideoPlayer/test/VideoPlayer.test.js +0 -21
- package/lib/VideoPlayer/test/__snapshots__/VideoPlayer.test.js.snap +0 -7
- package/lib/index.js +0 -3
- package/lib/utils/index.js +0 -2
- package/lib/utils/test/trimmer.test.js +0 -55
- package/lib/utils/test/utils.test.js +0 -20
- package/lib/utils/trimmer.js +0 -26
- package/lib/utils/utils.js +0 -8
- package/readme_assets/project-structure.png +0 -0
- package/test.jpeg +0 -0
- package/yarn.lock +0 -6085
|
@@ -1,1062 +0,0 @@
|
|
|
1
|
-
#import "GPUImageVideoCamera.h"
|
|
2
|
-
#import "GPUImageMovieWriter.h"
|
|
3
|
-
#import "GPUImageFilter.h"
|
|
4
|
-
|
|
5
|
-
void setColorConversion601( GLfloat conversionMatrix[9] )
|
|
6
|
-
{
|
|
7
|
-
kColorConversion601 = conversionMatrix;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
void setColorConversion601FullRange( GLfloat conversionMatrix[9] )
|
|
11
|
-
{
|
|
12
|
-
kColorConversion601FullRange = conversionMatrix;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
void setColorConversion709( GLfloat conversionMatrix[9] )
|
|
16
|
-
{
|
|
17
|
-
kColorConversion709 = conversionMatrix;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
#pragma mark -
|
|
21
|
-
#pragma mark Private methods and instance variables
|
|
22
|
-
|
|
23
|
-
@interface GPUImageVideoCamera ()
|
|
24
|
-
{
|
|
25
|
-
AVCaptureDeviceInput *audioInput;
|
|
26
|
-
AVCaptureAudioDataOutput *audioOutput;
|
|
27
|
-
NSDate *startingCaptureTime;
|
|
28
|
-
|
|
29
|
-
dispatch_queue_t cameraProcessingQueue, audioProcessingQueue;
|
|
30
|
-
|
|
31
|
-
GLProgram *yuvConversionProgram;
|
|
32
|
-
GLint yuvConversionPositionAttribute, yuvConversionTextureCoordinateAttribute;
|
|
33
|
-
GLint yuvConversionLuminanceTextureUniform, yuvConversionChrominanceTextureUniform;
|
|
34
|
-
GLint yuvConversionMatrixUniform;
|
|
35
|
-
const GLfloat *_preferredConversion;
|
|
36
|
-
|
|
37
|
-
BOOL isFullYUVRange;
|
|
38
|
-
|
|
39
|
-
int imageBufferWidth, imageBufferHeight;
|
|
40
|
-
|
|
41
|
-
BOOL addedAudioInputsDueToEncodingTarget;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
- (void)updateOrientationSendToTargets;
|
|
45
|
-
- (void)convertYUVToRGBOutput;
|
|
46
|
-
|
|
47
|
-
@end
|
|
48
|
-
|
|
49
|
-
@implementation GPUImageVideoCamera
|
|
50
|
-
|
|
51
|
-
@synthesize captureSessionPreset = _captureSessionPreset;
|
|
52
|
-
@synthesize captureSession = _captureSession;
|
|
53
|
-
@synthesize inputCamera = _inputCamera;
|
|
54
|
-
@synthesize runBenchmark = _runBenchmark;
|
|
55
|
-
@synthesize outputImageOrientation = _outputImageOrientation;
|
|
56
|
-
@synthesize delegate = _delegate;
|
|
57
|
-
@synthesize horizontallyMirrorFrontFacingCamera = _horizontallyMirrorFrontFacingCamera, horizontallyMirrorRearFacingCamera = _horizontallyMirrorRearFacingCamera;
|
|
58
|
-
@synthesize frameRate = _frameRate;
|
|
59
|
-
|
|
60
|
-
#pragma mark -
|
|
61
|
-
#pragma mark Initialization and teardown
|
|
62
|
-
|
|
63
|
-
- (id)init;
|
|
64
|
-
{
|
|
65
|
-
if (!(self = [self initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack]))
|
|
66
|
-
{
|
|
67
|
-
return nil;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
return self;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
- (id)initWithSessionPreset:(NSString *)sessionPreset cameraPosition:(AVCaptureDevicePosition)cameraPosition;
|
|
74
|
-
{
|
|
75
|
-
if (!(self = [super init]))
|
|
76
|
-
{
|
|
77
|
-
return nil;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
cameraProcessingQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH,0);
|
|
81
|
-
audioProcessingQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW,0);
|
|
82
|
-
|
|
83
|
-
frameRenderingSemaphore = dispatch_semaphore_create(1);
|
|
84
|
-
|
|
85
|
-
_frameRate = 0; // This will not set frame rate unless this value gets set to 1 or above
|
|
86
|
-
_runBenchmark = NO;
|
|
87
|
-
capturePaused = NO;
|
|
88
|
-
outputRotation = kGPUImageNoRotation;
|
|
89
|
-
internalRotation = kGPUImageNoRotation;
|
|
90
|
-
captureAsYUV = YES;
|
|
91
|
-
_preferredConversion = kColorConversion709;
|
|
92
|
-
|
|
93
|
-
// Grab the back-facing or front-facing camera
|
|
94
|
-
_inputCamera = nil;
|
|
95
|
-
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
|
|
96
|
-
for (AVCaptureDevice *device in devices)
|
|
97
|
-
{
|
|
98
|
-
if ([device position] == cameraPosition)
|
|
99
|
-
{
|
|
100
|
-
_inputCamera = device;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
if (!_inputCamera) {
|
|
105
|
-
return nil;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// Create the capture session
|
|
109
|
-
_captureSession = [[AVCaptureSession alloc] init];
|
|
110
|
-
|
|
111
|
-
[_captureSession beginConfiguration];
|
|
112
|
-
|
|
113
|
-
// Add the video input
|
|
114
|
-
NSError *error = nil;
|
|
115
|
-
videoInput = [[AVCaptureDeviceInput alloc] initWithDevice:_inputCamera error:&error];
|
|
116
|
-
if ([_captureSession canAddInput:videoInput])
|
|
117
|
-
{
|
|
118
|
-
[_captureSession addInput:videoInput];
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Add the video frame output
|
|
122
|
-
videoOutput = [[AVCaptureVideoDataOutput alloc] init];
|
|
123
|
-
[videoOutput setAlwaysDiscardsLateVideoFrames:NO];
|
|
124
|
-
|
|
125
|
-
// if (captureAsYUV && [GPUImageContext deviceSupportsRedTextures])
|
|
126
|
-
if (captureAsYUV && [GPUImageContext supportsFastTextureUpload])
|
|
127
|
-
{
|
|
128
|
-
BOOL supportsFullYUVRange = NO;
|
|
129
|
-
NSArray *supportedPixelFormats = videoOutput.availableVideoCVPixelFormatTypes;
|
|
130
|
-
for (NSNumber *currentPixelFormat in supportedPixelFormats)
|
|
131
|
-
{
|
|
132
|
-
if ([currentPixelFormat intValue] == kCVPixelFormatType_420YpCbCr8BiPlanarFullRange)
|
|
133
|
-
{
|
|
134
|
-
supportsFullYUVRange = YES;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
if (supportsFullYUVRange)
|
|
139
|
-
{
|
|
140
|
-
[videoOutput setVideoSettings:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:kCVPixelFormatType_420YpCbCr8BiPlanarFullRange] forKey:(id)kCVPixelBufferPixelFormatTypeKey]];
|
|
141
|
-
isFullYUVRange = YES;
|
|
142
|
-
}
|
|
143
|
-
else
|
|
144
|
-
{
|
|
145
|
-
[videoOutput setVideoSettings:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange] forKey:(id)kCVPixelBufferPixelFormatTypeKey]];
|
|
146
|
-
isFullYUVRange = NO;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
else
|
|
150
|
-
{
|
|
151
|
-
[videoOutput setVideoSettings:[NSDictionary dictionaryWithObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(id)kCVPixelBufferPixelFormatTypeKey]];
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
runSynchronouslyOnVideoProcessingQueue(^{
|
|
155
|
-
|
|
156
|
-
if (captureAsYUV)
|
|
157
|
-
{
|
|
158
|
-
[GPUImageContext useImageProcessingContext];
|
|
159
|
-
// if ([GPUImageContext deviceSupportsRedTextures])
|
|
160
|
-
// {
|
|
161
|
-
// yuvConversionProgram = [[GPUImageContext sharedImageProcessingContext] programForVertexShaderString:kGPUImageVertexShaderString fragmentShaderString:kGPUImageYUVVideoRangeConversionForRGFragmentShaderString];
|
|
162
|
-
// }
|
|
163
|
-
// else
|
|
164
|
-
// {
|
|
165
|
-
if (isFullYUVRange)
|
|
166
|
-
{
|
|
167
|
-
yuvConversionProgram = [[GPUImageContext sharedImageProcessingContext] programForVertexShaderString:kGPUImageVertexShaderString fragmentShaderString:kGPUImageYUVFullRangeConversionForLAFragmentShaderString];
|
|
168
|
-
}
|
|
169
|
-
else
|
|
170
|
-
{
|
|
171
|
-
yuvConversionProgram = [[GPUImageContext sharedImageProcessingContext] programForVertexShaderString:kGPUImageVertexShaderString fragmentShaderString:kGPUImageYUVVideoRangeConversionForLAFragmentShaderString];
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// }
|
|
175
|
-
|
|
176
|
-
if (!yuvConversionProgram.initialized)
|
|
177
|
-
{
|
|
178
|
-
[yuvConversionProgram addAttribute:@"position"];
|
|
179
|
-
[yuvConversionProgram addAttribute:@"inputTextureCoordinate"];
|
|
180
|
-
|
|
181
|
-
if (![yuvConversionProgram link])
|
|
182
|
-
{
|
|
183
|
-
NSString *progLog = [yuvConversionProgram programLog];
|
|
184
|
-
NSLog(@"Program link log: %@", progLog);
|
|
185
|
-
NSString *fragLog = [yuvConversionProgram fragmentShaderLog];
|
|
186
|
-
NSLog(@"Fragment shader compile log: %@", fragLog);
|
|
187
|
-
NSString *vertLog = [yuvConversionProgram vertexShaderLog];
|
|
188
|
-
NSLog(@"Vertex shader compile log: %@", vertLog);
|
|
189
|
-
yuvConversionProgram = nil;
|
|
190
|
-
NSAssert(NO, @"Filter shader link failed");
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
yuvConversionPositionAttribute = [yuvConversionProgram attributeIndex:@"position"];
|
|
195
|
-
yuvConversionTextureCoordinateAttribute = [yuvConversionProgram attributeIndex:@"inputTextureCoordinate"];
|
|
196
|
-
yuvConversionLuminanceTextureUniform = [yuvConversionProgram uniformIndex:@"luminanceTexture"];
|
|
197
|
-
yuvConversionChrominanceTextureUniform = [yuvConversionProgram uniformIndex:@"chrominanceTexture"];
|
|
198
|
-
yuvConversionMatrixUniform = [yuvConversionProgram uniformIndex:@"colorConversionMatrix"];
|
|
199
|
-
|
|
200
|
-
[GPUImageContext setActiveShaderProgram:yuvConversionProgram];
|
|
201
|
-
|
|
202
|
-
glEnableVertexAttribArray(yuvConversionPositionAttribute);
|
|
203
|
-
glEnableVertexAttribArray(yuvConversionTextureCoordinateAttribute);
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
[videoOutput setSampleBufferDelegate:self queue:cameraProcessingQueue];
|
|
208
|
-
if ([_captureSession canAddOutput:videoOutput])
|
|
209
|
-
{
|
|
210
|
-
[_captureSession addOutput:videoOutput];
|
|
211
|
-
}
|
|
212
|
-
else
|
|
213
|
-
{
|
|
214
|
-
NSLog(@"Couldn't add video output");
|
|
215
|
-
return nil;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
_captureSessionPreset = sessionPreset;
|
|
219
|
-
[_captureSession setSessionPreset:_captureSessionPreset];
|
|
220
|
-
|
|
221
|
-
// This will let you get 60 FPS video from the 720p preset on an iPhone 4S, but only that device and that preset
|
|
222
|
-
// AVCaptureConnection *conn = [videoOutput connectionWithMediaType:AVMediaTypeVideo];
|
|
223
|
-
//
|
|
224
|
-
// if (conn.supportsVideoMinFrameDuration)
|
|
225
|
-
// conn.videoMinFrameDuration = CMTimeMake(1,60);
|
|
226
|
-
// if (conn.supportsVideoMaxFrameDuration)
|
|
227
|
-
// conn.videoMaxFrameDuration = CMTimeMake(1,60);
|
|
228
|
-
|
|
229
|
-
[_captureSession commitConfiguration];
|
|
230
|
-
|
|
231
|
-
return self;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
- (GPUImageFramebuffer *)framebufferForOutput;
|
|
235
|
-
{
|
|
236
|
-
return outputFramebuffer;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
- (void)dealloc
|
|
240
|
-
{
|
|
241
|
-
[self stopCameraCapture];
|
|
242
|
-
[videoOutput setSampleBufferDelegate:nil queue:dispatch_get_main_queue()];
|
|
243
|
-
[audioOutput setSampleBufferDelegate:nil queue:dispatch_get_main_queue()];
|
|
244
|
-
|
|
245
|
-
[self removeInputsAndOutputs];
|
|
246
|
-
|
|
247
|
-
// ARC forbids explicit message send of 'release'; since iOS 6 even for dispatch_release() calls: stripping it out in that case is required.
|
|
248
|
-
#if !OS_OBJECT_USE_OBJC
|
|
249
|
-
if (frameRenderingSemaphore != NULL)
|
|
250
|
-
{
|
|
251
|
-
dispatch_release(frameRenderingSemaphore);
|
|
252
|
-
}
|
|
253
|
-
#endif
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
- (BOOL)addAudioInputsAndOutputs
|
|
257
|
-
{
|
|
258
|
-
if (audioOutput)
|
|
259
|
-
return NO;
|
|
260
|
-
|
|
261
|
-
[_captureSession beginConfiguration];
|
|
262
|
-
|
|
263
|
-
_microphone = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeAudio];
|
|
264
|
-
audioInput = [AVCaptureDeviceInput deviceInputWithDevice:_microphone error:nil];
|
|
265
|
-
if ([_captureSession canAddInput:audioInput])
|
|
266
|
-
{
|
|
267
|
-
[_captureSession addInput:audioInput];
|
|
268
|
-
}
|
|
269
|
-
audioOutput = [[AVCaptureAudioDataOutput alloc] init];
|
|
270
|
-
|
|
271
|
-
if ([_captureSession canAddOutput:audioOutput])
|
|
272
|
-
{
|
|
273
|
-
[_captureSession addOutput:audioOutput];
|
|
274
|
-
}
|
|
275
|
-
else
|
|
276
|
-
{
|
|
277
|
-
NSLog(@"Couldn't add audio output");
|
|
278
|
-
}
|
|
279
|
-
[audioOutput setSampleBufferDelegate:self queue:audioProcessingQueue];
|
|
280
|
-
|
|
281
|
-
[_captureSession commitConfiguration];
|
|
282
|
-
return YES;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
- (BOOL)removeAudioInputsAndOutputs
|
|
286
|
-
{
|
|
287
|
-
if (!audioOutput)
|
|
288
|
-
return NO;
|
|
289
|
-
|
|
290
|
-
[_captureSession beginConfiguration];
|
|
291
|
-
[_captureSession removeInput:audioInput];
|
|
292
|
-
[_captureSession removeOutput:audioOutput];
|
|
293
|
-
audioInput = nil;
|
|
294
|
-
audioOutput = nil;
|
|
295
|
-
_microphone = nil;
|
|
296
|
-
[_captureSession commitConfiguration];
|
|
297
|
-
return YES;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
- (void)removeInputsAndOutputs;
|
|
301
|
-
{
|
|
302
|
-
[_captureSession beginConfiguration];
|
|
303
|
-
if (videoInput) {
|
|
304
|
-
[_captureSession removeInput:videoInput];
|
|
305
|
-
[_captureSession removeOutput:videoOutput];
|
|
306
|
-
videoInput = nil;
|
|
307
|
-
videoOutput = nil;
|
|
308
|
-
}
|
|
309
|
-
if (_microphone != nil)
|
|
310
|
-
{
|
|
311
|
-
[_captureSession removeInput:audioInput];
|
|
312
|
-
[_captureSession removeOutput:audioOutput];
|
|
313
|
-
audioInput = nil;
|
|
314
|
-
audioOutput = nil;
|
|
315
|
-
_microphone = nil;
|
|
316
|
-
}
|
|
317
|
-
[_captureSession commitConfiguration];
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
#pragma mark -
|
|
321
|
-
#pragma mark Managing targets
|
|
322
|
-
|
|
323
|
-
- (void)addTarget:(id<GPUImageInput>)newTarget atTextureLocation:(NSInteger)textureLocation;
|
|
324
|
-
{
|
|
325
|
-
[super addTarget:newTarget atTextureLocation:textureLocation];
|
|
326
|
-
|
|
327
|
-
[newTarget setInputRotation:outputRotation atIndex:textureLocation];
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
#pragma mark -
|
|
331
|
-
#pragma mark Manage the camera video stream
|
|
332
|
-
|
|
333
|
-
- (BOOL)isRunning;
|
|
334
|
-
{
|
|
335
|
-
return [_captureSession isRunning];
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
- (void)startCameraCapture;
|
|
339
|
-
{
|
|
340
|
-
if (![_captureSession isRunning])
|
|
341
|
-
{
|
|
342
|
-
startingCaptureTime = [NSDate date];
|
|
343
|
-
[_captureSession startRunning];
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
- (void)stopCameraCapture;
|
|
348
|
-
{
|
|
349
|
-
if ([_captureSession isRunning])
|
|
350
|
-
{
|
|
351
|
-
[_captureSession stopRunning];
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
- (void)pauseCameraCapture;
|
|
356
|
-
{
|
|
357
|
-
capturePaused = YES;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
- (void)resumeCameraCapture;
|
|
361
|
-
{
|
|
362
|
-
capturePaused = NO;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
- (void)rotateCamera
|
|
366
|
-
{
|
|
367
|
-
if (self.frontFacingCameraPresent == NO)
|
|
368
|
-
return;
|
|
369
|
-
|
|
370
|
-
NSError *error;
|
|
371
|
-
AVCaptureDeviceInput *newVideoInput;
|
|
372
|
-
AVCaptureDevicePosition currentCameraPosition = [[videoInput device] position];
|
|
373
|
-
|
|
374
|
-
if (currentCameraPosition == AVCaptureDevicePositionBack)
|
|
375
|
-
{
|
|
376
|
-
currentCameraPosition = AVCaptureDevicePositionFront;
|
|
377
|
-
}
|
|
378
|
-
else
|
|
379
|
-
{
|
|
380
|
-
currentCameraPosition = AVCaptureDevicePositionBack;
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
AVCaptureDevice *backFacingCamera = nil;
|
|
384
|
-
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
|
|
385
|
-
for (AVCaptureDevice *device in devices)
|
|
386
|
-
{
|
|
387
|
-
if ([device position] == currentCameraPosition)
|
|
388
|
-
{
|
|
389
|
-
backFacingCamera = device;
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
newVideoInput = [[AVCaptureDeviceInput alloc] initWithDevice:backFacingCamera error:&error];
|
|
393
|
-
|
|
394
|
-
if (newVideoInput != nil)
|
|
395
|
-
{
|
|
396
|
-
[_captureSession beginConfiguration];
|
|
397
|
-
|
|
398
|
-
[_captureSession removeInput:videoInput];
|
|
399
|
-
if ([_captureSession canAddInput:newVideoInput])
|
|
400
|
-
{
|
|
401
|
-
[_captureSession addInput:newVideoInput];
|
|
402
|
-
videoInput = newVideoInput;
|
|
403
|
-
}
|
|
404
|
-
else
|
|
405
|
-
{
|
|
406
|
-
[_captureSession addInput:videoInput];
|
|
407
|
-
}
|
|
408
|
-
//captureSession.sessionPreset = oriPreset;
|
|
409
|
-
[_captureSession commitConfiguration];
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
_inputCamera = backFacingCamera;
|
|
413
|
-
[self setOutputImageOrientation:_outputImageOrientation];
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
- (AVCaptureDevicePosition)cameraPosition
|
|
417
|
-
{
|
|
418
|
-
return [[videoInput device] position];
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
+ (BOOL)isBackFacingCameraPresent;
|
|
422
|
-
{
|
|
423
|
-
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
|
|
424
|
-
|
|
425
|
-
for (AVCaptureDevice *device in devices)
|
|
426
|
-
{
|
|
427
|
-
if ([device position] == AVCaptureDevicePositionBack)
|
|
428
|
-
return YES;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
return NO;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
- (BOOL)isBackFacingCameraPresent
|
|
435
|
-
{
|
|
436
|
-
return [GPUImageVideoCamera isBackFacingCameraPresent];
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
+ (BOOL)isFrontFacingCameraPresent;
|
|
440
|
-
{
|
|
441
|
-
NSArray *devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
|
|
442
|
-
|
|
443
|
-
for (AVCaptureDevice *device in devices)
|
|
444
|
-
{
|
|
445
|
-
if ([device position] == AVCaptureDevicePositionFront)
|
|
446
|
-
return YES;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
return NO;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
- (BOOL)isFrontFacingCameraPresent
|
|
453
|
-
{
|
|
454
|
-
return [GPUImageVideoCamera isFrontFacingCameraPresent];
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
- (void)setCaptureSessionPreset:(NSString *)captureSessionPreset;
|
|
458
|
-
{
|
|
459
|
-
[_captureSession beginConfiguration];
|
|
460
|
-
|
|
461
|
-
_captureSessionPreset = captureSessionPreset;
|
|
462
|
-
[_captureSession setSessionPreset:_captureSessionPreset];
|
|
463
|
-
|
|
464
|
-
[_captureSession commitConfiguration];
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
- (void)setFrameRate:(int32_t)frameRate;
|
|
468
|
-
{
|
|
469
|
-
_frameRate = frameRate;
|
|
470
|
-
|
|
471
|
-
if (_frameRate > 0)
|
|
472
|
-
{
|
|
473
|
-
if ([_inputCamera respondsToSelector:@selector(setActiveVideoMinFrameDuration:)] &&
|
|
474
|
-
[_inputCamera respondsToSelector:@selector(setActiveVideoMaxFrameDuration:)]) {
|
|
475
|
-
|
|
476
|
-
NSError *error;
|
|
477
|
-
[_inputCamera lockForConfiguration:&error];
|
|
478
|
-
if (error == nil) {
|
|
479
|
-
#if defined(__IPHONE_7_0)
|
|
480
|
-
[_inputCamera setActiveVideoMinFrameDuration:CMTimeMake(1, _frameRate)];
|
|
481
|
-
[_inputCamera setActiveVideoMaxFrameDuration:CMTimeMake(1, _frameRate)];
|
|
482
|
-
#endif
|
|
483
|
-
}
|
|
484
|
-
[_inputCamera unlockForConfiguration];
|
|
485
|
-
|
|
486
|
-
} else {
|
|
487
|
-
|
|
488
|
-
for (AVCaptureConnection *connection in videoOutput.connections)
|
|
489
|
-
{
|
|
490
|
-
#pragma clang diagnostic push
|
|
491
|
-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
492
|
-
if ([connection respondsToSelector:@selector(setVideoMinFrameDuration:)])
|
|
493
|
-
connection.videoMinFrameDuration = CMTimeMake(1, _frameRate);
|
|
494
|
-
|
|
495
|
-
if ([connection respondsToSelector:@selector(setVideoMaxFrameDuration:)])
|
|
496
|
-
connection.videoMaxFrameDuration = CMTimeMake(1, _frameRate);
|
|
497
|
-
#pragma clang diagnostic pop
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
}
|
|
502
|
-
else
|
|
503
|
-
{
|
|
504
|
-
if ([_inputCamera respondsToSelector:@selector(setActiveVideoMinFrameDuration:)] &&
|
|
505
|
-
[_inputCamera respondsToSelector:@selector(setActiveVideoMaxFrameDuration:)]) {
|
|
506
|
-
|
|
507
|
-
NSError *error;
|
|
508
|
-
[_inputCamera lockForConfiguration:&error];
|
|
509
|
-
if (error == nil) {
|
|
510
|
-
#if defined(__IPHONE_7_0)
|
|
511
|
-
[_inputCamera setActiveVideoMinFrameDuration:kCMTimeInvalid];
|
|
512
|
-
[_inputCamera setActiveVideoMaxFrameDuration:kCMTimeInvalid];
|
|
513
|
-
#endif
|
|
514
|
-
}
|
|
515
|
-
[_inputCamera unlockForConfiguration];
|
|
516
|
-
|
|
517
|
-
} else {
|
|
518
|
-
|
|
519
|
-
for (AVCaptureConnection *connection in videoOutput.connections)
|
|
520
|
-
{
|
|
521
|
-
#pragma clang diagnostic push
|
|
522
|
-
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
|
523
|
-
if ([connection respondsToSelector:@selector(setVideoMinFrameDuration:)])
|
|
524
|
-
connection.videoMinFrameDuration = kCMTimeInvalid; // This sets videoMinFrameDuration back to default
|
|
525
|
-
|
|
526
|
-
if ([connection respondsToSelector:@selector(setVideoMaxFrameDuration:)])
|
|
527
|
-
connection.videoMaxFrameDuration = kCMTimeInvalid; // This sets videoMaxFrameDuration back to default
|
|
528
|
-
#pragma clang diagnostic pop
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
- (int32_t)frameRate;
|
|
536
|
-
{
|
|
537
|
-
return _frameRate;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
- (AVCaptureConnection *)videoCaptureConnection {
|
|
541
|
-
for (AVCaptureConnection *connection in [videoOutput connections] ) {
|
|
542
|
-
for ( AVCaptureInputPort *port in [connection inputPorts] ) {
|
|
543
|
-
if ( [[port mediaType] isEqual:AVMediaTypeVideo] ) {
|
|
544
|
-
return connection;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
return nil;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
#define INITIALFRAMESTOIGNOREFORBENCHMARK 5
|
|
553
|
-
|
|
554
|
-
- (void)updateTargetsForVideoCameraUsingCacheTextureAtWidth:(int)bufferWidth height:(int)bufferHeight time:(CMTime)currentTime;
|
|
555
|
-
{
|
|
556
|
-
// First, update all the framebuffers in the targets
|
|
557
|
-
for (id<GPUImageInput> currentTarget in targets)
|
|
558
|
-
{
|
|
559
|
-
if ([currentTarget enabled])
|
|
560
|
-
{
|
|
561
|
-
NSInteger indexOfObject = [targets indexOfObject:currentTarget];
|
|
562
|
-
NSInteger textureIndexOfTarget = [[targetTextureIndices objectAtIndex:indexOfObject] integerValue];
|
|
563
|
-
|
|
564
|
-
if (currentTarget != self.targetToIgnoreForUpdates)
|
|
565
|
-
{
|
|
566
|
-
[currentTarget setInputRotation:outputRotation atIndex:textureIndexOfTarget];
|
|
567
|
-
[currentTarget setInputSize:CGSizeMake(bufferWidth, bufferHeight) atIndex:textureIndexOfTarget];
|
|
568
|
-
|
|
569
|
-
if ([currentTarget wantsMonochromeInput] && captureAsYUV)
|
|
570
|
-
{
|
|
571
|
-
[currentTarget setCurrentlyReceivingMonochromeInput:YES];
|
|
572
|
-
// TODO: Replace optimization for monochrome output
|
|
573
|
-
[currentTarget setInputFramebuffer:outputFramebuffer atIndex:textureIndexOfTarget];
|
|
574
|
-
}
|
|
575
|
-
else
|
|
576
|
-
{
|
|
577
|
-
[currentTarget setCurrentlyReceivingMonochromeInput:NO];
|
|
578
|
-
[currentTarget setInputFramebuffer:outputFramebuffer atIndex:textureIndexOfTarget];
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
else
|
|
582
|
-
{
|
|
583
|
-
[currentTarget setInputRotation:outputRotation atIndex:textureIndexOfTarget];
|
|
584
|
-
[currentTarget setInputFramebuffer:outputFramebuffer atIndex:textureIndexOfTarget];
|
|
585
|
-
}
|
|
586
|
-
}
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
// Then release our hold on the local framebuffer to send it back to the cache as soon as it's no longer needed
|
|
590
|
-
[outputFramebuffer unlock];
|
|
591
|
-
outputFramebuffer = nil;
|
|
592
|
-
|
|
593
|
-
// Finally, trigger rendering as needed
|
|
594
|
-
for (id<GPUImageInput> currentTarget in targets)
|
|
595
|
-
{
|
|
596
|
-
if ([currentTarget enabled])
|
|
597
|
-
{
|
|
598
|
-
NSInteger indexOfObject = [targets indexOfObject:currentTarget];
|
|
599
|
-
NSInteger textureIndexOfTarget = [[targetTextureIndices objectAtIndex:indexOfObject] integerValue];
|
|
600
|
-
|
|
601
|
-
if (currentTarget != self.targetToIgnoreForUpdates)
|
|
602
|
-
{
|
|
603
|
-
[currentTarget newFrameReadyAtTime:currentTime atIndex:textureIndexOfTarget];
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
- (void)processVideoSampleBuffer:(CMSampleBufferRef)sampleBuffer;
|
|
610
|
-
{
|
|
611
|
-
if (capturePaused)
|
|
612
|
-
{
|
|
613
|
-
return;
|
|
614
|
-
}
|
|
615
|
-
|
|
616
|
-
CFAbsoluteTime startTime = CFAbsoluteTimeGetCurrent();
|
|
617
|
-
CVImageBufferRef cameraFrame = CMSampleBufferGetImageBuffer(sampleBuffer);
|
|
618
|
-
int bufferWidth = (int) CVPixelBufferGetWidth(cameraFrame);
|
|
619
|
-
int bufferHeight = (int) CVPixelBufferGetHeight(cameraFrame);
|
|
620
|
-
CFTypeRef colorAttachments = CVBufferGetAttachment(cameraFrame, kCVImageBufferYCbCrMatrixKey, NULL);
|
|
621
|
-
if (colorAttachments != NULL)
|
|
622
|
-
{
|
|
623
|
-
if(CFStringCompare(colorAttachments, kCVImageBufferYCbCrMatrix_ITU_R_601_4, 0) == kCFCompareEqualTo)
|
|
624
|
-
{
|
|
625
|
-
if (isFullYUVRange)
|
|
626
|
-
{
|
|
627
|
-
_preferredConversion = kColorConversion601FullRange;
|
|
628
|
-
}
|
|
629
|
-
else
|
|
630
|
-
{
|
|
631
|
-
_preferredConversion = kColorConversion601;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
else
|
|
635
|
-
{
|
|
636
|
-
_preferredConversion = kColorConversion709;
|
|
637
|
-
}
|
|
638
|
-
}
|
|
639
|
-
else
|
|
640
|
-
{
|
|
641
|
-
if (isFullYUVRange)
|
|
642
|
-
{
|
|
643
|
-
_preferredConversion = kColorConversion601FullRange;
|
|
644
|
-
}
|
|
645
|
-
else
|
|
646
|
-
{
|
|
647
|
-
_preferredConversion = kColorConversion601;
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
CMTime currentTime = CMSampleBufferGetPresentationTimeStamp(sampleBuffer);
|
|
652
|
-
|
|
653
|
-
[GPUImageContext useImageProcessingContext];
|
|
654
|
-
|
|
655
|
-
if ([GPUImageContext supportsFastTextureUpload] && captureAsYUV)
|
|
656
|
-
{
|
|
657
|
-
CVOpenGLESTextureRef luminanceTextureRef = NULL;
|
|
658
|
-
CVOpenGLESTextureRef chrominanceTextureRef = NULL;
|
|
659
|
-
|
|
660
|
-
// if (captureAsYUV && [GPUImageContext deviceSupportsRedTextures])
|
|
661
|
-
if (CVPixelBufferGetPlaneCount(cameraFrame) > 0) // Check for YUV planar inputs to do RGB conversion
|
|
662
|
-
{
|
|
663
|
-
CVPixelBufferLockBaseAddress(cameraFrame, 0);
|
|
664
|
-
|
|
665
|
-
if ( (imageBufferWidth != bufferWidth) && (imageBufferHeight != bufferHeight) )
|
|
666
|
-
{
|
|
667
|
-
imageBufferWidth = bufferWidth;
|
|
668
|
-
imageBufferHeight = bufferHeight;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
CVReturn err;
|
|
672
|
-
// Y-plane
|
|
673
|
-
glActiveTexture(GL_TEXTURE4);
|
|
674
|
-
if ([GPUImageContext deviceSupportsRedTextures])
|
|
675
|
-
{
|
|
676
|
-
// err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, coreVideoTextureCache, cameraFrame, NULL, GL_TEXTURE_2D, GL_RED_EXT, bufferWidth, bufferHeight, GL_RED_EXT, GL_UNSIGNED_BYTE, 0, &luminanceTextureRef);
|
|
677
|
-
err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, [[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], cameraFrame, NULL, GL_TEXTURE_2D, GL_LUMINANCE, bufferWidth, bufferHeight, GL_LUMINANCE, GL_UNSIGNED_BYTE, 0, &luminanceTextureRef);
|
|
678
|
-
}
|
|
679
|
-
else
|
|
680
|
-
{
|
|
681
|
-
err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, [[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], cameraFrame, NULL, GL_TEXTURE_2D, GL_LUMINANCE, bufferWidth, bufferHeight, GL_LUMINANCE, GL_UNSIGNED_BYTE, 0, &luminanceTextureRef);
|
|
682
|
-
}
|
|
683
|
-
if (err)
|
|
684
|
-
{
|
|
685
|
-
NSLog(@"Error at CVOpenGLESTextureCacheCreateTextureFromImage %d", err);
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
luminanceTexture = CVOpenGLESTextureGetName(luminanceTextureRef);
|
|
689
|
-
glBindTexture(GL_TEXTURE_2D, luminanceTexture);
|
|
690
|
-
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
|
691
|
-
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
|
692
|
-
|
|
693
|
-
// UV-plane
|
|
694
|
-
glActiveTexture(GL_TEXTURE5);
|
|
695
|
-
if ([GPUImageContext deviceSupportsRedTextures])
|
|
696
|
-
{
|
|
697
|
-
// err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, coreVideoTextureCache, cameraFrame, NULL, GL_TEXTURE_2D, GL_RG_EXT, bufferWidth/2, bufferHeight/2, GL_RG_EXT, GL_UNSIGNED_BYTE, 1, &chrominanceTextureRef);
|
|
698
|
-
err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, [[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], cameraFrame, NULL, GL_TEXTURE_2D, GL_LUMINANCE_ALPHA, bufferWidth/2, bufferHeight/2, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 1, &chrominanceTextureRef);
|
|
699
|
-
}
|
|
700
|
-
else
|
|
701
|
-
{
|
|
702
|
-
err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, [[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], cameraFrame, NULL, GL_TEXTURE_2D, GL_LUMINANCE_ALPHA, bufferWidth/2, bufferHeight/2, GL_LUMINANCE_ALPHA, GL_UNSIGNED_BYTE, 1, &chrominanceTextureRef);
|
|
703
|
-
}
|
|
704
|
-
if (err)
|
|
705
|
-
{
|
|
706
|
-
NSLog(@"Error at CVOpenGLESTextureCacheCreateTextureFromImage %d", err);
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
chrominanceTexture = CVOpenGLESTextureGetName(chrominanceTextureRef);
|
|
710
|
-
glBindTexture(GL_TEXTURE_2D, chrominanceTexture);
|
|
711
|
-
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
|
712
|
-
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
|
713
|
-
|
|
714
|
-
// if (!allTargetsWantMonochromeData)
|
|
715
|
-
// {
|
|
716
|
-
[self convertYUVToRGBOutput];
|
|
717
|
-
// }
|
|
718
|
-
|
|
719
|
-
int rotatedImageBufferWidth = bufferWidth, rotatedImageBufferHeight = bufferHeight;
|
|
720
|
-
|
|
721
|
-
if (GPUImageRotationSwapsWidthAndHeight(internalRotation))
|
|
722
|
-
{
|
|
723
|
-
rotatedImageBufferWidth = bufferHeight;
|
|
724
|
-
rotatedImageBufferHeight = bufferWidth;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
[self updateTargetsForVideoCameraUsingCacheTextureAtWidth:rotatedImageBufferWidth height:rotatedImageBufferHeight time:currentTime];
|
|
728
|
-
|
|
729
|
-
CVPixelBufferUnlockBaseAddress(cameraFrame, 0);
|
|
730
|
-
CFRelease(luminanceTextureRef);
|
|
731
|
-
CFRelease(chrominanceTextureRef);
|
|
732
|
-
}
|
|
733
|
-
else
|
|
734
|
-
{
|
|
735
|
-
// TODO: Mesh this with the output framebuffer structure
|
|
736
|
-
|
|
737
|
-
// CVPixelBufferLockBaseAddress(cameraFrame, 0);
|
|
738
|
-
//
|
|
739
|
-
// CVReturn err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, [[GPUImageContext sharedImageProcessingContext] coreVideoTextureCache], cameraFrame, NULL, GL_TEXTURE_2D, GL_RGBA, bufferWidth, bufferHeight, GL_BGRA, GL_UNSIGNED_BYTE, 0, &texture);
|
|
740
|
-
//
|
|
741
|
-
// if (!texture || err) {
|
|
742
|
-
// NSLog(@"Camera CVOpenGLESTextureCacheCreateTextureFromImage failed (error: %d)", err);
|
|
743
|
-
// NSAssert(NO, @"Camera failure");
|
|
744
|
-
// return;
|
|
745
|
-
// }
|
|
746
|
-
//
|
|
747
|
-
// outputTexture = CVOpenGLESTextureGetName(texture);
|
|
748
|
-
// // glBindTexture(CVOpenGLESTextureGetTarget(texture), outputTexture);
|
|
749
|
-
// glBindTexture(GL_TEXTURE_2D, outputTexture);
|
|
750
|
-
// glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
|
|
751
|
-
// glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
|
|
752
|
-
// glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
|
753
|
-
// glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
|
754
|
-
//
|
|
755
|
-
// [self updateTargetsForVideoCameraUsingCacheTextureAtWidth:bufferWidth height:bufferHeight time:currentTime];
|
|
756
|
-
//
|
|
757
|
-
// CVPixelBufferUnlockBaseAddress(cameraFrame, 0);
|
|
758
|
-
// CFRelease(texture);
|
|
759
|
-
//
|
|
760
|
-
// outputTexture = 0;
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
if (_runBenchmark)
|
|
765
|
-
{
|
|
766
|
-
numberOfFramesCaptured++;
|
|
767
|
-
if (numberOfFramesCaptured > INITIALFRAMESTOIGNOREFORBENCHMARK)
|
|
768
|
-
{
|
|
769
|
-
CFAbsoluteTime currentFrameTime = (CFAbsoluteTimeGetCurrent() - startTime);
|
|
770
|
-
totalFrameTimeDuringCapture += currentFrameTime;
|
|
771
|
-
NSLog(@"Average frame time : %f ms", [self averageFrameDurationDuringCapture]);
|
|
772
|
-
NSLog(@"Current frame time : %f ms", 1000.0 * currentFrameTime);
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
}
|
|
776
|
-
else
|
|
777
|
-
{
|
|
778
|
-
CVPixelBufferLockBaseAddress(cameraFrame, 0);
|
|
779
|
-
|
|
780
|
-
int bytesPerRow = (int) CVPixelBufferGetBytesPerRow(cameraFrame);
|
|
781
|
-
outputFramebuffer = [[GPUImageContext sharedFramebufferCache] fetchFramebufferForSize:CGSizeMake(bytesPerRow / 4, bufferHeight) onlyTexture:YES];
|
|
782
|
-
[outputFramebuffer activateFramebuffer];
|
|
783
|
-
|
|
784
|
-
glBindTexture(GL_TEXTURE_2D, [outputFramebuffer texture]);
|
|
785
|
-
|
|
786
|
-
// glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bufferWidth, bufferHeight, 0, GL_BGRA, GL_UNSIGNED_BYTE, CVPixelBufferGetBaseAddress(cameraFrame));
|
|
787
|
-
|
|
788
|
-
// Using BGRA extension to pull in video frame data directly
|
|
789
|
-
// The use of bytesPerRow / 4 accounts for a display glitch present in preview video frames when using the photo preset on the camera
|
|
790
|
-
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, bytesPerRow / 4, bufferHeight, 0, GL_BGRA, GL_UNSIGNED_BYTE, CVPixelBufferGetBaseAddress(cameraFrame));
|
|
791
|
-
|
|
792
|
-
[self updateTargetsForVideoCameraUsingCacheTextureAtWidth:bytesPerRow / 4 height:bufferHeight time:currentTime];
|
|
793
|
-
|
|
794
|
-
CVPixelBufferUnlockBaseAddress(cameraFrame, 0);
|
|
795
|
-
|
|
796
|
-
if (_runBenchmark)
|
|
797
|
-
{
|
|
798
|
-
numberOfFramesCaptured++;
|
|
799
|
-
if (numberOfFramesCaptured > INITIALFRAMESTOIGNOREFORBENCHMARK)
|
|
800
|
-
{
|
|
801
|
-
CFAbsoluteTime currentFrameTime = (CFAbsoluteTimeGetCurrent() - startTime);
|
|
802
|
-
totalFrameTimeDuringCapture += currentFrameTime;
|
|
803
|
-
}
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
- (void)processAudioSampleBuffer:(CMSampleBufferRef)sampleBuffer;
|
|
809
|
-
{
|
|
810
|
-
[self.audioEncodingTarget processAudioBuffer:sampleBuffer];
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
- (void)convertYUVToRGBOutput;
|
|
814
|
-
{
|
|
815
|
-
[GPUImageContext setActiveShaderProgram:yuvConversionProgram];
|
|
816
|
-
|
|
817
|
-
int rotatedImageBufferWidth = imageBufferWidth, rotatedImageBufferHeight = imageBufferHeight;
|
|
818
|
-
|
|
819
|
-
if (GPUImageRotationSwapsWidthAndHeight(internalRotation))
|
|
820
|
-
{
|
|
821
|
-
rotatedImageBufferWidth = imageBufferHeight;
|
|
822
|
-
rotatedImageBufferHeight = imageBufferWidth;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
outputFramebuffer = [[GPUImageContext sharedFramebufferCache] fetchFramebufferForSize:CGSizeMake(rotatedImageBufferWidth, rotatedImageBufferHeight) textureOptions:self.outputTextureOptions onlyTexture:NO];
|
|
826
|
-
[outputFramebuffer activateFramebuffer];
|
|
827
|
-
|
|
828
|
-
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
|
|
829
|
-
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
|
830
|
-
|
|
831
|
-
static const GLfloat squareVertices[] = {
|
|
832
|
-
-1.0f, -1.0f,
|
|
833
|
-
1.0f, -1.0f,
|
|
834
|
-
-1.0f, 1.0f,
|
|
835
|
-
1.0f, 1.0f,
|
|
836
|
-
};
|
|
837
|
-
|
|
838
|
-
glActiveTexture(GL_TEXTURE4);
|
|
839
|
-
glBindTexture(GL_TEXTURE_2D, luminanceTexture);
|
|
840
|
-
glUniform1i(yuvConversionLuminanceTextureUniform, 4);
|
|
841
|
-
|
|
842
|
-
glActiveTexture(GL_TEXTURE5);
|
|
843
|
-
glBindTexture(GL_TEXTURE_2D, chrominanceTexture);
|
|
844
|
-
glUniform1i(yuvConversionChrominanceTextureUniform, 5);
|
|
845
|
-
|
|
846
|
-
glUniformMatrix3fv(yuvConversionMatrixUniform, 1, GL_FALSE, _preferredConversion);
|
|
847
|
-
|
|
848
|
-
glVertexAttribPointer(yuvConversionPositionAttribute, 2, GL_FLOAT, 0, 0, squareVertices);
|
|
849
|
-
glVertexAttribPointer(yuvConversionTextureCoordinateAttribute, 2, GL_FLOAT, 0, 0, [GPUImageFilter textureCoordinatesForRotation:internalRotation]);
|
|
850
|
-
|
|
851
|
-
glDrawArrays(GL_TRIANGLE_STRIP, 0, 4);
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
#pragma mark -
|
|
855
|
-
#pragma mark Benchmarking
|
|
856
|
-
|
|
857
|
-
- (CGFloat)averageFrameDurationDuringCapture;
|
|
858
|
-
{
|
|
859
|
-
return (totalFrameTimeDuringCapture / (CGFloat)(numberOfFramesCaptured - INITIALFRAMESTOIGNOREFORBENCHMARK)) * 1000.0;
|
|
860
|
-
}
|
|
861
|
-
|
|
862
|
-
- (void)resetBenchmarkAverage;
|
|
863
|
-
{
|
|
864
|
-
numberOfFramesCaptured = 0;
|
|
865
|
-
totalFrameTimeDuringCapture = 0.0;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
#pragma mark -
|
|
869
|
-
#pragma mark AVCaptureVideoDataOutputSampleBufferDelegate
|
|
870
|
-
|
|
871
|
-
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection
|
|
872
|
-
{
|
|
873
|
-
if (!self.captureSession.isRunning)
|
|
874
|
-
{
|
|
875
|
-
return;
|
|
876
|
-
}
|
|
877
|
-
else if (captureOutput == audioOutput)
|
|
878
|
-
{
|
|
879
|
-
[self processAudioSampleBuffer:sampleBuffer];
|
|
880
|
-
}
|
|
881
|
-
else
|
|
882
|
-
{
|
|
883
|
-
if (dispatch_semaphore_wait(frameRenderingSemaphore, DISPATCH_TIME_NOW) != 0)
|
|
884
|
-
{
|
|
885
|
-
return;
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
CFRetain(sampleBuffer);
|
|
889
|
-
runAsynchronouslyOnVideoProcessingQueue(^{
|
|
890
|
-
//Feature Detection Hook.
|
|
891
|
-
if (self.delegate)
|
|
892
|
-
{
|
|
893
|
-
[self.delegate willOutputSampleBuffer:sampleBuffer];
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
[self processVideoSampleBuffer:sampleBuffer];
|
|
897
|
-
|
|
898
|
-
CFRelease(sampleBuffer);
|
|
899
|
-
dispatch_semaphore_signal(frameRenderingSemaphore);
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
|
|
904
|
-
#pragma mark -
|
|
905
|
-
#pragma mark Accessors
|
|
906
|
-
|
|
907
|
-
- (void)setAudioEncodingTarget:(GPUImageMovieWriter *)newValue;
|
|
908
|
-
{
|
|
909
|
-
if (newValue) {
|
|
910
|
-
/* Add audio inputs and outputs, if necessary */
|
|
911
|
-
addedAudioInputsDueToEncodingTarget |= [self addAudioInputsAndOutputs];
|
|
912
|
-
} else if (addedAudioInputsDueToEncodingTarget) {
|
|
913
|
-
/* Remove audio inputs and outputs, if they were added by previously setting the audio encoding target */
|
|
914
|
-
[self removeAudioInputsAndOutputs];
|
|
915
|
-
addedAudioInputsDueToEncodingTarget = NO;
|
|
916
|
-
}
|
|
917
|
-
|
|
918
|
-
[super setAudioEncodingTarget:newValue];
|
|
919
|
-
}
|
|
920
|
-
|
|
921
|
-
- (void)updateOrientationSendToTargets;
|
|
922
|
-
{
|
|
923
|
-
runSynchronouslyOnVideoProcessingQueue(^{
|
|
924
|
-
|
|
925
|
-
// From the iOS 5.0 release notes:
|
|
926
|
-
// In previous iOS versions, the front-facing camera would always deliver buffers in AVCaptureVideoOrientationLandscapeLeft and the back-facing camera would always deliver buffers in AVCaptureVideoOrientationLandscapeRight.
|
|
927
|
-
|
|
928
|
-
if (captureAsYUV && [GPUImageContext supportsFastTextureUpload])
|
|
929
|
-
{
|
|
930
|
-
outputRotation = kGPUImageNoRotation;
|
|
931
|
-
if ([self cameraPosition] == AVCaptureDevicePositionBack)
|
|
932
|
-
{
|
|
933
|
-
if (_horizontallyMirrorRearFacingCamera)
|
|
934
|
-
{
|
|
935
|
-
switch(_outputImageOrientation)
|
|
936
|
-
{
|
|
937
|
-
case UIInterfaceOrientationPortrait:internalRotation = kGPUImageRotateRightFlipVertical; break;
|
|
938
|
-
case UIInterfaceOrientationPortraitUpsideDown:internalRotation = kGPUImageRotate180; break;
|
|
939
|
-
case UIInterfaceOrientationLandscapeLeft:internalRotation = kGPUImageFlipHorizonal; break;
|
|
940
|
-
case UIInterfaceOrientationLandscapeRight:internalRotation = kGPUImageFlipVertical; break;
|
|
941
|
-
default:internalRotation = kGPUImageNoRotation;
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
else
|
|
945
|
-
{
|
|
946
|
-
switch(_outputImageOrientation)
|
|
947
|
-
{
|
|
948
|
-
case UIInterfaceOrientationPortrait:internalRotation = kGPUImageRotateRight; break;
|
|
949
|
-
case UIInterfaceOrientationPortraitUpsideDown:internalRotation = kGPUImageRotateLeft; break;
|
|
950
|
-
case UIInterfaceOrientationLandscapeLeft:internalRotation = kGPUImageRotate180; break;
|
|
951
|
-
case UIInterfaceOrientationLandscapeRight:internalRotation = kGPUImageNoRotation; break;
|
|
952
|
-
default:internalRotation = kGPUImageNoRotation;
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
else
|
|
957
|
-
{
|
|
958
|
-
if (_horizontallyMirrorFrontFacingCamera)
|
|
959
|
-
{
|
|
960
|
-
switch(_outputImageOrientation)
|
|
961
|
-
{
|
|
962
|
-
case UIInterfaceOrientationPortrait:internalRotation = kGPUImageRotateRightFlipVertical; break;
|
|
963
|
-
case UIInterfaceOrientationPortraitUpsideDown:internalRotation = kGPUImageRotateRightFlipHorizontal; break;
|
|
964
|
-
case UIInterfaceOrientationLandscapeLeft:internalRotation = kGPUImageFlipHorizonal; break;
|
|
965
|
-
case UIInterfaceOrientationLandscapeRight:internalRotation = kGPUImageFlipVertical; break;
|
|
966
|
-
default:internalRotation = kGPUImageNoRotation;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
else
|
|
970
|
-
{
|
|
971
|
-
switch(_outputImageOrientation)
|
|
972
|
-
{
|
|
973
|
-
case UIInterfaceOrientationPortrait:internalRotation = kGPUImageRotateRight; break;
|
|
974
|
-
case UIInterfaceOrientationPortraitUpsideDown:internalRotation = kGPUImageRotateLeft; break;
|
|
975
|
-
case UIInterfaceOrientationLandscapeLeft:internalRotation = kGPUImageNoRotation; break;
|
|
976
|
-
case UIInterfaceOrientationLandscapeRight:internalRotation = kGPUImageRotate180; break;
|
|
977
|
-
default:internalRotation = kGPUImageNoRotation;
|
|
978
|
-
}
|
|
979
|
-
}
|
|
980
|
-
}
|
|
981
|
-
}
|
|
982
|
-
else
|
|
983
|
-
{
|
|
984
|
-
if ([self cameraPosition] == AVCaptureDevicePositionBack)
|
|
985
|
-
{
|
|
986
|
-
if (_horizontallyMirrorRearFacingCamera)
|
|
987
|
-
{
|
|
988
|
-
switch(_outputImageOrientation)
|
|
989
|
-
{
|
|
990
|
-
case UIInterfaceOrientationPortrait:outputRotation = kGPUImageRotateRightFlipVertical; break;
|
|
991
|
-
case UIInterfaceOrientationPortraitUpsideDown:outputRotation = kGPUImageRotate180; break;
|
|
992
|
-
case UIInterfaceOrientationLandscapeLeft:outputRotation = kGPUImageFlipHorizonal; break;
|
|
993
|
-
case UIInterfaceOrientationLandscapeRight:outputRotation = kGPUImageFlipVertical; break;
|
|
994
|
-
default:outputRotation = kGPUImageNoRotation;
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
else
|
|
998
|
-
{
|
|
999
|
-
switch(_outputImageOrientation)
|
|
1000
|
-
{
|
|
1001
|
-
case UIInterfaceOrientationPortrait:outputRotation = kGPUImageRotateRight; break;
|
|
1002
|
-
case UIInterfaceOrientationPortraitUpsideDown:outputRotation = kGPUImageRotateLeft; break;
|
|
1003
|
-
case UIInterfaceOrientationLandscapeLeft:outputRotation = kGPUImageRotate180; break;
|
|
1004
|
-
case UIInterfaceOrientationLandscapeRight:outputRotation = kGPUImageNoRotation; break;
|
|
1005
|
-
default:outputRotation = kGPUImageNoRotation;
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
}
|
|
1009
|
-
else
|
|
1010
|
-
{
|
|
1011
|
-
if (_horizontallyMirrorFrontFacingCamera)
|
|
1012
|
-
{
|
|
1013
|
-
switch(_outputImageOrientation)
|
|
1014
|
-
{
|
|
1015
|
-
case UIInterfaceOrientationPortrait:outputRotation = kGPUImageRotateRightFlipVertical; break;
|
|
1016
|
-
case UIInterfaceOrientationPortraitUpsideDown:outputRotation = kGPUImageRotateRightFlipHorizontal; break;
|
|
1017
|
-
case UIInterfaceOrientationLandscapeLeft:outputRotation = kGPUImageFlipHorizonal; break;
|
|
1018
|
-
case UIInterfaceOrientationLandscapeRight:outputRotation = kGPUImageFlipVertical; break;
|
|
1019
|
-
default:outputRotation = kGPUImageNoRotation;
|
|
1020
|
-
}
|
|
1021
|
-
}
|
|
1022
|
-
else
|
|
1023
|
-
{
|
|
1024
|
-
switch(_outputImageOrientation)
|
|
1025
|
-
{
|
|
1026
|
-
case UIInterfaceOrientationPortrait:outputRotation = kGPUImageRotateRight; break;
|
|
1027
|
-
case UIInterfaceOrientationPortraitUpsideDown:outputRotation = kGPUImageRotateLeft; break;
|
|
1028
|
-
case UIInterfaceOrientationLandscapeLeft:outputRotation = kGPUImageNoRotation; break;
|
|
1029
|
-
case UIInterfaceOrientationLandscapeRight:outputRotation = kGPUImageRotate180; break;
|
|
1030
|
-
default:outputRotation = kGPUImageNoRotation;
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
|
|
1036
|
-
for (id<GPUImageInput> currentTarget in targets)
|
|
1037
|
-
{
|
|
1038
|
-
NSInteger indexOfObject = [targets indexOfObject:currentTarget];
|
|
1039
|
-
[currentTarget setInputRotation:outputRotation atIndex:[[targetTextureIndices objectAtIndex:indexOfObject] integerValue]];
|
|
1040
|
-
}
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
- (void)setOutputImageOrientation:(UIInterfaceOrientation)newValue;
|
|
1045
|
-
{
|
|
1046
|
-
_outputImageOrientation = newValue;
|
|
1047
|
-
[self updateOrientationSendToTargets];
|
|
1048
|
-
}
|
|
1049
|
-
|
|
1050
|
-
- (void)setHorizontallyMirrorFrontFacingCamera:(BOOL)newValue
|
|
1051
|
-
{
|
|
1052
|
-
_horizontallyMirrorFrontFacingCamera = newValue;
|
|
1053
|
-
[self updateOrientationSendToTargets];
|
|
1054
|
-
}
|
|
1055
|
-
|
|
1056
|
-
- (void)setHorizontallyMirrorRearFacingCamera:(BOOL)newValue
|
|
1057
|
-
{
|
|
1058
|
-
_horizontallyMirrorRearFacingCamera = newValue;
|
|
1059
|
-
[self updateOrientationSendToTargets];
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
@end
|