예제 #1
0
void max_cv_jit_hough_free(t_max_cv_jit_hough *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #2
0
void max_cv_jit_trackpoints_free(t_max_cv_jit_trackpoints *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #3
0
void max_jit_gradient_free(t_max_jit_gradient *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #4
0
void max_jit_alphablend_free(t_max_jit_alphablend *x)
{
    max_jit_mop_free(x);
    jit_object_free(max_jit_obex_jitob_get(x));
    max_jit_obex_free(x);
}
예제 #5
0
void max_jit_str_op_free(t_max_jit_str_op *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #6
0
void max_jit_dmxmap_free(t_max_jit_dmxmap *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #7
0
void max_jit_scalebias_free(t_max_jit_scalebias *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #8
0
void max_jit_concat_free(t_max_jit_concat *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
void max_jit_human_free(t_max_jit_human*x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #10
0
void max_jit_rgb2luma_free(t_max_jit_rgb2luma *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #11
0
void max_jit_findbounds_free(t_max_jit_findbounds *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #12
0
void max_cv_jit_threshold_free(t_max_cv_jit_threshold *x)
{
	max_jit_mop_free(x);		//Free the matrix operator
	jit_object_free(max_jit_obex_jitob_get(x));	//Free the Jitter object
	max_jit_obex_free(x);		//Free the Max wrapper object
}
예제 #13
0
void max_cv_jit_ravg_free(t_max_cv_jit_ravg *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #14
0
void MaxStencilFree(MaxStencilObjectPtr self)
{
	max_jit_mop_free(self);
	jit_object_free(max_jit_obex_jitob_get(self));
	max_jit_obex_free(self);
}
예제 #15
0
void *max_jit_openni_new(t_symbol *s, long argc, t_atom *argv)
{
	t_max_jit_openni	*x;
	void				*o;
	long				i;
	
	x = (t_max_jit_openni*)max_jit_obex_new(max_jit_openni_class, gensym("jit_openni"));
	if (x)
	{
		o = jit_object_new(gensym("jit_openni"), x);	// instantiate jit.openni jitter object
		if (o)
		{
			// typically, max_jit_mop_setup_simple(x, o, argc, argv) is called here to handle standard MOP max wrapper setup tasks
			// however, I need to create a max only outlet between the MOP outlets and dumpout, so will use the code from MAx SDK 21.6.
			max_jit_obex_jitob_set(x,o);
			max_jit_obex_dumpout_set(x,outlet_new(x,NULL));
			x->osc_outlet = (t_object *)outlet_new(x, NULL);
			max_jit_mop_setup(x);
			max_jit_mop_inputs(x);
			max_jit_mop_outputs(x);
			x->chrSkeletonOutputFormat = 0;
			max_jit_mop_matrix_args(x,argc,argv);

			max_jit_attr_args(x, argc, argv); // process attribute arguments, like auto handling of @attribute's
#ifdef _DEBUG
			for (i = 0; i < argc; i++)
			{
				switch (atom_gettype(&(argv[i])))
				{
					case A_LONG:
						LOG_COMMENT3("arg %ld: long (%ld)", i, atom_getlong(&(argv[i])));
						break;
					case A_FLOAT:
						LOG_COMMENT3("arg %ld: float (%f)", i, atom_getfloat(&(argv[i])));
						break;
					case A_SYM:
						LOG_COMMENT3("arg %ld: symbol (%s)", i, atom_getsym(&(argv[i]))->s_name);
						break;
					default:
						LOG_WARNING2("arg %ld: forbidden argument", i); 
				}
			}
#endif
			if(RegisterJitOpenNIEventCallbacks((t_jit_openni *)max_jit_obex_jitob_get(x), max_jit_openni_post_events, &(x->pRegistrationForEvents)))
			{
				LOG_ERROR("jit.openni: could not register for jit.openni event callbacks");
				max_jit_openni_free(x);
				freeobject((t_object*)x);
				x = NULL;
			}
			else
			{
				LOG_DEBUG2("jit.openni: successfully registered for jit.openni event callbacks w/ regID=%x", x->pRegistrationForEvents);
			}
		}
		else
		{
			LOG_ERROR("jit.openni: could not allocate object");
			max_jit_obex_free(x);
			freeobject((t_object*)x);
			x = NULL;
		}
	}
	return(x);
}
예제 #16
0
void max_cv_jit_blobs_moments_free(t_max_cv_jit_blobs_moments *x)
{
	max_jit_mop_free(x);		//Free the matrix operator
	jit_object_free(max_jit_obex_jitob_get(x));	//Free the Jitter object
	max_jit_obex_free(x);		//Free the Max wrapper object
}
예제 #17
0
void max_xray_jit_keepcell_free(t_max_xray_jit_keepcell *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #18
0
void max_xray_jit_sift_free(t_max_xray_jit_sift *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #19
0
void max_jit_SDIF_buffer_free(t_max_jit_SDIF_buffer *x){
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #20
0
void max_art_jit_simple_free(t_max_art_jit_simple *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #21
0
void max_jit_histogram_free(t_max_jit_histogram *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #22
0
void max_xray_jit_kmeans_free(t_max_xray_jit_kmeans *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #23
0
void max_jit_la_diagproduct_free(t_max_jit_la_diagproduct *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #24
0
void max_jit_gl_cube_free(t_max_jit_gl_cube *x)
{
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #25
0
void max_jit_turtle_free(t_max_jit_turtle *x)
{
	//only max object, no jit object
	max_jit_obex_free(x);

}
예제 #26
0
void max_jit_noise_free(t_max_jit_noise *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
void max_xray_jit_levelsetseg_free(t_max_xray_jit_levelsetseg *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #28
0
void max_jit_submatrix_free(t_max_jit_submatrix *x)
{
	max_jit_mop_free(x);
	jit_object_free(max_jit_obex_jitob_get(x));
	max_jit_obex_free(x);
}
예제 #29
0
void MaxGainFree(MaxGainObjectPtr self)
{
	max_jit_mop_free(self);
	jit_object_free(max_jit_obex_jitob_get(self));
	max_jit_obex_free(self);
}