зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1182426 - Set PlanarYCbCrImage's size in VP8TrackEncoder GTest. r=roc
--HG-- extra : commitid : 9dFV0mv1iSr extra : rebase_source : 699e4a73382e8792a1517d2f8520e3f4d3f9e6c7
This commit is contained in:
Родитель
7e6023b3b4
Коммит
5179d4123b
|
@ -57,6 +57,7 @@ private:
|
||||||
{
|
{
|
||||||
PlanarYCbCrImage *image = new PlanarYCbCrImage(new BufferRecycleBin());
|
PlanarYCbCrImage *image = new PlanarYCbCrImage(new BufferRecycleBin());
|
||||||
PlanarYCbCrData data;
|
PlanarYCbCrData data;
|
||||||
|
data.mPicSize = mImageSize;
|
||||||
|
|
||||||
const uint32_t yPlaneSize = mImageSize.width * mImageSize.height;
|
const uint32_t yPlaneSize = mImageSize.width * mImageSize.height;
|
||||||
const uint32_t halfWidth = (mImageSize.width + 1) / 2;
|
const uint32_t halfWidth = (mImageSize.width + 1) / 2;
|
||||||
|
@ -94,6 +95,7 @@ private:
|
||||||
{
|
{
|
||||||
PlanarYCbCrImage *image = new PlanarYCbCrImage(new BufferRecycleBin());
|
PlanarYCbCrImage *image = new PlanarYCbCrImage(new BufferRecycleBin());
|
||||||
PlanarYCbCrData data;
|
PlanarYCbCrData data;
|
||||||
|
data.mPicSize = mImageSize;
|
||||||
|
|
||||||
const uint32_t yPlaneSize = mImageSize.width * mImageSize.height;
|
const uint32_t yPlaneSize = mImageSize.width * mImageSize.height;
|
||||||
const uint32_t halfWidth = (mImageSize.width + 1) / 2;
|
const uint32_t halfWidth = (mImageSize.width + 1) / 2;
|
||||||
|
@ -130,6 +132,7 @@ private:
|
||||||
{
|
{
|
||||||
PlanarYCbCrImage *image = new PlanarYCbCrImage(new BufferRecycleBin());
|
PlanarYCbCrImage *image = new PlanarYCbCrImage(new BufferRecycleBin());
|
||||||
PlanarYCbCrData data;
|
PlanarYCbCrData data;
|
||||||
|
data.mPicSize = mImageSize;
|
||||||
|
|
||||||
const uint32_t yPlaneSize = mImageSize.width * mImageSize.height;
|
const uint32_t yPlaneSize = mImageSize.width * mImageSize.height;
|
||||||
const uint32_t halfWidth = (mImageSize.width + 1) / 2;
|
const uint32_t halfWidth = (mImageSize.width + 1) / 2;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче