diff options
author | wm4 <wm4@nowhere> | 2015-04-10 20:58:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-04-10 20:58:26 +0200 |
commit | b3495d9ccf5ad1d5d84284affed1083eee5887ee (patch) | |
tree | 8fa38799cd26ebf743b12357de92ef29366a4676 /video/mp_image.h | |
parent | cf55fa64710bdd5999b437f0cccdb036324ae11e (diff) | |
download | mpv-b3495d9ccf5ad1d5d84284affed1083eee5887ee.tar.bz2 mpv-b3495d9ccf5ad1d5d84284affed1083eee5887ee.tar.xz |
mp_image: remove redundant plane_w/h fields
Seems relatively painful in this case, but they are morally wrong.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 6 |
1 files changed, 2 insertions, 4 deletions
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); |