From 738aeb1c60c6ffe95e915e443598f8a51081bdfb Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Oct 2012 19:29:47 +0200 Subject: screenshot: let VOs pass colorspace information via mp_image This removes the hack that screenshot_save() got the colorspace information from the decoder. Instead, require the VOs to set the colorspace information on the mp_images used to pass around the screenshot data. This is more correct, as the image may have been converted/modified in the video filter chain, although there's nothing yet in the video filter chain which does this correctly. --- libvo/vo_corevideo.m | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libvo/vo_corevideo.m') diff --git a/libvo/vo_corevideo.m b/libvo/vo_corevideo.m index c05863145c..0fd8510f39 100644 --- a/libvo/vo_corevideo.m +++ b/libvo/vo_corevideo.m @@ -381,6 +381,8 @@ static mp_image_t *get_screenshot(struct vo *vo) image->w = vo->aspdat.prew; image->h = vo->aspdat.preh; + mp_image_set_colorspace_details(image, &p->colorspace); + return image; } -- cgit v1.2.3