Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
4a59d610
Commit
4a59d610
authored
Jul 02, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: option for inverse telecine
parent
697ee61e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+20
-1
No files found.
modules/hw/vdpau/chroma.c
View file @
4a59d610
...
...
@@ -97,10 +97,11 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
VdpBool
ok
;
/* Check for potentially useful features */
VdpVideoMixerFeature
featv
[
4
];
VdpVideoMixerFeature
featv
[
5
];
unsigned
featc
=
0
;
int
algo
=
var_InheritInteger
(
filter
,
"vdpau-deinterlace"
);
bool
ivtc
=
false
;
if
(
algo
==
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
)
{
err
=
vdp_video_mixer_query_feature_support
(
sys
->
vdp
,
sys
->
device
,
...
...
@@ -122,7 +123,19 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
algo
=
-
1
;
}
if
(
algo
>=
0
)
{
featv
[
featc
++
]
=
algo
;
ivtc
=
var_InheritBool
(
filter
,
"vdpau-ivtc"
);
if
(
ivtc
)
{
err
=
vdp_video_mixer_query_feature_support
(
sys
->
vdp
,
sys
->
device
,
VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
,
&
ok
);
if
(
err
==
VDP_STATUS_OK
&&
ok
==
VDP_TRUE
)
msg_Dbg
(
filter
,
"using video mixer %s feature"
,
"inverse telecine"
);
featv
[
featc
++
]
=
VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
;
}
}
const
float
noise
=
var_InheritFloat
(
filter
,
"vdpau-noise-reduction"
);
if
(
noise
>
0
.
f
)
...
...
@@ -196,7 +209,11 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
}
if
(
algo
>=
0
)
{
featv
[
featc
++
]
=
algo
;
if
(
ivtc
)
featv
[
featc
++
]
=
VDP_VIDEO_MIXER_FEATURE_INVERSE_TELECINE
;
}
if
(
noise
>
0
.
f
)
{
...
...
@@ -698,6 +715,8 @@ vlc_module_begin()
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
,
N_
(
"Deinterlace"
),
N_
(
"Deinterlacing algorithm"
),
true
)
change_integer_list
(
algo_values
,
algo_names
)
add_bool
(
"vdpau-ivtc"
,
false
,
N_
(
"Inverse telecine"
),
N_
(
"Inverse telecine"
),
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment