Re: Need API documentation

Jim <[email protected]>
Newsgroups gmane.comp.video.xvid.devel
Message-ID <[email protected]>
Best thing to do is look the code & examples (xvid.h & xvid_decraw.c,
etc). Ive got (very little) bit done - got distracted with doing
back-end for gcc.

beginquote >>
The key elements to decoding are;

 // provide necessary functions/constants/structs/etc
 #include "xvid.h <cid:[email protected]>"

 // initialise stuff
 xvid_global <cid:[email protected]> ( NULL, XVID_GBL_INIT <cid:[email protected]>, xvid_gbl_init_t <cid:[email protected]>, NULL );

 // initialise some more stuff
 xvid_decore <cid:[email protected]> ( NULL, XVID_DEC_CREATE <cid:[email protected]>, xvid_dec_create_t <cid:[email protected]>, NULL );

 // decode a frame (repeated to decode many frames)
 do {
   // read compressed data from stream/file
   fread ( xvid_dec_frame_t::bitstream <cid:[email protected]>, bytesperblock, numblocks, infile );
   // decode compressed frame to decompressed frame
   xvid_decore <cid:[email protected]> ( xvid_dec_create_t::handle <cid:[email protected]>, XVID_DEC_DECODE <cid:[email protected]>, xvid_dec_frame_t <cid:[email protected]>, xvid_dec_stats_t <cid:[email protected]> );
   // write decompressed data to stream/file
   fwrite ( xvid_dec_frame_t::output::plane, bytesperblock, numblocks, outfile );
 } while ( !feof ( infile ) );

 // free up resources
 xvid_decore <cid:[email protected]> ( xvid_dec_create_t::handle <cid:[email protected]>, XVID_DEC_DESTROY <cid:[email protected]>, NULL, NULL );

(click on code for info)
<< endquote

The html Doxygen creates does make code easier to hop around (if you
want ill submit what ive got, but im still playing around with it really)

Jim.

Brad O'Hearne wrote:
> Hello,
>
> I've downloaded the xvid core, but I don't seem to be able to locate  
> any spec docs or API docs. Can someone direct me to where I might find  
> these?
>
> Thanks,
>
> Brad
> _______________________________________________
> XviD-devel mailing list
> [email protected]
> http://list.xvid.org/mailman/listinfo/xvid-devel
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.