16-bit run-length encoding of object types in the image