Get yuv code in their own source file. Fix warnings