Make codec routines static