Loading media/codec2/components/vpx/C2SoftVpxDec.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -68,8 +68,8 @@ public: DefineParam(mSize, C2_PARAMKEY_PICTURE_SIZE) .withDefault(new C2StreamPictureSizeInfo::output(0u, 320, 240)) .withFields({ C2F(mSize, width).inRange(2, 2048, 2), C2F(mSize, height).inRange(2, 2048, 2), C2F(mSize, width).inRange(2, 2048), C2F(mSize, height).inRange(2, 2048), }) .withSetter(SizeSetter) .build()); Loading Loading @@ -718,7 +718,12 @@ status_t C2SoftVpxDec::outputBuffer( } C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; c2_status_t err = pool->fetchGraphicBlock(align(mWidth, 16), mHeight, format, usage, &block); // We always create a graphic block that is width aligned to 16 and height // aligned to 2. We set the correct "crop" value of the image in the call to // createGraphicBuffer() by setting the correct image dimensions. c2_status_t err = pool->fetchGraphicBlock(align(mWidth, 16), align(mHeight, 2), format, usage, &block); if (err != C2_OK) { ALOGE("fetchGraphicBlock for Output failed with status %d", err); work->result = err; Loading Loading
media/codec2/components/vpx/C2SoftVpxDec.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -68,8 +68,8 @@ public: DefineParam(mSize, C2_PARAMKEY_PICTURE_SIZE) .withDefault(new C2StreamPictureSizeInfo::output(0u, 320, 240)) .withFields({ C2F(mSize, width).inRange(2, 2048, 2), C2F(mSize, height).inRange(2, 2048, 2), C2F(mSize, width).inRange(2, 2048), C2F(mSize, height).inRange(2, 2048), }) .withSetter(SizeSetter) .build()); Loading Loading @@ -718,7 +718,12 @@ status_t C2SoftVpxDec::outputBuffer( } C2MemoryUsage usage = { C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE }; c2_status_t err = pool->fetchGraphicBlock(align(mWidth, 16), mHeight, format, usage, &block); // We always create a graphic block that is width aligned to 16 and height // aligned to 2. We set the correct "crop" value of the image in the call to // createGraphicBuffer() by setting the correct image dimensions. c2_status_t err = pool->fetchGraphicBlock(align(mWidth, 16), align(mHeight, 2), format, usage, &block); if (err != C2_OK) { ALOGE("fetchGraphicBlock for Output failed with status %d", err); work->result = err; Loading