Lines Matching refs:srcBM

12 static void downsample32_nocheck(void* dst, int, int, const void* srcPtr, const SkBitmap& srcBM) {
23 p += srcBM.rowBytes() >> 2;
33 static void downsample32_check(void* dst, int x, int y, const void* srcPtr, const SkBitmap& srcBM) {
39 SkASSERT(srcBM.getAddr32(x, y) == p);
44 if (x < srcBM.width() - 1) {
50 if (y < srcBM.height() - 1) {
51 p += srcBM.rowBytes() >> 2;
54 if (x < srcBM.width() - 1) {
72 static void downsample16(void* dst, int x, int y, const void* srcPtr, const SkBitmap& srcBM) {
78 SkASSERT(srcBM.getAddr16(x, y) == p);
83 if (x < srcBM.width() - 1) {
89 if (y < srcBM.height() - 1) {
90 p += srcBM.rowBytes() >> 1;
93 if (x < srcBM.width() - 1) {
109 static void downsample4444(void* dst, int x, int y, const void* srcPtr, const SkBitmap& srcBM) {
115 SkASSERT(srcBM.getAddr16(x, y) == p);
120 if (x < srcBM.width() - 1) {
126 if (y < srcBM.height() - 1) {
127 p += srcBM.rowBytes() >> 1;
130 if (x < srcBM.width() - 1) {
138 static void downsample8_nocheck(void* dst, int, int, const void* srcPtr, const SkBitmap& srcBM) {
139 const size_t rb = srcBM.rowBytes();
144 static void downsample8_check(void* dst, int x, int y, const void* srcPtr, const SkBitmap& srcBM) {
150 SkASSERT(srcBM.getAddr8(x, y) == p);
153 if (x < srcBM.width() - 1) {
159 if (y < srcBM.height() - 1) {
160 p += srcBM.rowBytes();
163 if (x < srcBM.width() - 1) {
182 typedef void SkDownSampleProc(void*, int x, int y, const void* srcPtr, const SkBitmap& srcBM);
263 SkBitmap srcBM(src);
279 srcBM.lockPixels();
282 const size_t pixelSize = srcBM.info().bytesPerPixel();
284 const void* srcBasePtr = srcBM.getPixels();
290 proc_nocheck(dstPtr, x, y, srcPtr, srcBM);
295 proc_check(dstPtr, widthEven, y, srcPtr, srcBM);
298 srcBasePtr = (char*)srcBasePtr + srcBM.rowBytes() * 2;
305 proc_check(dstPtr, x, heightEven, srcPtr, srcBM);
311 srcBM.unlockPixels();
313 srcBM = dstBM;