Re: [fpc-pascal] nested macros in C headers

2011-05-03 Thread Bernd
2011/4/24 Paulo Costa p...@fe.up.pt:
 Probably you are right. Let me know how does it works for you.

I have further studied the entire v4l thing and there is something
that could be improved in the SdpoVideo4L2 component: There exists a
library libv4l2 that is an official part of the Linux V4l2 project. It
implements the format conversions that were part of each individual
V4L1 driver but are not allowed to be done in kernel-space anymore
with V4L2 and have all been moved into one user space library and
should be used by all applications using the V4L API.

This library exports functions that wrap open/close/ioctl/mmap/munmap
and work like their native counterparts except that they intercept
certain ioctls and make the cameras all magically support not only
their native pixel formats but also at least BGR24 and YUV420p as a
common denominator. The decompression and/or format conversion will
happen transparently on the fly, it will be as if the driver itself
natively supports this format.
http://hansdegoede.livejournal.com/3636.html

This means the only change that is needed to SdpoVideo4L2 would be to
replace all calls to FpOpen(), FpIoctl(), FpMmap() etc... with calls
to v4l2_open(), v4l2_ioctl(), v4l2_mmap() etc. and all existing
(known) V4L2 cameras could then be set to BGR24 and would deliver
uncompressed 24bit BGR video.

If I have some time next weekend I will make a patch against
SdpoVideo4L2 (with an ifdef) that allows enabling this functionality.

Bernd
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] fpc graph

2011-05-03 Thread Nikolay Nikolov

On 05/02/2011 04:03 PM, johnelee1...@googlemail.com wrote:
thanks - what are the features of ptcgraph vs graph? - I just want 
simple line graphs in win eg of data from a file, so was guessing that 
graph, from its name, was the 'best' option. J


Ptcgraph is new (fpc 2.4.4 will be the first stable release that has it) 
and was designed to be a better implementation of graph. Since it's 
still new, it probably needs more testing. It should have roughly the 
same feature set, but with better compatibility and consistency across 
all platforms, as well as better emulation of all the DOS modes from TP7 
(CGA, MCGA, EGA, VGA, Hercules) as well as the VESA modes from the 
go32v2 graph unit. It doesn't have all the extra windowsisms exposed in 
the win32 graph unit, because they're not portable. It also still 
doesn't have an equivalent to the winmouse unit, but I'm planning to 
make a similar ptcmouse unit sometime soon :)

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: Re: [fpc-pascal] fpc graph

2011-05-03 Thread Leonardo M . Ramé
Hi John, if you use Lazarus, you can try the component TAChart, it's awesome.
For more info, please check this out: http://wiki.lazarus.freepascal.org/TAChart
P.S.: The wiki currently is not working, but usually it works. So, if you get 
an error message, please try again in a couple of ours.

Leonardo M. Ramé

http://leonardorame.blogspot.com

--- On Mon, 5/2/11, johnelee1...@googlemail.com johnelee1...@googlemail.com 
wrote:

From: johnelee1...@googlemail.com johnelee1...@googlemail.com
Subject: Re: Re: [fpc-pascal] fpc graph
To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org
Date: Monday, May 2, 2011, 10:03 AM

thanks - what are the features of  ptcgraph vs graph? - I just want simple line 
graphs in win eg of data from a file, so was guessing that graph, from its 
name, was the 'best' option. J  
 

On , Nikolay Nikolov nick...@users.sourceforge.net wrote:
 On 05/02/2011 02:58 PM, John Lee wrote:
 
 
 Been trying to use the windows graph from 2.4 release svn, running on 
 standard xp sp3 laptop, with 1024*768 resolution screen setting, 96dpi, intel 
 mobile express 965 chipset according to control panel.
 
 
 
 
 Note that you can also try unit ptcgraph (and ptccrt) and see if it works 
 better for you.
 
 ___
 
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 

-Inline Attachment Follows-

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal