Skip to main content

neat Namespace

Definition

namespace simaai::neat { ... }

Namespaces Index

namespacedebug
namespacedlpack
namespaceerror_codes
namespacegraph
namespaceinternal
namespacempk
namespacenodes
namespacestages
namespacevalidators

Classes Index

structValidationContext

Context passed to contracts during validation. More...

classContract

A single validation rule. More...

classContractRegistry

Holds a set of Contracts and runs them to produce a ValidationReport. More...

structValidationIssue

A single reported issue from a Contract. More...

classValidationReport

Report produced by running a ContractRegistry. More...

classModel
classFileInput
classImageDecode
classJpegDecode
structOutputOptions
classOutput
classQueue
classVideoConvert
classVideoScale
classVideoTrackSelect
structInputOptions
classInput
structOptiViewObject
structOptiViewChannelOptions
classOptiViewJsonOutput
classRTSPInput
classStillImageInput
structUdpOutputOptions
classUdpOutput
classH264CapsFixup
classH264Depacketize
structDetessDequantOptions
classDetessDequant
classH264Decode
classH264EncodeSima
classH264Packetize
structH264ParseOptions
classH264Parse
structPCIeSinkOptions
classPCIeSink
structPCIeSrcOptions
classPCIeSrc
structPreprocOptions
classPreproc
structQuantTessOptions
classQuantTess
structSimaArgMaxOptions
classSimaArgMax
classSimaBoxDecode
structSimaRenderOptions
classSimaRender
structBox
structBoxDecodeResult
structRunAdvancedOptions
structRunOptions
structInputDropInfo
structInputStreamStats
structRunStats
structRunStageStats
structRunElementTimingStats
structRunElementFlowStats
structRunDiagSnapshot
structRunReportOptions
classRun

Runtime handle for pushing inputs and pulling outputs. More...

classRtspServerHandle
classSession

Build, validate, and run deterministic GStreamer pipelines. More...

classSessionError
structRtspServerOptions
structValidateOptions
structSessionOptions
structOutputTensorOptions
structPullError
structSample
structBusMessage
structBoundaryFlowStats
structNodeReport
structBuildAdaptationAction
structBuildAdaptationSummary
structSessionReport
structConversionCost
structConversionTrace
structConversionTraceCollector
structDevice
structImageSpec
structAudioSpec
structTokensSpec
structEncodedSpec
structQuantSpec
structTessSpec
structSemantic
structMapping
structSegment
structStorage
structPlane
structNv12View
structNv12Mapped
structI420View
structI420Mapped
structTensor
structTensorConstraint

Typedefs Index

usingBusMessageFn = void(*)(const char *type, const char *src, const std::string &line, void *user_data)
usingBusErrorFn = void(*)(const std::string &line, void *user_data)
usingTensorSpec = TensorConstraint

Enumerations Index

enum classMemoryContract { ... }
enum classCapsMemory { ... }
enum classValidationSeverity { ... }

Severity level for validation issues. More...

enum classOverflowPolicy { ... }
enum classRunPreset { ... }
enum classOutputMemory { ... }
enum classRunMode { ... }
enum classSampleKind { ... }
enum classPullStatus { ... }
enum classConversionKind { ... }
enum classConversionPolicy { ... }
enum classDeviceType { ... }
enum classStorageKind { ... }
enum classPlaneRole { ... }
enum classMapMode { ... }
enum classTensorDType { ... }
enum classTensorLayout { ... }

Functions Index

const char *to_string (ValidationSeverity s)
std::stringgst_message_to_string (GstMessage *msg)
voiddrain_bus (GstElement *pipeline, BusMessageFn on_message, void *user_data)
voidthrow_if_bus_error (GstElement *pipeline, BusMessageFn on_message, void *user_data, BusErrorFn on_error, void *error_user_data)
boolelement_exists (const char *factory)
std::stringfactory_plugin_path (const char *factory)
voidrequire_element (const char *factory, const char *context)
voidrequire_tensordecoder (const char *context)
voidgst_init_once ()
std::vector< std::string >OptiViewDefaultLabels ()
std::stringOptiViewMakeJson (int64_t timestamp_ms, const std::string &frame_id, const std::vector< OptiViewObject > &objects, const std::vector< std::string > &labels)
std::vector< Box >parse_bbox_bytes (const std::vector< uint8_t > &bytes, int img_w, int img_h, int expected_topk, bool strict)
BoxDecodeResultdecode_bbox_tensor (const simaai::neat::Tensor &tensor, int img_w, int img_h, int expected_topk, bool strict)
simaai::neat::EncodedSpec::Codeccaps_to_codec (const std::string &caps_string)
Samplemake_encoded_sample (std::vector< uint8_t > bytes, std::string caps_string, int64_t pts_ns=-1, int64_t dts_ns=-1, int64_t duration_ns=-1)
Samplemake_tensor_sample (const std::string &port_name, simaai::neat::Tensor tensor)
Samplemake_bundle_sample (std::initializer_list< Sample > fields)
Tensorfrom_gst_sample (GstSample *sample)
ConversionCostestimate_conversion_cost (ConversionKind kind, std::uint64_t bytes_copied)
boolconversion_allowed (ConversionPolicy policy, ConversionKind kind)
std::shared_ptr< Storage >make_cpu_owned_storage (std::size_t size_bytes)
std::shared_ptr< Storage >make_cpu_external_storage (void *data, std::size_t size_bytes, std::shared_ptr< void > holder={}, bool read_only=true)
boolis_tessellated_int8_format (const std::string &fmt)
boolis_tessellated_bf16_format (const std::string &fmt)

Typedefs

BusErrorFn

using simaai::neat::BusErrorFn = typedef void (*)(const std::string& line, void* user_data)

Definition at line 19 of file GstBusWatch.h.

19using BusErrorFn = void (*)(const std::string& line, void* user_data);

BusMessageFn

using simaai::neat::BusMessageFn = typedef void (*)(const char* type, const char* src, const std::string& line, void* user_data)

Definition at line 17 of file GstBusWatch.h.

18 void* user_data);

TensorSpec

using simaai::neat::TensorSpec = typedef TensorConstraint

Definition at line 31 of file Model.h.

Enumerations

CapsMemory

enum class CapsMemory
strong
Enumeration values
Any (= 0)
SystemMemory

Definition at line 30 of file ContractTypes.h.

30enum class CapsMemory {
31 Any = 0,
33};

ConversionKind

enum class ConversionKind
strong
Enumeration values
Reinterpret (= 0)
View
Pack
Convert
Transfer

Definition at line 16 of file TensorConversion.h.

16enum class ConversionKind {
17 Reinterpret = 0,
18 View,
19 Pack,
22};

ConversionPolicy

enum class ConversionPolicy
strong
Enumeration values
Strict (= 0)
AllowWithTrace
AllowSilent

Definition at line 24 of file TensorConversion.h.

24enum class ConversionPolicy {
25 Strict = 0,
28};

DeviceType

enum class DeviceType
strong
Enumeration values
CPU (= 0)
SIMA_APU
SIMA_CVU
SIMA_MLA
UNKNOWN

Definition at line 26 of file TensorCore.h.

26enum class DeviceType {
27 CPU = 0,
32};

MapMode

enum class MapMode
strong
Enumeration values
Read (= 0)
Write
ReadWrite

Definition at line 55 of file TensorCore.h.

55enum class MapMode {
56 Read = 0,
57 Write,
59};

MemoryContract

enum class MemoryContract
strong
Enumeration values
RequireSystemMemoryMappable (= 0)
PreferDeviceZeroCopy
AllowEitherButReport

Definition at line 15 of file ContractTypes.h.

15enum class MemoryContract {
16 // Must be CPU-mappable (typically SystemMemory); violations are hard errors.
18
19 // Prefer device/zero-copy (runner may avoid forcing SystemMemory); still report contract
20 // mismatches.
22
23 // Allow either; if non-mappable, return empty payload with explicit reason + location.
25};

OutputMemory

enum class OutputMemory
strong
Enumeration values
Auto (= 0)
ZeroCopy
Owned

Definition at line 38 of file Run.h.

38enum class OutputMemory {
39 Auto = 0,
41 Owned,
42};

OverflowPolicy

enum class OverflowPolicy
strong
Enumeration values
Block (= 0)
KeepLatest
DropIncoming

Definition at line 26 of file Run.h.

26enum class OverflowPolicy {
27 Block = 0,
30};

PlaneRole

enum class PlaneRole
strong
Enumeration values
Unknown (= 0)
Y
U
V
UV

Definition at line 47 of file TensorCore.h.

47enum class PlaneRole {
48 Unknown = 0,
49 Y,
50 U,
51 V,
52 UV,
53};

PullStatus

enum class PullStatus
strong
Enumeration values
Ok
Timeout
Closed
Error

Definition at line 64 of file SessionOptions.h.

64enum class PullStatus {
65 Ok,
67 Closed,
68 Error,
69};

RunMode

enum class RunMode
strong
Enumeration values
Async
Sync

Definition at line 36 of file SessionOptions.h.

36enum class RunMode {
37 Async,
38 Sync,
39};

RunPreset

enum class RunPreset
strong
Enumeration values
Realtime
Balanced
Reliable

Definition at line 32 of file Run.h.

32enum class RunPreset {
36};

SampleKind

enum class SampleKind
strong
Enumeration values
Tensor
Bundle
Unknown

Definition at line 58 of file SessionOptions.h.

58enum class SampleKind {
59 Tensor,
60 Bundle,
62};

StorageKind

enum class StorageKind
strong
Enumeration values
CpuOwned (= 0)
CpuExternal
GstSample
DeviceHandle
Unknown

Definition at line 39 of file TensorCore.h.

39enum class StorageKind {
40 CpuOwned = 0,
45};

TensorDType

enum class TensorDType
strong
Enumeration values
UInt8
Int8
UInt16
Int16
Int32
BFloat16
Float32
Float64

Definition at line 55 of file TensorTypes.h.

55enum class TensorDType {
56 UInt8,
57 Int8,
58 UInt16,
59 Int16,
60 Int32,
64};

TensorLayout

enum class TensorLayout
strong
Enumeration values
Unknown (= 0)
HWC
CHW
HW
Planar

Definition at line 66 of file TensorTypes.h.

66enum class TensorLayout {
67 Unknown = 0,
68 HWC,
69 CHW,
70 HW,
71 Planar,
72};

ValidationSeverity

enum class ValidationSeverity
strong

Severity level for validation issues.

Enumeration values
Info (= 0)
Warning
Error

Definition at line 20 of file ValidationReport.h.

21 Info = 0,
23 Error,
24};

Functions

caps_to_codec()

simaai::neat::EncodedSpec::Codec simaai::neat::caps_to_codec (const std::string & caps_string)

Definition at line 12 of file EncodedSampleUtil.h.

conversion_allowed()

bool simaai::neat::conversion_allowed (ConversionPolicy policy, ConversionKind kind)

Definition at line 57 of file TensorConversion.h.

decode_bbox_tensor()

BoxDecodeResult simaai::neat::decode_bbox_tensor (const simaai::neat::Tensor & tensor, int img_w, int img_h, int expected_topk, bool strict)

Definition at line 33 of file DetectionTypes.h.

drain_bus()

void simaai::neat::drain_bus (GstElement * pipeline, BusMessageFn on_message, void * user_data)

Definition at line 23 of file GstBusWatch.h.

element_exists()

bool simaai::neat::element_exists (const char * factory)

Definition at line 13 of file GstHelpers.h.

estimate_conversion_cost()

ConversionCost simaai::neat::estimate_conversion_cost (ConversionKind kind, std::uint64_t bytes_copied)

Definition at line 56 of file TensorConversion.h.

factory_plugin_path()

std::string simaai::neat::factory_plugin_path (const char * factory)

Definition at line 14 of file GstHelpers.h.

from_gst_sample()

Tensor simaai::neat::from_gst_sample (GstSample * sample)

Definition at line 18 of file TensorAdapters.h.

gst_init_once()

void simaai::neat::gst_init_once ()

Definition at line 12 of file GstInit.h.

gst_message_to_string()

std::string simaai::neat::gst_message_to_string (GstMessage * msg)

Definition at line 21 of file GstBusWatch.h.

is_tessellated_bf16_format()

bool simaai::neat::is_tessellated_bf16_format (const std::string & fmt)

Definition at line 8 of file TessellatedTensor.h.

is_tessellated_int8_format()

bool simaai::neat::is_tessellated_int8_format (const std::string & fmt)

Definition at line 7 of file TessellatedTensor.h.

make_bundle_sample()

Sample simaai::neat::make_bundle_sample (std::initializer_list< Sample > fields)
inline

Definition at line 111 of file SessionOptions.h.

111inline Sample make_bundle_sample(std::initializer_list<Sample> fields) {
112 Sample out;
114 out.fields = fields;
115 return out;
116}

make_cpu_external_storage()

std::shared_ptr<Storage> simaai::neat::make_cpu_external_storage (void * data, std::size_t size_bytes, std::shared_ptr< void > holder={}, bool read_only=true)

Definition at line 194 of file TensorCore.h.

make_cpu_owned_storage()

std::shared_ptr<Storage> simaai::neat::make_cpu_owned_storage (std::size_t size_bytes)

Definition at line 193 of file TensorCore.h.

make_encoded_sample()

Sample simaai::neat::make_encoded_sample (std::vector< uint8_t > bytes, std::string caps_string, int64_t pts_ns=-1, int64_t dts_ns=-1, int64_t duration_ns=-1)

Definition at line 14 of file EncodedSampleUtil.h.

make_tensor_sample()

Sample simaai::neat::make_tensor_sample (const std::string & port_name, simaai::neat::Tensor tensor)
inline

Definition at line 103 of file SessionOptions.h.

103inline Sample make_tensor_sample(const std::string& port_name, simaai::neat::Tensor tensor) {
104 Sample out;
106 out.port_name = port_name;
107 out.tensor = std::move(tensor);
108 return out;
109}

OptiViewDefaultLabels()

std::vector<std::string> simaai::neat::OptiViewDefaultLabels ()

Definition at line 31 of file OptiViewJsonOutput.h.

OptiViewMakeJson()

std::string simaai::neat::OptiViewMakeJson (int64_t timestamp_ms, const std::string & frame_id, const std::vector< OptiViewObject > & objects, const std::vector< std::string > & labels)

Definition at line 33 of file OptiViewJsonOutput.h.

parse_bbox_bytes()

std::vector<Box> simaai::neat::parse_bbox_bytes (const std::vector< uint8_t > & bytes, int img_w, int img_h, int expected_topk, bool strict)

Definition at line 30 of file DetectionTypes.h.

require_element()

void simaai::neat::require_element (const char * factory, const char * context)

Definition at line 16 of file GstHelpers.h.

require_tensordecoder()

void simaai::neat::require_tensordecoder (const char * context)

Definition at line 17 of file GstHelpers.h.

throw_if_bus_error()

void simaai::neat::throw_if_bus_error (GstElement * pipeline, BusMessageFn on_message, void * user_data, BusErrorFn on_error, void * error_user_data)

Definition at line 25 of file GstBusWatch.h.

to_string()

const char* simaai::neat::to_string (ValidationSeverity s)
inline

Definition at line 26 of file ValidationReport.h.

26inline const char* to_string(ValidationSeverity s) {
27 switch (s) {
29 return "INFO";
31 return "WARNING";
33 return "ERROR";
34 }
35 return "UNKNOWN";
36}

The documentation for this namespace was generated from the following files:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.