本文整理汇总了C++中GlslManager::add_ref方法的典型用法代码示例。如果您正苦于以下问题:C++ GlslManager::add_ref方法的具体用法?C++ GlslManager::add_ref怎么用?C++ GlslManager::add_ref使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GlslManager
的用法示例。
在下文中一共展示了GlslManager::add_ref方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: filter_movit_resample_init
mlt_filter filter_movit_resample_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = NULL;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
glsl->add_ref( properties );
filter->process = process;
}
return filter;
}
示例2: filter_movit_vignette_init
mlt_filter filter_movit_vignette_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = NULL;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
glsl->add_ref( properties );
filter->process = process;
mlt_properties_set_double( MLT_FILTER_PROPERTIES(filter), "radius", 0.3 );
mlt_properties_set_double( MLT_FILTER_PROPERTIES(filter), "inner_radius", 0.3 );
}
return filter;
}
示例3: filter_white_balance_init
mlt_filter filter_white_balance_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = NULL;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
glsl->add_ref( properties );
mlt_properties_set( properties, "neutral_color", arg? arg : "#7f7f7f" );
mlt_properties_set_double( properties, "color_temperature", 6500.0 );
filter->process = process;
}
return filter;
}
示例4: filter_movit_opacity_init
mlt_filter filter_movit_opacity_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = NULL;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
glsl->add_ref( properties );
mlt_properties_set( properties, "opacity", arg? arg : "1" );
mlt_properties_set_double( properties, "alpha", -1.0 );
filter->process = process;
}
return filter;
}
示例5: filter_movit_glow_init
mlt_filter filter_movit_glow_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = NULL;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) ) {
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
glsl->add_ref( properties );
mlt_properties_set_double( properties, "radius", 20.0 );
mlt_properties_set_double( properties, "blur_mix", 1.0 );
mlt_properties_set_double( properties, "highlight_cutoff", 0.2 );
filter->process = process;
}
return filter;
}
示例6: filter_movit_convert_init
mlt_filter filter_movit_convert_init( mlt_profile profile, mlt_service_type type, const char *id, char *arg )
{
mlt_filter filter = NULL;
GlslManager* glsl = GlslManager::get_instance();
if ( glsl && ( filter = mlt_filter_new() ) )
{
mlt_properties properties = MLT_FILTER_PROPERTIES( filter );
glsl->add_ref( properties );
#ifdef WIN32
// XXX avcolor_space is crashing on Windows in this context!
mlt_filter cpu_csc = NULL;
#else
mlt_filter cpu_csc = create_filter( profile, "avcolor_space" );
#endif
if ( !cpu_csc )
cpu_csc = create_filter( profile, "imageconvert" );
if ( cpu_csc )
mlt_properties_set_data( MLT_FILTER_PROPERTIES( filter ), "cpu_csc", cpu_csc, 0,
(mlt_destructor) mlt_filter_close, NULL );
filter->process = process;
}
return filter;
}