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
07946c4e
Commit
07946c4e
authored
Jul 01, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vdpau: optional high quality scaling
parent
c0090b15
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
modules/hw/vdpau/chroma.c
modules/hw/vdpau/chroma.c
+23
-1
No files found.
modules/hw/vdpau/chroma.c
View file @
07946c4e
...
...
@@ -55,7 +55,7 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
VdpBool
ok
;
/* Check for potentially useful features */
VdpVideoMixerFeature
featv
[
2
];
VdpVideoMixerFeature
featv
[
3
];
unsigned
featc
=
0
;
const
float
noise
=
var_InheritFloat
(
filter
,
"vdpau-noise-reduction"
);
...
...
@@ -78,6 +78,23 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
featv
[
featc
++
]
=
VDP_VIDEO_MIXER_FEATURE_SHARPNESS
;
}
const
int
offset
=
VDP_VIDEO_MIXER_FEATURE_HIGH_QUALITY_SCALING_L1
-
1
;
unsigned
level
=
var_InheritInteger
(
filter
,
"vdpau-scaling"
);
while
(
level
>
0
)
{
err
=
vdp_video_mixer_query_feature_support
(
sys
->
vdp
,
sys
->
device
,
offset
+
level
,
&
ok
);
if
(
err
==
VDP_STATUS_OK
&&
ok
==
VDP_TRUE
)
{
msg_Dbg
(
filter
,
"using video mixer high quality scaling L%u"
,
level
);
featv
[
featc
++
]
=
offset
+
level
;
break
;
}
level
--
;
/* fallback to lower quality */
}
/* Create the mixer */
VdpVideoMixerParameter
parms
[
3
]
=
{
VDP_VIDEO_MIXER_PARAMETER_VIDEO_SURFACE_WIDTH
,
...
...
@@ -112,6 +129,9 @@ static VdpVideoMixer MixerCreate(filter_t *filter)
attrc
++
;
}
if
(
level
>
0
)
featv
[
featc
++
]
=
offset
+
level
;
if
(
featc
>
0
)
{
VdpBool
enablev
[
featc
];
...
...
@@ -570,6 +590,8 @@ vlc_module_begin()
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
,
N_
(
"Scaling quality"
),
N_
(
"High quality scaling level"
),
true
)
add_submodule
()
set_callbacks
(
YCbCrOpen
,
YCbCrClose
)
...
...
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