1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-*/
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef ImageToI420Converter_h
7 #define ImageToI420Converter_h
18 * Converts aImage to an I420 image and writes it to the given buffers.
20 nsresult
ConvertToI420(layers::Image
* aImage
, uint8_t* aDestY
, int aDestStrideY
,
21 uint8_t* aDestU
, int aDestStrideU
, uint8_t* aDestV
,
24 } // namespace mozilla
26 #endif /* ImageToI420Converter_h */