PreprocessOptions Struct
User-facing preprocess intent — what the application asks for. More...
Declaration
Included Headers
Public Member Attributes Index
| InputKind | kind = InputKind::Auto |
|
Whether inputs are images or pre-shaped tensors. More... | |
| AutoFlag | enable = AutoFlag::Auto |
|
Legacy preprocessing control; Off retains MPK-required adapters and does not select MLA-only execution. More... | |
| int | input_max_width = 0 |
|
Input-width capacity; 0 uses the image default (1920 px). More... | |
| int | input_max_height = 0 |
|
Input-height capacity; 0 uses the image default (1080 px). More... | |
| int | input_max_depth = 0 |
|
Channel capacity; 0 infers it from the input image format. More... | |
| ResizeSpec | resize |
|
Resize / letterbox / crop intent. More... | |
| ColorConvertSpec | color_convert |
|
Color-format conversion intent. More... | |
| LayoutConvertSpec | layout_convert |
|
Axis-permutation intent. More... | |
| NormalizeSpec | normalize |
|
Normalize intent. More... | |
| QuantizeSpec | quantize |
|
Quantize intent. More... | |
| TessellateSpec | tessellate |
|
Tessellate intent. More... | |
| std::vector< Transform > | transforms |
|
Ordered explicit transforms; if non-empty, overrides the per-stage specs above. More... | |
| NormalizePreset | preset = ... |
|
If non-None, supplies mean/stddev defaults. More... | |
| std::optional< float > | rescale_factor |
|
Original FP32 source multiplier (RGB/Gray before resize; YUV after its decode boundary). More... | |
| std::optional< float > | quantization_step |
|
Original positive FP32 INT8 step, never reconstructed from a reciprocal. More... | |
| PreprocColorConversionPlacement | color_conversion_placement = ... |
| PreprocFloatingConversion | floating_conversion = PreprocFloatingConversion::Legacy |
Description
User-facing preprocess intent — what the application asks for.
The planner takes this plus the model's MPK contract and produces a ResolvedPreprocessPlan. Most fields default to Auto/zero; set only what you need to override.
Definition at line 240 of file PreprocessPlan.h.
Public Member Attributes
color_conversion_placement
|
- Initialiser
Definition at line 268 of file PreprocessPlan.h.
color_convert
|
Color-format conversion intent.
Definition at line 250 of file PreprocessPlan.h.
enable
|
Legacy preprocessing control; Off retains MPK-required adapters and does not select MLA-only execution.
Definition at line 242 of file PreprocessPlan.h.
floating_conversion
|
Definition at line 270 of file PreprocessPlan.h.
input_max_depth
|
Channel capacity; 0 infers it from the input image format.
Definition at line 247 of file PreprocessPlan.h.
input_max_height
|
Input-height capacity; 0 uses the image default (1080 px).
Definition at line 246 of file PreprocessPlan.h.
input_max_width
|
Input-width capacity; 0 uses the image default (1920 px).
Definition at line 245 of file PreprocessPlan.h.
kind
|
Whether inputs are images or pre-shaped tensors.
Definition at line 241 of file PreprocessPlan.h.
layout_convert
|
Axis-permutation intent.
Definition at line 251 of file PreprocessPlan.h.
normalize
|
Normalize intent.
Definition at line 252 of file PreprocessPlan.h.
preset
|
If non-None, supplies mean/stddev defaults.
- Initialiser
Definition at line 258 of file PreprocessPlan.h.
quantization_step
|
Original positive FP32 INT8 step, never reconstructed from a reciprocal.
Model routes require agreement with the MPK quantizer; zero point stays model-owned.
Definition at line 267 of file PreprocessPlan.h.
quantize
|
Quantize intent.
Definition at line 253 of file PreprocessPlan.h.
rescale_factor
|
Original FP32 source multiplier (RGB/Gray before resize; YUV after its decode boundary).
Presence selects fixed source arithmetic; normalize.mean/stddev then mean a post-resize subtraction/division, with no implied /255.
Definition at line 264 of file PreprocessPlan.h.
resize
|
Resize / letterbox / crop intent.
Definition at line 249 of file PreprocessPlan.h.
tessellate
|
Tessellate intent.
Definition at line 254 of file PreprocessPlan.h.
transforms
|
Ordered explicit transforms; if non-empty, overrides the per-stage specs above.
Definition at line 256 of file PreprocessPlan.h.
The documentation for this struct was generated from the following file:
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.