commit | bb41ff15ef2151575695630ec7010380513236ad | [log] [tgz] |
---|---|---|
author | zongwave <[email protected]> | Mon Nov 19 06:28:57 2018 +0800 |
committer | Yinhang Liu <[email protected]> | Mon Nov 26 14:46:52 2018 +0800 |
tree | a210b12bba2c58ae8edb1ec6741270baedc91853 | |
parent | 5982c14b8dd63e16cbf41c48ee18845fabc76e07 [diff] |
render: add OSG based render to show texture on window * build & install OSG library: $ git clone https://github.com/openscenegraph/OpenSceneGraph.git $ cd OpenSceneGraph/ $ mkdir build && cd build $ cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DOPENGL_PROFILE=GLES2 \ -DOPENGL_gl_LIBRARY=${LIB_MESA_EGL_DIR}/libGLESv2.so \ -DOSG_WINDOWING_SYSTEM=X11 \ -D_OPENTHREADS_ATOMIC_USE_GCC_BUILTINS_EXITCODE=1 \ -DLIB_POSTFIX="" \ -DOSG_CPP_EXCEPTIONS_AVAILABLE=ON \ -DCMAKE_DISABLE_FIND_PACKAGE_CURL=1 \ -DCMAKE_DISABLE_FIND_PACKAGE_FFmpeg=1 \ -DOSG_NOTIFY_DISABLED=ON \ -DOSG_GL_FIXED_FUNCTION_AVAILABLE=OFF \ -DOSG_USE_QT=OFF \ ../ # NOTE: Fill in the ${LIB_MESA_EGL_DIR} - e.g.)/usr/lib/x86_64-linux-gnu/mesa-egl $ make -j8 $ sudo make install * test command line: $ ./test-render-surround-view --module soft --input0 video0.yuv \ --input1 video1.yuv --input2 video2.yuv --input3 video3.yuv \ --output output.mp4 --in-w 1280 --in-h 800 --out-w 1920 \ --out-h 640 --loop 1 Signed-off-by: zongwave <[email protected]>
Copyright (C) 2014-2018 Intel Corporation
libxcam core source code under the terms of Apache License, Version 2.0
libXCam is a project for extended camera features and focus on image quality improvement and video analysis. There are lots features supported in image pre-processing, image post-processing and smart analysis. This library makes GPU/CPU/ISP working together to improve image quality. OpenCL is used to improve performance in different platforms.
Environment variable settings
For different --prefix options, the environment variables may be different. Please set the environment variable according to the actual situation.
--prefix=/usr/local:
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0:$GST_PLUGIN_PATH
--prefix=/usr:
export LD_LIBRARY_PATH=/usr/lib/:$LD_LIBRARY_PATH export GST_PLUGIN_PATH=/usr/lib/gstreamer-1.0:$GST_PLUGIN_PATH
$ ./autogen.sh [options]
--prefix=PREFIX install architecture-independent files in PREFIX [default=/usr/local] --enable-debug enable debug, [default=no] --enable-profiling enable profiling, [default=no] --enable-drm enable drm buffer, [default=yes] --enable-aiq enable Aiq 3A algorithm build, [default=no] --enable-gst enable gstreamer plugin build, [default=no] --enable-libcl enable libcl image processor, [default=yes] --enable-opencv enable opencv library, [default=no] --enable-capi enable libxcam-capi library, [default=yes] --enable-docs build Doxygen documentation [default=no] --enable-3alib enable 3A lib build, [default=no] --enable-smartlib enable smart analysis lib build, [default=no]
For example:
$ ./autogen.sh --prefix=/usr --enable-gst --enable-libcl --enable-opencv \ --enable-smartlib --enable-profiling
$ make
$ sudo make install