code: public static void convertToBoof(Picture input, ImageBase output) {
  		if( input.getColor() == ColorSpace.RGB ) {
  			ImplConvertJCodecPicture.RGB_to_PLU8(input, (Planar) output);
  		} else if( input.getColor() == ColorSpace.YUV420 ) {
  			if( output instanceof Planar) {
  				Planar ms = (Planar)output;
  				if( ms.getImageType().getDataType() == ImageDataType.U8 ) {
  					ImplConvertJCodecPicture.yuv420_to_PlRgb_U8(input, ms);
  				} else if( ms.getImageType().getDataType() == ImageDataType.F32 ) {
  					ImplConvertJCodecPicture.yuv420_to_PlRgb_F32(input, ms);
  				}
  			} else if( output instanceof GrayU8) {
  				ImplConvertJCodecPicture.yuv420_to_U8(input, (GrayU8) output);
  			} else if( output instanceof GrayF32) {
  				ImplConvertJCodecPicture.yuv420_to_F32(input, (GrayF32) output);
  			} else {
  				throw new RuntimeException("Unexpected output image type");
  			}
  		}
  	}
docs: Converts an image in JCodec format into one in BoofCV format.
  @param input JCodec image
  @param output BoofCV image