On Thu, 15 Jun 2006 21:24:52 +0200, Olaf wrote in message 
<[EMAIL PROTECTED]>:

> Hi,
> 
> > ..in a similar vein:  Is there way to set the jpg-factory
> > screen shot size, other than at compile time by editing
> > this bit in SimGear/simgear/screen/jpgfactory.hxx ?:
> >
> >
> >         typedef enum {
> >             DEFAULT_XS = 320,
> >             DEFAULT_YS = 240
> >         } JPG_FACTORY_ENUM;
> >
> 
> Does this relate in any way to the discussion in this thread?

..I dunno yet, I'm gonna find out after I get TerraGear built, your
fooling around in plib to hike fps up by 15 times tells me you 
might be able to point me the right way.

> I doubt that this definitions is actually used in the code:  In
> jpg-httpd the factory is initialized as 400x300.

..this matches what I see chking the jpeg's coming out.  
In the code,  where, FG? 

> JpgFactory->init(400,300);
> 
> screenshots (In FlightGear Menu called Snaphots) are done differently.
> 
> Size of snapshots are controlled by /sim/startup/xsize and ysize
> respectivly. gui_funcs.cxx around line 570.

..maybe, these change the display within the main window and 
probably the screen shot sizes too, and yeah, that's a different 
show from jpeg-factory.

..found it in FlightGear/src/Network/jpg-httpd.hxx:
> public:
> 
>     HttpdImageChannel() : buffer(512) {
>         setTerminator("\r\n");
>         JpgFactory = new trJpgFactory();
> 
>         // This is a terrible hack but it can't be initialized until
>         // after OpenGL is up an running
>         JpgFactory->init(400,300);
>     }

..huh?  If OpenGL is dead, kill FG too, or ask if SW rendering is ok.

..is also possible to control jpg "fps" (5Hz) and picture 
quality (90%) at compile time now.

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;o)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.



_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to