本文整理汇总了C++中FileXML::set_shared_output方法的典型用法代码示例。如果您正苦于以下问题:C++ FileXML::set_shared_output方法的具体用法?C++ FileXML::set_shared_output怎么用?C++ FileXML::set_shared_output使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FileXML
的用法示例。
在下文中一共展示了FileXML::set_shared_output方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: save_data
void SelTempAvgMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("SELECTIVE_TEMPORAL_AVERAGE");
output.tag.set_property("FRAMES", config.frames);
output.tag.set_property("METHOD", config.method);
output.tag.set_property("OFFSETMODE", config.offsetmode);
output.tag.set_property("PARANOID", config.paranoid);
output.tag.set_property("NOSUBTRACT", config.nosubtract);
output.tag.set_property("OFFSETMODE_RESTARTMODE_KEYFRAME", config.offset_restartmarker_keyframe);
output.tag.set_property("OFFSETMODE_FIXED_VALUE", config.offset_fixed_value);
output.tag.set_property("GAIN", config.gain);
output.tag.set_property("AVG_THRESHOLD_RY", config.avg_threshold_RY);
output.tag.set_property("AVG_THRESHOLD_GU", config.avg_threshold_GU);
output.tag.set_property("AVG_THRESHOLD_BV", config.avg_threshold_BV);
output.tag.set_property("STD_THRESHOLD_RY", config.std_threshold_RY);
output.tag.set_property("STD_THRESHOLD_GU", config.std_threshold_GU);
output.tag.set_property("STD_THRESHOLD_BV", config.std_threshold_BV);
output.tag.set_property("MASK_RY", config.mask_RY);
output.tag.set_property("MASK_GU", config.mask_GU);
output.tag.set_property("MASK_BV", config.mask_BV);
output.append_tag();
output.terminate_string();
}
示例2: save_data
void PluginAClientLAD::save_data(KeyFrame *keyframe)
{
FileXML output;
char string[BCTEXTLEN];
if( !config.port_data ) config.initialize(server);
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title(lad_to_upper(string, plugin_title()));
const LADSPA_Descriptor *lad_desc = server->lad_descriptor;
const LADSPA_PortDescriptor *port_desc = lad_desc->PortDescriptors;
//printf("PluginAClientLAD::save_data %d\n", lad_desc->PortCount);
int port_count = lad_desc->PortCount;
for(int port = 0, i = 0; i < port_count; i++) {
if( !LADSPA_IS_PORT_INPUT(port_desc[i]) ) continue;
if( !LADSPA_IS_PORT_CONTROL(port_desc[i]) ) continue;
// Convert LAD port name to default title
PluginAClientLAD::lad_to_upper(string,
(char*)lad_desc->PortNames[i]);
output.tag.set_property(string, config.port_data[port]);
//printf("PluginAClientLAD::save_data %d %f\n", port, config.port_data[port]);
++port;
}
output.append_tag();
output.terminate_string();
}
示例3: save_data
void ParametricEQ::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("PARAMETRICEQ");
output.tag.set_property("WETNESS", config.wetness);
output.tag.set_property("WINDOW_SIZE", config.window_size);
output.append_tag();
output.append_newline();
for(int i = 0; i < BANDS; i++)
{
output.tag.set_title("BAND");
output.tag.set_property("NUMBER", i);
output.tag.set_property("FREQ", config.band[i].freq);
output.tag.set_property("QUALITY", config.band[i].quality);
output.tag.set_property("MAGNITUDE", config.band[i].magnitude);
output.tag.set_property("MODE", config.band[i].mode);
output.append_tag();
output.append_newline();
}
output.terminate_string();
}
示例4:
void _1080to540Main::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("1080TO540");
output.tag.set_property("FIRST_FIELD", config.first_field);
output.append_tag();
output.terminate_string();
}
示例5: save_data
void SwapFrames::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("SWAPFRAMES");
output.tag.set_property("ON", config.on);
output.tag.set_property("SWAP_EVEN", config.swap_even);
output.append_tag();
output.terminate_string();
}
示例6: save_data
void HueEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("HUESATURATION");
output.tag.set_property("HUE", config.hue);
output.tag.set_property("SATURATION", config.saturation);
output.tag.set_property("VALUE", config.value);
output.append_tag();
output.terminate_string();
}
示例7:
void RGB601Main::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("RGB601");
output.tag.set_property("DIRECTION", config.direction);
output.append_tag();
output.terminate_string();
}
示例8: save_data
void OverlayAudio::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("OVERLAY");
output.tag.set_property("OUTPUT", config.output_track);
output.tag.set_property("MODE", config.mode);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例9: save_data
void PhotoScaleMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("PHOTOSCALE");
output.tag.set_property("WIDTH", config.width);
output.tag.set_property("HEIGHT", config.height);
output.tag.set_property("USE_FILE", config.use_file);
output.append_tag();
output.terminate_string();
}
示例10: save_data
void PitchEffect::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("PITCH");
output.tag.set_property("SCALE", config.scale);
output.tag.set_property("SIZE", config.size);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例11: save_data
void DeInterlaceMain::save_data(KeyFrame *keyframe)
{
FileXML output;
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("DEINTERLACE");
output.tag.set_property("MODE", config.mode);
output.tag.set_property("DOMINANCE", config.dominance);
output.tag.set_property("ADAPTIVE", config.adaptive);
output.tag.set_property("THRESHOLD", config.threshold);
output.append_tag();
output.tag.set_title("/DEINTERLACE");
output.append_tag();
output.terminate_string();
}
示例12: save_data
void Despike::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause xml file to store data directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("DESPIKE");
output.tag.set_property("LEVEL", config.level);
output.tag.set_property("SLOPE", config.slope);
output.append_tag();
output.append_newline();
output.terminate_string();
}
示例13: save_data
void UnsharpMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("UNSHARP");
output.tag.set_property("RADIUS", config.radius);
output.tag.set_property("AMOUNT", config.amount);
output.tag.set_property("THRESHOLD", config.threshold);
output.append_tag();
output.terminate_string();
}
示例14: save_data
void IVTCMain::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("IVTC");
output.tag.set_property("FRAME_OFFSET", config.frame_offset);
output.tag.set_property("FIRST_FIELD", config.first_field);
output.tag.set_property("AUTOMATIC", config.automatic);
output.tag.set_property("AUTO_THRESHOLD", config.auto_threshold);
output.tag.set_property("PATTERN", config.pattern);
output.append_tag();
output.terminate_string();
}
示例15: save_data
void Overlay::save_data(KeyFrame *keyframe)
{
FileXML output;
// cause data to be stored directly in text
output.set_shared_output(keyframe->get_data(), MESSAGESIZE);
output.tag.set_title("OVERLAY");
output.tag.set_property("MODE", config.mode);
output.tag.set_property("DIRECTION", config.direction);
output.tag.set_property("OUTPUT_LAYER", config.output_layer);
output.append_tag();
output.tag.set_title("/OVERLAY");
output.append_tag();
output.terminate_string();
}