annotate osdep/gettimeofday.c @ 23510:a6c619ee9d30

Teletext support for tv:// (v4l and v4l2 only) modified patch from Otvos Attila oattila at chello dot hu Module uses zvbi library for all low-level VBI operations (like I/O with vbi device, converting vbi pages into usefull vbi_page stuctures, rendering them into RGB32 images). All teletext related stuff (except properties, slave commands and rendering osd in text mode or RGB32 rendered teletext pages in spu mode) is implemented in tvi_vbi.c New properties: teletext_page - switching between pages teletext_mode - switch between on/off/opaque/transparent modes teletext_format - (currently read-only) allows to get format info (black/white,gray,text) teletext_half_page - trivial zooming (displaying top/bottom half of teletext page) New slave commands: teletext_add_dec - user interface for jumping to any page by editing page number interactively teletext_go_link - goes though links, specified on current page
author voroshil
date Sun, 10 Jun 2007 00:06:12 +0000
parents 936209c39ed1
children 5cfef41a1771
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16985
08cac43f1e38 Unify include paths, -I.. is in CFLAGS.
diego
parents: 9834
diff changeset
1 #include "config.h"
9829
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
2
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
3 #include <sys/time.h>
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
4 #include <sys/timeb.h>
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
5 void gettimeofday(struct timeval* t,void* timezone)
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
6 { struct timeb timebuffer;
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
7 ftime( &timebuffer );
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
8 t->tv_sec=timebuffer.time;
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
9 t->tv_usec=1000*timebuffer.millitm;
0f2cc9ef24f6 gettimeofday() emulation using ftime()
faust3
parents:
diff changeset
10 }