您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ EQUIV函数代码示例

51自学网 2021-06-01 20:33:04
  C++
这篇教程C++ EQUIV函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中EQUIV函数的典型用法代码示例。如果您正苦于以下问题:C++ EQUIV函数的具体用法?C++ EQUIV怎么用?C++ EQUIV使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了EQUIV函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: load_configuration

int BrightnessMain::process_buffer(VFrame *frame,	int64_t start_position,	double frame_rate){	load_configuration();	read_frame(frame, 		0, 		start_position, 		frame_rate,		get_use_opengl());// Use hardware	if(get_use_opengl())	{		run_opengl();		return 0;	}	if(!engine) engine = new BrightnessEngine(this, PluginClient::smp + 1);	this->input = frame;	this->output = frame;	if(!EQUIV(config.brightness, 0) || !EQUIV(config.contrast, 0))	{		engine->process_packages();	}	return 0;}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:35,


示例2: EQUIV

int FloatAuto::identical(FloatAuto *src){	return EQUIV(value, src->value) &&		EQUIV(control_in_value, src->control_in_value) &&		EQUIV(control_out_value, src->control_out_value) &&		mode == src->mode;}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:7,


示例3: load_configuration

int HueEffect::process_buffer(VFrame *frame,	int64_t start_position,	double frame_rate){	load_configuration();	read_frame(frame, 		0, 		start_position, 		frame_rate,		get_use_opengl());		this->input = frame;	this->output = frame;	if(EQUIV(config.hue, 0) && EQUIV(config.saturation, 0) && EQUIV(config.value, 0))	{		return 0;	}	else	{		if(get_use_opengl())		{			run_opengl();			return 0;		}		if(!engine) engine = new HueEngine(this, PluginClient::smp + 1);				engine->process_packages();	}	return 0;}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:33,


示例4: EQUIV

int FloatAuto::identical(FloatAuto *src){	return EQUIV(value, src->value) &&		EQUIV(control_in_value, src->control_in_value) &&		EQUIV(control_out_value, src->control_out_value);		// ctrl positions ignored, as they may depend on neighbours		// tangent_mode is ignored, no recalculations}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:8,


示例5: equivalent

int VocoderConfig::equivalent(VocoderConfig &that){	if(!EQUIV(wetness, that.wetness) ||		!EQUIV(level, that.level) ||		carrier_track != that.carrier_track ||		bands != that.bands) return 0;	return 1;}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:8,


示例6: EQUIV

int SynthOscillatorConfig::equivalent(SynthOscillatorConfig &that){	if(EQUIV(level, that.level) && 		EQUIV(phase, that.phase) &&		EQUIV(freq_factor, that.freq_factor))		return 1;	else		return 0;}
开发者ID:knutj,项目名称:cinelerra,代码行数:9,


示例7: return

int ChromaKeyConfig::equivalent(ChromaKeyConfig &src){	return (EQUIV(red, src.red) &&		EQUIV(green, src.green) &&		EQUIV(blue, src.blue) &&		EQUIV(threshold, src.threshold) &&		EQUIV(slope, src.slope) &&		use_value == src.use_value);}
开发者ID:ratopi,项目名称:CinelerraCV,代码行数:9,


示例8: EQUIV

int LensConfig::equivalent(LensConfig &that){	for(int i = 0; i < FOV_CHANNELS; i++)		if(!EQUIV(fov[i], that.fov[i])) return 0;	return EQUIV(aspect, that.aspect) &&		EQUIV(radius, that.radius) &&		EQUIV(center_x, that.center_x) &&		EQUIV(center_y, that.center_y) &&		mode == that.mode &&		draw_guides == that.draw_guides;}
开发者ID:beequ7et,项目名称:cinelerra-cv,代码行数:11,


示例9:

int Color3WayConfig::equivalent(Color3WayConfig &that){	for(int i = 0; i < SECTIONS; i++)	{		if(!EQUIV(hue_x[i], that.hue_x[i]) ||			!EQUIV(hue_y[i], that.hue_y[i]) ||			!EQUIV(value[i], that.value[i]) ||			!EQUIV(saturation[i], that.saturation[i])) return 0;	}	return 1;}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:11,


示例10: EQUIV

int ParametricBand::equivalent(ParametricBand &that){	if(freq == that.freq && 		EQUIV(quality, that.quality) && 		EQUIV(magnitude, that.magnitude) &&		mode == that.mode)	{		return 1;	}	else		return 0;}
开发者ID:knutj,项目名称:cinelerra,代码行数:12,


示例11: return

int TimeFrontConfig::equivalent(TimeFrontConfig &that){	return (EQUIV(angle, that.angle) &&		EQUIV(in_radius, that.in_radius) &&		EQUIV(out_radius, that.out_radius) &&		frame_range == that.frame_range &&		track_usage == that.track_usage &&		shape == that.shape &&		rate == that.rate &&		EQUIV(center_x, that.center_x) &&		EQUIV(center_y, that.center_y) && 		invert == that.invert &&		show_grayscale == that.show_grayscale);}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:14,


示例12: EQUIV

int SharpenConfig::equivalent(SharpenConfig &that){	return horizontal == that.horizontal &&		interlace == that.interlace &&		EQUIV(sharpness, that.sharpness) &&		luminance == that.luminance;}
开发者ID:ratopi,项目名称:CinelerraCV,代码行数:7,


示例13: load_configuration

int ChromaKey::process_buffer(VFrame *frame,		int64_t start_position,		double frame_rate){SET_TRACE	load_configuration();	this->input = frame;	this->output = frame;	read_frame(frame, 		0, 		start_position, 		frame_rate,		get_use_opengl());	if(EQUIV(config.threshold, 0))	{		return 1;	}	else	{		if(get_use_opengl()) return run_opengl();		if(!engine) engine = new ChromaKeyServer(this);		engine->process_packages();	}SET_TRACE	return 1;}
开发者ID:ratopi,项目名称:CinelerraCV,代码行数:31,


示例14: FindSignedTopSimplifyingUnit

ClausePos_p FindSignedTopSimplifyingUnit(ClauseSet_p units, Term_p t1,					 Term_p t2, bool sign){   Subst_p     subst = SubstAlloc();   ClausePos_p res = NULL;   ClausePos_p pos;   assert(TermStandardWeight(t1) == TermWeight(t1,DEFAULT_VWEIGHT,DEFAULT_FWEIGHT));   assert(TermStandardWeight(t2) == TermWeight(t2,DEFAULT_VWEIGHT,DEFAULT_FWEIGHT));   assert(units && units->demod_index);   PDTreeSearchInit(units->demod_index, t1, PDTREE_IGNORE_NF_DATE, false);   while((pos = PDTreeFindNextDemodulator(units->demod_index, subst)))   {      if(EQUIV(EqnIsPositive(pos->literal), sign)	 &&	 SubstComputeMatch(ClausePosGetOtherSide(pos), 			   t2, subst, TBTermEqual))      {	 res = pos;	 assert(res->clause->set == units);	 break;      }      }         PDTreeSearchExit(units->demod_index);   SubstDelete(subst);   return res;}
开发者ID:kylepjohnson,项目名称:sigma,代码行数:29,


示例15: load_configuration

int Piano::process_realtime(int64_t size, double *input_ptr, double *output_ptr){	need_reconfigure |= load_configuration();	if(need_reconfigure) reconfigure();	double wetness = DB::fromdb(config.wetness);	if(EQUIV(config.wetness, INFINITYGAIN)) wetness = 0;	for(int j = 0; j < size; j++)		output_ptr[j] = input_ptr[j] * wetness;	int64_t fragment_len;	for(int64_t i = 0; i < size; i += fragment_len)	{		fragment_len = size;		if(i + fragment_len > size) fragment_len = size - i;//printf("Piano::process_realtime 1 %d %d %d/n", i, fragment_len, size);		fragment_len = overlay_synth(i, fragment_len, input_ptr, output_ptr);//printf("Piano::process_realtime 2/n");	}			return 0;}
开发者ID:knutj,项目名称:cinelerra,代码行数:27,


示例16: equivalent

int PluginAClientConfig::equivalent(PluginAClientConfig &that){	if(that.total_ports != total_ports) return 0;	for(int i = 0; i < total_ports; i++)		if(!EQUIV(port_data[i], that.port_data[i])) return 0;	return 1;}
开发者ID:knutj,项目名称:cinelerra,代码行数:7,


示例17: toggle_label

int RecordLabels::toggle_label(double position){	RecordLabel *current;// find label the position is after	for(current = first; 		current && current->position < position; 		current = NEXT)	{		;	}	if(current)	{//printf("position %ld current->position %ld current->original %d/n", position, current->position,  current->original);		if(EQUIV(current->position, position))		{// remove it			remove(current);		}		else		{// insert before it			insert_before(current);			current->position = position;		}	}	else	{           // insert after last//printf("position %ld/n", position);		append(new RecordLabel(position));	}	return 0;}
开发者ID:rasilon,项目名称:cinelerra-cv,代码行数:33,


示例18: fit_selection

void MWindow::fit_selection(){	if(EQUIV(edl->local_session->get_selectionstart(1),		edl->local_session->get_selectionend(1)))	{		double total_samples = edl->tracks->total_length() * 			edl->session->sample_rate;		TimelinePane *pane = gui->get_focused_pane();		for(edl->local_session->zoom_sample = 1; 			pane->canvas->get_w() * edl->local_session->zoom_sample < total_samples; 			edl->local_session->zoom_sample *= 2)			;	}	else	{		double total_samples = (edl->local_session->get_selectionend(1) - 			edl->local_session->get_selectionstart(1)) * 			edl->session->sample_rate;		TimelinePane *pane = gui->get_focused_pane();		for(edl->local_session->zoom_sample = 1; 			pane->canvas->get_w() * edl->local_session->zoom_sample < total_samples; 			edl->local_session->zoom_sample *= 2)			;	}	edl->local_session->zoom_sample = MIN(0x100000, 		edl->local_session->zoom_sample);	zoom_sample(edl->local_session->zoom_sample);}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:29,


示例19: get_edl

double TimeBar::get_edl_length(){	edl_length = 0;	if(get_edl())	{//printf("TimeBar::get_edl_length 1 %f/n", get_edl()->tracks->total_playable_length());		edl_length = get_edl()->tracks->total_playable_length();	}//printf("TimeBar::get_edl_length 2/n");	if(!EQUIV(edl_length, 0))	{//printf("TimeBar::get_edl_length 3/n");		time_per_pixel = edl_length / get_w();//printf("TimeBar::get_edl_length 4/n");	}	else	{		time_per_pixel = 0;	}//printf("TimeBar::get_edl_length 5/n");	return edl_length;}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:25,


示例20: compare

voidcompare(	const serial_t &a,	const serial_t &b){	EQUIV(a,b);	EQUIV(b,a);	CMP(a,==,b);	CMP(a,!=,b);	if(a.is_remote() ) return;	if(b.is_remote() ) return;	CMP(a,<=,b);	CMP(a,>=,b);	CMP(a,>,b);	CMP(a,<,b);}
开发者ID:glycerine,项目名称:shore-mt,代码行数:17,


示例21: equivalent

int ParametricConfig::equivalent(ParametricConfig &that){	for(int i = 0; i < BANDS; i++)		if(!band[i].equivalent(that.band[i])) return 0;	if(!EQUIV(wetness, that.wetness) ||		window_size != that.window_size) return 0;	return 1;}
开发者ID:knutj,项目名称:cinelerra,代码行数:9,


示例22: EQUIV

int DenoiseVideoConfig::equivalent(DenoiseVideoConfig &that){	return frames == that.frames && 		EQUIV(threshold, that.threshold) &&		do_r == that.do_r &&		do_g == that.do_g &&		do_b == that.do_b &&		do_a == that.do_a;}
开发者ID:ratopi,项目名称:CinelerraCV,代码行数:9,


示例23: new_freq

void Synth::new_freq(double freq){// Check for dupes	for(int i = 0; i < MAX_FREQS; i++)	{		if(EQUIV(config.base_freq[i], freq)) return;	}	for(int i = 0; i < MAX_FREQS; i++)	{		if(EQUIV(config.base_freq[i], 0))		{			config.base_freq[i] = freq;//printf("Synth::new_freq %d/n", __LINE__);			break;		}	}}
开发者ID:knutj,项目名称:cinelerra,代码行数:18,


示例24: EQUIV

int InterpolateVideoConfig::equivalent(InterpolateVideoConfig *config){	return EQUIV(this->input_rate, config->input_rate) &&		(this->use_keyframes == config->use_keyframes) &&		this->optic_flow == config->optic_flow &&		this->draw_vectors == config->draw_vectors &&		this->search_radius == config->search_radius &&		this->macroblock_size == config->macroblock_size;}
开发者ID:knutj,项目名称:cinelerra,代码行数:9,


示例25: return

int GradientConfig::equivalent(GradientConfig &that){	return (EQUIV(angle, that.angle) &&		EQUIV(in_radius, that.in_radius) &&		EQUIV(out_radius, that.out_radius) &&		in_r == that.in_r &&		in_g == that.in_g &&		in_b == that.in_b &&		in_a == that.in_a &&		out_r == that.out_r &&		out_g == that.out_g &&		out_b == that.out_b &&		out_a == that.out_a &&		shape == that.shape &&		rate == that.rate &&		EQUIV(center_x, that.center_x) &&		EQUIV(center_y, that.center_y));}
开发者ID:ratopi,项目名称:CinelerraCV,代码行数:18,


示例26: EQUIV

int TranslateConfig::equivalent(TranslateConfig &that){	return EQUIV(in_x, that.in_x) && 		EQUIV(in_y, that.in_y) && 		EQUIV(in_w, that.in_w) && 		EQUIV(in_h, that.in_h) &&		EQUIV(out_x, that.out_x) && 		EQUIV(out_y, that.out_y) && 		EQUIV(out_w, that.out_w) &&		EQUIV(out_h, that.out_h);}
开发者ID:Cuchulain,项目名称:cinelerra,代码行数:11,


示例27: EQUIV

int SvgConfig::equivalent(SvgConfig &that){	return EQUIV(in_x, that.in_x) && 		EQUIV(in_y, that.in_y) && 		EQUIV(in_w, that.in_w) && 		EQUIV(in_h, that.in_h) &&		EQUIV(out_x, that.out_x) && 		EQUIV(out_y, that.out_y) && 		EQUIV(out_w, that.out_w) &&		EQUIV(out_h, that.out_h) &&		!strcmp(svg_file, that.svg_file);}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:12,


示例28: atof

int TransitionLengthText::handle_event(){	double result = atof(get_text());	if(!EQUIV(result, gui->thread->length))	{		gui->thread->length = result;	}	return 1;}
开发者ID:petterreinholdtsen,项目名称:cinelerra-hv,代码行数:10,


示例29: ClauseSimplifyWithUnitSet

bool ClauseSimplifyWithUnitSet(Clause_p clause, ClauseSet_p unit_set,			       UnitSimplifyType how){   Eqn_p *handle;   ClausePos_p res;   assert(clause);   assert(unit_set && unit_set->demod_index);   assert(how);         handle = &(clause->literals);    while(*handle)   {      if(how == TopLevelUnitSimplify)      {	 res = FindTopSimplifyingUnit(unit_set,				      (*handle)->lterm,				      (*handle)->rterm);      }      else      {	 res = FindSimplifyingUnit(unit_set,				   (*handle)->lterm,				   (*handle)->rterm, false);      }      if(res)      {	 assert(ClauseIsUnit(res->clause));	 if(EQUIV(EqnIsPositive(*handle),		  EqnIsPositive(res->literal)))	 {	    DocClauseQuote(GlobalOut, OutputLevel, 6, clause,			   "subsumed by unprocessed unit",			   res->clause);	    if(!ClauseIsUnit(clause)&&	       ClauseStandardWeight(clause)==ClauseStandardWeight(res->clause))	    {	       ClauseSetProp(res->clause, CPIsProtected);	       	    }	    ClauseSetProp(res->clause, ClauseQueryProp(clause, CPIsSOS));	    return false;	 }         ClauseDelProp(clause, CPLimitedRW);	 ClauseRemoveLiteralRef(clause, handle);	 DocClauseModification(GlobalOut, OutputLevel, clause,			       inf_simplify_reflect, res->clause,			       NULL, "cut with unprocessed unit");       }      else      {	 handle = &((*handle)->next);      }   }   return true;}
开发者ID:kylepjohnson,项目名称:sigma,代码行数:55,


示例30: gauss

double ParametricEQ::gauss(double sigma, double center, double x){	if(EQUIV(sigma, 0)) sigma = 0.01;	double result = 1.0 / 		sqrt(2 * M_PI * sigma * sigma) * 		exp(-(x - center) * (x - center) / 			(2 * sigma * sigma));	return result;}
开发者ID:knutj,项目名称:cinelerra,代码行数:12,



注:本文中的EQUIV函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ ERETURN函数代码示例
C++ EQASSERT函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。