[XviD-devel] Fw: Fw: libxvidcore decompression

reno reballos rreballos at yahoo.com
Thu Apr 24 04:03:02 CEST 2008


Hi Master Stephan Assmus,

thank you for the very comprehensive reply... thank you for the effort you put up in replying to my email...

<I am not sure what you mean by "output stream"
---"output stream", what i mean is the output stream of this structure 
xvid_dec_frame.output.plane[0] = output_stream_buffer<---- decompression output, in here i got no value but "IIIIIIIIIIIIII", one thing that i noticed in here is that when i include the xvid_dec_stats_t structure i dont have an output.. why it's happening this?

unlike the encoder , when i execute the encoding i got an output from this structure frame.bitstream = output_stream;<----compression output, in here i got an output

i just wanna refresh my question previously,  the situation is this, i will be  compressing video stream which has the resolution of 320x240 to have an output color space of RGB 24 bits,the question is, how can i calculate out from the above details the size of the compressed video? normally if i have the above information of raw video i will have 320*240*3 size of uncompressed one frame, how about for the compressed frames how can i calculate in advance?


thank you.. looking forward to hear from you


regards,
reno

----- Original Message ----
From: Stephan Assmus <superstippi at gmx.de>
To: xvid-devel at xvid.org
Sent: Wednesday, April 23, 2008 10:08:13 PM
Subject: Re: [XviD-devel] Fw:  Fw:  libxvidcore decompression


reno reballos wrote:
> 
> Hi Master Stephan Assmus,
> 
> how can i calculate the data size of after encoding process when i am 
> encoding the resolution of 320x240 @30fps? is there any formula to 
> calculate the data size after encoding?

I am not sure what you mean by "output stream". Usually, what you want from 
xvid are uncompressed frames of video. The size of the memory needed to 
store one frame depends on the image size and the color space. Assume you 
want to display 32 bpp RGB images. Then you would calculate it like this:








      ____________________________________________________________________________________
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