'잡동사니'에 해당되는 글 13194건

  1. 2014.11.05 QT modules
  2. 2014.11.05 QT Quick UI 2
  3. 2014.11.05 include guard
  4. 2014.11.03 alsa low latency
  5. 2014.11.03 ADAT - Alesis Digital Audio Tape
  6. 2014.10.31 10km 상공에서의 해맞이 2
  7. 2014.10.31 10km 상공의 별자리
  8. 2014.10.28 마비노기 in nexus resort
  9. 2014.10.26 마비노기 in 말레이시아 / 코타키나발루
  10. 2014.10.24 SALSA - Small ALSA
Programming/qt2014. 11. 5. 16:20
java 에서는 package라고 하고
qt 에서는 module 이라고 하나보다

아무튼 module 이름으로 include 하면된다.
#include <Qtgui> 


Modules for general software development
QtCore Core non-graphical classes used by other modules
QtGui Graphical user interface (GUI) components
QtMultimedia Classes for low-level multimedia functionality
QtNetwork Classes for network programming
QtOpenGL OpenGL support classes
QtOpenVG OpenVG support classes
QtScript Classes for evaluating Qt Scripts
QtScriptTools Additional Qt Script components
QtSql Classes for database integration using SQL
QtSvg Classes for displaying the contents of SVG files
QtWebKit Classes for displaying and editing Web content
QtXml Classes for handling XML
QtXmlPatterns An XQuery & XPath engine for XML and custom data models
QtDeclarative An engine for declaratively building fluid user interfaces.
Phonon Multimedia framework classes
Qt3Support Qt 3 compatibility classes
Modules for working with Qt's tools
QtDesigner Classes for extending Qt Designer
QtUiTools Classes for handling Qt Designer forms in applications
QtHelp Classes for online help
QtTest Tool classes for unit testing
Modules for Windows developers
QAxContainer Extension for accessing ActiveX controls
QAxServer Extension for writing ActiveX servers
Modules for Unix developers
QtDBus Classes for Inter-Process Communication using the D-Bus

[링크 : http://qt-project.org/doc/qt-4.8/modules.html]

'Programming > qt' 카테고리의 다른 글

qt 프로젝트 파일 연관  (0) 2014.11.20
QT font 관련  (0) 2014.11.06
QT Quick UI  (2) 2014.11.05
qt moc(Meta Object Compiler)  (0) 2014.09.20
Qt 기본 encoding 설정  (0) 2014.09.19
Posted by 구차니
Programming/qt2014. 11. 5. 16:12
요약 : Quick UI는 qml 이라는 문서를 통해 GUI가 생성된다.


심심(?)해서 Qt Widgets Application 대신 QT Quick UI를 해서 프로젝트를 생성하니


QT Creator 에서 복사하니 이렇게 코드가 컬러풀 하게 붙여지네 ㄷㄷ

import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Window 2.2

ApplicationWindow {
    title: qsTr("Hello World")
    width: 640
    height: 480

    menuBar: MenuBar {
        Menu {
            title: qsTr("File")
            MenuItem {
                text: qsTr("&Open")
                onTriggered: console.log("Open action triggered");
            }
            MenuItem {
                text: qsTr("Exit")
                onTriggered: Qt.quit();
            }
        }
    }

    Button {
        text: qsTr("Hello World")
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenter: parent.verticalCenter
    }
}

이렇게 나온다 ㄷㄷ


'Programming > qt' 카테고리의 다른 글

QT font 관련  (0) 2014.11.06
QT modules  (0) 2014.11.05
qt moc(Meta Object Compiler)  (0) 2014.09.20
Qt 기본 encoding 설정  (0) 2014.09.19
qt 시그널 .. emit  (0) 2014.09.19
Posted by 구차니
Programming/C Win32 MFC2014. 11. 5. 15:21
대단한건 아니고 현업에서 작업을 해봤다면 다들 했고 봤을 그 녀석

#ifndef FILENAME_HEADER
#define FILENAME_HEADER 
#endif 

[링크 : http://en.wikipedia.org/wiki/Include_guard]

'Programming > C Win32 MFC' 카테고리의 다른 글

winUSB / win32 physical drive  (0) 2014.12.23
printf POSIX 확장 %1$d  (0) 2014.12.09
vc++ vector와 Vector 차이점?  (0) 2014.07.03
순열생성관련  (0) 2014.06.27
2중 포인터 사용이유  (0) 2014.03.19
Posted by 구차니
Linux API/alsa2014. 11. 3. 09:06
ALSA 구조(?)상

플레이시에는
사운드 카드로는 링버퍼에 값을 쌓아두고 커널/드라이버에서 일정주기 마다 데이터를 넣어주도록 되어있고

녹음시에는
사운드 카드에서 인터럽트 주기마다 데이터를 받아오도록 되어 있다.

물론 인터럽트가 많아질수록 지연은 짧아지겠지만
인터럽트로 인한 컨텍스트 스위칭의 부하가 많아 지므로 다른 프로세서들이 사용할 가용 cpu 는 줄어들게 되기에
음악 재생시 버퍼 크기 늘림으로 cpu 점유율이 낮아진 것을 봐서
벤치마크 내용과는 달리 임베디드 시스템에서의 적용은 쉽지 않을 것으로 보인다.




Audio Latency
    Programmed delay until data is processed
        Playback latency: buffer size
        Recording latency: period size
    Least full-duplex latency: period size x 2

System Latency
    Delay of system response
        Interrupt -> Wake-up
    Must not greater than buffer size
        Buffer underflow, overflow

[링크 : http://www.alsa-project.org/~tiwai/suselabs2003-audio-latency.pdf
[링크 : http://www.alsa-project.org/main/index.php/Low_latency_howto]

---
2014.11.13
[링크 : https://wiki.kldp.org/HOWTO/html/MIDI-HOWTO/x88.html
[링크 : http://www.gardena.net/benno/linux/audio/]

 http://elinux.org/images/8/82/Elc2011_lorriaux.pdf
 http://pyalsaaudio.sourceforge.net/terminology.html

'Linux API > alsa' 카테고리의 다른 글

ALSA 드라이버 관련  (0) 2014.11.17
alsa 함수 - size / time  (0) 2014.11.17
SALSA - Small ALSA  (0) 2014.10.24
alsa + ffmpeg 벤치마크(?)  (0) 2014.10.23
alsa 패키지 종류  (0) 2014.10.21
Posted by 구차니
회사일2014. 11. 3. 08:46
Alesis Digital Audio Tape
ADAT Lightpipe (protocol)
uncompressed 24bit / 48k samples / 8 channel audio - mux & demux

[링크 : http://en.wikipedia.org/wiki/ADAT]
[링크 : http://en.wikipedia.org/wiki/ADAT_Lightpipe

'회사일' 카테고리의 다른 글

FSL - Freescale Semiconductor, Ltd.  (0) 2014.11.18
pulseaudio / jack / sound server  (0) 2014.11.16
ECR ECO ECN  (0) 2014.09.02
CD 굽는 컴퓨터  (4) 2012.11.20
SUS(Steel Use Stainless) / STS  (0) 2012.03.11
Posted by 구차니

7:30 AM 도착이기에
한국 영해 진입전 10km 상공에서 10월 30일 아침해를 맞이했다.

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

꽃과 개와 사진  (0) 2015.05.17
폭설  (0) 2015.01.18
10km 상공의 별자리  (0) 2014.10.31
웃는게 이쁜 너란 개시키  (0) 2014.10.18
개기일식?  (0) 2014.10.08
Posted by 구차니
비행기 타고 가면서 하늘을 보니 별이 보여서 찍으려고 하는데 
정말 안나온다.. 게다가 디카도 1초 이상 노출하려면 ISO 80으로 고정 -_ㅠ

어짜피 흔들렸으니 확대해도 그게 그거일지도..

'개소리 왈왈 > 사진과 수다' 카테고리의 다른 글

폭설  (0) 2015.01.18
10km 상공에서의 해맞이  (2) 2014.10.31
웃는게 이쁜 너란 개시키  (0) 2014.10.18
개기일식?  (0) 2014.10.08
요즘은.. 무지개가 많이 생기네?  (0) 2014.08.02
Posted by 구차니
게임/마비노기2014. 10. 28. 09:32
으헝 안되잖아 ㅠㅠ
하지만 핸드폰을 테터링 해서 하니 되는건 함정 ㅋㅋ

 
Posted by 구차니
게임/마비노기2014. 10. 26. 11:39
엌ㅋ 안될줄 알았더니 잘 된다 ㅋㅋㅋ
단지.. 핸드폰에 3g를 끊어놔서 OTP가 오작동 하는 바람에
몇번이나 뻘짓 -_-


결론 : 마비노기의 u-OTP는 가짜 OTP다? 

'게임 > 마비노기' 카테고리의 다른 글

꿈은 이루어 진다? ㅋㅋㅋㅋㅋ  (2) 2015.04.02
마비노기 in nexus resort  (0) 2014.10.28
줌 아웃 확장 -_-  (0) 2014.10.12
마비노기 환경설정 파일  (0) 2014.08.04
충격과 공포의 마비노기 G11 엔딩...  (0) 2014.08.03
Posted by 구차니
Linux API/alsa2014. 10. 24. 13:50
ALSA 홈페이지 뒤지다가 발견한 꽃 같은 녀석!
cpu 점유율은... cpu가 구려서 top 만 돌려서 힘들어 하는 녀석이라
비교하긴 힘들지만.. 5~10% 정도는 Mplayer 최대 부하 걸리는 녀석이 아니면 떨어트려 주는 듯

SALSA-Lib - Small ALSA Library
==============================

GENERAL
-------

SALSA-Lib is a small, light-weight, hot and spicy version of the ALSA
library, mainly for embedded systems with limited resources.
The library is designed to be source-level compatible with ALSA
library API for limited contents.  Most of function calls are inlined,
and accesses directly to the hardware via system calls.
Some components like ALSA sequencer aren't supported, and most of all,
the alsa-lib plugins and configurations are completely dropped.  Thus,
neither dmix nor format conversion is available with SALSA-lib.

CROSS-COMPILATION
-----------------

For compiling the library with a cross compiler, run like the
following:

% CC=arm-linux-gcc \
  ./configure --target=arm-linux --host=i686-linux

Don't forget to add "-linux" to the host option value.  Otherwise
configure script won't detect the host type correctly, and the shared
library won't be built properly.
[링크 : http://ftp://ftp.suse.com/pub/people/tiwai/salsa-lib/README] 

[링크 : http://www.alsa-project.org/main/index.php/ALSA_Library_API]
[링크 : http://www.alsa-project.org/main/index.php/SALSA-Library] << SALSA
[링크 : http://ftp://ftp.suse.com/pub/people/tiwai/salsa-lib/]


귀찮으면 --enable-everything 끗 ㅋㅋㅋ
$ ./configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: ./configure [OPTION]... [VAR=VALUE]...

To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.

Defaults for the options are specified in brackets.

Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']

Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]

By default, `make install' will install all the files in
`/usr/bin', `/usr/lib' etc.  You can specify
an installation prefix other than `/usr' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]

Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names

System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]

Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)
  --disable-pcm           disable PCM interface
  --disable-mixer         disable mixer interface
  --enable-rawmidi        enable rawmidi interface
  --enable-hwdep          enable hwdep interface
  --enable-timer          enable timer interface
  --enable-conf           enable dummy conf functions
  --enable-seq            enable seq functions
  --enable-tlv            enable TLV (dB) support
  --disable-user-elem     disable user-space control element support
  --enable-async          enable async handler support
  --enable-libasound      build a ABI-compatible libasound.so
  --disable-deprecated    don't mark deprecated attribute for non-working
                          functions
  --enable-output-buffer  support the string output via snd_output_*()
                          functions
  --disable-delight-valgrind
                          do not initialize unnecessary fields for ioctls
  --disable-symbolic-functions
                          use -Bsymbolic-functions option if available
                          (optmization for size and speed)
  --enable-float          support floatin-point unit
  --disable-4bit          drop the support for 4bit PCM (IMA ADPCM)
  --enable-abicheck       enable library ABI check
  --enable-everything     enable everything :)

Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-pic              try to use only PIC/non-PIC objects [default=use
                          both]
  --with-tags[=TAGS]      include additional configurations [automatic]
  --with-compat-version=VERSION
                          specify the compatible version with ALSA-lib
                          (default=1.0.25)
  --with-alsa-devdir=dir  directory with ALSA device files (default /dev/snd)

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  CXX         C++ compiler command
  CXXFLAGS    C++ compiler flags
  CXXCPP      C++ preprocessor
  F77         Fortran 77 compiler command
  FFLAGS      Fortran 77 compiler flags

Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.

Report bugs to the package provider. 
 

'Linux API > alsa' 카테고리의 다른 글

alsa 함수 - size / time  (0) 2014.11.17
alsa low latency  (0) 2014.11.03
alsa + ffmpeg 벤치마크(?)  (0) 2014.10.23
alsa 패키지 종류  (0) 2014.10.21
alsa 버전확인하기  (0) 2014.10.16
Posted by 구차니