search for: th_enc_ctx

Displaying 2 results from an estimated 2 matches for "th_enc_ctx".

2009 Nov 25
2
encoding image from a webcam
...bCr buffer , convert it back to RGB24 then display it. Now the questions: I have a Codec class with a function encoderInitialize(), where I initialize the encoder, filling a th_info structure with the image's properties, fps, aspect ratio, colorspace, quality and pixel_fmt. Then I allocate a th_enc_ctx handle and repeatedly call th_encode_flushheader(). Do I have to save this header packets? Do i have to provide this header packets to the decoder when I initialize it? Because the documentation says /Parse the header packets by repeatedly calling th_decode_headerin(). Thank you,/ -- Mircea G...
2009 Dec 07
3
Theora encoder performance
...ora. As you can see there are some strange colors overs there ( looks like edge detection :-D ). Then I measured how long does it take for Theora to encode an image (/th_encode_ycbcr_in/ and / th_encode_packetout/ calls). int TIMER_t0 = GetTickCount(); int ret = th_encode_ycbcr_in( (th_enc_ctx*)m_encoderHandler, ycbcr); ogg_packet op; th_encode_packetout((th_enc_ctx*)m_encoderHandler,0,&op)>0 int TIMER_t1 = GetTickCount(); printf( "Timer : %d \n",TIMER_t1 - TIMER_t0 ); On average: *80 ms*. Using XVID I've obtained between *20-25 ms* fo...