diff options
author | wm4 <wm4@nowhere> | 2012-12-19 12:04:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-01-13 20:04:10 +0100 |
commit | ab94c64ed2d8b90bd7b0c348e79c2d8b8d055ee6 (patch) | |
tree | c58bbce7185bd003daad53472a8c49fafb4d769a /video/filter | |
parent | 00653a3eb0520e9d2409929cd217a5c299be2f5c (diff) | |
download | mpv-ab94c64ed2d8b90bd7b0c348e79c2d8b8d055ee6.tar.bz2 mpv-ab94c64ed2d8b90bd7b0c348e79c2d8b8d055ee6.tar.xz |
mp_image: simplify image allocation
mp_image_alloc_planes() allocated images with minimal stride, even if
the resulting stride was unaligned. It was the responsibility of
vf_get_image() to set an image's width to something larger than
required to get an aligned stride, and then crop it. Always allocate
with aligned strides instead.
Get rid of IMGFMT_IF09 special handling. This format is not used
anymore. (IF09 has 4x4 chroma sub-sampling, and that is what it was
mainly used for - this is still supported.) Get rid of swapped chroma
plane allocation. This is not used anywhere, and VOs like vo_xv,
vo_direct3d and vo_sdl do their own swapping.
Always round chroma width/height up instead of down. Consider 4:2:0 and
an uneven image size. For luma, the size was left uneven, and the chroma
size was rounded down. This doesn't make sense, because chroma would be
missing for the bottom/right border.
Remove mp_image_new_empty() and mp_image_alloc_planes(), they were not
used anymore, except in draw_bmp.c. (It's still allowed to setup
mp_images manually, you just can't allocate image data with them
anymore - this is also done in draw_bmp.c.)
Diffstat (limited to 'video/filter')
0 files changed, 0 insertions, 0 deletions