浏览代码

filter - to be continued

Chris 5 年之前
父节点
当前提交
c1529edd5b
共有 81 个文件被更改,包括 2100 次插入7 次删除
  1. 22 6
      RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj
  2. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/优雅/color.png
  3. 71 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/优雅/config.json
  4. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/优雅/icon.png
  5. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/光圈/config.json
  6. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/光圈/icon.png
  7. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/思念/color.png
  8. 73 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/思念/config.json
  9. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/思念/icon.png
  10. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/朝阳/color.png
  11. 71 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/朝阳/config.json
  12. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/朝阳/icon.png
  13. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/柔柔/color.png
  14. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/柔柔/config.json
  15. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/柔柔/icon.png
  16. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/模糊/config.json
  17. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/模糊/icon.png
  18. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/波普/config.json
  19. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/波普/icon.png
  20. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/浓烈/color.png
  21. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/浓烈/config.json
  22. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/浓烈/icon.png
  23. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海盐/color.png
  24. 72 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海盐/config.json
  25. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海盐/icon.png
  26. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海蓝/color.png
  27. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海蓝/config.json
  28. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海蓝/icon.png
  29. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/灰白/config.json
  30. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/灰白/icon.png
  31. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/炽黄/color.png
  32. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/炽黄/config.json
  33. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/炽黄/icon.png
  34. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/焦黄/config.json
  35. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/焦黄/icon.png
  36. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/粉桃/color.png
  37. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/粉桃/config.json
  38. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/粉桃/icon.png
  39. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/素描/config.json
  40. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/素描/icon.png
  41. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/color.png
  42. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/color2.png
  43. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/config.json
  44. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/icon.png
  45. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color.png
  46. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color2.png
  47. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color3.png
  48. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color4.png
  49. 74 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/config.json
  50. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/icon.png
  51. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/胶片/config.json
  52. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/胶片/icon.png
  53. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/蓝调/config.json
  54. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/蓝调/icon.png
  55. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/迷糊/config.json
  56. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/迷糊/icon.png
  57. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/闪耀/color.png
  58. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/闪耀/config.json
  59. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/闪耀/icon.png
  60. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/阳光/color.png
  61. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/阳光/config.json
  62. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/阳光/icon.png
  63. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/雪梨/config.json
  64. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/雪梨/icon.png
  65. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/雪梨/s3.png
  66. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/马赛克/config.json
  67. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/马赛克/icon.png
  68. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鱼眼/config.json
  69. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鱼眼/icon.png
  70. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/color.png
  71. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/color2.png
  72. 72 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/config.json
  73. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/icon.png
  74. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/麦茶/color.png
  75. 70 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/麦茶/config.json
  76. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/麦茶/icon.png
  77. 69 0
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/黑白/config.json
  78. 二进制
      RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/黑白/icon.png
  79. 85 0
      RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishFilterView.swift
  80. 31 0
      RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishVideoRecorderController.swift
  81. 1 1
      RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishVideoView.swift

+ 22 - 6
RainbowPlanet/RainbowPlanet.xcodeproj/project.pbxproj

@@ -479,6 +479,8 @@
 		BD7AB841228438C80030646A /* OrderPaySelfPickAddressCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7AB840228438C80030646A /* OrderPaySelfPickAddressCell.swift */; };
 		BD7AB8432284390B0030646A /* OrderPaySelfPickInfoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7AB8422284390B0030646A /* OrderPaySelfPickInfoCell.swift */; };
 		BD7AB8452284398A0030646A /* OrderPaySelfPickAddInfoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD7AB8442284398A0030646A /* OrderPaySelfPickAddInfoCell.swift */; };
+		BD8CAE3822BBA58900873C45 /* FilterResource.bundle in Resources */ = {isa = PBXBuildFile; fileRef = BD8CAE3722BBA58900873C45 /* FilterResource.bundle */; };
+		BD8CAE3A22BBB5ED00873C45 /* PublishFilterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD8CAE3922BBB5ED00873C45 /* PublishFilterView.swift */; };
 		BD929CCA22B8CFB10098C139 /* AliyunPathManager.m in Sources */ = {isa = PBXBuildFile; fileRef = BD929CC822B8CFB10098C139 /* AliyunPathManager.m */; };
 		BD929CCE22B904A30098C139 /* PublishViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD929CCD22B904A30098C139 /* PublishViewController.swift */; };
 		BD929CD422B906C10098C139 /* PublishVideoRecorderController.swift in Sources */ = {isa = PBXBuildFile; fileRef = BD929CD322B906C10098C139 /* PublishVideoRecorderController.swift */; };
@@ -1038,6 +1040,8 @@
 		BD7AB840228438C80030646A /* OrderPaySelfPickAddressCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderPaySelfPickAddressCell.swift; sourceTree = "<group>"; };
 		BD7AB8422284390B0030646A /* OrderPaySelfPickInfoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderPaySelfPickInfoCell.swift; sourceTree = "<group>"; };
 		BD7AB8442284398A0030646A /* OrderPaySelfPickAddInfoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderPaySelfPickAddInfoCell.swift; sourceTree = "<group>"; };
+		BD8CAE3722BBA58900873C45 /* FilterResource.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = FilterResource.bundle; sourceTree = "<group>"; };
+		BD8CAE3922BBB5ED00873C45 /* PublishFilterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PublishFilterView.swift; sourceTree = "<group>"; };
 		BD9052C044FD3AE4E62D3929 /* Pods-RainbowPlanet.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RainbowPlanet.debug.xcconfig"; path = "Pods/Target Support Files/Pods-RainbowPlanet/Pods-RainbowPlanet.debug.xcconfig"; sourceTree = "<group>"; };
 		BD929CC822B8CFB10098C139 /* AliyunPathManager.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = AliyunPathManager.m; sourceTree = "<group>"; };
 		BD929CC922B8CFB10098C139 /* AliyunPathManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AliyunPathManager.h; sourceTree = "<group>"; };
@@ -1818,6 +1822,7 @@
 		A72A725322321A6900B21995 /* Lib */ = {
 			isa = PBXGroup;
 			children = (
+				BD8CAE3622BBA56100873C45 /* AliyunVideoSDK */,
 				A7778C8E22438F5C00C7C47A /* AlipaySDK */,
 				A7778C9122438F5D00C7C47A /* WeChatSDK */,
 			);
@@ -3870,13 +3875,13 @@
 		BD13B6A222B9CE8D008BB323 /* View */ = {
 			isa = PBXGroup;
 			children = (
-				BD13B6BE22BA034D008BB323 /* PublishEditAddAddressCell.swift */,
-				BD13B6BB22BA034C008BB323 /* PublishEditAddImgCollectionCell.swift */,
 				BD13B6BA22BA034C008BB323 /* PublishEditAddPicCell.swift */,
-				BD13B6C022BA034D008BB323 /* PublishEditAddTopicCell.swift */,
 				BD13B6BD22BA034D008BB323 /* PublishEditDefaultCollectionCell.swift */,
-				BD13B6BC22BA034C008BB323 /* PublishEditDescribeCell.swift */,
+				BD13B6BB22BA034C008BB323 /* PublishEditAddImgCollectionCell.swift */,
 				BD13B6BF22BA034D008BB323 /* PublishEditTitleCell.swift */,
+				BD13B6BC22BA034C008BB323 /* PublishEditDescribeCell.swift */,
+				BD13B6C022BA034D008BB323 /* PublishEditAddTopicCell.swift */,
+				BD13B6BE22BA034D008BB323 /* PublishEditAddAddressCell.swift */,
 			);
 			path = View;
 			sourceTree = "<group>";
@@ -3921,11 +3926,11 @@
 		BD13B6D222BA03BB008BB323 /* View */ = {
 			isa = PBXGroup;
 			children = (
-				BD13B6D322BA03BB008BB323 /* PublishTopicTypeItemCollectionCell.swift */,
 				BD13B6D422BA03BB008BB323 /* PublishTopicHeaderView.swift */,
-				BD13B6D522BA03BB008BB323 /* PublishTopicItemCell.swift */,
 				BD13B6D622BA03BB008BB323 /* PublishSelTopicCollectionCell.swift */,
 				BD13B6D722BA03BB008BB323 /* PublishTopicTypeCell.swift */,
+				BD13B6D322BA03BB008BB323 /* PublishTopicTypeItemCollectionCell.swift */,
+				BD13B6D522BA03BB008BB323 /* PublishTopicItemCell.swift */,
 			);
 			path = View;
 			sourceTree = "<group>";
@@ -4164,11 +4169,20 @@
 			path = AdressCell;
 			sourceTree = "<group>";
 		};
+		BD8CAE3622BBA56100873C45 /* AliyunVideoSDK */ = {
+			isa = PBXGroup;
+			children = (
+				BD8CAE3722BBA58900873C45 /* FilterResource.bundle */,
+			);
+			path = AliyunVideoSDK;
+			sourceTree = "<group>";
+		};
 		BDACE21222BB683000109AAD /* PublishTakeVideo */ = {
 			isa = PBXGroup;
 			children = (
 				BD929CD322B906C10098C139 /* PublishVideoRecorderController.swift */,
 				BD1EF11622BA637D0052D87A /* PublishVideoView.swift */,
+				BD8CAE3922BBB5ED00873C45 /* PublishFilterView.swift */,
 			);
 			path = PublishTakeVideo;
 			sourceTree = "<group>";
@@ -4432,6 +4446,7 @@
 			files = (
 				A7CC74DE22703B4A003C4F38 /* MineModule.xcassets in Resources */,
 				A7BF202422B392D600396DB3 /* CommunityModule.xcassets in Resources */,
+				BD8CAE3822BBA58900873C45 /* FilterResource.bundle in Resources */,
 				A71AF0BE226F1792001730FE /* ShoppingMallModule.xcassets in Resources */,
 				A7931DFE22AF827600297D0A /* Localizable.strings in Resources */,
 				A7778C9722438F5D00C7C47A /* AlipaySDK.bundle in Resources */,
@@ -4785,6 +4800,7 @@
 				BD20F1D32283D0ED00677D8E /* OrderFinishPaySuccessCell.swift in Sources */,
 				A7E19FAC22BA2D01009BCCE1 /* SearchTopicListViewController.swift in Sources */,
 				A71AA52822732173008FF1A5 /* SwiftMoyaNetWorkServiceConfig.swift in Sources */,
+				BD8CAE3A22BBB5ED00873C45 /* PublishFilterView.swift in Sources */,
 				A70B2C732289019200B2449F /* ProductDetailSkuView.swift in Sources */,
 				A70B2C4322883B4E00B2449F /* ProductDetailShopTableViewCell.swift in Sources */,
 				A70B2C102286A3BC00B2449F /* ProductDetailModel.swift in Sources */,

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/优雅/color.png


文件差异内容过多而无法显示
+ 71 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/优雅/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/优雅/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/光圈/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/光圈/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/思念/color.png


文件差异内容过多而无法显示
+ 73 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/思念/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/思念/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/朝阳/color.png


文件差异内容过多而无法显示
+ 71 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/朝阳/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/朝阳/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/柔柔/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/柔柔/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "安妮", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/柔柔/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/模糊/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/模糊/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/波普/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/波普/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/浓烈/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/浓烈/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "车恩尚", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/浓烈/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海盐/color.png


文件差异内容过多而无法显示
+ 72 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海盐/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海盐/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海蓝/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海蓝/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "车恩尚", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/海蓝/icon.png


+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/灰白/config.json

@@ -0,0 +1,69 @@
+{
+    "musicName": null,
+    "name": "黑白",
+    "animations": [
+                   {
+                   "frames": [
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 0,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              },
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 449,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              }
+                              ],
+                   "name": "main"
+                   }
+                   ], 
+    "music": "music.mp3", 
+    "effects": [
+                {
+                "src": "", 
+                "range": "", 
+                "video": "main", 
+                "eid": 1
+                }, 
+                {
+                "filterName": "BlackWhite",
+                "range": "", 
+                "eid": 2, 
+                "src": "1"
+                }
+                ], 
+    "filters": [
+                {
+                "images": [
+                ], 
+                "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float v = (value.r+value.g+value.b)/3.0;gl_FragColor = vec4(v,v,v,1.0);\n} ", 
+                "name": "BlackWhite"
+                }
+                ], 
+    "time": [
+             0
+             ], 
+    "icon": "icon.png", 
+    "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/灰白/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/炽黄/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/炽黄/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "车恩尚", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/炽黄/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/焦黄/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/焦黄/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/粉桃/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/粉桃/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "车恩尚", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/粉桃/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/素描/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/素描/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/color.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/color2.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "韩智恩", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/红润/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color2.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color3.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/color4.png


文件差异内容过多而无法显示
+ 74 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/经典/icon.png


+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/胶片/config.json

@@ -0,0 +1,69 @@
+{
+    "musicName": null,
+    "name": "胶片",
+    "animations": [
+                   {
+                   "frames": [
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 0,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              },
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 449,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              }
+                              ],
+                   "name": "main"
+                   }
+                   ], 
+    "music": "music.mp3", 
+    "effects": [
+                {
+                "src": "", 
+                "range": "", 
+                "video": "main", 
+                "eid": 1
+                }, 
+                {
+                "filterName": "Mosaic",
+                "range": "", 
+                "eid": 2, 
+                "src": "1"
+                }
+                ], 
+    "filters": [
+                {
+                "images": [
+                ], 
+                "fragment": "varying highp vec2 textureCoordinate;\n \n uniform sampler2D inputImageTexture;\n \n void main()\n {\n    lowp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);\n    \n    gl_FragColor = vec4((1.0 - textureColor.rgb), textureColor.w);\n }",
+                "name": "BlackWhite"
+                }
+                ], 
+    "time": [
+             0
+             ], 
+    "icon": "icon.png", 
+    "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/胶片/icon.png


+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/蓝调/config.json

@@ -0,0 +1,69 @@
+{
+    "musicName": null,
+    "name": "rgb",
+    "animations": [
+                   {
+                   "frames": [
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 0,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              },
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 449,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              }
+                              ],
+                   "name": "main"
+                   }
+                   ], 
+    "music": "music.mp3", 
+    "effects": [
+                {
+                "src": "", 
+                "range": "", 
+                "video": "main", 
+                "eid": 1
+                }, 
+                {
+                "filterName": "Mosaic",
+                "range": "", 
+                "eid": 2, 
+                "src": "1"
+                }
+                ], 
+    "filters": [
+                {
+                "images": [
+                ], 
+                "fragment": "varying highp vec2 textureCoordinate;\n \n uniform sampler2D inputImageTexture;\n \n \n void main()\n {\n     highp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);\n     \n     gl_FragColor = vec4(textureColor.r , textureColor.g * 0.9, textureColor.b , textureColor.a);\n }",
+                "name": "BlackWhite"
+                }
+                ], 
+    "time": [
+             0
+             ], 
+    "icon": "icon.png", 
+    "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/蓝调/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/迷糊/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/迷糊/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/闪耀/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/闪耀/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "车恩尚", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/闪耀/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/阳光/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/阳光/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "车恩尚", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/阳光/icon.png


文件差异内容过多而无法显示
+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/雪梨/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/雪梨/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/雪梨/s3.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/马赛克/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/马赛克/icon.png


文件差异内容过多而无法显示
+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鱼眼/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鱼眼/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/color.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/color2.png


文件差异内容过多而无法显示
+ 72 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/config.json


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/鲜果/icon.png


二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/麦茶/color.png


+ 70 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/麦茶/config.json

@@ -0,0 +1,70 @@
+{
+  "musicName": null, 
+  "name": "西北偏北", 
+  "animations": [
+    {
+      "frames": [
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 0, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }, 
+        {
+          "a": 0.0, 
+          "fx": 0.0, 
+          "fw": 480.0, 
+          "track": "a", 
+          "h": 1.0, 
+          "fh": 480.0, 
+          "cy": 240.0, 
+          "cx": 240.0, 
+          "t": 449, 
+          "w": 1.0, 
+          "fy": 0.0, 
+          "y": 240.0, 
+          "x": 240.0
+        }
+      ], 
+      "name": "main"
+    }
+  ], 
+  "music": "music.mp3", 
+  "effects": [
+    {
+      "src": "", 
+      "range": "", 
+      "video": "main", 
+      "eid": 1
+    }, 
+    {
+      "filterName": "LookColor", 
+      "range": "", 
+      "eid": 2, 
+      "src": "1"
+    }
+  ], 
+  "filters": [
+    {
+      "images": [
+        "color.png"
+      ], 
+      "fragment": " \nprecision highp float;\nvarying highp vec2 textureCoordinate; \nuniform sampler2D inputImageTexture;\nuniform sampler2D inputImageTexture2;\nvoid main()\n{\n vec4 value = texture2D(inputImageTexture, textureCoordinate);\n float r = texture2D(inputImageTexture2, vec2(value.r, 0.5)).r;\n float g = texture2D(inputImageTexture2, vec2(value.g, 0.5)).g;\n float b = texture2D(inputImageTexture2, vec2(value.b, 0.5)).b;\n gl_FragColor = vec4(r,g,b,1.0);\n} ", 
+      "name": "LookColor"
+    }
+  ], 
+  "time": [
+    0
+  ], 
+  "icon": "icon.png", 
+  "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/麦茶/icon.png


+ 69 - 0
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/黑白/config.json

@@ -0,0 +1,69 @@
+{
+    "musicName": null,
+    "name": "gray",
+    "animations": [
+                   {
+                   "frames": [
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 0,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              },
+                              {
+                              "a": 0.0,
+                              "fx": 0.0,
+                              "fw": 480.0,
+                              "track": "a",
+                              "h": 1.0,
+                              "fh": 480.0,
+                              "cy": 240.0,
+                              "cx": 240.0,
+                              "t": 449,
+                              "w": 1.0,
+                              "fy": 0.0,
+                              "y": 240.0,
+                              "x": 240.0
+                              }
+                              ],
+                   "name": "main"
+                   }
+                   ], 
+    "music": "music.mp3", 
+    "effects": [
+                {
+                "src": "", 
+                "range": "", 
+                "video": "main", 
+                "eid": 1
+                }, 
+                {
+                "filterName": "Mosaic",
+                "range": "", 
+                "eid": 2, 
+                "src": "1"
+                }
+                ], 
+    "filters": [
+                {
+                "images": [
+                ], 
+                "fragment": "precision highp float;\n \n varying vec2 textureCoordinate;\n \n uniform sampler2D inputImageTexture;\n \n const highp vec3 W = vec3(0.2125, 0.7154, 0.0721);\n \n void main()\n {\n     lowp vec4 textureColor = texture2D(inputImageTexture, textureCoordinate);\n     float luminance = dot(textureColor.rgb, W);\n     \n     gl_FragColor = vec4(vec3(luminance), textureColor.a);\n }",
+                "name": "BlackWhite"
+                }
+                ], 
+    "time": [
+             0
+             ], 
+    "icon": "icon.png", 
+    "musicIcon": "icon_music.png"
+}

二进制
RainbowPlanet/RainbowPlanet/Lib/AliyunVideoSDK/FilterResource.bundle/黑白/icon.png


+ 85 - 0
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishFilterView.swift

@@ -0,0 +1,85 @@
+//
+//  PublishFilterView.swift
+//  RainbowPlanet
+//
+//  Created by Christopher on 2019/6/20.
+//  Copyright © 2019 RainbowPlanet. All rights reserved.
+//  滤镜のView
+
+import UIKit
+
+class PublishFilterView: BaseView {
+    
+    override func setupViews() {
+        self.backgroundColor = kf7f8faColor
+        
+        addSubview(collectionView)
+    }
+    
+    override func setupLayouts() {
+        collectionView.snp.remakeConstraints { (make) in
+            make.top.equalTo(10)
+            make.bottom.equalTo(-10)
+            make.left.right.equalToSuperview()
+        }
+    }
+    
+    private lazy var collectionView: UICollectionView = {
+        let collectionView = UICollectionView.init(frame: CGRect.zero, collectionViewLayout: collectionViewLayout)
+        collectionView.backgroundColor = kf7f8faColor
+        collectionView.delegate = self;
+        collectionView.dataSource = self;
+        collectionView.showsVerticalScrollIndicator = false
+        collectionView.showsHorizontalScrollIndicator = false
+        collectionView.bounces = false
+        return collectionView
+    }()
+    
+    private lazy var collectionViewLayout: UICollectionViewFlowLayout = {
+        let collectionViewLayout = UICollectionViewLeftAlignedLayout.init()
+        collectionViewLayout.minimumLineSpacing = 10
+        collectionViewLayout.minimumInteritemSpacing =  10
+        collectionViewLayout.scrollDirection = UICollectionView.ScrollDirection.horizontal
+        collectionViewLayout.estimatedItemSize = CGSize(width: ((kScreenWidth - 28) - 3*10)/4, height: 24)
+        return collectionViewLayout
+    }()
+    
+    //加载数据
+    func reloadData() {
+        //collectionView重新加载数据
+        self.collectionView.reloadData()
+        //更新collectionView的高度约束
+        let contentSize = self.collectionView.collectionViewLayout.collectionViewContentSize
+        collectionView.snp.makeConstraints { (make) in
+            make.top.equalTo(10)
+            make.bottom.equalTo(-10)
+            make.left.right.equalToSuperview()
+            make.height.equalTo(contentSize.height)
+        }
+        self.collectionView.collectionViewLayout.invalidateLayout()
+    }
+}
+
+extension PublishFilterView: UICollectionViewDelegateFlowLayout,UICollectionViewDataSource {
+    func numberOfSections(in collectionView: UICollectionView) -> Int {
+        return 1
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
+        return 5
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
+        let cell = PublishSelTopicCollectionCell.cellWith(collectionView: collectionView, indexPath: indexPath)
+        return cell
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, insetForSectionAt section: Int) -> UIEdgeInsets {
+        return UIEdgeInsets(top: 0, left: 14, bottom: 0, right: 14)
+    }
+    
+    func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
+        print("点击了collection----\(indexPath.row)")
+    }
+    
+}

+ 31 - 0
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishVideoRecorderController.swift

@@ -15,11 +15,15 @@ class PublishVideoRecorderController: BaseViewController {
     typealias DismissClosure = () -> Void
     var dismissClosure: DismissClosure?
     
+    // 滤镜Items
+    var effectFilterItems: Array<AliyunEffectFilter> = []
+    
     override func viewDidLoad() {
         super.viewDidLoad()
         
         setupViews()
         setupLayouts()
+        setupFilterEffectData()
     }
     
     deinit {
@@ -150,6 +154,33 @@ class PublishVideoRecorderController: BaseViewController {
     
 }
 
+// MARK: - Video
+extension PublishVideoRecorderController {
+    // 初始化滤镜数据
+    func setupFilterEffectData() {
+        let filterArr = ["炽黄","粉桃","海蓝","红润","灰白",
+                       "经典","麦茶","浓烈","柔柔","闪耀",
+                        "鲜果","雪梨","阳光","优雅","朝阳",
+                         "波普","光圈","海盐","黑白","胶片",
+                          "焦黄","蓝调","迷糊","思念","素描",
+                           "鱼眼","马赛克","模糊"]
+        
+        effectFilterItems.removeAll()
+        
+        let effectFilter1: AliyunEffectFilter = AliyunEffectFilter()
+        effectFilterItems.append(effectFilter1) //作为空效果
+        
+        for (_, filter) in filterArr.enumerated() {
+            let filterName: String = "filter/\(filter)"
+            let path = Bundle(for: type(of: self)).path(forResource: filterName, ofType: nil)
+            let effectFilter: AliyunEffectFilter = AliyunEffectFilter(file: path)
+            effectFilterItems.append(effectFilter)
+        }
+    }
+    
+}
+
+// MARK: - JXSegmentedDelegate
 extension PublishVideoRecorderController : JXSegmentedListContainerViewListDelegate {
     func listView() -> UIView {
         return view

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/PublishModule/PublishTakeVideo/PublishVideoView.swift

@@ -286,7 +286,7 @@ class PublishVideoView: BaseView {
 extension PublishVideoView : JXSegmentedViewDelegate {
     
     // 点击选中的情况才会调用该方法
-    func segmentedView(_ segmentedView: JXSegmentedView, didClickSelectedItemAt index: Int) {        
+    func segmentedView(_ segmentedView: JXSegmentedView, didClickSelectedItemAt index: Int) {
         print("----选中\(index)")
     }