2012-07-06 23:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)

+ contrib/hbqt/qtmultimedia
  + contrib/hbqt/qtmultimedia/doc
  + contrib/hbqt/qtmultimedia/doc/en
  + contrib/hbqt/qtmultimedia/hbqt_init.cpp
  + contrib/hbqt/qtmultimedia/hbqtmultimedia.ch
  + contrib/hbqt/qtmultimedia/hbqtmultimedia.hbc
  + contrib/hbqt/qtmultimedia/hbqtmultimedia.hbm
  + contrib/hbqt/qtmultimedia/hbqtmultimedia.hbp
  + contrib/hbqt/qtmultimedia/hbqtmultimedia.hbx
  + contrib/hbqt/qtmultimedia/hbqtmultimedias.hbp
  + contrib/hbqt/qtmultimedia/qth
  + contrib/hbqt/qtmultimedia/qth/filelist.hbm
  + contrib/hbqt/qtmultimedia/qth/QAbstractVideoBuffer.qth
  + contrib/hbqt/qtmultimedia/qth/QAbstractVideoSurface.qth
  + contrib/hbqt/qtmultimedia/qth/QAudioDeviceInfo.qth
  + contrib/hbqt/qtmultimedia/qth/QAudioFormat.qth
  + contrib/hbqt/qtmultimedia/qth/QAudioInput.qth
  + contrib/hbqt/qtmultimedia/qth/QAudioOutput.qth
  + contrib/hbqt/qtmultimedia/qth/QVideoFrame.qth
  + contrib/hbqt/qtmultimedia/qth/QVideoSurfaceFormat.qth
    + Added: Qt's QtMultimedia Module specific classes.
This commit is contained in:
Pritpal Bedi
2012-07-07 06:19:08 +00:00
parent 2befa0c05c
commit f6a0ab1abf
17 changed files with 962 additions and 0 deletions

View File

@@ -16,6 +16,29 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-07-06 23:15 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
+ contrib/hbqt/qtmultimedia
+ contrib/hbqt/qtmultimedia/doc
+ contrib/hbqt/qtmultimedia/doc/en
+ contrib/hbqt/qtmultimedia/hbqt_init.cpp
+ contrib/hbqt/qtmultimedia/hbqtmultimedia.ch
+ contrib/hbqt/qtmultimedia/hbqtmultimedia.hbc
+ contrib/hbqt/qtmultimedia/hbqtmultimedia.hbm
+ contrib/hbqt/qtmultimedia/hbqtmultimedia.hbp
+ contrib/hbqt/qtmultimedia/hbqtmultimedia.hbx
+ contrib/hbqt/qtmultimedia/hbqtmultimedias.hbp
+ contrib/hbqt/qtmultimedia/qth
+ contrib/hbqt/qtmultimedia/qth/filelist.hbm
+ contrib/hbqt/qtmultimedia/qth/QAbstractVideoBuffer.qth
+ contrib/hbqt/qtmultimedia/qth/QAbstractVideoSurface.qth
+ contrib/hbqt/qtmultimedia/qth/QAudioDeviceInfo.qth
+ contrib/hbqt/qtmultimedia/qth/QAudioFormat.qth
+ contrib/hbqt/qtmultimedia/qth/QAudioInput.qth
+ contrib/hbqt/qtmultimedia/qth/QAudioOutput.qth
+ contrib/hbqt/qtmultimedia/qth/QVideoFrame.qth
+ contrib/hbqt/qtmultimedia/qth/QVideoSurfaceFormat.qth
+ Added: Qt's QtMultimedia Module specific classes.
2012-07-06 17:21 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com)
* contrib/hbqt/hbmk2_qt.hb
+ Added: casting "const QString &".

View File

@@ -0,0 +1,97 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009-12 Pritpal Bedi (bedipritpal@hotmail.com)
* Copyright 2010 Viktor Szakats (harbour syenar.net)
* www - http://harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*
* As a special exception, the Harbour Project gives permission for
* additional uses of the text contained in its release of Harbour.
*
* The exception is that, if you link the Harbour libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the Harbour
* Project under the name Harbour. If you copy code from other
* Harbour Project or Free Software Foundation releases into a copy of
* Harbour, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for Harbour, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*/
/*----------------------------------------------------------------------*/
#include "hbqt.h"
#include "hbqtinit.h"
#include "hbvm.h"
#include "hbinit.h"
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
static void hbqt_registerCallbacks( void )
{
}
/*----------------------------------------------------------------------*/
HB_FUNC( __HBQTMULTIMEDIA ) {;}
static void hbqt_lib_init( void * cargo )
{
HB_SYMBOL_UNUSED( cargo );
hbqt_registerCallbacks();
}
static void hbqt_lib_exit( void * cargo )
{
HB_SYMBOL_UNUSED( cargo );
}
HB_CALL_ON_STARTUP_BEGIN( _hbqtmultimedia_init_ )
hb_vmAtInit( hbqt_lib_init, NULL );
hb_vmAtExit( hbqt_lib_exit, NULL );
HB_CALL_ON_STARTUP_END( _hbqtmultimedia_init_ )
#if defined( HB_PRAGMA_STARTUP )
#pragma startup _hbqtmultimedia_init_
#elif defined( HB_DATASEG_STARTUP )
#define HB_DATASEG_BODY HB_DATASEG_FUNC( _hbqtmultimedia_init_ )
#include "hbiniseg.h"
#endif
#endif

View File

@@ -0,0 +1,87 @@
/*
* $Id$
*/
/*
* Harbour Project source code:
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* http://harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*
* As a special exception, the Harbour Project gives permission for
* additional uses of the text contained in its release of Harbour.
*
* The exception is that, if you link the Harbour libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the Harbour
* Project under the name Harbour. If you copy code from other
* Harbour Project or Free Software Foundation releases into a copy of
* Harbour, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for Harbour, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*/
#ifndef _HBQTMULTIMEDIA_CH
#define _HBQTMULTIMEDIA_CH
#define QAudio_NoError 0 // No errors have occurred
#define QAudio_OpenError 1 // An error opening the audio device
#define QAudio_IOError 2 // An error occurred during read/write of audio device
#define QAudio_UnderrunError 3 // Audio data is not being fed to the audio device at a fast enough rate
#define QAudio_FatalError 4 // A non-recoverable error has occurred, the audio device is not usable at this time.
//
#define QAudio_AudioOutput 1 // audio output device
#define QAudio_AudioInput 0 // audio input device
//
#define QAudio_ActiveState 0 // Audio data is being processed, this state is set after start() is called and while audio data is available to be processed.
#define QAudio_SuspendedState 1 // The audio device is in a suspended state, this state will only be entered after suspend() is called.
#define QAudio_StoppedState 2 // The audio device is closed, not processing any audio data
#define QAudio_IdleState 3 // The QIODevice passed in has no data and audio system's buffer is empty, this state is set after start() is called and while no audio data is available to be processed.
#define QAudioFormat_BigEndian QSysInfo_BigEndian // samples are big endian byte order
#define QAudioFormat_LittleEndian QSysInfo_LittleEndian // samples are little endian byte order
#define QAudioFormat_Unknown 0 // Not Set
#define QAudioFormat_SignedInt 1 // samples are signed integers
#define QAudioFormat_UnSignedInt 2 // samples are unsigned intergers
#define QAudioFormat_Float 3 // samples are floats
#define QVideoSurfaceFormat_TopToBottom 0 // Scan lines are arranged from the top of the frame to the bottom.
#define QVideoSurfaceFormat_BottomToTop 1 // Scan lines are arranged from the bottom of the frame to the top.
//
#define QVideoSurfaceFormat_YCbCr_Undefined 0 // No color space is specified.
#define QVideoSurfaceFormat_YCbCr_BT601 1 // A Y'CbCr color space defined by ITU-R recommendation BT.601 with Y value range from 16 to 235, and Cb/Cr range from 16 to 240. Used in standard definition video.
#define QVideoSurfaceFormat_YCbCr_BT709 2 // A Y'CbCr color space defined by ITU-R BT.709 with the same values range as YCbCr_BT601. Used for HDTV.
#define QVideoSurfaceFormat_YCbCr_xvYCC601 3 // The BT.601 color space with the value range extended to 0 to 255. It is backward compatibile with BT.601 and uses values outside BT.601 range to represent wider colors range.
#define QVideoSurfaceFormat_YCbCr_xvYCC709 4 // The BT.709 color space with the value range extended to 0 to 255.
#define QVideoSurfaceFormat_YCbCr_JPEG 5 // The full range Y'CbCr color space used in JPEG files.
#endif

View File

@@ -0,0 +1,22 @@
#
# $Id$
#
# ---------------------------------------------------------------
# Copyright 2010 Viktor Szakats (harbour syenar.net)
# See COPYING for licensing terms.
# ---------------------------------------------------------------
incpaths=.
libs=../qtcore/hbqtcore.hbc
libs=../qtgui/hbqtgui.hbc
libs=../qtnetwork/hbqtnetwork.hbc
{!HB_STATIC_QT}libs=${_HB_DYNPREF}${hb_name}${_HB_DYNSUFF}
{!HB_STATIC_QT&(allwin|os2)}libs=QtMultimedia4
{!HB_STATIC_QT&(linux|beos|symbian)}libs=QtMultimedia
{!HB_STATIC_QT&darwin}frameworks=QtMultimedia
{HB_STATIC_QT&allwin}libs=${_HB_DYNPREF}${hb_name}s${_HB_DYNSUFF}
{HB_STATIC_QT&linux|beos}libs=${_HB_DYNPREF}${hb_name}${_HB_DYNSUFF}
{HB_STATIC_QT&(allwin|linux|beos)}libs=QtMultimedia

View File

@@ -0,0 +1,26 @@
#
# $Id$
#
-i.
qth/filelist.hbm
hbqtmultimedia.hbx
hbqt_init.cpp
../qtcore/hbqtcore.hbc
../qtgui/hbqtgui.hbc
../qtnetwork/hbqtnetwork.hbc
-deppkgname=qtmultimedia:QtMultimedia
-depkeyhead=qtmultimedia:QtMultimedia/QtMultimedia
-depcontrol=qtmultimedia:${HB_WITH_QT}
{!darwin}-depincpath=qtmultimedia:/usr/include/qt4
{!darwin}-depincpath=qtmultimedia:/usr/lib/qt4/include
{!darwin}-depincpath=qtmultimedia:/usr/include
{bsd}-depincpath=qt:/usr/local/include/qt4
{darwin}-depincpath=qtmultimedia:/Developer/qt/include
{darwin}-depincpath=qtmultimedia:/Library/Frameworks
{darwin}-depincpath=qtmultimedia:/usr/local/include

View File

@@ -0,0 +1,12 @@
#
# $Id$
#
../hbqt_common.hbm
hbqtmultimedia.hbm
-instfile=inc:hbqtmultimedia.ch
-instfile=inc:hbqtmultimedia.hbx
hbqtmultimedias.hbp

View File

@@ -0,0 +1,50 @@
/*
* $Id$
*/
/* -------------------------------------------------------------------- */
/* NOTE: You can add manual override which functions to include or */
/* exclude from automatically generated EXTERNAL/DYNAMIC list. */
/* Syntax: // HB_FUNC_INCLUDE <func> */
/* // HB_FUNC_EXCLUDE <func> */
/* -------------------------------------------------------------------- */
/* -------------------------------------------------------------------- */
/* WARNING: Automatically generated code below. DO NOT EDIT! */
/* Regenerate using hbmk2 '-hbx=' option. */
/* -------------------------------------------------------------------- */
#ifndef __HBEXTERN_CH__HBQTMULTIMEDIA__
#define __HBEXTERN_CH__HBQTMULTIMEDIA__
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBQTMULTIMEDIA__ANNOUNCE )
ANNOUNCE __HBEXTERN__HBQTMULTIMEDIA__
#endif
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBQTMULTIMEDIA__REQUEST )
#command DYNAMIC <fncs,...> => EXTERNAL <fncs>
#endif
DYNAMIC HB_QABSTRACTVIDEOBUFFER
DYNAMIC HB_QABSTRACTVIDEOSURFACE
DYNAMIC HB_QAUDIODEVICEINFO
DYNAMIC HB_QAUDIOFORMAT
DYNAMIC HB_QAUDIOINPUT
DYNAMIC HB_QAUDIOOUTPUT
DYNAMIC HB_QVIDEOFRAME
DYNAMIC HB_QVIDEOSURFACEFORMAT
DYNAMIC QABSTRACTVIDEOBUFFER
DYNAMIC QABSTRACTVIDEOSURFACE
DYNAMIC QAUDIODEVICEINFO
DYNAMIC QAUDIOFORMAT
DYNAMIC QAUDIOINPUT
DYNAMIC QAUDIOOUTPUT
DYNAMIC QVIDEOFRAME
DYNAMIC QVIDEOSURFACEFORMAT
DYNAMIC __HBQTMULTIMEDIA
#if defined( __HBEXTREQ__ ) .OR. defined( __HBEXTERN__HBQTMULTIMEDIA__REQUEST )
#uncommand DYNAMIC <fncs,...> => EXTERNAL <fncs>
#endif
#endif

View File

@@ -0,0 +1,7 @@
#
# $Id$
#
../hbqt_commons.hbm
hbqtmultimedia.hbm

View File

@@ -0,0 +1,54 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit =
QObject = no
Version = 0x040600
</CLASS>
<CODE>
#include <QtCore/QVariant>
#include <QtMultimedia/QAbstractVideoBuffer>
/*
* QAbstractVideoBuffer ( HandleType type )
* virtual ~QAbstractVideoBuffer ()
*/
HB_FUNC( QT_QABSTRACTVIDEOBUFFER )
{
}
</CODE>
<ENUMS>
enum HandleType { NoHandle, GLTextureHandle, XvShmImageHandle, CoreImageHandle, QPixmapHandle, UserHandle }
enum MapMode { NotMapped, ReadOnly, WriteOnly, ReadWrite }
</ENUMS>
<PROTOS>
virtual QVariant handle () const
HandleType handleType () const
virtual uchar * map ( MapMode mode, int * numBytes, int * bytesPerLine ) = 0
virtual MapMode mapMode () const = 0
virtual void unmap () = 0
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>

View File

@@ -0,0 +1,60 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit = QObject
QObject = yes
Version = 0x040600
</CLASS>
<CODE>
#include <QtMultimedia/QVideoSurfaceFormat>
#include <QtMultimedia/QAbstractVideoSurface>
/*
* QAbstractVideoSurface ( QObject * parent = 0 )
* ~QAbstractVideoSurface ()
*/
HB_FUNC( QT_QABSTRACTVIDEOSURFACE )
{
}
</CODE>
<ENUMS>
enum Error { NoError, UnsupportedFormatError, IncorrectFormatError, StoppedError, ResourceError }
</ENUMS>
<PROTOS>
Error error () const
bool isActive () const
virtual bool isFormatSupported ( const QVideoSurfaceFormat & format ) const
virtual QVideoSurfaceFormat nearestFormat ( const QVideoSurfaceFormat & format ) const
virtual bool present ( const QVideoFrame & frame ) = 0
virtual bool start ( const QVideoSurfaceFormat & format )
virtual void stop ()
virtual QList<QVideoFrame::PixelFormat> supportedPixelFormats ( QAbstractVideoBuffer::HandleType type = QAbstractVideoBuffer::NoHandle ) const = 0
QVideoSurfaceFormat surfaceFormat () const
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void activeChanged ( bool active )
void supportedFormatsChanged ()
void surfaceFormatChanged ( const QVideoSurfaceFormat & format )
</SIGNALS>

View File

@@ -0,0 +1,70 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit =
QObject =
Version = 0x040600
</CLASS>
<CODE>
#include <QtMultimedia/QAudioDeviceInfo>
/*
* QAudioDeviceInfo ()
* QAudioDeviceInfo ( const QAudioDeviceInfo & other )
* ~QAudioDeviceInfo ()
*/
HB_FUNC( QT_QAUDIODEVICEINFO )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) )
{
__HB_RETPTRGC__( new QAudioDeviceInfo( *hbqt_par_QAudioDeviceInfo( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QAudioDeviceInfo() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
QString deviceName () const
bool isFormatSupported ( const QAudioFormat & settings ) const
bool isNull () const
QAudioFormat nearestFormat ( const QAudioFormat & settings ) const
QAudioFormat preferredFormat () const
QList<QAudioFormat::Endian> supportedByteOrders () const
QList<int> supportedChannelCounts () const
QStringList supportedCodecs () const
QList<int> supportedSampleRates () const
QList<int> supportedSampleSizes () const
QList<QAudioFormat::SampleType> supportedSampleTypes () const
QList<QAudioDeviceInfo> availableDevices ( QAudio::Mode mode )
QAudioDeviceInfo defaultInputDevice ()
QAudioDeviceInfo defaultOutputDevice ()
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>

View File

@@ -0,0 +1,69 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit =
QObject =
Version = 0x040600
</CLASS>
<CODE>
#include <QtMultimedia/QAudioFormat>
/*
* QAudioFormat ()
* QAudioFormat ( const QAudioFormat & other )
* ~QAudioFormat ()
*/
HB_FUNC( QT_QAUDIOFORMAT )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QAUDIOFORMAT" ) )
{
__HB_RETPTRGC__( new QAudioFormat( *hbqt_par_QAudioFormat( 1 ) ) );
}
{
__HB_RETPTRGC__( new QAudioFormat() );
}
}
</CODE>
<ENUMS>
enum Endian { BigEndian, LittleEndian }
enum SampleType { Unknown, SignedInt, UnSignedInt, Float }
</ENUMS>
<PROTOS>
QAudioFormat::Endian byteOrder () const
int channelCount () const
QString codec () const
bool isValid () const
int sampleRate () const
int sampleSize () const
QAudioFormat::SampleType sampleType () const
void setByteOrder ( QAudioFormat::Endian byteOrder )
void setChannelCount ( int channels )
void setCodec ( const QString & codec )
void setSampleRate ( int samplerate )
void setSampleSize ( int sampleSize )
void setSampleType ( QAudioFormat::SampleType sampleType )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>

View File

@@ -0,0 +1,90 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit = QObject
QObject = yes
Version = 0x040600
</CLASS>
<CODE>
#include <QtMultimedia/QAudioInput>
/*
* QAudioInput ( const QAudioFormat & format = QAudioFormat(), QObject * parent = 0 )
* QAudioInput ( const QAudioDeviceInfo & audioDevice, const QAudioFormat & format = QAudioFormat(), QObject * parent = 0 )
* ~QAudioInput ()
*/
HB_FUNC( QT_QAUDIOINPUT )
{
if( hb_pcount() == 3 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) && hbqt_par_isDerivedFrom( 2, "QAUDIOFORMAT" ) && hbqt_par_isDerivedFrom( 3, "QOBJECT" ) )
{
__HB_RETPTRGC__( new QAudioInput( *hbqt_par_QAudioDeviceInfo( 1 ), *hbqt_par_QAudioFormat( 2 ), hbqt_par_QObject( 3 ) ) );
}
else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) && hbqt_par_isDerivedFrom( 2, "QAUDIOFORMAT" ) )
{
__HB_RETPTRGC__( new QAudioInput( *hbqt_par_QAudioDeviceInfo( 1 ), *hbqt_par_QAudioFormat( 2 ) ) );
}
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) )
{
__HB_RETPTRGC__( new QAudioInput( *hbqt_par_QAudioDeviceInfo( 1 ) ) );
}
else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QAUDIOFORMAT" ) && hbqt_par_isDerivedFrom( 2, "QOBJECT" ) )
{
__HB_RETPTRGC__( new QAudioInput( *hbqt_par_QAudioFormat( 1 ), hbqt_par_QObject( 2 ) ) );
}
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QAUDIOFORMAT" ) )
{
__HB_RETPTRGC__( new QAudioInput( *hbqt_par_QAudioFormat( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QAudioInput() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
int bufferSize () const
int bytesReady () const
qint64 elapsedUSecs () const
QAudio::Error error () const
QAudioFormat format () const
int notifyInterval () const
int periodSize () const
qint64 processedUSecs () const
void reset ()
void resume ()
void setBufferSize ( int value )
void setNotifyInterval ( int ms )
void start ( QIODevice * device )
QIODevice * start ()
QAudio::State state () const
void stop ()
void suspend ()
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void notify ()
void stateChanged ( QAudio::State state )
</SIGNALS>

View File

@@ -0,0 +1,90 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit = QObject
QObject = yes
Version = 0x040600
</CLASS>
<CODE>
#include <QtMultimedia/QAudioOutput>
/*
* QAudioOutput ( const QAudioFormat & format = QAudioFormat(), QObject * parent = 0 )
* QAudioOutput ( const QAudioDeviceInfo & audioDevice, const QAudioFormat & format = QAudioFormat(), QObject * parent = 0 )
* ~QAudioOutput ()
*/
HB_FUNC( QT_QAUDIOOUTPUT )
{
if( hb_pcount() == 3 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) && hbqt_par_isDerivedFrom( 2, "QAUDIOFORMAT" ) && hbqt_par_isDerivedFrom( 3, "QOBJECT" ) )
{
__HB_RETPTRGC__( new QAudioOutput( *hbqt_par_QAudioDeviceInfo( 1 ), *hbqt_par_QAudioFormat( 2 ), hbqt_par_QObject( 3 ) ) );
}
else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) && hbqt_par_isDerivedFrom( 2, "QAUDIOFORMAT" ) )
{
__HB_RETPTRGC__( new QAudioOutput( *hbqt_par_QAudioDeviceInfo( 1 ), *hbqt_par_QAudioFormat( 2 ) ) );
}
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QAUDIODEVICEINFO" ) )
{
__HB_RETPTRGC__( new QAudioOutput( *hbqt_par_QAudioDeviceInfo( 1 ) ) );
}
else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QAUDIOFORMAT" ) && hbqt_par_isDerivedFrom( 2, "QOBJECT" ) )
{
__HB_RETPTRGC__( new QAudioOutput( *hbqt_par_QAudioFormat( 1 ), hbqt_par_QObject( 2 ) ) );
}
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QAUDIOFORMAT" ) )
{
__HB_RETPTRGC__( new QAudioOutput( *hbqt_par_QAudioFormat( 1 ) ) );
}
else
{
__HB_RETPTRGC__( new QAudioOutput() );
}
}
</CODE>
<ENUMS>
</ENUMS>
<PROTOS>
int bufferSize () const
int bytesFree () const
qint64 elapsedUSecs () const
QAudio::Error error () const
QAudioFormat format () const
int notifyInterval () const
int periodSize () const
qint64 processedUSecs () const
void reset ()
void resume ()
void setBufferSize ( int value )
void setNotifyInterval ( int ms )
void start ( QIODevice * device )
QIODevice * start ()
QAudio::State state () const
void stop ()
void suspend ()
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
void notify ()
void stateChanged ( QAudio::State state )
</SIGNALS>

View File

@@ -0,0 +1,99 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit =
QObject =
Version = 0x040600
</CLASS>
<CODE>
#include <QtCore/QVariant>
#include <QtMultimedia/QVideoFrame>
/*
* QVideoFrame ()
* QVideoFrame ( QAbstractVideoBuffer * buffer, const QSize & size, PixelFormat format )
* QVideoFrame ( int bytes, const QSize & size, int bytesPerLine, PixelFormat format )
* QVideoFrame ( const QImage & image )
* QVideoFrame ( const QVideoFrame & other )
* ~QVideoFrame ()
*/
HB_FUNC( QT_QVIDEOFRAME )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QVIDEOFRAME" ) )
{
__HB_RETPTRGC__( new QVideoFrame( *hbqt_par_QVideoFrame( 1 ) ) );
}
else if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QIMAGE" ) )
{
__HB_RETPTRGC__( new QVideoFrame( *hbqt_par_QImage( 1 ) ) );
}
else if( hb_pcount() == 3 && hbqt_par_isDerivedFrom( 1, "QABSTRACTVIDEOBUFFER" ) && hbqt_par_isDerivedFrom( 2, "QSIZE" ) && HB_ISNUM( 3 ) )
{
__HB_RETPTRGC__( new QVideoFrame( hbqt_par_QAbstractVideoBuffer( 1 ), *hbqt_par_QSize( 2 ), ( QVideoFrame::PixelFormat ) hb_parni( 3 ) ) );
}
else if( hb_pcount() == 4 && HB_ISNUM( 1 ) && hbqt_par_isDerivedFrom( 2, "QSIZE" ) && HB_ISNUM( 3 ) && HB_ISNUM( 4 ) )
{
__HB_RETPTRGC__( new QVideoFrame( hb_parni( 1 ), *hbqt_par_QSize( 2 ), hb_parni( 3 ), ( QVideoFrame::PixelFormat ) hb_parni( 4 ) ) );
}
else
{
__HB_RETPTRGC__( new QVideoFrame() );
}
}
</CODE>
<ENUMS>
enum FieldType { ProgressiveFrame, TopField, BottomField, InterlacedFrame }
enum PixelFormat { Format_Invalid, Format_ARGB32, Format_ARGB32_Premultiplied, Format_RGB32, ..., Format_User }
</ENUMS>
<PROTOS>
uchar * bits ()
const uchar * bits () const
int bytesPerLine () const
qint64 endTime () const
FieldType fieldType () const
QVariant handle () const
QAbstractVideoBuffer::HandleType handleType () const
int height () const
bool isMapped () const
bool isReadable () const
bool isValid () const
bool isWritable () const
bool map ( QAbstractVideoBuffer::MapMode mode )
QAbstractVideoBuffer::MapMode mapMode () const
int mappedBytes () const
PixelFormat pixelFormat () const
void setEndTime ( qint64 time )
void setFieldType ( FieldType field )
void setStartTime ( qint64 time )
QSize size () const
qint64 startTime () const
void unmap ()
int width () const
QImage::Format imageFormatFromPixelFormat ( PixelFormat format )
PixelFormat pixelFormatFromImageFormat ( QImage::Format format )
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>

View File

@@ -0,0 +1,90 @@
/*
* $Id$
*/
/*
* Harbour Qt wrapper generator control file
*
* Copyright 2009-2012 Pritpal Bedi <bedipritpal@hotmail.com>
* www - http://www.harbour-project.org
*
* See COPYING for licensing terms.
*/
<CLASS>
Inherit =
QObject =
Version = 0x040600
</CLASS>
<CODE>
#include <QtCore/QVariant>
#include <QtMultimedia/QVideoSurfaceFormat>
/*
* QVideoSurfaceFormat ()
* QVideoSurfaceFormat ( const QSize & size, QVideoFrame::PixelFormat format, QAbstractVideoBuffer::HandleType type = QAbstractVideoBuffer::NoHandle )
* QVideoSurfaceFormat ( const QVideoSurfaceFormat & other )
* ~QVideoSurfaceFormat ()
*/
HB_FUNC( QT_QVIDEOSURFACEFORMAT )
{
if( hb_pcount() == 1 && hbqt_par_isDerivedFrom( 1, "QVIDEOSURFACEFORMAT" ) )
{
__HB_RETPTRGC__( new QVideoSurfaceFormat( *hbqt_par_QVideoSurfaceFormat( 1 ) ) );
}
else if( hb_pcount() == 3 && hbqt_par_isDerivedFrom( 1, "QSIZE" ) && HB_ISNUM( 2 ) && HB_ISNUM( 3 ) )
{
__HB_RETPTRGC__( new QVideoSurfaceFormat( *hbqt_par_QSize( 1 ), ( QVideoFrame::PixelFormat ) hb_parni( 2 ), ( QAbstractVideoBuffer::HandleType ) hb_parni( 3 ) ) );
}
else if( hb_pcount() == 2 && hbqt_par_isDerivedFrom( 1, "QSIZE" ) && HB_ISNUM( 2 ) )
{
__HB_RETPTRGC__( new QVideoSurfaceFormat( *hbqt_par_QSize( 1 ), ( QVideoFrame::PixelFormat ) hb_parni( 2 ) ) );
}
else
{
__HB_RETPTRGC__( new QVideoSurfaceFormat() );
}
}
</CODE>
<ENUMS>
enum Direction { TopToBottom, BottomToTop }
enum YCbCrColorSpace { YCbCr_Undefined, YCbCr_BT601, YCbCr_BT709, YCbCr_xvYCC601, YCbCr_xvYCC709, YCbCr_JPEG }
</ENUMS>
<PROTOS>
int frameHeight () const
qreal frameRate () const
QSize frameSize () const
int frameWidth () const
QAbstractVideoBuffer::HandleType handleType () const
bool isValid () const
QSize pixelAspectRatio () const
QVideoFrame::PixelFormat pixelFormat () const
QVariant property ( const char * name ) const
QList<QByteArray> propertyNames () const
Direction scanLineDirection () const
void setFrameRate ( qreal rate )
void setFrameSize ( const QSize & size )
void setFrameSize ( int width, int height )
void setPixelAspectRatio ( const QSize & ratio )
void setPixelAspectRatio ( int horizontal, int vertical )
void setProperty ( const char * name, const QVariant & value )
void setScanLineDirection ( Direction direction )
void setViewport ( const QRect & viewport )
void setYCbCrColorSpace ( YCbCrColorSpace space )
QSize sizeHint () const
QRect viewport () const
YCbCrColorSpace yCbCrColorSpace () const
</PROTOS>
<SLOTS>
</SLOTS>
<SIGNALS>
</SIGNALS>

View File

@@ -0,0 +1,16 @@
#
# $Id$
#
-pflag=-qtver=0x040500
-pflag=-qtmodule=qtsvg
-pflag=-qthdocdir=../doc/
QAbstractVideoBuffer.qth
QAbstractVideoSurface.qth
QAudioDeviceInfo.qth
QAudioFormat.qth
QAudioInput.qth
QAudioOutput.qth
QVideoFrame.qth
QVideoSurfaceFormat.qth