void YCbCrImageDataSerializer::InitializeBufferInfo(const gfx::IntSize& aYSize, const gfx::IntSize& aCbCrSize, StereoMode aStereoMode) { return InitializeBufferInfo(aYSize.width, aCbCrSize.width, aYSize, aCbCrSize, aStereoMode); }
void YCbCrImageDataSerializer::InitializeBufferInfo(const gfxIntSize& aYSize, const gfxIntSize& aCbCrSize) { InitializeBufferInfo(gfx::IntSize(aYSize.width, aYSize.height), gfx::IntSize(aCbCrSize.width, aCbCrSize.height)); }
void YCbCrImageDataSerializer::InitializeBufferInfo(uint32_t aYStride, uint32_t aCbCrStride, const gfx::IntSize& aYSize, const gfx::IntSize& aCbCrSize, StereoMode aStereoMode) { uint32_t yOffset = 0; uint32_t cbOffset = yOffset + MOZ_ALIGN_WORD(aYStride * aYSize.height); uint32_t crOffset = cbOffset + MOZ_ALIGN_WORD(aCbCrStride * aCbCrSize.height); return InitializeBufferInfo(yOffset, cbOffset, crOffset, aYStride, aCbCrStride, aYSize, aCbCrSize, aStereoMode); }