Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修正素材背景是白色时导致的亮度过高问题 #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BDAlphaPlayer.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "BDAlphaPlayer"
spec.version = "1.2.2"
spec.version = "1.2.3"
spec.summary = "A player for MP4 with alpha channel."

spec.homepage = "https://github.com/bytedance/AlphaPlayer/blob/master/README.md"
Expand Down
10 changes: 5 additions & 5 deletions iOS/BDAlphaPlayer/Classes/Render/BDAlphaPlayerMetalRenderer.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ -(void)setupPipeline
pipelineStateDescriptor.colorAttachments[0].pixelFormat = self.mtkView.colorPixelFormat;
pipelineStateDescriptor.colorAttachments[0].blendingEnabled = true;
pipelineStateDescriptor.colorAttachments[0].rgbBlendOperation = MTLBlendOperationAdd;
pipelineStateDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorOne;
pipelineStateDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOne;
pipelineStateDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationMin;
pipelineStateDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorOne;
pipelineStateDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorOne;
pipelineStateDescriptor.colorAttachments[0].alphaBlendOperation = MTLBlendOperationAdd;
pipelineStateDescriptor.colorAttachments[0].sourceRGBBlendFactor = MTLBlendFactorSourceAlpha;
pipelineStateDescriptor.colorAttachments[0].sourceAlphaBlendFactor = MTLBlendFactorSourceAlpha;
pipelineStateDescriptor.colorAttachments[0].destinationRGBBlendFactor = MTLBlendFactorOneMinusBlendAlpha;
pipelineStateDescriptor.colorAttachments[0].destinationAlphaBlendFactor = MTLBlendFactorZero;
self.pipelineState = [self.mtkView.device newRenderPipelineStateWithDescriptor:pipelineStateDescriptor error:NULL];
self.commandQueue = [self.mtkView.device newCommandQueue];
}
Expand Down
20 changes: 1 addition & 19 deletions iOS/Example/BDAlphaPlayerDemo/BDAlphaPlayerDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,7 @@
<string>1</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIApplicationSceneManifest</key>
<dict>
<key>UIApplicationSupportsMultipleScenes</key>
<false/>
<key>UISceneConfigurations</key>
<dict>
<key>UIWindowSceneSessionRoleApplication</key>
<array>
<dict>
<key>UISceneConfigurationName</key>
<string>Default Configuration</string>
<key>UISceneDelegateClassName</key>
<string>SceneDelegate</string>
<key>UISceneStoryboardFile</key>
<string>Main</string>
</dict>
</array>
</dict>
</dict>

<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
6 changes: 3 additions & 3 deletions iOS/Example/BDAlphaPlayerDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- BDAlphaPlayer (1.1.0)
- BDAlphaPlayer (1.2.3)

DEPENDENCIES:
- BDAlphaPlayer (from `../../../`)
Expand All @@ -9,8 +9,8 @@ EXTERNAL SOURCES:
:path: "../../../"

SPEC CHECKSUMS:
BDAlphaPlayer: 6ec0535dbbac6b089e94acb5559dcdf77dd1d5a8
BDAlphaPlayer: 750f1a2192f171ea8e710d969f993961d875c79d

PODFILE CHECKSUM: a2a7c83a00e25dc193359c91e412457a63e7fbad

COCOAPODS: 1.8.4
COCOAPODS: 1.11.3