0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00
mpv/video
wm4 d77d9fb933 mp_image: require using mp_image_set_size() for setting w/h
Setting the size of a mp_image must be done with mp_image_set_size()
now. Do this to guarantee that the redundant fields (like chroma_width)
are updated consistently. Replacing the redundant fields by function
calls would probably be better, but there are too many uses of them,
and is a bit less convenient.

Most code actually called mp_image_setfmt(), which did this as well.
This commit just makes things a bit more explicit.

Warning: the video filter chain still sets up mp_images manually,
and vf_get_image() is not updated.
2013-01-13 17:39:32 +01:00
..
decode mp_image: require using mp_image_set_size() for setting w/h 2013-01-13 17:39:32 +01:00
filter mp_image: require using mp_image_set_size() for setting w/h 2013-01-13 17:39:32 +01:00
out mp_image: require using mp_image_set_size() for setting w/h 2013-01-13 17:39:32 +01:00
csputils.c Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
csputils.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
fmt-conversion.c video: silence warnings for missing libavutils pixel formats 2012-12-14 21:34:56 +01:00
fmt-conversion.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
image_writer.c video: fix bogus uses of mp_image.w/width 2012-11-21 19:58:51 +01:00
image_writer.h Rename directories, move files (step 1 of 2) (does not compile) 2012-11-12 20:06:14 +01:00
img_format.c video: add support for 12 and 14 bit YUV pixel formats 2012-12-03 21:08:51 +01:00
img_format.h video: add support for 12 and 14 bit YUV pixel formats 2012-12-03 21:08:51 +01:00
memcpy_pic.h memcpy_pic: kill useless/dangerous optimization 2012-11-25 23:40:07 +01:00
mp_image_pool.c mp_image_pool: add pool to avoid frequent image reallocations 2013-01-13 17:39:32 +01:00
mp_image_pool.h mp_image_pool: add pool to avoid frequent image reallocations 2013-01-13 17:39:32 +01:00
mp_image.c mp_image: require using mp_image_set_size() for setting w/h 2013-01-13 17:39:32 +01:00
mp_image.h mp_image: require using mp_image_set_size() for setting w/h 2013-01-13 17:39:32 +01:00
sws_utils.c sub: reimplement -spugauss as --sub-gauss 2012-11-25 23:40:07 +01:00
sws_utils.h sub: reimplement -spugauss as --sub-gauss 2012-11-25 23:40:07 +01:00
vfcap.h video: remove slice based filtering and video output 2013-01-13 17:39:31 +01:00