AkarinVS / L-SMASH-Works

Works based on L-SMASH project; This repo focuses on the common portion and the VapourSynth plugin. AviSynth users please use https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works. ffmpeg 5.0+ please use ffmpeg-4.5 branch.
47 stars 11 forks source link

alpha clip _Range? #11

Closed AkarinVS closed 2 years ago

AkarinVS commented 3 years ago

should alpha clip defaults to full range?

currently lsmas uses the main clip's range to set the alpha clip's range, primaries, transfer, and matrix. https://github.com/AkarinVS/L-SMASH-Works/blob/8ba7892ed08095304f61c089b530272388486f77/VapourSynth/video_output.c#L1066-L1075

For alpha clip, primaries and matrix are irrelevant, but I'm not sure about range and transfer.

I'd guess all alpha should be full range, but is this true? What about transfer?

Also, is there a YUV image/video format that also includes alpha channel?

YomikoR commented 2 years ago

They are just masks, and _Range is the only required property.