assert(sum);
ADM_assert(sum);
Decimate::Decimate(AVDMGenericVideoStream *in,CONFcouple *couples)		{{				int count = 0;		char buf[80];		unsigned int *p;		_in=in;		   		memcpy(&_info,_in->getInfo(),sizeof(_info));      		_info.encoding=1;		_uncompressed=NULL;		  		_info.encoding=1;				//				// Init here		debug=0;		show=0;		#ifdef USE_SSE			if(CpuCaps::hasSSE())		{			printf("Decimate:SSE enabled\n");		}#endif		//		_param=new DECIMATE_PARAM;		if(couples)		{			GET(cycle);			GET(mode);			GET(quality);			GET(threshold);			GET(threshold2);					}		else // Default  		{			_param->cycle=5;			_param->mode=0;			_param->quality=2;			_param->threshold=0;			_param->threshold2=3.0;		}				assert(_param->cycle);		vidCache=new VideoCache(_param->cycle*2+1,in);				if (_param->mode == 0 || _param->mode == 2 || _param->mode == 3)		{			num_frames_hi = _info.nb_frames;			_info.nb_frames = _info.nb_frames * (_param->cycle - 1) / _param->cycle;			_info.fps1000=_info.fps1000*(_param->cycle-1);			_info.fps1000=(uint32_t)(_info.fps1000/_param->cycle);					}		last_request = -1;		firsttime = true;		sum = (unsigned int *) malloc(MAX_BLOCKS * MAX_BLOCKS * sizeof(unsigned int));		assert(sum);				all_video_cycle = true;		if (debug)		{			char b[80];			sprintf(b, "Decimate %s by Donald Graft, Copyright 2003\n", VERSION);			OutputDebugString(b);		}	}}