Home | History | Annotate | only in /hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/android
Up to higher level directory
NameDateSize
Android.mk23-Apr-20151.5K
get_files.py23-Apr-20153.1K
README23-Apr-20151.2K
scrape_gtest_log.py23-Apr-2015940

README

      1 Android.mk will build vpx unittests on android.
      2 1) Configure libvpx from the parent directory:
      3 ./libvpx/configure --target=armv7-android-gcc --enable-external-build \
      4   --enable-postproc --disable-install-srcs --enable-multi-res-encoding \
      5   --enable-temporal-denoising --disable-unit-tests --disable-install-docs \
      6   --disable-examples --disable-runtime-cpu-detect --sdk=$NDK
      7 
      8 2) From the parent directory, invoke ndk-build:
      9 NDK_PROJECT_PATH=. ndk-build APP_BUILD_SCRIPT=./libvpx/test/android/Android.mk \
     10   APP_ABI=armeabi-v7a APP_PLATFORM=android-18 APP_OPTIM=release \
     11   APP_STL=gnustl_static
     12 
     13 Note: Both adb and ndk-build are available prebuilt at:
     14   https://chromium.googlesource.com/android_tools
     15 
     16 3) Run get_files.py to download the test files:
     17 python get_files.py -i /path/to/test-data.sha1 -o /path/to/put/files \
     18   -u http://downloads.webmproject.org/test_data/libvpx
     19 
     20 4) Transfer files to device using adb. Ensure you have proper permissions for
     21 the target
     22 
     23 adb push /path/to/test_files /data/local/tmp
     24 adb push /path/to/built_libs /data/local/tmp
     25 
     26 NOTE: Built_libs defaults to parent_dir/libs/armeabi-v7a
     27 
     28 5) Run tests:
     29 adb shell
     30 (on device)
     31 cd /data/local/tmp
     32 LD_LIBRARY_PATH=. ./vpx_test
     33