Changeset ba57d25b17859657591513842c0403a67e18cb51

Show
Ignore:
Timestamp:
09/15/02 22:54:12 (6 years ago)
Author:
Jean-Paul Saman <jpsaman@videolan.org>
git-committer:
Jean-Paul Saman <jpsaman@videolan.org> 1032123252 +0000
git-parent:

[00fdbca4abc6baf927ff6ddb4d7f3ea4a9678e0a]

git-author:
Jean-Paul Saman <jpsaman@videolan.org> 1032123252 +0000
Message:

Configure option --enable-qte works now (default is disabled).
Porting video out plugin/builtin for Qt Embedded to CVS is not complete. (Please do not use it.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.in

    re710eca rba57d25  
    13821382 
    13831383dnl 
    1384 dnl  QT Embedded module 
     1384dnl  Qt Embedded module 
    13851385dnl  (disabled by default) 
    13861386dnl 
    13871387AC_ARG_ENABLE(qte, 
    13881388  [  --enable-qte            QT Embedded support (default disabled)]) 
    1389 if test "x${enable_qte}" = "xyes
     1389if test "x${enable_qte}" != "xno
    13901390then 
    13911391  AC_ARG_WITH(qte, 
     
    13941394  then 
    13951395    test_LDFLAGS="-L${QTDIR}/lib" 
    1396     test_CFLAGS="-I$(QTDIR)/include/qte" 
     1396    test_CFLAGS="-I$(QTDIR)/include" 
     1397    PLUGINS="${PLUGINS} video_output/qte/qte" 
    13971398  else 
    13981399    test_LDFLAGS="-L${with_qte}/lib" 
    1399     test_CFLAGS="-I${with_qte}/include/qte
    1400   fi 
    1401  
    1402   CPPFLAGS="${save_CPPFLAGS} -I${qte_includes}" 
    1403   AC_CHECK_HEADERS(qte/qte.h, [ 
    1404     PLUGINS="${PLUGINS} video_output/qte/qte" 
    1405     qte_CFLAGS ="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti" 
    1406     qte_LDFLAGS ="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte" 
     1400    test_CFLAGS="-I${with_qte}/include
     1401    BUILTINS="${BUILTINS} video_output/qte/qte" 
     1402  fi 
     1403 
     1404  CPPFLAGS="${save_CPPFLAGS} ${test_CFLAGS}" 
     1405  AC_CHECK_HEADERS(qt.h, [ 
     1406    qte_CFLAGS="${qte_CFLAGS} ${test_CFLAGS} -DQT_QWS_IPAQ -DQWS -fno-exceptions -fno-rtti" 
     1407    qte_LDFLAGS="${qte_LDFLAGS} ${test_LDFLAGS} -lqpe -lqte" 
    14071408  ]) 
    14081409  CPPFLAGS="${save_CPPFLAGS}" 
     
    17821783     then 
    17831784       test_LDFLAGS="-L$(QTDIR)/lib" 
    1784        test_CFLAGS="-I${QTDIR}/include/qte
     1785       test_CFLAGS="-I${QTDIR}/include
    17851786     else 
    17861787       test_LDFLAGS="-L${with_qte}/lib" 
    1787        test_CFLAGS="-I${with_qte}/include/qte
     1788       test_CFLAGS="-I${with_qte}/include
    17881789     fi 
    17891790 
  • modules/LIST

    rbc45ea4 rba57d25  
    11List of vlc plugins 
    2 $Id: LIST,v 1.1 2002/08/06 20:04:26 massiot Exp $ 
     2$Id: LIST,v 1.2 2002/09/15 20:54:12 jpsaman Exp $ 
    33 
    44 * a52_system: input module for A52 decapsulation. 
     
    128128 * qt: interface module using the Qt widget set. 
    129129 
     130 * qte: video output module for Qt Embedded. 
     131 
    130132 * rc: interface module using stdio. 
    131133 
  • modules/video_output/qte/qte.cpp

    rb85c7e1 rba57d25  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2002 VideoLAN 
    5  * $Id: qte.cpp,v 1.1 2002/09/04 21:13:33 jpsaman Exp $ 
     5 * $Id: qte.cpp,v 1.2 2002/09/15 20:54:12 jpsaman Exp $ 
    66 * 
    77 * Authors: Gerald Hansink <gerald.hansink@ordain.nl> 
     
    3939#include <string.h>                                                /* strerror() */ 
    4040 
    41 #include <videolan/vlc.h> 
     41#include <vlc/vlc.h> 
     42#include <vlc/intf.h> 
     43#include <vlc/vout.h> 
    4244 
    4345#ifdef HAVE_MACHINE_PARAM_H 
     
    6567#endif 
    6668 
    67 #include "video.h" 
    68 #include "video_output.h" 
    69  
    70 #include "interface.h" 
    7169#include "netutils.h"                                 /* network_ChannelJoin */ 
    72  
    73 #include "stream_control.h"                 /* needed by input_ext-intf.h... */ 
    74 #include "input_ext-intf.h" 
    75  
    7670#include "qte.h" 
    7771 
     
    9892 
    9993/***************************************************************************** 
     94 * Local prototypes 
     95 *****************************************************************************/ 
     96static int  Open      ( vlc_object_t * ); 
     97static void Close     ( vlc_object_t * ); 
     98static void Render    ( vout_thread_t *, picture_t * ); 
     99static void Display   ( vout_thread_t *, picture_t * ); 
     100static int  Manage    ( vout_thread_t * ); 
     101static int  Init      ( vout_thread_t * ); 
     102static void End       ( vout_thread_t * ); 
     103 
     104static int  CreateQtWindow ( vout_thread_t * ); 
     105static void DestroyQtWindow( vout_thread_t * ); 
     106 
     107static int  NewPicture     ( vout_thread_t *, picture_t * ); 
     108static void FreePicture    ( vout_thread_t *, picture_t * ); 
     109 
     110static void ToggleFullScreen      ( vout_thread_t * ); 
     111 
     112static void *RunQtThread( void *pVoid ); 
     113 
     114/***************************************************************************** 
    100115* Exported prototypes 
    101116*****************************************************************************/ 
     
    111126vlc_module_end(); 
    112127 
    113 /***************************************************************************** 
    114  * Local prototypes 
    115  *****************************************************************************/ 
    116 static int  Open      ( vlc_object_t * ); 
    117 static void Close     ( vlc_object_t * ); 
    118 static void Render    ( vout_thread_t *, picture_t * ); 
    119 static void Display   ( vout_thread_t *, picture_t * ); 
    120 static int  Manage    ( vout_thread_t * ); 
    121 static int  Init      ( vout_thread_t * ); 
    122 static void End       ( vout_thread_t * ); 
    123  
    124 static int  CreateQtWindow ( vout_thread_t * ); 
    125 static void DestroyQtWindow( vout_thread_t * ); 
    126  
    127 static int  NewPicture     ( vout_thread_t *, picture_t * ); 
    128 static void FreePicture    ( vout_thread_t *, picture_t * ); 
    129  
    130 static void ToggleFullScreen      ( vout_thread_t * ); 
    131  
    132 static void* run_qtapp_exec (void* pVoid); 
    133128 
    134129/***************************************************************************** 
     
    144139static int Open( vlc_object_t *p_this ) 
    145140{ 
    146     //msg_Err( "+vout_Create::qte" ); 
     141    //msg_Err(p_vout, "+vout_Create::qte" ); 
    147142    vout_thread_t * p_vout = (vout_thread_t *)p_this; 
    148143 
    149144    /* Allocate structure */ 
    150     p_vout->p_sys = (vout_sys_s*) malloc( sizeof( vout_sys_t ) ); 
     145    p_vout->p_sys = (struct vout_sys_t*) malloc( sizeof( struct vout_sys_t ) ); 
    151146 
    152147    if( p_vout->p_sys == NULL ) 
     
    156151    } 
    157152 
    158 //    memset(p_vout->p_sys, 0, sizeof( vout_sys_t )); 
     153//    memset(p_vout->p_sys, 0, sizeof( struct vout_sys_t )); 
    159154 
    160155    p_vout->pf_init    = Init; 
     
    166161    CreateQtWindow(p_vout); 
    167162 
    168     //msg_Err( "-vout_Create::qte\n" ); 
     163    //msg_Err(p_vout, "-vout_Create::qte\n" ); 
    169164    return( 0 ); 
    170165} 
     
    179174    vout_thread_t * p_vout = (vout_thread_t *)p_this; 
    180175 
    181     //msg_Err( "+vout_Destroy::qte\n" ); 
     176    //msg_Err( p_vout, "+vout_Destroy::qte\n" ); 
    182177    DestroyQtWindow(p_vout); 
    183178    free(p_vout->p_sys); 
     
    197192    int         dd = QPixmap::defaultDepth(); 
    198193 
    199     //msg_Err( "+vout_Init::qte\n" ); 
     194    //msg_Err( p_vout,"+vout_Init::qte\n" ); 
    200195 
    201196    I_OUTPUTPICTURES = 0; 
    202197 
    203     p_vout->output.i_chroma = (dd == 16) ? FOURCC_RV16 : FOURCC_RV32
     198    p_vout->output.i_chroma = (dd == 16) ? VLC_FOURCC('R','V','1','6'): VLC_FOURCC('R','V','3','2')
    204199    p_vout->output.i_rmask  = 0xf800; 
    205200    p_vout->output.i_gmask  = 0x07e0; 
     
    240235    } 
    241236 
    242     //msg_Err( "-vout_Init::qte %d output pictures\n", I_OUTPUTPICTURES); 
     237    //msg_Err(p_vout, "-vout_Init::qte %d output pictures\n", I_OUTPUTPICTURES); 
    243238 
    244239    return( 0 ); 
     
    251246static void Render( vout_thread_t *p_vout, picture_t *p_pic ) 
    252247{ 
    253     //msg_Err( "+vout_Render::qte\n" ); 
     248    //msg_Err(p_vout, "+vout_Render::qte\n" ); 
    254249    ; 
    255250} 
     
    325320static int Manage( vout_thread_t *p_vout ) 
    326321{ 
    327     //msg_Err( "+vout_Manage::qte\n" ); 
     322    //msg_Err(p_vout, "+vout_Manage::qte\n" ); 
    328323    return 0; 
    329324} 
     
    339334    int i_index; 
    340335 
    341     //msg_Err( "+vout_End::qte\n" ); 
     336    //msg_Err(p_vout, "+vout_End::qte\n" ); 
    342337 
    343338    /* Free the direct buffers we allocated */ 
     
    359354    int dd = QPixmap::defaultDepth(); 
    360355 
    361     //msg_Err( "+NewPicture::dd = %d\n",dd ); 
     356    //msg_Err(p_vout, "+NewPicture::dd = %d\n",dd ); 
    362357 
    363358    p_pic->p_sys = (picture_sys_t*) malloc( sizeof( picture_sys_t ) ); 
     
    370365    switch(p_vout->output.i_chroma) 
    371366    { 
    372     case FOURCC_RV16
     367    case VLC_FOURCC('R','V','1','6')
    373368        if(dd == 16) 
    374369        { 
     
    387382 
    388383            p_pic->p->i_lines = p_vout->output.i_height; 
    389             p_pic->p->i_pixel_bytes = 2; 
    390             p_pic->p->b_margin      = 0; 
     384            p_pic->p->i_pixel_pitch   = 2; 
     385            p_pic->p->i_visible_pitch = 0; 
     386//            p_pic->p->i_pixel_bytes = 2; 
     387//            p_pic->p->b_margin      = 0; 
    391388            p_pic->i_planes         = 1; 
     389 
     390 
    392391        } 
    393392        else 
     
    396395        } 
    397396        break; 
    398     case FOURCC_RV32
     397    case VLC_FOURCC('R','V','3','2')
    399398        if(dd == 32) 
    400399        { 
     
    413412 
    414413            p_pic->p->i_lines = p_vout->output.i_height; 
    415             p_pic->p->i_pixel_bytes = 4; 
    416             p_pic->p->b_margin      = 0; 
     414            p_pic->p->i_pixel_pitch   = 4; 
     415            p_pic->p->i_visible_pitch = 0; 
     416//            p_pic->p->i_pixel_bytes = 4; 
     417//            p_pic->p->b_margin      = 0; 
    417418            p_pic->i_planes         = 1; 
    418419        } 
     
    428429 
    429430/* 
    430     msg_Err( "NewPicture: %d %d %d\n",p_vout->output.i_width, 
     431    msg_Err(p_vout, "NewPicture: %d %d %d\n",p_vout->output.i_width, 
    431432                                 p_vout->output.i_height, 
    432433                                 p_vout->output.i_chroma ); 
     
    462463static int CreateQtWindow( vout_thread_t *p_vout ) 
    463464{ 
    464     //msg_Err( "vout_qt: +init qt window"); 
     465    //msg_Err(p_vout, "vout_qt: +init qt window"); 
    465466 
    466467    /* for displaying the vout in a qt window we need the QtApplication */ 
     
    471472 
    472473    /* create thread to exec the qpe application */ 
     474//    if ( vlc_thread_create( &thread_id, "video output", RunQtThread, 
     475//                            VLC_THREAD_PRIORITY_OUTPUT, VLC_FALSE) ) 
    473476    if ( vlc_thread_create( &thread_id, "vout qte", 
    474                             (vlc_thread_func_t)vout_run_qtapp_exec
     477                            (vlc_thread_func_t)RunQtThread
    475478                            (void *)p_vout) ) 
    476479    { 
    477         msg_Err( "input error: can't spawn vout thread"); 
     480        msg_Err( p_vout, "input error: can't spawn video output thread"); 
    478481        return( -1 ); 
    479482    } 
     
    521524 * main loop of qtapplication 
    522525 *****************************************************************************/ 
    523 static void* 
    524 run_qtapp_exec(void* pVoid) 
     526static void *RunQtThread( void *pVoid) 
    525527{ 
    526528    int     argc    = 0; 
    527     char    arg0[]  = "vout qte"; 
    528529 
    529530    vout_thread_t* p_vout = (vout_thread_t*) pVoid; 
     
    537538            p_vout->p_sys->bOwnsQApp = TRUE; 
    538539        } 
    539         else 
    540         { 
    541             return NULL; 
    542         } 
    543540    } 
    544541    else 
     
    547544    } 
    548545 
    549     { 
    550         QWidget vo(0, "vout"); 
     546    if (p_vout->p_sys->pcQApplication) 
     547    { 
     548        QWidget vo(0, "qte"); 
    551549        vo.showFullScreen(); 
    552550        vo.show(); 
     
    573571        p_vout->p_sys->pcQApplication = NULL; 
    574572    } 
    575  
    576     return 0; 
    577 
    578  
     573
     574 
  • modules/video_output/qte/qte.h

    rb85c7e1 rba57d25  
    33 ***************************************************************************** 
    44 * Copyright (C) 1998-2002 VideoLAN 
    5  * $Id: qte.h,v 1.1 2002/09/04 21:13:33 jpsaman Exp $ 
     5 * $Id: qte.h,v 1.2 2002/09/15 20:54:12 jpsaman Exp $ 
    66 * 
    77 * Authors: Gerald Hansink <gerald.hansink@ordain.nl> 
     
    3434 * It describes the specific properties of an video output plugin 
    3535 *****************************************************************************/ 
    36 typedef struct vout_sys_s 
     36struct vout_sys_t 
    3737{ 
    3838    /* Internal settings and properties */ 
     
    4545    QApplication*       pcQApplication; 
    4646    QWidget*            pcVoutWidget; 
    47 } vout_sys_t
     47}
    4848 
    4949 
     
    5151 * picture_sys_t: direct buffer method descriptor 
    5252 *****************************************************************************/ 
    53 typedef struct picture_sys_s 
     53struct picture_sys_t 
    5454{ 
    5555    QImage*             pQImage; 
    56 } picture_sys_t
     56}
    5757 
    5858