[vlc-devel] [RFC] dcp.cpp: Creation of access-demux module for DCP (using asdcplib)

Simona-Marinela P. simona.marinela.prodea at gmail.com
Thu Jun 6 12:16:46 CEST 2013


Hello!
Thank you for the comments!

> +
> > +using namespace ASDCP;
> > +
> > +#define FRAME_BUFFER_SIZE 4 * 1024 * 1024
>
> This could maybe include some small mention where/why it is that amount
>

This is the amount asdcp utilities uses for frame buffer size. I just took
it as it is, even though DCI specifications are for maximum 1,302,083 bytes
per frame. Should I changed it exactly to this value or aproximate it at
about 2 MB?


> > +/* Module descriptor */
> > +vlc_module_begin()
> > +    set_shortname( N_( "DCP" ) )
> > +    add_shortcut( "dcp" )
> > +    set_description( N_( "DCP access-demux module" ) )
> > +    set_capability( "access_demux", 100 ) /* score? */
>
> setting capability to 0 means it is only used when forced (eg using
> dcp://my/directory) iirc.
>

It's 100. Anyway, I've changed to 60 to be just bigger than filesystem
module with wich it always competes in opening the directory. Please
correct me if it's not ok this way.

>
>
> > +/**
> > + * Function which parses XML files in DCP directory in order to get
> video and audio files
> > + * @param p_demux Demux pointer.
> > + * @return Integer according to the success or not of the operation
> > + */
> > +
> > + int parserXML ( demux_t * p_demux )
> > +{
>
> > +    return 1; /* TODO : perform checking on XML parsing */
>
> VLC_SUCCESS ?
>
Not yet VLC_SUCCESS. It will return VLC_SUCCESS in Open() only after audio
and video file were successfully opened with asdcplib. Or did I
misunderstood and you were suggesting to use VLC return values in all
functions? Is it compulsory, even for intermediary functions? (I mean,
other functions than Open(), Control() and Close() )

>
> Any particular reason not using vlc xml_reader ability but directly
> libxml2?
>
No particular reason, I guess. It is not my code there, but I'll ask the
students who wrote it, to be sure, and then I'll try using vlc xml_reader.

>
> > +/**
> > + * Function to check if a file name ends with a given suffix
> > + * @param str File name
> > + * @param suffix Suffix to look for
> > + * @return true if the file name ends with the given suffix, fale
> otherwise
>
> typo: fail
>
This one I didn't understand.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20130606/9b23308e/attachment.html>


More information about the vlc-devel mailing list