Factored out common code to convert compression method codes and fourcc to a string representation.