diff options
-rw-r--r-- | include/xine/video_out.h | 2 | ||||
-rw-r--r-- | src/video_out/video_out_vdpau.c | 10 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/xine/video_out.h b/include/xine/video_out.h index 291d2fffc..f82887d6f 100644 --- a/include/xine/video_out.h +++ b/include/xine/video_out.h @@ -309,6 +309,8 @@ struct xine_video_port_s { #define VO_CAP_ARGB_LAYER_OVERLAY 0x02000000 /* driver supports true color overlay */ #define VO_CAP_VIDEO_WINDOW_OVERLAY 0x04000000 /* driver can scale video to an area within overlay */ #define VO_CAP_GAMMA 0x08000000 +#define VO_CAP_SHARPNESS 0x10000000 +#define VO_CAP_NOISE_REDUCTION 0x20000000 /* 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 ); |