Lines Matching refs:buf

25 void fillYV12Buffer(uint8_t* buf, int w, int h, int stride) {  in fillYV12Buffer()  argument
39 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = intensity; in fillYV12Buffer()
41 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = intensity; in fillYV12Buffer()
43 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 0] = in fillYV12Buffer()
44 buf[yuvTexOffsetV + (y*2 * yuvTexStrideV) + x*2 + 1] = in fillYV12Buffer()
45 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 0] = in fillYV12Buffer()
46 buf[yuvTexOffsetV + ((y*2+1) * yuvTexStrideV) + x*2 + 1] = in fillYV12Buffer()
54 void fillYV12BufferRect(uint8_t* buf, int w, int h, int stride, in fillYV12BufferRect() argument
66 buf[yuvTexOffsetY + (y * yuvTexStrideY) + x] = inside ? 240 : 64; in fillYV12BufferRect()
70 buf[yuvTexOffsetU + (y * yuvTexStrideU) + x] = 16; in fillYV12BufferRect()
71 buf[yuvTexOffsetV + (y * yuvTexStrideV) + x] = in fillYV12BufferRect()
78 void fillRGBA8Buffer(uint8_t* buf, int w, int h, int stride) { in fillRGBA8Buffer() argument
86 buf[offset + c] = (parityX ^ parityY) ? 231 : 35; in fillRGBA8Buffer()
98 sp<GraphicBuffer> buf(GraphicBuffer::from(anb)); in produceOneRGBA8Frame() local
101 ASSERT_EQ(NO_ERROR, buf->lock(GRALLOC_USAGE_SW_WRITE_OFTEN, in produceOneRGBA8Frame()
103 fillRGBA8Buffer(img, buf->getWidth(), buf->getHeight(), buf->getStride()); in produceOneRGBA8Frame()
104 ASSERT_EQ(NO_ERROR, buf->unlock()); in produceOneRGBA8Frame()
105 ASSERT_EQ(NO_ERROR, anw->queueBuffer(anw.get(), buf->getNativeBuffer(), in produceOneRGBA8Frame()