VLMImageFormat class
VLM image input format — union across all SDKs and the C ABI.
SDK ↔ proto enum mapping pre-IDL: C ABI / Kotlin / RN / Web all expose three numeric formats (FILE_PATH=0, RGB_PIXELS=1, BASE64=2). Mapped to FILE_PATH, RAW_RGB, BASE64. Swift Format enum adds Apple-only cases uiImage / pixelBuffer that are flattened to RAW_RGB before crossing the C ABI (see VLMTypes.swift lines 70-89). RAW_RGBA is reserved for SDKs that pass straight RGBA pixel buffers without the BGRA→RGB downsample step. Dart sealed class with the same three formats (filePath / rgbPixels / base64); Flutter adapter passes RGB pixels through to the C ABI.
JPEG / PNG / WEBP are container hints carried in the encoded bytes
payload (no current SDK declares these as enum cases — they are
reserved here so we can disambiguate decoded vs encoded sources without a
schema migration once a backend exposes container detection).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
This enum's name, as specified in the .proto file.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
This enum's integer value, as specified in the .proto file.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns this enum's
nameor thevalueif names are not represented.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
valueOf(
int value) → VLMImageFormat?
Constants
-
values
→ const List<
VLMImageFormat> - VLM_IMAGE_FORMAT_BASE64 → const VLMImageFormat
- (Swift UIImage path produces RGBA before downsample; pre-IDL no SDK exposes RGBA over the C ABI)
- VLM_IMAGE_FORMAT_FILE_PATH → const VLMImageFormat
- Dart base64 / RN Base64 / Web Base64 / C ABI RAC_VLM_IMAGE_FORMAT_BASE64
- VLM_IMAGE_FORMAT_JPEG → const VLMImageFormat
- VLM_IMAGE_FORMAT_PNG → const VLMImageFormat
- VLM_IMAGE_FORMAT_RAW_RGB → const VLMImageFormat
- VLM_IMAGE_FORMAT_RAW_RGBA → const VLMImageFormat
- RN RGBPixels / Web RGBPixels / C ABI RAC_VLM_IMAGE_FORMAT_RGB_PIXELS
- VLM_IMAGE_FORMAT_UNSPECIFIED → const VLMImageFormat
- VLM_IMAGE_FORMAT_WEBP → const VLMImageFormat