Forums - Unsupported UserBufferEncodingUnsigned8Bit ?

2 posts / 0 new
Last post
Unsupported UserBufferEncodingUnsigned8Bit ?
daigo-kikuoka
Join Date: 22 Aug 19
Posts: 1
Posted: Mon, 2021-11-08 21:18

I tried to use "UserBufferEncodingUnsigned8Bit" in SNPE 1.54.

I created the user buffer by referring to the following sample : 

<SNPE_ROOT>/examples/NativeCpp/SampleCode/jni/CreateUserBuffer.cpp

But it was not created correctly, and I got this error :

error_code=240; error_message=Buffer element encoding not supported by API. Unimplemented encoding type UNSIGNED8BIT;

Can't I use  "UserBufferEncodingUnsigned8Bit" in SNPE 1.54 or latest version? 


The code is

userBufferEncoding = std::unique_ptr<zdl::DlSystem::UserBufferEncodingUnsigned8Bit>(new zdl::DlSystem::UserBufferEncodingUnsigned8Bit());

...

// create SNPE user buffer from the user-backed buffer

zdl::DlSystem::IUserBufferFactory& ubFactory = zdl::SNPE::SNPEFactory::getUserBufferFactory();
snpeUserBackedBuffers.push_back(ubFactory.createUserBuffer(applicationBuffers.at(name).data(),
                                                              bufSize,
                                                              strides,
                                                              userBufferEncoding.get()));
Best regards,
  • Up0
  • Down0
shaochun
Join Date: 8 Mar 20
Posts: 3
Posted: Mon, 2021-11-22 00:42

Dear customer,

Could you please try "UserBufferEncodingTfN"?

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.