Lines Matching refs:buf
44 const WebPYUVABuffer* const buf = &buffer->u.YUVA;
45 const int y_stride = abs(buf->y_stride);
46 const int u_stride = abs(buf->u_stride);
47 const int v_stride = abs(buf->v_stride);
48 const int a_stride = abs(buf->a_stride);
53 ok &= (y_size <= buf->y_size);
54 ok &= (u_size <= buf->u_size);
55 ok &= (v_size <= buf->v_size);
59 ok &= (buf->y != NULL);
60 ok &= (buf->u != NULL);
61 ok &= (buf->v != NULL);
64 ok &= (a_size <= buf->a_size);
65 ok &= (buf->a != NULL);
68 const WebPRGBABuffer* const buf = &buffer->u.RGBA;
69 const int stride = abs(buf->stride);
71 ok &= (size <= buf->size);
73 ok &= (buf->rgba != NULL);
114 WebPYUVABuffer* const buf = &buffer->u.YUVA;
115 buf->y = output;
116 buf->y_stride = stride;
117 buf->y_size = (size_t)size;
118 buf->u = output + size;
119 buf->u_stride = uv_stride;
120 buf->u_size = (size_t)uv_size;
121 buf->v = output + size + uv_size;
122 buf->v_stride = uv_stride;
123 buf->v_size = (size_t)uv_size;
125 buf->a = output + size + 2 * uv_size;
127 buf->a_size = (size_t)a_size;
128 buf->a_stride = a_stride;
130 WebPRGBABuffer* const buf = &buffer->u.RGBA;
131 buf->rgba = output;
132 buf->stride = stride;
133 buf->size = (size_t)size;
144 WebPRGBABuffer* const buf = &buffer->u.RGBA;
145 buf->rgba += (buffer->height - 1) * buf->stride;
146 buf->stride = -buf->stride;
148 WebPYUVABuffer* const buf = &buffer->u.YUVA;
150 buf->y += (H - 1) * buf->y_stride;
151 buf->y_stride = -buf->y_stride;
152 buf->u += ((H - 1) >> 1) * buf->u_stride;
153 buf->u_stride = -buf->u_stride;
154 buf->v += ((H - 1) >> 1) * buf->v_stride;
155 buf->v_stride = -buf->v_stride;
156 if (buf->a != NULL) {
157 buf->a += (H - 1) * buf->a_stride;
158 buf->a_stride = -buf->a_stride;