错误码

注解

错误码共有7位,前两位表示错误类型,后5位表示具体错误描述。

// common status
HB_UCP_SUCCESS = 0                              // Execution successfully
HB_UCP_INVALID_ARGUMENT = -100001               // Illegal parameter
HB_UCP_API_USE_ERROR = -100002                  // Interface use error
HB_UCP_INIT_FAILED = -100003,                   // Init error
// task error
HB_UCP_TASK_NUMBER_EXCEED_LIMIT = -200001       // Number of tasks exceeds the limit
HB_UCP_TASK_TIMEOUT = -200002                   // Task wait timeout
HB_UCP_TASK_RUN_FAILED = -200003                // Task failed to execute
HB_UCP_TASK_HANDLE_INVALID = -200004            // Illegal task handle
// op error
HB_UCP_OP_NUMBER_EXCEED_LIMIT = -300001         // Number of operators exceeds the limit
HB_UCP_OP_NOT_REGISTER = -300002                // The operator is not registered
HB_UCP_OP_CMD_UNAVAILABLE = -300003             // The operator command code is not available
// memory error
HB_UCP_MEM_ALLOC_FAIL = -400001                 // Failed to alloc memory
HB_UCP_MEM_FREE_FAIL = -400002                  // Failed to free memory
HB_UCP_MEM_FLUSH_FAIL = -400003                 // Failed to flush cached data to memory
HB_UCP_MEM_INVALIDATE_FAIL = -400004            // Failed to flush memory to cache
HB_UCP_MEM_IS_INVALID = -400005                 // Invalid memory
HB_UCP_MEM_MAP_FAIL = -400006                   // Failed to map memory
HB_UCP_MEM_UNMAP_FAIL = -400007                 // Failed to unmap memory
// file
HB_UCP_FILE_OPEN_FAILED = -500001               // Failed to open the file
// model
HB_UCP_MODEL_NUMBER_EXCEED_LIMIT = -600001      // Number of models exceeds the limit
HB_UCP_MODEL_INVALID = -600002                  // Illegal model
HB_UCP_MODEL_IS_INUSE = -600003                 // Model execution in progress
HB_UCP_MODEL_INCOMPATIBLE = -600004             // Incompatible model
// dsp
HB_UCP_DSP_UNAVAILABLE = -700001                // DSP unavailable
HB_UCP_DSP_XV_ALLOC_FAIL = -700002              // Failed to alloc DSP memory
HB_UCP_DSP_XV_FREE_FAIL = -700003               // Failed to free DSP memory
HB_UCP_DSP_IDMA_COPY_FAIL = -700004             // Failed to copy DSP DMA
HB_UCP_DSP_IDMA_BAD_INIT = -700005              // Failed to initialize DSP DMA
HB_UCP_DSP_MMAP_FAIL = -700006                  // Failed to map DSP memory
HB_UCP_DSP_INVALID_SCALE = -700007              // DSP invalid scaling
HB_UCP_DSP_UNMAP_FAIL = -700008                 // Failed to unmap DSP memory
// codec
HB_UCP_CODEC_OPERATION_NOT_ALLOWED = -800001    // Not allowed JPU/VPU(Video Processing Unit) operation
HB_UCP_CODEC_INSUFFICIENT_RES = -800002         // Insufficient JPU/VPU(Video Processing Unit) memory resource
HB_UCP_CODEC_NO_FREE_INSTANCE = -800003         // Number of JPU/VPU(Video Processing Unit) instances exceeds the limit, JPEG supports up to 64
HB_UCP_CODEC_INVALID_INSTANCE = -800004         // Invalid instance
HB_UCP_CODEC_BUFFER_WAIT_TIMEOUT = -800005      // JPU/VPU(Video Processing Unit) Buffer wait timeout
HB_UCP_CODEC_IS_INUSE = -800006                 // JPU/VPU(Video Processing Unit) execution in progress
// isp
HB_UCP_ISP_NO_AVAILABLE_SLOT = -900001          // No ISP slot available
HB_UCP_ISP_CTX_INUSE = -900002                  // ISP ctx is being used