Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
697ee61e
Commit
697ee61e
authored
Jul 02, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: configurable advanced deinterlacing algorithms
parent
9db6f463
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
1 deletion
+42
-1
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+42
-1
No files found.
modules/hw/vdpau/chroma.c
View file @
697ee61e
...
...
@@ -97,9 +97,33 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
VdpBool
ok
;
/* Check for potentially useful features */
VdpVideoMixerFeature
featv
[
3
];
VdpVideoMixerFeature
featv
[
4
];
unsigned
featc
=
0
;
int
algo
=
var_InheritInteger
(
filter
,
"vdpau-deinterlace"
);
if
(
algo
==
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
)
{
err
=
vdp_video_mixer_query_feature_support
(
sys
->
vdp
,
sys
->
device
,
algo
,
&
ok
);
if
(
err
==
VDP_STATUS_OK
&&
ok
==
VDP_TRUE
)
msg_Dbg
(
filter
,
"using video mixer %s feature"
,
"temporal-spatial deinterlace"
);
else
algo
=
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
;
/* fallback */
}
if
(
algo
==
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
)
{
err
=
vdp_video_mixer_query_feature_support
(
sys
->
vdp
,
sys
->
device
,
algo
,
&
ok
);
if
(
err
==
VDP_STATUS_OK
&&
ok
==
VDP_TRUE
)
msg_Dbg
(
filter
,
"using video mixer %s feature"
,
"temporal deinterlace"
);
else
algo
=
-
1
;
}
if
(
algo
>=
0
)
featv
[
featc
++
]
=
algo
;
const
float
noise
=
var_InheritFloat
(
filter
,
"vdpau-noise-reduction"
);
if
(
noise
>
0
.
f
)
{
...
...
@@ -171,6 +195,9 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
attrc
++
;
}
if
(
algo
>=
0
)
featv
[
featc
++
]
=
algo
;
if
(
noise
>
0
.
f
)
{
featv
[
featc
++
]
=
VDP_VIDEO_MIXER_FEATURE_NOISE_REDUCTION
;
...
...
@@ -649,6 +676,16 @@ static void YCbCrClose(vlc_object_t *obj)
free
(
sys
);
}
static
const
int
algo_values
[]
=
{
-
1
,
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL
,
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
,
};
static
const
char
*
const
algo_names
[]
=
{
N_
(
"Bob"
),
N_
(
"Temporal"
),
N_
(
"Temporal-spatial"
),
};
vlc_module_begin
()
set_shortname
(
N_
(
"VDPAU"
))
set_description
(
N_
(
"VDPAU surface conversions"
))
...
...
@@ -657,6 +694,10 @@ vlc_module_begin()
set_subcategory
(
SUBCAT_VIDEO_VFILTER
)
set_callbacks
(
OutputOpen
,
OutputClose
)
add_integer
(
"vdpau-deinterlace"
,
VDP_VIDEO_MIXER_FEATURE_DEINTERLACE_TEMPORAL_SPATIAL
,
N_
(
"Deinterlace"
),
N_
(
"Deinterlacing algorithm"
),
true
)
change_integer_list
(
algo_values
,
algo_names
)
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