Sometimes, video changes come in the form of overall brightness changes, like fog in censored scenes or anti-seizure filters, which Max/Min isn't good at catching. This change attempts to catch those scenes. Tested to have no false positives in a comparison between Abema and Crunchyroll.
Speed hit is something like 5%, maybe?
Update from previous pull request: adjust the avg diff threshold based on the max/min threshold. If the max/min thr is less conservative, the avg diff threshold can also be less conservative. Values were derived by finding the point at which the first false positive appeared for a given thr and then adding a 50% buffer. Also, fix bug that prevented users from using avg threshold (thr less than 1) at all.
Sometimes, video changes come in the form of overall brightness changes, like fog in censored scenes or anti-seizure filters, which Max/Min isn't good at catching. This change attempts to catch those scenes. Tested to have no false positives in a comparison between Abema and Crunchyroll.
Speed hit is something like 5%, maybe?
Update from previous pull request: adjust the avg diff threshold based on the max/min threshold. If the max/min thr is less conservative, the avg diff threshold can also be less conservative. Values were derived by finding the point at which the first false positive appeared for a given thr and then adding a 50% buffer. Also, fix bug that prevented users from using avg threshold (
thr
less than 1) at all.