ivfdec: webm reader support
authorJohn Koleszar <jkoleszar@google.com>
Tue, 19 Oct 2010 21:20:17 +0000 (17:20 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Tue, 26 Oct 2010 02:01:40 +0000 (22:01 -0400)
commitad252daf65bcc989f5265b7bef7b04430cafcef4
treee57b67f0ac2f82b089a72b85bda88d8b2bea36db
parent28d191ada449130276fc10030e8ff68460a8c812
ivfdec: webm reader support

This patch enables ivfdec to decode WebM files. WebM demuxing is
provided by the Matthew Gregan's Nestegg library.

This patch also makes minor changes to the timebase->framerate
handling when doing Y4M output. For WebM files, the framerate is
guessed by looking at the first second of video. For IVF files,
the timebase=1/(2*fps) hack is still in place, but is only used
if the timebase denominator is less than 1000. This is in anticipation
of change I8d25b5b, which introduces the distinction between
framerate and timebase to ivfenc. In the case of high resolution
timebases, like 100ns, we would have to guess the framerate
like we do for WebM, but since WebM support in ivfenc will
deprecate IVF output, we just assume 30fps rather than writing the
lookahead code.

Change-Id: I1dd8600f13bf6071533d2816f005da9ede4f60a2
examples.mk
ivfdec.c
nestegg/halloc/src/halloc.c
nestegg/include/nestegg/nestegg.h
nestegg/src/nestegg.c