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

depans: support YUVA #43

Open
realfinder opened this issue Jun 2, 2021 · 4 comments
Open

depans: support YUVA #43

realfinder opened this issue Jun 2, 2021 · 4 comments

Comments

@realfinder
Copy link

I try it with

AddAlphaPlane
mdata = DePanEstimate(trust=0)
DePan(data=mdata,offset=-1,matchfields=false,subpixel=2)
ExtractA()

image
I need this fake YUVA to make DePan generate (zero?) alpha for black borders so I can make stab3() work faster in avs+ after some edits

@pinterf
Copy link
Owner

pinterf commented Jun 2, 2021

Seems easy and reasonable.

@realfinder
Copy link
Author

realfinder commented Jun 2, 2021

maybe with setting special frame properties for new black borders or even mirror in this case (something like DePan_left, DePan_top, etc..), something like this HomeOfVapourSynthEvolution/VapourSynth-AddGrain#4 but as writing

@pinterf
Copy link
Owner

pinterf commented Jun 2, 2021

Thinking it over, there can be a possible rotation and zoom as well (when MDepan originated vectors are used) so generating the new border is not that easy as for the case of perfectly horizontal/vertical shift. Did not look into the code yet though.

@realfinder
Copy link
Author

yes, that why YUVA method seems better overall, but in simple case like stab() frame properties can work (stab() has zoom parameter but it's not used by default), rotation cases can't use frame properties method indeed, but for zoom I think it can

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