production encoding definition