summaryrefslogtreecommitdiffstats
path: root/video/mp_image.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-12-27 01:27:59 +0100
committerwm4 <wm4@nowhere>2013-01-13 20:04:13 +0100
commit1800761a6501f2c39d65257f707de148a77bca47 (patch)
treea1eb9e047c4aec540ee84c1017f041c50db41aa5 /video/mp_image.c
parent61e59cd92c779a4684ebfa554feacc0a4e8d3c78 (diff)
downloadmpv-1800761a6501f2c39d65257f707de148a77bca47.tar.bz2
mpv-1800761a6501f2c39d65257f707de148a77bca47.tar.xz
mp_image: remove mp_image.bpp
This field contained the "average" bit depth per pixel. It serves no purpose anymore. Remove it. Only vo_opengl_old still uses this in order to allocate a buffer that is shared between all planes.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r--video/mp_image.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/video/mp_image.c b/video/mp_image.c
index 832dec98fd..dd58f131a8 100644
--- a/video/mp_image.c
+++ b/video/mp_image.c
@@ -129,7 +129,6 @@ void mp_image_setfmt(struct mp_image *mpi, unsigned int out_fmt)
mpi->fmt = fmt;
mpi->flags |= fmt.flags;
mpi->imgfmt = fmt.id;
- mpi->bpp = fmt.avg_bpp;
mpi->chroma_x_shift = fmt.chroma_xs;
mpi->chroma_y_shift = fmt.chroma_ys;
mpi->num_planes = fmt.num_planes;