blob: 5c3c1b14652386e6da4e28168950128133d0c428 [file] [log] [blame]
bsalomonf267c1e2016-02-01 13:16:14 -08001/*
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
14class 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.
18bool SkRGBAToYUV(const SkImage*, const SkISize [3], void* const planes[3],
19 const size_t rowBytes[3], SkYUVColorSpace);
20
21#endif