Skip to content
Snippets Groups Projects
  1. Mar 07, 2025
    • Petter Reinholdtsen's avatar
      Rewrote dump_video example to prefer clock_gettime() over ftime() · 794bf8c6
      Petter Reinholdtsen authored
      The ftime method has been removed from POSIX and is depricated on Linux.
      clock_gettime() work better on Linux, but is not available on Windows,
      so fall back to ftime() if autotools/scons fail to detect clock_gettime().
      
      Based on proposal in
      opusfile!9.
      
      Fixes the following compiler messages:
      
      ../../examples/dump_video.c: In function ‘main’:
      ../../examples/dump_video.c:490:5: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Werror=deprecated-declarations]
        490 |     ftime(&start);
            |     ^~~~~
      In file included from ../../examples/dump_video.c:40:
      /usr/include/x86_64-linux-gnu/sys/timeb.h:29:12: note: declared here
         29 | extern int ftime (struct timeb *__timebuf)
            |            ^~~~~
      ../../examples/dump_video.c:491:5: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Werror=deprecated-declarations]
        491 |     ftime(&last);
            |     ^~~~~
      /usr/include/x86_64-linux-gnu/sys/timeb.h:29:12: note: declared here
         29 | extern int ftime (struct timeb *__timebuf)
            |            ^~~~~
      ../../examples/dump_video.c:505:13: warning: ‘ftime’ is deprecated: Use gettimeofday or clock_gettime instead [-Werror=deprecated-declarations]
        505 |             ftime(&after);
            |             ^~~~~
      /usr/include/x86_64-linux-gnu/sys/timeb.h:29:12: note: declared here
         29 | extern int ftime (struct timeb *__timebuf)
            |            ^~~~~
      794bf8c6
  2. Jun 18, 2020
  3. Feb 15, 2011
    • Ralph Giles's avatar
      Add a tiff2theora example. · 468ef6fc
      Ralph Giles authored
      This is a modified version of png2theora, using libtiff
      instead of libpng to read a sequence of tiff image files
      and convert them to an Ogg Theora video.
      
      Originally added because the Sintel film project was
      giving us tiff frames and waiting for conversion to
      png before encoding was tedious. In fact, it nearly
      took longer than creating this program.
      
      svn path=/trunk/theora/; revision=17844
      468ef6fc
  4. Dec 13, 2010
  5. Dec 02, 2010
    • Ralph Giles's avatar
      Add a new libtheora_info example program. · 72d688a2
      Ralph Giles authored
      This program shows how to query a few version-dependent library
      paramenters, such as the vendor string and maximum speed level,
      and prints a summary to stdout in 'header: value' format.
      
      I mostly wanted this as a utility to get the maximum speed level
      for benchmark scripts, but thought it structuring it as an example
      was better than stuffing it in tools.
      
      It would be reasonable to extend this to return decoder parameters
      like the maximum preprocessing level.
      
      svn path=/trunk/theora/; revision=17709
      72d688a2
  6. Nov 30, 2010
  7. Sep 23, 2010
Loading