michael@0: /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef MOZILLA_GFX_UTILS_H_ michael@0: #define MOZILLA_GFX_UTILS_H_ michael@0: michael@0: #include "mozilla/gfx/Types.h" michael@0: #include "ImageContainer.h" michael@0: michael@0: namespace mozilla { michael@0: namespace gfx { michael@0: michael@0: void michael@0: GetYCbCrToRGBDestFormatAndSize(const layers::PlanarYCbCrData& aData, michael@0: SurfaceFormat& aSuggestedFormat, michael@0: IntSize& aSuggestedSize); michael@0: michael@0: void michael@0: ConvertYCbCrToRGB(const layers::PlanarYCbCrData& aData, michael@0: const SurfaceFormat& aDestFormat, michael@0: const IntSize& aDestSize, michael@0: unsigned char* aDestBuffer, michael@0: int32_t aStride); michael@0: michael@0: } michael@0: } michael@0: michael@0: #endif /* MOZILLA_GFX_UTILS_H_ */