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
87371c40
Commit
87371c40
authored
May 25, 2012
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified a bit the code that decides the output format used in the deinterlace filter.
parent
217a1d1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
25 deletions
+8
-25
modules/video_filter/deinterlace/deinterlace.c
modules/video_filter/deinterlace/deinterlace.c
+8
-25
No files found.
modules/video_filter/deinterlace/deinterlace.c
View file @
87371c40
...
...
@@ -241,35 +241,18 @@ void GetOutputFormat( filter_t *p_filter,
p_dst
->
i_sar_den
*=
2
;
}
if
(
p_src
->
i_chroma
==
VLC_CODEC_I422
||
p_src
->
i_chroma
==
VLC_CODEC_J422
)
{
switch
(
p_sys
->
i_mode
)
{
case
DEINTERLACE_MEAN
:
case
DEINTERLACE_LINEAR
:
case
DEINTERLACE_X
:
case
DEINTERLACE_YADIF
:
case
DEINTERLACE_YADIF2X
:
case
DEINTERLACE_PHOSPHOR
:
case
DEINTERLACE_IVTC
:
case
DEINTERLACE_DISCARD
:
case
DEINTERLACE_BOB
:
case
DEINTERLACE_BLEND
:
p_dst
->
i_chroma
=
p_src
->
i_chroma
;
break
;
default:
p_dst
->
i_chroma
=
p_src
->
i_chroma
==
VLC_CODEC_I422
?
VLC_CODEC_I420
:
VLC_CODEC_J420
;
break
;
}
}
else
if
(
p_sys
->
i_mode
==
DEINTERLACE_PHOSPHOR
&&
p_sys
->
phosphor
.
i_chroma_for_420
==
PC_UPCONVERT
)
if
(
p_sys
->
i_mode
==
DEINTERLACE_PHOSPHOR
&&
p_src
->
i_chroma
!=
VLC_CODEC_I422
&&
p_src
->
i_chroma
!=
VLC_CODEC_J422
&&
p_sys
->
phosphor
.
i_chroma_for_420
==
PC_UPCONVERT
)
{
p_dst
->
i_chroma
=
p_src
->
i_chroma
==
VLC_CODEC_J420
?
VLC_CODEC_J422
:
VLC_CODEC_I422
;
}
else
{
p_dst
->
i_chroma
=
p_src
->
i_chroma
;
}
}
/*****************************************************************************
...
...
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