5 Jul
2022
5 Jul
'22
4:53 p.m.
Quoting Vignesh Venkatasubramanian (2022-07-02 23:15:35)
As for encoding, not fully sure how it should be integrated, if any encoders actually at this moment do proper alpha coding, or do all API clients have to separately encode with one context the primary image, and the alpha with another?
I am not sure about other codecs, but in the case of AVIF/AV1, the encoder does not understand/support alpha channels. The only way to do it is to use two separate encoders.
Can this not be handled in our encoder wrapper? We should strive as much as possible to shield our callers from codec-specific implementation details. -- Anton Khirnov