38 static int config(
struct vf_instance *vf,
40 unsigned int flags,
unsigned int outfmt){
41 int pixel_stride= (width+15)&~15;
45 pixel_stride= mpi->stride[0];
47 pixel_stride= 8*mpi->stride[0] / mpi->bpp;
51 if(vf->priv->interleave){
52 vf->priv->height= 2*
height;
53 vf->priv->width= width - (pixel_stride/2);
54 vf->priv->stridefactor=1;
56 vf->priv->height= height/2;
57 vf->priv->width= width + pixel_stride;
58 vf->priv->stridefactor=4;
63 (d_width*vf->priv->stridefactor)>>1, 2*d_height/vf->priv->stridefactor, flags, outfmt);
74 vf->priv->width, vf->priv->height);
77 vf->dmpi->planes[0]=mpi->
planes[0];
78 vf->dmpi->stride[0]=(mpi->
stride[0]*vf->priv->stridefactor)>>1;
80 vf->dmpi->planes[1]=mpi->
planes[1];
81 vf->dmpi->stride[1]=(mpi->
stride[1]*vf->priv->stridefactor)>>1;
82 vf->dmpi->planes[2]=mpi->
planes[2];
83 vf->dmpi->stride[2]=(mpi->
stride[2]*vf->priv->stridefactor)>>1;
85 vf->dmpi->planes[1]=mpi->
planes[1];
92 static void uninit(
struct vf_instance *vf)
108 "fast (de)interleaver",
110 "Michael Niedermayer",