move codec-related to package 'internal'