Lines Matching refs:mpi
38 static int put_image(struct vf_instance *vf, mp_image_t *mpi, double pts)
42 int flags = mpi->fields;
45 dmpi = ff_vf_get_image(vf->next, mpi->imgfmt,
47 MP_IMGFLAG_PRESERVE, mpi->width, mpi->height);
64 ret = ff_vf_next_put_image(vf, mpi, MP_NOPTS_VALUE);
68 mpi->planes[0], mpi->w, mpi->h/2,
69 dmpi->stride[0]*2, mpi->stride[0]*2);
70 if (mpi->flags & MP_IMGFLAG_PLANAR) {
72 mpi->planes[1],
73 mpi->chroma_width,
74 mpi->chroma_height/2,
76 mpi->stride[1]*2);
78 mpi->planes[2],
79 mpi->chroma_width,
80 mpi->chroma_height/2,
82 mpi->stride[2]*2);
88 mpi->planes[0]+mpi->stride[0], mpi->w, mpi->h/2,
89 dmpi->stride[0]*2, mpi->stride[0]*2);
90 if (mpi->flags & MP_IMGFLAG_PLANAR) {
92 mpi->planes[1]+mpi->stride[1],
93 mpi->chroma_width, mpi->chroma_height/2,
94 dmpi->stride[1]*2, mpi->stride[1]*2);
96 mpi->planes[2]+mpi->stride[2],
97 mpi->chroma_width, mpi->chroma_height/2,
98 dmpi->stride[2]*2, mpi->stride[2]*2);
103 ret |= ff_vf_next_put_image(vf, mpi, MP_NOPTS_VALUE);
108 mpi->planes[0], mpi->w, mpi->h/2,
109 dmpi->stride[0]*2, mpi->stride[0]*2);
110 if (mpi->flags & MP_IMGFLAG_PLANAR) {
112 mpi->planes[1],
113 mpi->chroma_width,
114 mpi->chroma_height/2,
116 mpi->stride[1]*2);
118 mpi->planes[2],
119 mpi->chroma_width,
120 mpi->chroma_height/2,
122 mpi->stride[2]*2);