bool configure (CONFcouple **setup) { int ret = 0; char string[400]; uint32_t mmode, ppreset; #define SZT(x) sizeof(x)/sizeof(diaMenuEntry ) #define PX(x) &(config.x) lame_encoder config=defaultConfig; if(*setup) { ADM_paramLoad(*setup,lame_encoder_param,&config); } ppreset = config.preset; diaMenuEntry encodingMode[] = { {ADM_LAME_PRESET_CBR, QT_TRANSLATE_NOOP("lame","CBR"), NULL}, {ADM_LAME_PRESET_ABR, QT_TRANSLATE_NOOP("lame","ABR"), NULL}, }; diaElemMenu Mode (&ppreset, QT_TRANSLATE_NOOP("lame","Bit_rate mode:"), SZT (encodingMode), encodingMode); #define BITRATE(x) {x,QT_TRANSLATE_NOOP("lame",#x)} diaMenuEntry bitrateM[] = { BITRATE (56),//56 BITRATE (64), BITRATE (80), BITRATE (96), BITRATE (112), BITRATE (128), BITRATE (160), BITRATE (192), BITRATE (224), BITRATE (256), BITRATE (320) }; //*** diaElemMenu bitrate (&(config.bitrate), QT_TRANSLATE_NOOP("lame","_Bitrate:"), SZT (bitrateM), bitrateM); diaElemUInteger quality (PX (quality), QT_TRANSLATE_NOOP("lame","_Quality:"), 0, 9); bool reservoir32=config.disableBitReservoir; diaElemToggle reservoir (&reservoir32, QT_TRANSLATE_NOOP("lame","_Disable reservoir:")); diaElem *elems[] = { &Mode, &bitrate,&quality, &reservoir }; if (diaFactoryRun (QT_TRANSLATE_NOOP("lame","LAME Configuration"), 4, elems)) { config.preset=(ADM_LAME_PRESET)ppreset; config.disableBitReservoir=reservoir32; if(*setup) delete *setup; *setup=NULL; ADM_paramSave(setup,lame_encoder_param,&config); defaultConfig=config; return 1; } return 0; }
bool configure(CONFcouple **setup) { uint32_t mmode,ppreset; ELEM_TYPE_FLOAT qqual; vorbis_encoder config=defaultConfig; if(*setup) { ADM_paramLoad(*setup,vorbis_encoder_param,&config); } mmode=config.mode; qqual=(ELEM_TYPE_FLOAT)config.quality; diaMenuEntry channelMode[]={ {ADM_VORBIS_VBR, QT_TRANSLATE_NOOP("vorbis","VBR"),NULL}, {ADM_VORBIS_QUALITY, QT_TRANSLATE_NOOP("vorbis","Quality based"),NULL}}; diaElemMenu menuMode(&mmode, QT_TRANSLATE_NOOP("vorbis","_Mode:"), SZT(channelMode),channelMode); diaMenuEntry bitrateM[]={ BITRATE(56), BITRATE(64), BITRATE(80), BITRATE(96), BITRATE(112), BITRATE(128), BITRATE(160), BITRATE(192), BITRATE(224) }; diaElemMenu bitrate(&(config.bitrate), QT_TRANSLATE_NOOP("vorbis","_Bitrate:"), SZT(bitrateM),bitrateM); diaElemFloat quality(&qqual,QT_TRANSLATE_NOOP("vorbis","_Quality:"),-1.,10.); diaElem *elems[]={&menuMode,&bitrate,&quality}; if( diaFactoryRun(QT_TRANSLATE_NOOP("vorbis","Vorbis Configuration"),3,elems)) { config.mode=(ADM_VORBIS_MODE)mmode; config.quality=(float)qqual; if(*setup) delete *setup; *setup=NULL; ADM_paramSave(setup,vorbis_encoder_param,&config); defaultConfig=config; return 1; } return 0; }
/** \fn setOption \brief Allow giving codec specific options as string+value */ bool setOption(CONFcouple **c, const char *paramName, uint32_t value) { lame_encoder config=defaultConfig; if(*c) { ADM_paramLoad(*c,lame_encoder_param,&config); }else { config=defaultConfig; } if(!strcasecmp(paramName,"MP3DisableReservoir")) { config.disableBitReservoir=value; ADM_paramSave(c,lame_encoder_param,&config); return 1; } ADM_error("Not supported\n"); return 0; }
/** \fn configure */ bool configure (CONFcouple **setup) { int ret=0; lav_encoder config=defaultConfig; if(*setup) { ADM_paramLoad(*setup,lav_encoder_param,&config); } diaMenuEntry bitrateM[]={ BITRATE(56), BITRATE(64), BITRATE(80), BITRATE(96), BITRATE(112), BITRATE(128), BITRATE(160), BITRATE(192), BITRATE(224), BITRATE(384), BITRATE(448) }; diaElemMenu bitrate(&(config.bitrate), QT_TRANSLATE_NOOP("lavcodec","_Bitrate:"), SZT(bitrateM),bitrateM); diaElem *elems[]={&bitrate}; if ( diaFactoryRun(QT_TRANSLATE_NOOP("lavcodec",ADM_LAV_MENU" (lav) Configuration"),1,elems)) { if(*setup) delete *setup; *setup=NULL; ADM_paramSave(setup,lav_encoder_param,&config); defaultConfig=config; return true; } return false; }
bool configure (CONFcouple **setup) { int ret=0; dcaencoder config=DCAENC_DEFAULT_CONF; if(*setup) { ADM_paramLoad(*setup,dcaencoder_param,&config); }else { config=defaultConfig; } diaMenuEntry bitrateM[]={ BITRATE(320), BITRATE(384), BITRATE(448), BITRATE(512), BITRATE(640) }; diaElemMenu bitrate(&(config.bitrate), QT_TRANSLATE_NOOP("dcaenc","_Bitrate:"), SZT(bitrateM),bitrateM); diaElem *elems[]={&bitrate}; if( diaFactoryRun(QT_TRANSLATE_NOOP("dcaenc","DcaEnc Configuration"),1,elems)) { if(*setup) delete *setup; *setup=NULL; ADM_paramSave(setup,dcaencoder_param,&config); defaultConfig=config; return true; } return false; }
/** \fn getCoupledConf */ bool changeFps::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, confChangeFps_param,&configuration); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool blackenBorders::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, blackenBorder_param,¶m); }
/** \fn getCoupledConf */ bool largeMedian::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, convolution_param,¶m); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool rotateGl::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, gl_rotate_param,¶ms); }
/** \fn getCoupledConf */ bool resampleFps::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, confResampleFps_param,&configuration); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool vdpauVideoFilterDeint::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, vdpauFilterDeint_param,&configuration); }
void getDefaultConfiguration(CONFcouple **c) { vorbis_encoder config = VORBIS_DEFAULT_CONF; ADM_paramSave(c, vorbis_encoder_param, &config); }
/** \fn getCoupledConf */ bool ADMVideoHue::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, hue_param,&_param); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool lavDeint::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, lav_param,¶m); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool removePlaneFilter::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, removePlane_param,&config); }
void getDefaultConfiguration(CONFcouple **c) { dcaencoder config = DCAENC_DEFAULT_CONF; ADM_paramSave(c, dcaencoder_param, &defaultConfig); }
/** \fn getCoupledConf */ bool Msharpen::getCoupledConf( CONFcouple **couples) { return ADM_paramSave(couples, msharpen_param,&_param); }
/** \fn getCoupledConf */ bool Decimate::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, deciMate_param,&configuration); }
/** \fn getCoupledConf */ bool AVDMFastVideoConvolution::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, convolution_param,¶m); }
/** \fn getCoupledConf \brief */ bool ADMVideoContrast::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, contrast_param,&_param); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool rotateFilter::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, rte_param,¶m); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool shaderLoader::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, shaderLoaderConf_param,¶ms); }
/** * \fn getCoupledConf * @param couples * @return setup as couples */ bool AVDM_Fade::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, fade_param,¶m); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool addBorders::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, addBorder_param,¶m); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool addLogopFilter::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, logo_param,&configuration); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool openGlResize::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, gl_resize_param,&configuration); }
void getDefaultConfiguration(CONFcouple **c) { lav_encoder config = LAV_DEFAULT_CONF; ADM_paramSave(c, lav_encoder_param, &config); }
/** \fn getCoupledConf */ bool Telecide::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, teleCide_param,&configuration); }
/** \fn getCoupledConf \brief Return our current configuration as couple name=value */ bool swScaleResizeFilter::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, swresize_param,&configuration); }
/** \fn getCoupledConf */ bool vidColorYuv::getCoupledConf(CONFcouple **couples) { return ADM_paramSave(couples, colorYuv_param,¶m); }