Mercurial > mplayer.hg
comparison libmpcodecs/vf_screenshot.c @ 25800:f40e4a379384
Remove useless casts
author | reimar |
---|---|
date | Mon, 21 Jan 2008 19:59:27 +0000 |
parents | 1e8364740a86 |
children | 1318e956c092 |
comparison
equal
deleted
inserted
replaced
25799:4e4927b0c91b | 25800:f40e4a379384 |
---|---|
117 int dst_stride[3]; | 117 int dst_stride[3]; |
118 | 118 |
119 dst_stride[0] = priv->stride; | 119 dst_stride[0] = priv->stride; |
120 dst_stride[1] = dst_stride[2] = 0; | 120 dst_stride[1] = dst_stride[2] = 0; |
121 if (!priv->buffer) | 121 if (!priv->buffer) |
122 priv->buffer = (uint8_t*)memalign(16, dst_stride[0]*priv->dh); | 122 priv->buffer = memalign(16, dst_stride[0]*priv->dh); |
123 | 123 |
124 dst[0] = priv->buffer; | 124 dst[0] = priv->buffer; |
125 dst[1] = dst[2] = 0; | 125 dst[1] = dst[2] = 0; |
126 sws_scale_ordered(priv->ctx, mpi->planes, mpi->stride, 0, priv->dh, dst, dst_stride); | 126 sws_scale_ordered(priv->ctx, mpi->planes, mpi->stride, 0, priv->dh, dst, dst_stride); |
127 } | 127 } |
130 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, | 130 vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, |
131 mpi->type, mpi->flags, mpi->width, mpi->height); | 131 mpi->type, mpi->flags, mpi->width, mpi->height); |
132 if (vf->priv->shot) { | 132 if (vf->priv->shot) { |
133 vf->priv->store_slices = 1; | 133 vf->priv->store_slices = 1; |
134 if (!vf->priv->buffer) | 134 if (!vf->priv->buffer) |
135 vf->priv->buffer = (uint8_t*)memalign(16, vf->priv->stride*vf->priv->dh); | 135 vf->priv->buffer = memalign(16, vf->priv->stride*vf->priv->dh); |
136 } | 136 } |
137 | 137 |
138 } | 138 } |
139 | 139 |
140 static void draw_slice(struct vf_instance_s* vf, | 140 static void draw_slice(struct vf_instance_s* vf, |