Bug 1772053 - Enable dynamic code disable mitigations only on Windows 10 1703+ r...
[gecko.git] / dom / media / ImageToI420.h
blob24a66ebc9f6f706f837b8e019da0c9ce73672c1a
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
9 #include "nsError.h"
11 namespace mozilla {
13 namespace layers {
14 class Image;
15 } // namespace layers
17 /**
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,
22 int aDestStrideV);
24 } // namespace mozilla
26 #endif /* ImageToI420Converter_h */