[XviD-devel] Fw: Fw: libxvidcore decompression

reno reballos rreballos at yahoo.com
Sat Apr 26 12:13:41 CEST 2008



Hi Stephan,

thank you for the constructive criticism, i was able then to realized... now  i was able to decode the  file that i am going to decode .... and i am also finish with the encoding process.. and now the  next  is to combine them the encoding and decoding so that encoding and decoding will work in almost real time..

based on what i have tried, what i did is:

1. initialize once the encoding and decoding routine.
2. call the encoding main function to encode raw video
3. decode the encoded frames...

my question is, how will i know that the encoded frames is ready for decoding? in real time...

thank you,
reno



----- Original Message ----
From: Stephan Assmus <superstippi at gmx.de>
To: xvid-devel at xvid.org
Sent: Thursday, April 24, 2008 9:09:38 PM
Subject: Re: [XviD-devel] Fw:  Fw:  libxvidcore decompression


reno reballos wrote:
> isn't that i have to call XVID_GBL_INIT, XVID_DEC_CREATE and 
> XVID_DEC_DECODE every time i decode or i have to call XVID_GBL_INIT, 
> XVID_DEC_CREATE once and  XVID_DEC_DECODE whenever i have frame to decode 
> and XVID_DEC_DESTROY when i do finish the decode, right now in my 
> application i call XVID_GBL_INIT, XVID_DEC_CREATE and XVID_DEC_DECODE 
> whenever i decode a frame..

It definitely sounds like that would be the possible cause of your problem. 
You only init/dec create once. Then you need to remember the 
pointers/structures that are returned/initialized by that, and use those 
for XVID_DEC_DECODE. To know when a frame has been successfully decoded, 
you need to check for the "type" field of the xvid_dec_stats_t structure 
each time after you called decode. It has to be > XVID_TYPE_NOTHING, then 
you can display a finished frame.

Best regards,
-Stephan
_______________________________________________
XviD-devel mailing list
XviD-devel at xvid.org
http://list.xvid.org/mailman/listinfo/xvid-devel



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the XviD-devel mailing list