Ecc algorithm

added ecc algorithm in video module