diff options
author | Christian König <[email protected]> | 2012-02-07 18:03:46 +0100 |
---|---|---|
committer | Christian König <[email protected]> | 2012-02-10 12:06:07 +0100 |
commit | bbb48e983d232d67031250127b3c2acfc086369e (patch) | |
tree | d29245c133937b44d375268dedfdec16310100ba /src/gallium/state_trackers/vdpau/query.c | |
parent | a9ffcceee9214342dab2085a35452acaa41003c5 (diff) |
st/vdpau: use median filter for noise reduction
And while at it implement the rest of the feature
querying also.
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/vdpau/query.c')
-rw-r--r-- | src/gallium/state_trackers/vdpau/query.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gallium/state_trackers/vdpau/query.c b/src/gallium/state_trackers/vdpau/query.c index 32d406bc2ea..4110a877400 100644 --- a/src/gallium/state_trackers/vdpau/query.c +++ b/src/gallium/state_trackers/vdpau/query.c @@ -304,12 +304,18 @@ VdpStatus vlVdpVideoMixerQueryFeatureSupport(VdpDevice device, VdpVideoMixerFeature feature, VdpBool *is_supported) { - VDPAU_MSG(VDPAU_TRACE, "[VDPAU] Querying VdpVideoMixer feature support\n"); - if (!is_supported) return VDP_STATUS_INVALID_POINTER; - return VDP_STATUS_NO_IMPLEMENTATION; + switch (feature) { + case VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION: + *is_supported = VDP_TRUE; + break; + default: + *is_supported = VDP_FALSE; + break; + } + return VDP_STATUS_OK; } /** |