Add enum ImageBufferKind, ImageBufferKind and YuvColorSpace.
652735a
Also use enum_from_primitive to convert a primitive to these enum value.