メインコンテンツまでスキップ

PreprocessOptions Struct

User-facing preprocess intent — what the application asks for. More...

Declaration​

struct simaai::neat::PreprocessOptions { ... }

Included Headers​

#include <PreprocessPlan.h>

Public Member Attributes Index​

InputKindkind = InputKind::Auto

Whether inputs are images or pre-shaped tensors. More...

AutoFlagenable = AutoFlag::Auto

Legacy preprocessing control; Off retains MPK-required adapters and does not select MLA-only execution. More...

intinput_max_width = 0

Input-width capacity; 0 uses the image default (1920 px). More...

intinput_max_height = 0

Input-height capacity; 0 uses the image default (1080 px). More...

intinput_max_depth = 0

Channel capacity; 0 infers it from the input image format. More...

ResizeSpecresize

Resize / letterbox / crop intent. More...

ColorConvertSpeccolor_convert

Color-format conversion intent. More...

LayoutConvertSpeclayout_convert

Axis-permutation intent. More...

NormalizeSpecnormalize

Normalize intent. More...

QuantizeSpecquantize

Quantize intent. More...

TessellateSpectessellate

Tessellate intent. More...

std::vector< Transform >transforms

Ordered explicit transforms; if non-empty, overrides the per-stage specs above. More...

NormalizePresetpreset = ...

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...

PreprocColorConversionPlacementcolor_conversion_placement = ...
PreprocFloatingConversionfloating_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​

PreprocColorConversionPlacement simaai::neat::PreprocessOptions::color_conversion_placement
Initialiser

Definition at line 268 of file PreprocessPlan.h.

color_convert​

ColorConvertSpec simaai::neat::PreprocessOptions::color_convert

Color-format conversion intent.

Definition at line 250 of file PreprocessPlan.h.

enable​

AutoFlag simaai::neat::PreprocessOptions::enable = AutoFlag::Auto

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​

PreprocFloatingConversion simaai::neat::PreprocessOptions::floating_conversion = PreprocFloatingConversion::Legacy

Definition at line 270 of file PreprocessPlan.h.

input_max_depth​

int simaai::neat::PreprocessOptions::input_max_depth = 0

Channel capacity; 0 infers it from the input image format.

Definition at line 247 of file PreprocessPlan.h.

input_max_height​

int simaai::neat::PreprocessOptions::input_max_height = 0

Input-height capacity; 0 uses the image default (1080 px).

Definition at line 246 of file PreprocessPlan.h.

input_max_width​

int simaai::neat::PreprocessOptions::input_max_width = 0

Input-width capacity; 0 uses the image default (1920 px).

Definition at line 245 of file PreprocessPlan.h.

kind​

InputKind simaai::neat::PreprocessOptions::kind = InputKind::Auto

Whether inputs are images or pre-shaped tensors.

Definition at line 241 of file PreprocessPlan.h.

layout_convert​

LayoutConvertSpec simaai::neat::PreprocessOptions::layout_convert

Axis-permutation intent.

Definition at line 251 of file PreprocessPlan.h.

normalize​

NormalizeSpec simaai::neat::PreprocessOptions::normalize

Normalize intent.

Definition at line 252 of file PreprocessPlan.h.

preset​

NormalizePreset simaai::neat::PreprocessOptions::preset

If non-None, supplies mean/stddev defaults.

Initialiser

Definition at line 258 of file PreprocessPlan.h.

quantization_step​

std::optional<float> simaai::neat::PreprocessOptions::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​

QuantizeSpec simaai::neat::PreprocessOptions::quantize

Quantize intent.

Definition at line 253 of file PreprocessPlan.h.

rescale_factor​

std::optional<float> simaai::neat::PreprocessOptions::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​

ResizeSpec simaai::neat::PreprocessOptions::resize

Resize / letterbox / crop intent.

Definition at line 249 of file PreprocessPlan.h.

tessellate​

TessellateSpec simaai::neat::PreprocessOptions::tessellate

Tessellate intent.

Definition at line 254 of file PreprocessPlan.h.

transforms​

std::vector<Transform> simaai::neat::PreprocessOptions::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.