mvtools icon indicating copy to clipboard operation
mvtools copied to clipboard

depans: support YUVA

Open realfinder opened this issue 3 years ago • 4 comments

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

realfinder avatar Jun 02 '21 15:06 realfinder

Seems easy and reasonable.

pinterf avatar Jun 02 '21 15:06 pinterf

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 https://github.com/HomeOfVapourSynthEvolution/VapourSynth-AddGrain/issues/4 but as writing

realfinder avatar Jun 02 '21 15:06 realfinder

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.

pinterf avatar Jun 02 '21 19:06 pinterf

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

realfinder avatar Jun 02 '21 21:06 realfinder