1 /* 2 * Copyright 2016 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef SkRGBAToYUV_DEFINED 9 #define SkRGBAToYUV_DEFINED 10 11 #include "SkPixmap.h" 12 #include "SkSize.h" 13 14 class SkImage; 15 // Works with any image type at the moment, but in the future it may only work with raster-backed 16 // images. This really should take a SkPixmap for the input, however the implementation for the 17 // time being requires an image. 18 bool SkRGBAToYUV(const SkImage*, const SkISize [3], void* const planes[3], 19 const size_t rowBytes[3], SkYUVColorSpace); 20 21 #endif 22