fixed sao edge filter
continued loop filter optimisation