Lines Matching refs:pitch

233 	/* Determine the desired destination pitch (representing the
234 * chroma's pitch in the planar case).
240 frame->pitch[0] = ALIGN((height / 2), align);
241 frame->pitch[1] = ALIGN(height, align);
244 frame->pitch[0] = ALIGN((width / 2), align);
245 frame->pitch[1] = ALIGN(width, align);
248 frame->size *= frame->pitch[0] + frame->pitch[1];
251 frame->UBufOffset = (int)frame->pitch[1] * width;
253 frame->UBufOffset + (int)frame->pitch[0] * width / 2;
255 frame->UBufOffset = (int)frame->pitch[1] * height;
257 frame->UBufOffset + (int)frame->pitch[0] * height / 2;
263 frame->pitch[0] = ALIGN((height << 2), align);
264 frame->size = (int)frame->pitch[0] * width;
266 frame->pitch[0] = ALIGN((width << 2), align);
267 frame->size = (int)frame->pitch[0] * height;
273 frame->pitch[0] = ALIGN((height << 1), align);
274 frame->size = (int)frame->pitch[0] * width;
276 frame->pitch[0] = ALIGN((width << 1), align);
277 frame->size = (int)frame->pitch[0] * height;
284 frame->pitch[0] = ALIGN((height << 1), align);
285 frame->size = (int)frame->pitch[0] * width;
287 frame->pitch[0] = ALIGN((width << 1), align);
288 frame->size = (int)frame->pitch[0] * height;
292 frame->pitch[1] = 0;
304 int dstPitch = frame->pitch[!sub], srcPitch;
395 int pitch = frame->width << 1;
412 src = buf + (y * pitch) + (x << 1);
419 src += pitch;
420 dst += frame->pitch[0];
429 dst[(i + 0) + ((w - j - 1) * frame->pitch[0])] = *s;
432 src += pitch;
435 src = buf + (y * pitch) + (x << 1);
439 dst[((i * 2) + 1) + ((w - j - 1) * frame->pitch[0])] = src[(j * 2) + 1 + (i * pitch)];
440 dst[((i * 2) + 1) + ((w - j - 2) * frame->pitch[0])] = src[(j * 2) + 1 + ((i + 1) * pitch)];
441 /* Copy V */ dst[((i * 2) + 3) + ((w - j - 1) * frame->pitch[0])] = src[(j * 2) + 3 + (i * pitch)];
442 dst[((i * 2) + 3) + ((w - j - 2) * frame->pitch[0])] = src[(j * 2) + 3 + ((i + 1) * pitch)];
451 dst[(w - j - 4) + ((h - i - 1) * frame->pitch[0])] = *s++;
452 dst[(w - j - 3) + ((h - i - 1) * frame->pitch[0])] = *s++;
453 dst[(w - j - 2) + ((h - i - 1) * frame->pitch[0])] = *s++;
454 dst[(w - j - 1) + ((h - i - 1) * frame->pitch[0])] = *s++;
456 src += pitch;
465 dst[(h - i - 2) + (j * frame->pitch[0])] = *s;
468 src += pitch;
471 src = buf + (y * pitch) + (x << 1);
475 dst[(((h - i) * 2) - 3) + (j * frame->pitch[0])] = src[(j * 2) + 1 + (i * pitch)];
476 dst[(((h - i) * 2) - 3) + ((j + 1) * frame->pitch[0])] = src[(j * 2) + 1 + ((i + 1) * pitch)];
478 dst[(((h - i) * 2) - 1) + (j * frame->pitch[0])] = src[(j * 2) + 3 + (i * pitch)];
479 dst[(((h - i) * 2) - 1) + ((j + 1) * frame->pitch[0])] = src[(j * 2) + 3 + ((i + 1) * pitch)];
493 DBG(("%s: handle=%d, size=%dx%d [%d], pitch=[%d,%d] rotation=%d, is-texture=%d\n",
495 frame->width, frame->height, frame->size, frame->pitch[0], frame->pitch[1],
513 ALIGN(w >> 1, 4) == frame->pitch[0] &&
514 ALIGN(w, 4) == frame->pitch[1]) {
551 if (w*2 == frame->pitch[0]) {