gfx/ycbcr/YCbCrUtils.h
author Jean-Yves Avenard <jyavenard@mozilla.com>
Wed, 11 May 2016 21:18:46 +1000
changeset 378916 9b2f7e585d3f9385079a4f8ba16e827af578b95e
parent 278243 91d6e262b662a0b4e47358665e222d3927337af9
child 450161 f762ed4b63e3b8d514f22702ecd702078f44db8f
child 450807 901e79cca2a912a02b0a64ef0bd548bd74274d2c
permissions -rw-r--r--
Bug 1270154: P1. Forget the media element's media-resource-specific tracks when error occurs. r=jwwang a=ritu MozReview-Commit-ID: BFpw2sS7aa7

/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*-
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef MOZILLA_GFX_UTILS_H_
#define MOZILLA_GFX_UTILS_H_

#include "mozilla/gfx/Types.h"
#include "ImageContainer.h"

namespace mozilla {
namespace gfx {

void
GetYCbCrToRGBDestFormatAndSize(const layers::PlanarYCbCrData& aData,
                               SurfaceFormat& aSuggestedFormat,
                               IntSize& aSuggestedSize);

void
ConvertYCbCrToRGB(const layers::PlanarYCbCrData& aData,
                  const SurfaceFormat& aDestFormat,
                  const IntSize& aDestSize,
                  unsigned char* aDestBuffer,
                  int32_t aStride);

} // namespace gfx
} // namespace mozilla

#endif /* MOZILLA_GFX_UTILS_H_ */