diff options
author | wm4 <wm4@nowhere> | 2013-07-15 01:04:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-15 01:49:26 +0200 |
commit | 0ecd57d4b26500c662c398e3be2cfe316cee2431 (patch) | |
tree | b96e0b5a14297adcd650e1939391351d8aebefb8 /video/decode/dec_video.h | |
parent | 88e813aae6f2a91177b450a46c04a26db276c422 (diff) | |
download | mpv-0ecd57d4b26500c662c398e3be2cfe316cee2431.tar.bz2 mpv-0ecd57d4b26500c662c398e3be2cfe316cee2431.tar.xz |
video: unify colorspace setup
Guess the colorspace directly in mpcodecs_reconfig_vo(), instead of in
set_video_colorspace(). The difference is that the latter function just
makes the video filter chain (and VOs) force the detected colorspace,
and then throws it away, while the former is a bit more general and
central. Not really a big difference and it doesn't matter much in
practice, but it guarantees that there is no internal disagreement about
the colorspace.
Diffstat (limited to 'video/decode/dec_video.h')
-rw-r--r-- | video/decode/dec_video.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/decode/dec_video.h b/video/decode/dec_video.h index 6bca7fb573..88161ee54f 100644 --- a/video/decode/dec_video.h +++ b/video/decode/dec_video.h @@ -37,8 +37,8 @@ int get_video_quality_max(sh_video_t *sh_video); int get_video_colors(sh_video_t *sh_video, const char *item, int *value); int set_video_colors(sh_video_t *sh_video, const char *item, int value); -struct mp_csp_details; -void get_detected_video_colorspace(struct sh_video *sh, struct mp_csp_details *csp); +struct mp_image_params; +bool get_video_params(struct sh_video *sh, struct mp_image_params *p); void set_video_colorspace(struct sh_video *sh); void resync_video_stream(sh_video_t *sh_video); void video_reinit_vo(struct sh_video *sh_video); |