Пример #1
0
void pix_sig2pix ::csMessCallback(void *data, t_symbol*s)
{
  int cs = getPixFormat(s->s_name);
  if(cs>0) {
    GetMyClass(data)->csMess(cs);
  } else {
    GetMyClass(data)->error("colorspace must be Grey, YUV or RGBA");
  }
}
Пример #2
0
void pix_filmOS :: openMessCallback(void *data, t_symbol*, int argc, t_atom*argv)
{
	int format=0;
	switch(argc){
	case 2:
		format=getPixFormat(atom_getsymbol(argv+1)->s_name);
	case 1:
	    GetMyClass(data)->openMess(atom_getsymbol(argv), format);
		break;
	default:
	  GetMyClass(data)->error("open <filename> [<format>]");
	}
}
Пример #3
0
void pix_convert :: colorMessCallback(void *data, t_symbol*s)
{
  int fo = getPixFormat(s->s_name);
  if(fo)GetMyClass(data)->m_image.setCsizeByFormat(fo);
  GetMyClass(data)->setPixModified();
}
Пример #4
0
void pix_filmOS :: colorspaceCallback(void *data, t_symbol *state)
{
  GetMyClass(data)->csMess(getPixFormat(state->s_name));
}