40 static void toright(
unsigned char *
dst[3],
unsigned char *src[3],
41 int dststride[3],
int srcstride[3],
46 for (k = 0; k < 3; k++) {
47 unsigned char* fromL = src[k];
48 unsigned char* fromR = src[k];
49 unsigned char*
to = dst[k];
50 int src = srcstride[k];
51 int dst = dststride[k];
58 ss = src * (h / 4 + p->
skipline / 2);
68 unsigned char*
t =
to;
69 unsigned char* sL = fromL;
70 unsigned char* sR = fromR;
73 for (j = dd; j > 0; j--) {
74 *t++ = (sL[0] + sL[1]) / 2;
77 for (j = dd ; j > 0; j--) {
78 *t++ = (sR[0] + sR[1]) / 2;
82 for (j = dd * 2 ; j > 0; j--)
84 for (j = dd * 2 ; j > 0; j--)
107 mpi->
w * vf->priv->scalew,
108 mpi->
h / vf->priv->scaleh - vf->priv->skipline);
111 mpi->
stride, mpi->
w, mpi->
h, vf->priv);
116 static int config(
struct vf_instance *vf,
118 unsigned int flags,
unsigned int outfmt)
122 height / vf->priv->scaleh - vf->priv->skipline, d_width, d_height, flags,
IMGFMT_YV12);
138 static void uninit(
struct vf_instance *vf)
160 "convert stereo movie from top-bottom to left-right field",