[vlc-devel] Re: compiling for qte
Cucaratxa
cucaratxa at yahoo.fr
Thu Nov 4 16:00:19 CET 2004
Thanks anyway.
--- Jean-Paul Saman <jean-paul.saman at planet.nl> wrote:
> You can instead use:
>
> ./vlc --width 800 --height 600
>
> The meaning from ./vlc -H ---advanced
> --width <integer> Video width
> --height <integer> Video height
>
> Of course you do not need the fix below for this.
>
> Cucaratxa wrote:
>
> >I finally solved the problem with dimensions. I
> >modified /modules/video_output/qte/qte.cpp:
> >
> >static int OpenDisplay( vout_thread_t *p_vout )
> >{
> > /* for displaying the vout in a qt window we
> need
> >the QtApplication */
> > p_vout->p_sys->p_QApplication = NULL;
> > p_vout->p_sys->p_VideoWidget = NULL;
> >
> > p_vout->p_sys->p_event = (event_thread_t*)
> >vlc_object_create( p_vout, sizeof(event_thread_t)
> );
> > p_vout->p_sys->p_event->p_vout = p_vout;
> >
> > /* Initializations */
> >#if 1 /* FIXME: I need an event queue to handle
> video
> >output size changes. */
> > p_vout->b_fullscreen = VLC_TRUE;
> >#endif
> >
> > /* Set main window's size Modified by
> Cucaratxa*/
> > QWidget *desktop =
> >p_vout->p_sys->p_QApplication->desktop();
> > p_vout->p_sys->i_width = 800;
> >//p_vout->b_fullscreen ? desktop->height() :
> > //
>
> >p_vout->i_window_width;
> > p_vout->p_sys->i_height = 600;
> >//p_vout->b_fullscreen ? desktop->width() :
> > //
>
> >p_vout->i_window_height;
> >
> >
> >lines 518 and 520.
> >
> >My be I should have change something else when I
> >ported qte and opie for my platform. I will try to
> >crompenhend the code better to see if that's the
> >problem.
> >
> >--- Jean-Paul Saman <jean-paul.saman at planet.nl>
> wrote:
> >
> >
> >
> >>I could not resist to take a quick look into the
> >>source code ;-)
> >>
> >>In file modules/misc/qte_main.cpp I found this:
> >>
> >>If you are running vlc as a GUI Server then the
> >>screensize of the video
> >>output will be set to
> >>
> >>if (p_this->b_gui_server) {
> >>
> >>
> >>
> >>
>
>p_this->p_qte_application->desktop()->setFixedSize(240,
> >
> >
> >>320);
> >> }
> >>
> >>Which is a fixed size suitable for PDA (iPAQ)
> >>handhelds, but not for
> >>your screensize. I think you want to change this.
> >>
> >>
> >>Jean-Paul Saman wrote:
> >>
> >>
> >>
> >>>The files you want to look at are:
> >>>
> >>>modules/gui/opie/opie.ui -->
> >>>
> >>>
> >>The none existing
> >>
> >>
> >>>GUI for Opie/Qt Embedded
> >>>modules/video_output/qte/qte.{cpp,h} --> The bare
> >>>
> >>>
> >>bones (directly to
> >>
> >>
> >>>framebuffer) video output
> >>>modules/misc/qte_main.cpp --> The
> >>>
> >>>
> >>GUI helper module
> >>
> >>
> >>>needed to support both a video_output and GUI
> >>>
> >>>
> >>plugin. Qt Embedded only
> >>
> >>
> >>>has to be initialized ones.
> >>>
> >>>Hopefully these files will give you enough of a
> >>>
> >>>
> >>starting point to look
> >>
> >>
> >>>at the code. Feel free to ask questions I'll try
> >>>
> >>>
> >>to answer them.
> >>
> >>
> >>>Qt Embedded in vlc-0.7.1 should work alright
> >>>
> >>>
> >>independent of screen
> >>
> >>
> >>>size. Are you trying to write to a windows
> instead
> >>>
> >>>
> >>of to the
> >>
> >>
> >>>framebuffer directly? The Qt Embedded video
> output
> >>>
> >>>
> >>is written for
> >>
> >>
> >>>direct use with the framebuffer.
> >>>
> >>>Cucaratxa wrote:
> >>>
> >>>
> >>>
> >>>>Yes, sorry, you are right I'm xcompiling and
> I'm
> >>>>using vlc 0.7.1.
> >>>>Besides I'm working on a project for developing
> >>>>
> >>>>
> >>an
> >>
> >>
> >>>>embedded multimedia portable device so I'm
> >>>>
> >>>>
> >>interested
> >>
> >>
> >>>>in making qte module work right though I'm not a
> >>>>
> >>>>
> >>good
> >>
> >>
> >>>>programer I'll send any changes I make for qte
> >>>>
> >>>>
> >>module
> >>
> >>
> >>>>to work in this platform wich is using an arm
> >>>>processor an a 800x600 display. By the way could
> >>>>
> >>>>
> >>you
> >>
> >>
> >>>>point any file a shoulf start to solve the
> prolem
> >>>>
> >>>>
> >>I
> >>
> >>
>
=== message truncated ===
> ATTACHMENT part 2 application/pgp-signature
name=signature.asc
=====
"I've seen things you people wouldn't believe. Attack ships on fire off the sholder of Orion. I watched sea beams glitter in the darkness at Tan Hauser Gate. All those moments will be lost in time like tears in rain. Time to die"
Roy, Blade Runner
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html
More information about the vlc-devel
mailing list