Lines Matching refs:dh
493 int dh = (vscale - 1 + src->y_height * vratio) / vscale;
497 (unsigned char *) dst->y_buffer, dst->y_stride, dw, dh,
501 for (i = 0; i < dh; i++)
504 if (dh < (int)dst->y_height)
505 for (i = dh - 1; i < (int)dst->y_height; i++)
506 memcpy(dst->y_buffer + i * dst->y_stride, dst->y_buffer + (dh - 2) * dst->y_stride, dst->y_width + 1);
509 (unsigned char *) dst->u_buffer, dst->uv_stride, dw / 2, dh / 2,
516 if (dh / 2 < (int)dst->uv_height)
517 for (i = dh / 2 - 1; i < (int)dst->y_height / 2; i++)
518 memcpy(dst->u_buffer + i * dst->uv_stride, dst->u_buffer + (dh / 2 - 2)*dst->uv_stride, dst->uv_width);
521 (unsigned char *) dst->v_buffer, dst->uv_stride, dw / 2, dh / 2,
528 if (dh / 2 < (int) dst->uv_height)
529 for (i = dh / 2 - 1; i < (int)dst->y_height / 2; i++)
530 memcpy(dst->v_buffer + i * dst->uv_stride, dst->v_buffer + (dh / 2 - 2)*dst->uv_stride, dst->uv_width);