diff options
author | wm4 <wm4@nowhere> | 2012-12-25 22:29:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:12 +0100 |
commit | 717d904bbc20e06e2c6c71613d59e065845ff209 (patch) | |
tree | 6f758cff6d98e579b767952894023997618c44d5 /video/img_format.h | |
parent | ded932dbd40e326a8d42acb8c4b8297046f08695 (diff) | |
download | mpv-717d904bbc20e06e2c6c71613d59e065845ff209.tar.bz2 mpv-717d904bbc20e06e2c6c71613d59e065845ff209.tar.xz |
mp_image: add mp_image_crop()
Actually stolen from draw_bmp.c.
Diffstat (limited to 'video/img_format.h')
-rw-r--r-- | video/img_format.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/img_format.h b/video/img_format.h index f67971e5c6..37ac32ffac 100644 --- a/video/img_format.h +++ b/video/img_format.h @@ -64,6 +64,8 @@ struct mp_imgfmt_desc { int flags; // MP_IMGFLAG_* bitfield int8_t num_planes; int8_t chroma_xs, chroma_ys; // chroma shift (i.e. log2 of chroma pixel size) + int8_t align_x, align_y; // pixel size to get byte alignment and to get + // to a pixel pos where luma & chroma aligns int8_t avg_bpp; int8_t bytes[MP_MAX_PLANES]; // bytes per pixel (MP_IMGFLAG_BYTE_ALIGNED) int8_t bpp[MP_MAX_PLANES]; // bits per pixel |