diff options
author | wm4 <wm4@nowhere> | 2013-07-18 13:49:28 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-18 13:49:28 +0200 |
commit | fcdb681822891dbd0f78b6f3dcfc7786de65c695 (patch) | |
tree | e9089cf02841b59acbb6cef1a85d4761dae34997 /video/mp_image.c | |
parent | b606a6ce1a94017ee6519d884661ef828878226a (diff) | |
download | mpv-fcdb681822891dbd0f78b6f3dcfc7786de65c695.tar.bz2 mpv-fcdb681822891dbd0f78b6f3dcfc7786de65c695.tar.xz |
img_format: add a mask for color class
Using the term "color class" to avoid confusion with the other
colorspace related concepts.
Also get rid of MP_IMGFLAG_FMT_MASK, since it was unused.
Diffstat (limited to 'video/mp_image.c')
-rw-r--r-- | video/mp_image.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/video/mp_image.c b/video/mp_image.c index 4b34944ec9..c22f3b4246 100644 --- a/video/mp_image.c +++ b/video/mp_image.c @@ -127,10 +127,9 @@ static void mp_image_alloc_planes(struct mp_image *mpi) void mp_image_setfmt(struct mp_image *mpi, unsigned int out_fmt) { - mpi->flags &= ~MP_IMGFLAG_FMT_MASK; struct mp_imgfmt_desc fmt = mp_imgfmt_get_desc(out_fmt); mpi->fmt = fmt; - mpi->flags |= fmt.flags; + mpi->flags = fmt.flags; mpi->imgfmt = fmt.id; mpi->chroma_x_shift = fmt.chroma_xs; mpi->chroma_y_shift = fmt.chroma_ys; |