Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f7c1808e
Commit
f7c1808e
authored
Sep 02, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video_filter_deinterlace: cosmetics.
parent
426c6d91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+8
-11
No files found.
modules/video_filter/deinterlace.c
View file @
f7c1808e
...
...
@@ -94,7 +94,7 @@ static void EndMMX ( void );
static
void
End3DNow
(
void
);
#endif
static
void
SetFilterMethod
(
vout_thread_t
*
p_vout
,
char
*
psz_method
);
static
void
SetFilterMethod
(
vout_thread_t
*
p_vout
,
c
onst
c
har
*
psz_method
);
static
vout_thread_t
*
SpawnRealVout
(
vout_thread_t
*
p_vout
);
static
int
OpenFilter
(
vlc_object_t
*
p_this
);
...
...
@@ -192,7 +192,7 @@ static int Create( vlc_object_t *p_this )
{
vout_thread_t
*
p_vout
=
(
vout_thread_t
*
)
p_this
;
vout_sys_t
*
p_sys
;
vlc_value_t
val
;
char
*
psz_mode
;
/* Allocate structure */
p_sys
=
p_vout
->
p_sys
=
malloc
(
sizeof
(
vout_sys_t
)
);
...
...
@@ -251,22 +251,19 @@ static int Create( vlc_object_t *p_this )
}
/* Look what method was requested */
var_Create
(
p_vout
,
"deinterlace-mode"
,
VLC_VAR_STRING
);
var_Change
(
p_vout
,
"deinterlace-mode"
,
VLC_VAR_INHERITVALUE
,
&
val
,
NULL
);
psz_mode
=
var_CreateGetString
(
p_vout
,
"deinterlace-mode"
);
if
(
val
.
psz_string
==
NULL
)
if
(
!
psz_mode
)
{
msg_Err
(
p_vout
,
"configuration variable deinterlace-mode empty"
);
msg_Err
(
p_vout
,
"no deinterlace mode provided, using
\"
discard
\"
"
);
val
.
psz_string
=
strdup
(
"discard"
);
psz_mode
=
strdup
(
"discard"
);
}
msg_Dbg
(
p_vout
,
"using %s deinterlace mode"
,
val
.
psz_string
);
SetFilterMethod
(
p_vout
,
val
.
psz_string
);
SetFilterMethod
(
p_vout
,
psz_mode
);
free
(
val
.
psz_string
);
free
(
psz_mode
);
return
VLC_SUCCESS
;
}
...
...
@@ -274,7 +271,7 @@ static int Create( vlc_object_t *p_this )
/*****************************************************************************
* SetFilterMethod: setup the deinterlace method to use.
*****************************************************************************/
static
void
SetFilterMethod
(
vout_thread_t
*
p_vout
,
char
*
psz_method
)
static
void
SetFilterMethod
(
vout_thread_t
*
p_vout
,
c
onst
c
har
*
psz_method
)
{
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
if
(
!
strcmp
(
psz_method
,
"mean"
)
)
...
...
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