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

A way to work with alpha video(WPF) #492

Open
LazyCuteLion opened this issue Aug 2, 2024 · 5 comments
Open

A way to work with alpha video(WPF) #492

LazyCuteLion opened this issue Aug 2, 2024 · 5 comments

Comments

@LazyCuteLion
Copy link
Contributor

1、FlyleafHost line-880,change the border.background to #01000000
2、Renderer.PixelShader line-560 cancel this line,does not use BlendState(if you did not do it,then you will got repetitive frame of the video)
3、Renderer.Present line-126 and 247 cancel these two line, does not use ClearRenderTargetView,beacuse of it will ignore the A of the second parameters(even it is Color4) and give a solid color.
4、there have a apng to test,you also can converter to a mov
qie_640x360
5、this has some flaws,there are burrs on the edges (same video,ffmediaelement rendering good). hope someone can fix it.
Snipaste_2024-08-02_16-40-06

@LazyCuteLion
Copy link
Contributor Author

on the last point, some progress has been made:
ShaderCompiler line-366 add "color.rgb *= color.a;"

@LazyCuteLion
Copy link
Contributor Author

@LazyCuteLion
Copy link
Contributor Author

WinUI3 has some progress: use WinUIEx,set the Window.SystemBackdrop to TransparentTintBackdrop, and change the line-157 of Renderer.SwapChain.cs(set alpha to true of GetSwapChainDesc).Then,it renderering as same of WPF,but,it can't be mouse through.
I think,the FlyleafHost(WinUI3) should be change as same of WPF,use a Window host the SwapChainPanel.
Do you have any time to try it? @SuRGeoNix

@SuRGeoNix
Copy link
Owner

Not really, maybe in 1-2 weeks... I'm trying to release v3.8 with updated vortice/custom generator-ffmpeg libraries and some other libs that will be the entry level for v4.

@LazyCuteLion
Copy link
Contributor Author

Ok.But I really want it can support alpha.
Look forward to your new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants