yuv2rgb_fun yuv2rgb_init_mlib(unsigned bpp, int mode) {  if( bpp == 24 ) { if( mode == MODE_RGB ) return mlib_YUV2RGB420_24; }  if( bpp == 32 ) { if( mode == MODE_RGB ) return mlib_YUV2ARGB420_32; else if( mode == MODE_BGR ) return mlib_YUV2ABGR420_32;
SwsFunc yuv2rgb_init_mlib(SwsContext *c) { switch(c->dstFormat){ case IMGFMT_RGB24: return mlib_YUV2RGB420_24; case IMGFMT_RGB32: return mlib_YUV2ARGB420_32; case IMGFMT_BGR32: return mlib_YUV2ARGB420_32; default: return NULL;
yuv2rgb_fun yuv2rgb_init_mlib(unsigned bpp, int mode) {  	if( bpp == 24 ) 	{		if( mode == MODE_RGB )			return mlib_YUV2RGB420_24;  }	if( bpp == 32 ) 	{		if( mode == MODE_RGB )			return mlib_YUV2ARGB420_32;		else if( mode == MODE_BGR )			return mlib_YUV2ABGR420_32;	}  	return NULL;}