This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Switch between compilers | |
| if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") | |
| # using Clang | |
| elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |
| # using GCC | |
| elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel") | |
| # using Intel C++ | |
| elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") | |
| # using Visual Studio C++ | |
| endif() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void runApplication(const QString &packageName, const QString &className) | |
| { | |
| qDebug() << "Start app: " <<packageName <<", "<<className; | |
| QAndroidJniObject activity = QAndroidJniObject::callStaticObjectMethod( | |
| "org/qtproject/qt5/android/QtNative", "activity", | |
| "()Landroid/app/Activity;"); //activity is valid | |
| if ( activity.isValid() ) | |
| { | |
| // Equivalent to Jave code: 'Intent intent = new Intent();' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %% Calculate coefficients for DCT | |
| dct(eye(8)) | |
| %% Calculate coefficients for wavelet | |
| [LoD,HiD,LoR,HiR] = wfilters('db4') | |
| % in coder | |
| LF_coeffs = LoR | |
| HF_coeffs = HiR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | |
| export LD_LIBRARY_PATH=/usr/local/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # play YUV444 FULL HD file | |
| gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ | |
| videoparse width=1920 height=1080 framerate=25/1 format=GST_VIDEO_FORMAT_Y444 ! \ | |
| videoconvert ! \ | |
| autovideosink | |
| # play YUV422 FULL HD file | |
| gst-launch-1.0 -v filesrc location=size_1920x1080.yuv ! \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # GStreamer plug-in for OpenMAX IL API specification (deprecated, use gst-omx inst... | |
| git clone git://anongit.freedesktop.org/gstreamer/attic/gst-openmax | |
| # GStreamer QA System (aka "Insanity") | |
| git clone git://anongit.freedesktop.org/gstreamer/attic/insanity | |
| # Insanity GStreamer tests & helper functions | |
| git clone git://anongit.freedesktop.org/gstreamer/attic/insanity-gst | |
| # Cerbero build system used to build the official upstream GStreamer 1.0 SDK binar... | |
| git clone git://anongit.freedesktop.org/gstreamer/cerbero | |
| # 'common' shared submodule | |
| git clone git://anongit.freedesktop.org/gstreamer/common |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Y = char( 0.257*R + 0.504*G + 0.098*B + 16); | |
| U = char( 0.439*R - 0.368*G - 0.071*B + 128); | |
| V = char(-0.148*R - 0.291*G + 0.439*B + 128); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import QtQuick 2.0 | |
| MouseArea { | |
| property point origin | |
| property bool ready: false | |
| signal move(int x, int y) | |
| signal swipe(string direction) | |
| onPressed: { |
NewerOlder