[Mplayer-users] Divx4Linux confusion
Christoph H. Lampert
gruel at gmx.de
Sat Jul 21 16:35:54 CEST 2001
Am Samstag, 21. Juli 2001 16:05 schrieben Sie:
> Hi,
>
> > Hi A'rpi and Sparky,
> >
> > I'm utterly confused.
>
> read it again. there is a note, saying that if pointers are NULL, then
> they will be allocated by the codec lib.
I'm even more confused... where is that note? My API is
25399 07-18-01 15:00 DivX 4.0 (Beta) API Documentation.txt
dated
>Version 4.0 (Beta) (Document Revision 1.0)
>Released on 2001-07-18
and I really can't find anything like that (although it seems to work, now
the decoder crashes later than before).
The paragraph in API reads:
>6.1. Initialization
>Before initializing decore(), the application should allocate the data
>structures. To do this, the application will call decore() setting
>DEC_OPT_MEMORY_REQS as dec_opt. When DEC_OPT_MEMORY_REQS is set, the calling
>thread needs to provide the input parameter (param1) pointing to a DEC_PARAM
>data structure and the output parameter (param2) pointing to a DEC_MEM_REQS
>structure. The two data structures mentioned are defined below.
>[...]
>The application must provide a meaningful param1 containing the correct
>dimension of the frames. Decore will give back the application information
>on the buffers. Data structure size is needed throughout param2.
>At this point the application should allocate the required memory and then
>initialize decore. The memory that decore will use is described in the
>DEC_BUFFERS structure, defined as:
>[...]
>The decore initialization process starts when DEC_OPT_INIT is set at
>dec_opt. The decore will initialize a new instance associated with handle.
>When DEC_OPT_INIT is set, the calling thread needs to provide param1
>pointers to a valid DEC_PARAM data structure. In this case, param2 has no
>meaning and should be set to NULL.
>
>Decore returns DEC_OK if the process is correct. Decore returns DEC_MEMORY
>if there is memory allocation error.
The example at the end uses MEMORY_REQS as well.
There is also the already known "isKeyFrame" instead of "is_key_frame" error
in this document. Maybe the ZIP I downloaded contains an outdated version?
gruel
_______________________________________________
Mplayer-users mailing list
Mplayer-users at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-users
More information about the MPlayer-users
mailing list