| 515 | } |
| 516 | |
| 517 | ErrorCode ImageProcessUtils::execFunc(const uint8_t *source, int stride, void *dest) { |
| 518 | uint8_t sampleDest[4 * CACHE_SIZE]; |
| 519 | uint8_t blitDest[4 * CACHE_SIZE]; |
| 520 | int destBytes = mInside->mDtype.bytes(); |
| 521 | int tileCount = UP_DIV(mInside->ow, CACHE_SIZE); |
| 522 | if (mInside->mDraw) { |
| 523 | tileCount = 1; |
| 524 | } |
| 525 | |
| 526 | return transformImage(source, (uint8_t*)dest, sampleDest, blitDest, tileCount, destBytes, nullptr); |
| 527 | } |
| 528 | |
| 529 | void ImageProcessUtils::setDraw() { |
| 530 | if (mInside) { |