From b3495d9ccf5ad1d5d84284affed1083eee5887ee Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Apr 2015 20:58:26 +0200 Subject: mp_image: remove redundant plane_w/h fields Seems relatively painful in this case, but they are morally wrong. --- video/mp_image.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'video/mp_image.h') diff --git a/video/mp_image.h b/video/mp_image.h index 16862f9882..95fe8ad20e 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -95,10 +95,6 @@ typedef struct mp_image { int pict_type; // 0->unknown, 1->I, 2->P, 3->B int fields; - /* redundant */ - int plane_w[MP_MAX_PLANES]; - int plane_h[MP_MAX_PLANES]; - /* only inside filter chain */ double pts; /* memory management */ @@ -125,6 +121,8 @@ void mp_image_crop_rc(struct mp_image *img, struct mp_rect rc); void mp_image_vflip(struct mp_image *img); void mp_image_set_size(struct mp_image *mpi, int w, int h); +int mp_image_plane_w(struct mp_image *mpi, int plane); +int mp_image_plane_h(struct mp_image *mpi, int plane); void mp_image_setfmt(mp_image_t* mpi, int out_fmt); void mp_image_steal_data(struct mp_image *dst, struct mp_image *src); -- cgit v1.2.3