Statistics for Fast implementation of integer transforms in H.264/AVC video encoders