Typedef Qnn_ContextBinaryDmaDataProviderFn_t

Typedef Documentation

typedef Qnn_ErrorHandle_t (*Qnn_ContextBinaryDmaDataProviderFn_t)(Qnn_ContextBinaryDataRequest_t req, Qnn_ContextBinaryDmaDataResponse_t *dmaDataResponse, void *notifyParam)

A client-defined callback function to provide context binary data in a dma buffer. This callback is used for allocating external dma buffers and loading data.

Param req

[in] A structure containing the request for context binary data.

Param dmaDataResponse

[out] A structure to be filled with the response to the request.

Param notifyParam

[in] Client-supplied data object which may be used to identify which context’s instance this callback applies to.

Return

Error code:

  • QNN_SUCCESS: no error is encountered

  • QNN_CONTEXT_ERROR_MEM_ALLOC: memory allocation error

  • QNN_CONTEXT_ERROR_INVALID_ARGUMENT: one of the arguments to the API is invalid/NULL