Re: [fpc-pascal] How to play H264 mp4 video using free pascal?

2014-07-23 Thread Graeme Geldenhuys
On 2014-07-22 12:19, Dennis Poon wrote: what library (e.g. ffmpeg) should I call? Michael van Canneyt did some work for us where we implemented libVLC support (playing videos and sounds using the VLC backend). The code was added to the Free Pascal project as far as I know. The GUI front-end code

Re: [fpc-pascal] How to play H264 mp4 video using free pascal?

2014-07-23 Thread Dennis Poon
Graeme Geldenhuys wrote: On 2014-07-22 12:19, Dennis Poon wrote: what library (e.g. ffmpeg) should I call? Michael van Canneyt did some work for us where we implemented libVLC support (playing videos and sounds using the VLC backend). The code was added to the Free Pascal project as far as I

Re: [fpc-pascal] How to play H264 mp4 video using free pascal?

2014-07-23 Thread Dennis Poon
Fabio Luis Girardi wrote: Start omxplayer with tprocess and use pipes to do this Em 22/07/2014 08:30, Dennis Poon den...@avidsoft.com.hk mailto:den...@avidsoft.com.hk escreveu: what library (e.g. ffmpeg) should I call? any example e.g. of it? Actually, the target platform is

Re: [fpc-pascal] How to play H264 mp4 video using free pascal?

2014-07-23 Thread Fabio Luis Girardi
omxplayer uses a direct video output (it don't create a X window), so, your program still have focus. See the command line options for more information... 2014-07-23 5:59 GMT-03:00 Dennis Poon den...@avidsoft.com.hk: Fabio Luis Girardi wrote: Start omxplayer with tprocess and use pipes to

[fpc-pascal] optimization of inline open array constants

2014-07-23 Thread Dmitry Boyarintsev
Hello, Here's the code: procedure dump(const a: array of string); var i : integer; begin for i:=0 to length(a)-1 do writeln(a[i]); end; const fast : array [0..2] of string = ('aa','bb','cc'); begin dump(['a','b','c']); dump(fast); end. The first call to dump(), where the array

Re: [fpc-pascal] optimization of inline open array constants

2014-07-23 Thread Jonas Maebe
On 23/07/14 18:09, Dmitry Boyarintsev wrote: Question: would it be reasonable for the compiler to turn an inline declaration of ['a','b','c'], into a constant implicitly? There's already a feature request for it: http://bugs.freepascal.org/view.php?id=23565 Jonas

Re: [fpc-pascal] optimization of inline open array constants

2014-07-23 Thread Dmitry Boyarintsev
Thank you! That answers all my questions On Wed, Jul 23, 2014 at 12:26 PM, Jonas Maebe jonas.ma...@elis.ugent.be wrote: On 23/07/14 18:09, Dmitry Boyarintsev wrote: Question: would it be reasonable for the compiler to turn an inline declaration of ['a','b','c'], into a constant implicitly?

Re: [fpc-pascal] JS: \u00C1 = Á; Pascal: $00C1 = ?

2014-07-23 Thread Dmitry Boyarintsev
I'd think that show requires a definition here. For example in LCL application ShowMessage( utf8encode( WideString(#$00c1))); shows Á. In most unix consoles Writeln( WideString(#$00c1)); would output the same character as well. thanks, Dmitry On Wed, Jul 23, 2014 at 8:12 PM, silvioprog

Re: [fpc-pascal] JS: \u00C1 = Á; Pascal: $00C1 = ?

2014-07-23 Thread José Mejuto
El 24/07/2014 2:12, silvioprog escribió: In JavaScript, if I code: alert('\u00C1'); It shows: Á Is \u00C1 of JS same to $00C1 in Pascal? Hello, \u means Unicode char, so \u00c1 = #$00C1 (widestring) -- ___ fpc-pascal maillist -

Re: [fpc-pascal] JS: \u00C1 = Á; Pascal: $00C1 = ?

2014-07-23 Thread silvioprog
On Wed, Jul 23, 2014 at 9:49 PM, Dmitry Boyarintsev skalogryz.li...@gmail.com wrote: I'd think that show requires a definition here. For example in LCL application ShowMessage( utf8encode( WideString(#$00c1))); shows Á. In most unix consoles Writeln( WideString(#$00c1)); would output

Re: [fpc-pascal] JS: \u00C1 = Á; Pascal: $00C1 = ?

2014-07-23 Thread silvioprog
On Wed, Jul 23, 2014 at 10:57 PM, silvioprog silviop...@gmail.com wrote: [...] Just a comment... I found the HTML entities in PHP source code: HTML basic (6 chars): https://github.com/php/php-src/blob/master/ext/standard/html_tables/ents_basic.txt ; HTML 4.01 (253 chars):