pp->ppContext=pp_get_context(pp->w, pp->h, #ifdef USE_MMX PP_CPU_CAPS_MMX #else 0 #endif
uint32_t ppCaps=0;  #ifdef USE_MMX uint32_t  mm=mm_support(); #define ADD(x,y) if( mm & MM_##x) ppCaps|=PP_CPU_CAPS_##y;  ADD(MMX,MMX); ADD(3DNOW,3DNOW); ADD(MMXEXT,MMX2); #endif pp->ppContext=pp_get_context(pp->w, pp->h, ppCaps
void updatePostProc(ADM_PP *pp )		    {char stringMode[60];char stringFQ[60];	stringMode[0]=0;	deletePostProc(pp);	aprintf("updating post proc\n");	if(pp->postProcType&1) strcat(stringMode,"hb:a,");	if(pp->postProcType&2) strcat(stringMode,"vb:a,");	if(pp->postProcType&4) strcat(stringMode,"dr:a,");	if(pp->forcedQuant)  		{			sprintf(stringFQ,"fq:%d,",pp->forcedQuant);			strcat(stringMode,stringFQ);		}				if(strlen(stringMode))  // something to do ?		{			pp->ppContext=pp_get_context(pp->w, pp->h,#ifdef USE_MMX          			PP_CPU_CAPS_MMX#else         			0#endif			   );					pp->ppMode=pp_get_mode_by_name_and_quality(			stringMode, pp->postProcStrength);;			assert(pp->ppMode);			aprintf("Enabled type:%d strength:%d\n",				pp->postProcType,pp->postProcStrength);		}	   	else    // if nothing is selected we may as well set back every thing to 0		{			pp->postProcStrength=0;			aprintf("Disabled\n");		}}