- Mar 07, 2025
-
-
Petter Reinholdtsen authored
Both POSIX, the Linux documentation and UNIX Network Programming volume 1 by Stephens state that NULL is accepted. This avoid the following compiler message: ../../examples/player_example.c: In function ‘main’: ../../examples/player_example.c:839:22: warning: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4 [-Werror=restrict] 839 | n=select(n,&empty,&writefs,&empty,&timeout); | ^~~~~~ ~~~~~~ ../../examples/player_example.c:843:18: warning: passing argument 2 to ‘restrict’-qualified parameter aliases with argument 4 [-Werror=restrict] 843 | select(n,&empty,&writefs,&empty,NULL); | ^~~~~~ ~~~~~~
-
- Feb 25, 2020
-
-
Ralph Giles authored
Conform to local style, use shorter variable names, and add some comments so the intent of the flow is more clear. Also propagate the check to the transcoder example which duplicates the same code.
-
Abort on error from `vorbis_analysis_headerout`. Signed-off-by:
Ralph Giles <giles@thaumas.net>
-
- Nov 28, 2016
-
-
Ralph Giles authored
Global pointers are initialized to zero in C, but not in C++. Add an explicit initializer to reduce confusion and avoid bugs when the example code is copied into C++ applications. Based on a patch by Alex Houghton <houghton1411@aol.com>.
-
- Jul 23, 2014
-
-
Ralph Giles authored
Patch by valtri. https://trac.xiph.org/ticket/2032 svn path=/trunk/theora/; revision=19181
-
- Jun 10, 2014
-
-
Monty authored
Correct Cb plane bug in conversion from RGB->YCbCr; the upper-right pixel was ignored by mistake and the upper-left pixel used twice. svn path=/trunk/theora/; revision=19154
-
- Feb 17, 2014
-
-
Tristan Matthews authored
svn path=/trunk/theora/; revision=19094
-
- Feb 11, 2014
-
-
Tristan Matthews authored
svn path=/trunk/theora/; revision=19088
-
Tristan Matthews authored
svn path=/trunk/theora/; revision=19087
-
Tristan Matthews authored
svn path=/trunk/theora/; revision=19086
-
- Mar 02, 2012
-
-
Timothy B. Terriberry authored
This allows it to be used from dump_video without having to disable striped decoding there. svn path=/trunk/theora/; revision=18218
-
- May 20, 2011
-
-
Timothy B. Terriberry authored
svn path=/trunk/theora/; revision=17995
-
Timothy B. Terriberry authored
It wrongly claimed the returned buffer was owned by libtheora, when in reality libtheora was creating a temporary buffer and not storing the pointer to the returned packet anywhere. Since there's no encoder parameter passed to this function, it doesn't even have a place to store it. This situation is sub-optimal, but can be solved by migrating to the 1.0 API, which does require an encoder instance to encode a comment, and thus does not have this problem. Fixes #726. svn path=/trunk/theora/; revision=17994
-
Timothy B. Terriberry authored
It's the only example that needs it. Patch by 0brad0. Fixes #1587. svn path=/trunk/theora/; revision=17993
-
- Feb 20, 2011
-
-
Ralph Giles authored
The final argument to TIFFReadRGBAImage is 'stopOnError'. That is, if it's not true then the function will return success even if loading the actual image data failed. As such, copying the example code out of the documentation wasn't really what we wanted. svn path=/trunk/theora/; revision=17856
-
- Feb 15, 2011
-
-
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
-
Ralph Giles authored
svn path=/trunk/theora/; revision=17843
-
- Feb 09, 2011
-
-
Ralph Giles authored
This is helpful for casual benchmarking and performance comparision. We use the very portable time.h clock() call and the beginning and end of the main function and calculate the average rate in millions of pixels per second and fraction of realtime. Unfortunately clock() isn't accurate enough to be useful for per-frame statistics. svn path=/trunk/theora/; revision=17820
-
- Dec 16, 2010
-
-
Ralph Giles authored
This example program allocates a minimal encoder context so it can query settings through th_encode_ctl(). As of r17760 setting the framerate to a non-zero/zero value is required. svn path=/trunk/theora/; revision=17761
-
Ralph Giles authored
The specification says that the frame rate numerator and denominator MUST both be greater than zero. This wasn't checked as part of the structure validation code, and in fact passing a zero value here caused a segfault. The code now checks for this in oc_state_init() and returns TH_EINVAL, which is causes th_encode_alloc() and oc_decode_alloc() to return NULL. A check for that NULL return is also added to encoder_example.c to show that it may fail when an invalid th_info parameter is passed. svn path=/trunk/theora/; revision=17760
-
- Dec 09, 2010
-
-
Ralph Giles authored
I'd found these helpful for script debugging, but really it's better for scripts to print their own version of this information. The -q option should really mean no non-error output. svn path=/trunk/theora/; revision=17744
-
- Dec 02, 2010
-
-
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
-
Ralph Giles authored
svn path=/trunk/theora/; revision=17708
-
Ralph Giles authored
svn path=/trunk/theora/; revision=17707
-
- Nov 25, 2010
-
-
Ralph Giles authored
This makes it a little nice to call from a batch job with parallel executation. The messages indentifying the input file parameters and error messages are still printed. svn path=/trunk/theora/; revision=17660
-
- Nov 18, 2010
-
-
Ralph Giles authored
Thanks to Basil Gohar for pointing this out. svn path=/trunk/theora/; revision=17632
-
- Oct 08, 2010
-
-
Ralph Giles authored
svn path=/trunk/theora/; revision=17495
-
Ralph Giles authored
svn path=/trunk/theora/; revision=17494
-
- Sep 23, 2010
-
-
Ralph Giles authored
This will be the basis of the 1.2.x releases. svn path=/trunk/theora/; revision=17445
-