[vlc-commits] vdpau: option for deinterlace chroma skip
Rémi Denis-Courmont
git at videolan.org
Sun Jul 7 20:13:43 CEST 2013
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Jul 2 19:33:25 2013 +0300| [1b0ba4e6908dcb40540ffc4822f7a4fc85a56eaa] | committer: Rémi Denis-Courmont
vdpau: option for deinterlace chroma skip
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1b0ba4e6908dcb40540ffc4822f7a4fc85a56eaa
---
modules/hw/vdpau/chroma.c | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/modules/hw/vdpau/chroma.c b/modules/hw/vdpau/chroma.c
index b60a1b8..c92c191 100644
--- a/modules/hw/vdpau/chroma.c
+++ b/modules/hw/vdpau/chroma.c
@@ -194,10 +194,11 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
}
/* Set initial features and attributes */
- VdpVideoMixerAttribute attrv[2];
- const void *valv[2];
+ VdpVideoMixerAttribute attrv[3];
+ const void *valv[3];
unsigned attrc = 0;
VdpCSCMatrix csc;
+ uint8_t chroma_skip;
featc = 0;
@@ -213,6 +214,11 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
featv[featc++] = algo;
if (ivtc)
featv[featc++] = VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE;
+
+ chroma_skip = var_InheritBool(filter, "vdpau-chroma-skip");
+ attrv[attrc] = VDP_VIDEO_MIXER_ATTRIBUTE_SKIP_CHROMA_DEINTERLACE;
+ valv[attrc] = &chroma_skip;
+ attrc++;
}
if (noise > 0.f)
@@ -717,6 +723,9 @@ vlc_module_begin()
change_integer_list(algo_values, algo_names)
add_bool("vdpau-ivtc", false,
N_("Inverse telecine"), N_("Inverse telecine"), true)
+ add_bool("vdpau-chroma-skip", false,
+ N_("Deinterlace chroma skip"),
+ N_("Whether temporal deinterlacing applies to luma only"), true)
add_float_with_range("vdpau-noise-reduction", 0., 0., 1.,
N_("Noise reduction level"), N_("Noise reduction level"), true)
add_integer_with_range("vdpau-scaling", 0, 0, 9,
More information about the vlc-commits
mailing list