search for: theora_decode_packetin

Displaying 12 results from an estimated 12 matches for "theora_decode_packetin".

2007 May 25
2
Cleaning app
Hello all, When I'm doing something like: yuv_buffer yuv; theora_decode_YUVout(&td,&yuv); I'm guessing a bunch of stuff gets newed/malloced for yuv.y, yuv.u, and yuv.u. Who is responsible for deleting/freeing that stuff? Cheers, Kos.
2007 Jun 17
1
Please help : Trying to fool Theora into doing what I want
...working mostly (I'll explain the process in a bit), but when the app is running I get block artifacts, which look like small square bits of the image have been moved to the wrong place. The process I use for 3 and 4 is: To get the key frame: 1) Put the packet I saved into theora using theora_decode_packetin 2) Grab the decoded packet using theora_decode_YUVout 3) Read the YUV data into my own buffer To force the saved keyframe data back into theora: 1) call theora_decode_YUVout in order to get a YUV structure with its data members pointing somewhere usesful 2) copy the data I saved in (3) abov...
2009 May 12
2
compile error of libtheora example
...' player_example.c:(.text+0x176b): undefined reference to `ogg_stream_packetout' player_example.c:(.text+0x17b4): undefined reference to `theora_control' player_example.c:(.text+0x17f7): undefined reference to `theora_control' player_example.c:(.text+0x180d): undefined reference to `theora_decode_packetin' player_example.c:(.text+0x184a): undefined reference to `theora_granule_time' player_example.c:(.text+0x1930): undefined reference to `ogg_sync_pageout' player_example.c:(.text+0x1d30): undefined reference to `SDL_Quit' player_example.c:(.text+0x1d45): undefined reference to `ogg_s...
2007 Apr 12
1
Seek problem 2 - reinitialization of the decoder
...after the first initialization: while (ogg_sync_pageout(&sync, &page)) queuePage(); while (isPlaying) { const int result = ogg_stream_packetout(&tstream, &packet); if (result == 0) { // Not enough data... load some more pages! bufferData(); } else if (result > 0) { theora_decode_packetin(&decoder, &packet); int videoBufferTime = theora_granule_time(&decoder, decoder.granulepos); int frameNo = theora_granule_frame(&decoder, decoder.granulepos); if (theora_packet_iskeyframe(&packet) == 1) { ... The problem is that the time and framenumber are...
2005 Feb 09
1
Trying to do windows encoding dll
...frame_auto_threshold=80; ti.keyframe_mindistance=8; ti.noise_sensitivity=1; theora_decode_init(&dec_state,&ti); theora_info_clear(&ti); } __declspec (dllexport) void decode(signed char *yuvframe, ogg_page *op) { ogg_packet ipacket; ogg_stream_pagein(&dec_stream, op); theora_decode_packetin(&dec_state,&ipacket); theora_decode_YUVout(&dec_state, yuvframe); } __declspec (dllexport) void stopdec() { theora_clear(&dec_state); ogg_stream_clear(&dec_stream); } BOOL APIENTRY DllMain (HINSTANCE hInst /* Library instance handle. */ , DWOR...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...::decode_frame () { ogg_int64_t videobuf_granulepos = -1; double videobuf_time = 0; for (bool videobuf_ready = false; ! videobuf_ready; ) { if (ogg_stream_packetout (&theoraStreamState, &oggPacket) > 0) { theora_decode_packetin (&theoraState, &oggPacket); videobuf_granulepos = theoraState.granulepos; videobuf_time = theora_granule_time (&theoraState, videobuf_granulepos); videobuf_ready = true; } if (! videobuf_ready && videoStre...
2005 Nov 11
0
[PATCH] icecast video preview 2
...fig()->video_preview == 1 ) { + config_release_config(); + + if (theora -> frame_count == -1) { + fflush(stdout); + theora_decode_init (&theora->td, &theora-> ti); + } + + if ((theora -> frame_count % PREVIEW_KEYFRAME_INTERVAL )== 0) { + fflush(stdout); + theora_decode_packetin (&theora->td, &packet); + theora_decode_YUVout (&theora->td, &theora -> yuv); + write_video_preview (&theora -> yuv, theora -> video_preview); + theora -> frame_count = 0; + } + + fflush(stdout); + theora -> frame_count++; + + } +#endif +...
2005 Nov 11
2
[PATCH] icecast video preview 2
Updated version of video preview covering frame writing every 3 keyframe and a xsl typo. Best regards :) kysucix -- Make things as simple as possible, but no simpler. - Albert Einstein
2005 Nov 11
1
[PATCH] icecast video preview
Hi. Here it is my patch to put a video preview of a theora stream in status.xsl. I just added a: <video-preview>1</video-preview> parameters in icecast.xml.in that control the previewing function. It encodes a png in $webroot/$mountname.tmp and then move it to $webroot/$mountname.png As for now it saves a frame every theora keyframe, which is probably too heavy for the server but
2012 Oct 10
5
Theora integration question
Hello, I am programmer working on a product which integrates Theora. I have a question regarding the memory use on some of the internals of Theora. Is this the right forum for this question, and if not, does anyone know where an appropriate place to ask is? Thanks Sam -------------- next part -------------- An HTML attachment was scrubbed... URL:
2005 Aug 17
2
MMX loop filter for theora-exp
...t state) with a unit mask of 0x00 (No unit mask) count 400000 Counted DATA_CACHE_MISSES events (Data cache misses) with a unit mask of 0x00 (No unit mask) count 2000 samples % samples % image name symbol name 163107 23.5109 120026 22.8927 dump theora_decode_packetin 118986 17.1511 160269 30.5682 libc-2.3.2.so (no symbols) 72543 10.4566 12407 2.3664 libogg.so.0.5.2 (no symbols) 56169 8.0964 46845 8.9348 dump oc_state_loop_filter_frag_rows_mmx 42864 6.1786 50895 9.7072 dump...
2005 Jul 20
1
MMX IDCT for theora-exp
...t state) with a unit mask of 0x00 (No unit mask) count 400000 Counted DATA_CACHE_MISSES events (Data cache misses) with a unit mask of 0x00 (No unit mask) count 2000 samples % samples % image name symbol name 124337 22.0173 91089 23.4683 dump theora_decode_packetin 83446 14.7764 114246 29.4345 libc-2.3.2.so (no symbols) 74011 13.1057 33746 8.6944 dump oc_state_loop_filter_frag_rows 57706 10.2185 9204 2.3713 libogg.so.0.5.2 (no symbols) 39182 6.9383 10146 2.6140 dump...