From 0fa51028db5e8c119a7f1adf6a32932a0cb7827b Mon Sep 17 00:00:00 2001 From: Christophe Thommeret Date: Thu, 8 Apr 2010 18:56:49 +0200 Subject: Add two new VO_CAP_*: SHARPNESS and NOISE_REDUCTION. Fix vdpau VO driver caps. --- src/video_out/video_out_vdpau.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/video_out/video_out_vdpau.c b/src/video_out/video_out_vdpau.c index 2b19c9885..d45bafbd9 100644 --- a/src/video_out/video_out_vdpau.c +++ b/src/video_out/video_out_vdpau.c @@ -2677,6 +2677,16 @@ static vo_driver_t *vdpau_open_plugin (video_driver_class_t *class_gen, const vo config->update_num(config,"engine.buffers.video_num_frames",22); this->capabilities = VO_CAP_YV12 | VO_CAP_YUY2 | VO_CAP_CROP | VO_CAP_UNSCALED_OVERLAY | VO_CAP_CUSTOM_EXTENT_OVERLAY | VO_CAP_ARGB_LAYER_OVERLAY | VO_CAP_VIDEO_WINDOW_OVERLAY; + + this->capabilities |= VO_CAP_HUE; + this->capabilities |= VO_CAP_SATURATION; + this->capabilities |= VO_CAP_CONTRAST; + this->capabilities |= VO_CAP_BRIGHTNESS; + if (this->sharpness_is_supported) + this->capabilities |= VO_CAP_SHARPNESS; + if (this->noise_reduction_is_supported) + this->capabilities |= VO_CAP_NOISE_REDUCTION; + ok = 0; uint32_t mw, mh, ml, mr; st = vdp_decoder_query_capabilities( vdp_device, VDP_DECODER_PROFILE_H264_MAIN, &ok, &ml, &mr, &mw, &mh ); -- cgit v1.2.3