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

Nicolas Bertrand nicoinattendu at gmail.com
Wed Jul 17 13:55:01 CEST 2013


Le 17/07/2013 12:57, Jean-Baptiste Kempf a écrit :
> On 12 Jul, Nicolas Bertrand wrote :
>> +dnl  DCP plugin (using asdcplib)
>> +dnl
>> +AC_ARG_ENABLE(dcp,
>> +  AS_HELP_STRING([--enable-dcp],[Digital Cinema Package support using asdcplib (default auto)]))
>> +have_asdcp="no"
>> +AS_IF([test "${enable_dcp}" != "no"], [
>> +  AC_LANG_PUSH(C++)
>> +  AC_CHECK_HEADERS( [[AS@&t at _DCP.h]],
>> +    [have_asdcp="yes"],
>> +    [AS_IF( [test "${enable_dcp}" = "yes"],
>> +      [AC_MSG_ERROR( [ ASDCP library cannot be found (needed for dcp module). Either use --enable-dcp=no or install asdcp library: http://www-dev.pub.cinecert.com/asdcplib/download/ ] )])
>> +     ])
>> +  AC_LANG_POP(C++)
>> +])
>> +AM_CONDITIONAL(HAVE_ASDCP, [test "${have_asdcp}" != "no"])
>
> No .pc file, I guess?
No .pc file

>
>> @@ -0,0 +1,1174 @@
>> +/*****************************************************************************
>> + * Copyright (C) 2012-2013 VLC authors and VideoLAN
>> + *
>> + * Authors:
>> + *          Claire Etienne
>> + *          Aurélie Sbinné
>> + *          Pierre Villard <pierre dot villard dot fr at gmail dot com>
>> + *          Samuel Kerjose
>> + *          Julien Puyobro
>> + *          Simona-Marinela Prodea <simona dot marinela dot prodea at gmail dot com>
>
> And you?
Not yet

>
>> +#include <stdlib.h>
>> +#include <iostream>
>> +#include <string>
>> +#include <dirent.h> /* for managing the directory */
>> +
>> +/* VLC core API headers */
>> +#include <vlc_common.h>
>> +#include <vlc_input.h>
>> +#include <vlc_demux.h>
>> +#include <vlc_plugin.h>
>> +#include <vlc_xml.h>
>> +#include <vlc_url.h>
>> +#include <vlc_stream.h>
>
> Do you need all those headers?
I'll check

>
>> +    set_description( N_( "DCP access-demux module" ) )
>
> "Digital Cinema Package"?
>
yes


>> +int dcpInit ( demux_t *p_demux );
>> +int parserXML ( demux_t * p_demux );
>> +int assetmapPath( demux_t * p_demux );
>> +int parserAssetmapXML ( demux_t * p_demux );
>> +int parserCplXML ( demux_t * p_demux );
>> +bool endsWith( const char * str, const char * suffix );
>> +int initXMLParser( demux_t *p_demux, char * filePath, stream_t **p_stream, xml_t **p_xml, xml_reader_t **p_xmlReader );
>> +void fillVideoFmt( video_format_t * fmt, unsigned int width, unsigned int height, unsigned int frame_rate_num, unsigned int frame_rate_denom );
>> +void freeMemXML( xml_reader_t *p_xml_reader, xml_t *p_xml, stream_t *p_stream );
>> +void freeMem( demux_t *p_demux );
>
> Do you really need all those declared now?
you are right
I'll change it.

>
>> +            fcc = VLC_FOURCC( 'J', 'P', '2', 'K' );
> VLC_CODEC_JPEG2000
>
>> +            fcc = VLC_FOURCC( 'J', 'P', '2', 'K' );
> idem
>
>> +            fcc = VLC_FOURCC( 'm', 'p', 'g', 'v' );
> VLC_CODEC_MPGV
>
> Best regards,
>




More information about the vlc-devel mailing list