/***************************************************************************
    copyright            : (C) 2007 by mean
    email                : fixounet@free.fr
    
      
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#include "ADM_default.h"
#include "ADM_muxerInternal.h"
#include "fourcc.h"
#include "muxerMp4v2.h"
#include "mp4v2_muxer.h"
#include "DIA_factory.h"
extern mp4v2_muxer muxerConfig;
/**
    \fn mp4v2Configure
*/
bool mp4v2Configure(void)
{
        bool optimize=muxerConfig.optimize;
        bool addItuneMetaData=muxerConfig.add_itunes_metadata;
        
        diaElemToggle   wOptimize(&optimize,QT_TRANSLATE_NOOP("mp4v2muxer","Optimize for streaming (SLOW)"));
        diaElemToggle   wItunes(&addItuneMetaData,QT_TRANSLATE_NOOP("mp4v2muxer","Add ipod metadata"));

        //diaElem *tabs[]={&wOptimize,&wItunes};
        diaElem *tabs[]={&wItunes,&wOptimize};
        if( diaFactoryRun(QT_TRANSLATE_NOOP("mp4v2muxer","MP4V2 Settings"),2,tabs))
        {
            muxerConfig.optimize=optimize;
            //muxerConfig.optimize=false;
            muxerConfig.add_itunes_metadata=addItuneMetaData;
            return true;
        }
        return false;
}
// EOF
