adding templated methods to process some bit depths