Lines Matching defs:width
42 void computeGradient(unsigned char* dataPtr, int width, int height, short* gxPtr, short* gyPtr) {
44 for (int j = 0; j < width; j++) {
46 const int right = (j < width - 1) ? 4 : 0;
47 const int curr = (i * width + j) * 4;
48 const int above = (i > 0) ? curr - 4 * width : curr;
49 const int below = (i < height - 1) ? curr + 4 * width : curr;
50 const int offset = (i * width + j) * 3;
66 JNIEnv* env, jclass clazz, jint width, jint height, jobject imageBuffer,
78 int numPixels = width * height;
82 computeGradient(srcPtr, width, height, gxPtr, gyPtr);