[Ffmpeg-devel] [PATCH] rewrite vhook/drawtext.c

Gustavo Sverzut Barbieri barbieri
Mon Sep 4 23:36:41 CEST 2006


On 9/4/06, V?ctor Paesa <wzrlpy at arsystel.com> wrote:
> Hi,
>
> >> >  #define MAXSIZE_TEXT 1024
> >> > +#define _XOPEN_SOURCE 600
> >>
> >> What is that define needed for ?
> >
> > posix_fadvise() and possible others defined on later posix standard
> > (not c90/99).
>
> Cygwin does not implement it, probably because as
> http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html
> says:
>
> "The posix_fadvise() function is part of the Advisory Information option
>  and need not be provided on all implementations."
>
> Would it be possible to add some section in configure to check for existance
> of posix_fadvise(), and provide a do_nothing() function if it is not
> implemented?

Yes, it's possible, I'll check how to do that... but maybe I'll leave
this out, since it's not that performance critical... and since the
file size is < 1024 bytes (that is, really small) and probably will
not change, it probably will stay in cache.

Maybe:
#ifdef posix_fadvise
... call posix_fadivse()
#endif
is enough?

I just re-read the file since my use case is a security camera and
thus I record in real time... I can opt to insert some mark at some
point in time.


-- 
Gustavo Sverzut Barbieri
--------------------------------------
Jabber: barbieri at gmail.com
   MSN: barbieri at gmail.com
  ICQ#: 17249123
 Skype: gsbarbieri
Mobile: +55 (81) 9927 0010
 Phone:  +1 (347) 624 6296; 08122692 at sip.stanaphone.com
   GPG: 0xB640E1A2 @ wwwkeys.pgp.net




More information about the ffmpeg-devel mailing list