Forums - USE NV12 or NV21 image format in native C++

1 post / 0 new
USE NV12 or NV21 image format in native C++
ghorpadevish
Join Date: 20 Mar 17
Posts: 12
Posted: Mon, 2018-04-02 00:17

Hi all ,

I tried to use example in Native CPP , which contains  NV21Load.cpp.

But when i tried using the same with an input NV21 image i get the follwoing error while building:

Quote:
/home/ubuntu/android/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: ./obj/local/armeabi-v7a/objs/somc_snpe_common/src/NV21Load.o: multiple definition of 'loadNV21Tensor(std::unique_ptr<:snpe::snpe zdl::snpe::snpe=""> >&, std::string&)' /home/ubuntu/android/android-ndk-r14b/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: ./obj/local/armeabi-v7a/objs/somc_snpe_common/src/NV21Load.o: previous definition here clang++: error: linker command failed with exit code 1 (use -v to see invocation)

 

Also how to implement for a NV12 image, as in the example it merely calculates the new image dimensions.

 

Thanks and Regards

Vishal

  • Up0
  • Down0

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.