Class ProcessingSpec

Note

Construct via the Class AniraWeb factory in most cases: aniraWeb.ProcessingSpec(...) rather than new ProcessingSpec(...). The factory threads the WASM instance through for you.

class ProcessingSpec(wasmInstance)

TypeScript wrapper for anira::ProcessingSpec Thread-safe C API wrapper

Extends:
  • BaseWrapper

Arguments:
  • wasmInstance (AniraWasmInstance)

destroy()

Free the underlying C++ object. See Lifecycle and Cleanup for when to call this.

equals(other)
Arguments:
  • other (PossiblePointer<ProcessingSpec>)

Returns:

boolean

getInternalModelLatency(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_internal_model_latency field.

Arguments:
  • tensorIndex (number)

Returns:

number

getPostprocessOutputChannels(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_postprocess_output_channels field.

Arguments:
  • tensorIndex (number)

Returns:

number

getPostprocessOutputSize(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_postprocess_output_size field.

Arguments:
  • tensorIndex (number)

Returns:

number

getPreprocessInputChannels(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_preprocess_input_channels field.

Arguments:
  • tensorIndex (number)

Returns:

number

getPreprocessInputSize(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_preprocess_input_size field.

Arguments:
  • tensorIndex (number)

Returns:

number

getTensorInputSize(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_tensor_input_size field.

Arguments:
  • tensorIndex (number)

Returns:

number

getTensorOutputSize(tensorIndex=0)

Mirrors the anira::ProcessingSpec::m_tensor_output_size field.

Arguments:
  • tensorIndex (number)

Returns:

number

notEquals(other)
Arguments:
  • other (PossiblePointer<ProcessingSpec>)

Returns:

boolean