Lines Matching refs:stride

172             bPtr += y * buf.stride + x;
191 bPtr += y * buf.stride + x;
197 // stride is in pixels, not in bytes
198 uint16_t *bPtr = ((uint16_t*)buf.data) + y * buf.stride + x;
206 bPtr += (y * buf.stride + x) * bytesPerPixel;
221 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride);
225 void fillGreyscaleBuffer(T* buf, int w, int h, int stride, int bpp) {
233 // stride is in pixels, not in bytes
234 int yuvTexStrideY = stride;
254 void fillRgba8888Buffer(uint8_t* buf, int w, int h, int stride)
260 // stride is in pixels, not in bytes
270 buf[(y*stride + x)*bytesPerPixel + 0] = r;
271 buf[(y*stride + x)*bytesPerPixel + 1] = g;
272 buf[(y*stride + x)*bytesPerPixel + 2] = b;
273 buf[(y*stride + x)*bytesPerPixel + 3] = 255;
281 void fillBayerRawBuffer(uint8_t* buf, int w, int h, int stride) {
282 ALOGVV("fillBayerRawBuffer: %p with %d x %d, stride %d", buf, w, h ,stride);
287 uint16_t *bPtr1 = ((uint16_t*)buf) + stride*y;
288 uint16_t *bPtr2 = bPtr1 + stride;
447 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride,
450 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride);
452 void fillRGBA8BufferSolid(uint8_t* buf, int w, int h, int stride, uint8_t r,
489 int64_t timestamp, uint32_t *stride) {
500 *stride = buf->getStride();
509 fillYV12Buffer(img, params.width, params.height, *stride);
556 uint32_t stride;
558 &stride));
570 EXPECT_EQ(stride, b.stride);
591 uint32_t stride[numInQueue];
596 &stride[i]));
611 EXPECT_EQ(stride[i], b.stride);
633 uint32_t stride;
638 &stride));
653 EXPECT_EQ(stride, b[i].stride);
676 EXPECT_EQ(stride, bTooMuch.stride);