Codecs generalized