ffmpeg/libavutil
Martin Storsjö 1bd0bdcdc2 lavu: Add av_gettime_relative
Since av_gettime() is used in a number of places where actual
real time clock is required, the monotonic clock introduced in
ebef9f5a5 would have consequences that are hard to handle. Instead
split it into a separate function that can be used in the cases
where only relative time is desired.

On platform where no monotonic clock is available, the difference
between the two av_gettime functions is not clear, and one could
mistakenly use the relative clock where an absolute one is
required. Therefore add an offset, to make it evident that the
time returned from av_gettime_relative never is actual current
real time, even though it is based on av_gettime.

Based on a patch by Olivier Langlois.

Signed-off-by: Martin Storsjö <martin@martin.st>
2014-10-24 09:53:41 +03:00
..
aarch64
arm
avr32
bfin
mips
ppc ppc: Support little endian intreadwrite 2014-09-03 02:38:03 +02:00
sh4
tomi
x86 x86inc: Make INIT_CPUFLAGS support an arbitrary number of cpuflags 2014-09-09 02:00:25 -07:00
adler32.c
adler32.h
aes.c
aes.h
atomic_gcc.h
atomic_suncc.h
atomic_win32.h atomic_win32: Drop unnecessary atomic.h #include 2014-08-15 09:52:57 +02:00
atomic.c
atomic.h
attributes.h
audio_fifo.c
audio_fifo.h
audioconvert.h
avassert.h
avstring.c
avstring.h
avutil.h
base64.c
base64.h
blowfish.c
blowfish.h
bswap.h
buffer_internal.h
buffer.c
buffer.h
channel_layout.c
channel_layout.h
colorspace.h
common.h
cpu_internal.h
cpu.c cpu-test: Add unistd.h #include for getopt() 2014-08-13 12:37:25 -07:00
cpu.h
crc.c
crc.h
des.c
des.h
dict.c
dict.h
display.c
display.h
downmix_info.c
downmix_info.h
error.c
error.h
eval.c cosmetics: Write NULL pointer equality checks more compactly 2014-08-15 03:18:18 -07:00
eval.h
fifo.c
fifo.h
file_open.c
file.c
file.h
float_dsp.c
float_dsp.h
frame.c frame: Remove some FF_API_AVFRAME_COLORSPACE leftovers 2014-08-14 00:44:47 -07:00
frame.h
hmac.c
hmac.h
imgutils.c
imgutils.h
internal.h cosmetics: Write NULL pointer equality checks more compactly 2014-08-15 03:18:18 -07:00
intfloat.h
intmath.c
intmath.h
intreadwrite.h
lfg.c
lfg.h
libavutil.v
libm.h
lls.c
lls.h
log2_tab.c
log.c log: Unbreak no-tty support on 256color terminals 2014-09-26 20:56:16 +02:00
log.h
lzo.c
lzo.h
macros.h
Makefile
mathematics.c
mathematics.h
md5.c
md5.h
mem.c mem: add av_strndup() for duplicating substrings 2014-08-13 17:24:18 +00:00
mem.h mem: add av_strndup() for duplicating substrings 2014-08-13 17:24:18 +00:00
old_pix_fmts.h
opt.c cosmetics: Write NULL pointer inequality checks more compactly 2014-08-15 05:34:13 -07:00
opt.h
parseutils.c
parseutils.h
pixdesc.c pixdesc: return color properties names 2014-10-08 18:17:49 +01:00
pixdesc.h pixdesc: return color properties names 2014-10-08 18:17:49 +01:00
pixfmt.h pixfmt: mark further reserved values 2014-10-08 18:17:49 +01:00
random_seed.c
random_seed.h
rational.c
rational.h
rc4.c
rc4.h
replaygain.h
samplefmt.c
samplefmt.h
sha.c
sha.h
stereo3d.c
stereo3d.h
time.c lavu: Add av_gettime_relative 2014-10-24 09:53:41 +03:00
time.h lavu: Add av_gettime_relative 2014-10-24 09:53:41 +03:00
timer.h
tree.c
tree.h
utils.c
version.h lavu: Add av_gettime_relative 2014-10-24 09:53:41 +03:00
xtea.c
xtea.h