При установке под линукс (проверено на Ubuntu 16):
- Устанавливаем wine
- Из папки crack копируем файл MentorKG.exe в
<install_dir>/linux
(или/linux_x86_64
) - Выполняем
sudo chown root:root ~/.wine
import QtQuick 2.0 | |
MouseArea { | |
property point origin | |
property bool ready: false | |
signal move(int x, int y) | |
signal swipe(string direction) | |
onPressed: { |
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); |
# 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 |
#!/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 ! \ |
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig | |
export LD_LIBRARY_PATH=/usr/local/lib |
%% 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 |
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();' |
# 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() |