зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 571c01c5f84b (bug 1511604) for causing mochitest failures CLOSED TREE
This commit is contained in:
Родитель
48ad5643ae
Коммит
7298e5f303
|
@ -3,9 +3,7 @@
|
|||
* 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/. */
|
||||
|
||||
#include "mozilla/EndianUtils.h"
|
||||
#include "gfx2DGlue.h"
|
||||
#include "mozilla/gfx/Swizzle.h"
|
||||
|
||||
#include "YCbCrUtils.h"
|
||||
#include "yuv_convert.h"
|
||||
|
@ -238,13 +236,6 @@ ConvertYCbCrToRGB(const layers::PlanarYCbCrData& aData,
|
|||
yuvtype,
|
||||
srcData.mYUVColorSpace);
|
||||
}
|
||||
#ifdef MOZ_BIG_ENDIAN
|
||||
// libyuv makes endian-correct result, which needs to be swapped to BGRX
|
||||
if (aDestFormat != SurfaceFormat::R5G6B5_UINT16)
|
||||
gfx::SwizzleData(aDestBuffer, aStride, gfx::SurfaceFormat::X8R8G8B8,
|
||||
aDestBuffer, aStride, gfx::SurfaceFormat::B8G8R8X8,
|
||||
srcData.mPicSize);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -266,12 +257,6 @@ ConvertYCbCrAToARGB(const uint8_t* aSrcY,
|
|||
aSrcStrideYA,
|
||||
aSrcStrideUV,
|
||||
aDstStrideARGB);
|
||||
#ifdef MOZ_BIG_ENDIAN
|
||||
// libyuv makes endian-correct result, which needs to be swapped to BGRA
|
||||
gfx::SwizzleData(aDstARGB, aDstStrideARGB, gfx::SurfaceFormat::A8R8G8B8,
|
||||
aDstARGB, aDstStrideARGB, gfx::SurfaceFormat::B8G8R8A8,
|
||||
IntSize(aWidth, aHeight));
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace gfx
|
||||
|
|
Загрузка…
Ссылка в новой задаче