summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristophe Thommeret <hftom@free.fr>2010-04-08 18:56:49 +0200
committerChristophe Thommeret <hftom@free.fr>2010-04-08 18:56:49 +0200
commit0fa51028db5e8c119a7f1adf6a32932a0cb7827b (patch)
tree5539e53761a3824d707a9ed70ef14012f3fa07c1 /src
parentf8ca2f9dcd2384b8069120845d04c0c44e5dd959 (diff)
downloadxine-lib-0fa51028db5e8c119a7f1adf6a32932a0cb7827b.tar.gz
xine-lib-0fa51028db5e8c119a7f1adf6a32932a0cb7827b.tar.bz2
Add two new VO_CAP_*: SHARPNESS and NOISE_REDUCTION. Fix vdpau VO driver caps.
Diffstat (limited to 'src')
-rw-r--r--src/video_out/video_out_vdpau.c10
1 files changed, 10 insertions, 0 deletions
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 );