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
121a30e2
Commit
121a30e2
authored
Jul 22, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare doubling frame rate in deinterlace filter.
parent
0a3d05b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
modules/video_filter/deinterlace.c
modules/video_filter/deinterlace.c
+12
-13
No files found.
modules/video_filter/deinterlace.c
View file @
121a30e2
...
@@ -1536,22 +1536,21 @@ static int RenderYadif( filter_t *p_filter, picture_t *p_dst, picture_t *p_src,
...
@@ -1536,22 +1536,21 @@ static int RenderYadif( filter_t *p_filter, picture_t *p_dst, picture_t *p_src,
static
picture_t
*
Deinterlace
(
filter_t
*
p_filter
,
picture_t
*
p_pic
)
static
picture_t
*
Deinterlace
(
filter_t
*
p_filter
,
picture_t
*
p_pic
)
{
{
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
filter_sys_t
*
p_sys
=
p_filter
->
p_sys
;
picture_t
*
p_
pic_dst
;
picture_t
*
p_
dst
[
2
]
;
/* Request output picture */
/* Request output picture */
p_
pic_dst
=
filter_NewPicture
(
p_filter
);
p_
dst
[
0
]
=
filter_NewPicture
(
p_filter
);
if
(
p_
pic_dst
==
NULL
)
if
(
p_
dst
[
0
]
==
NULL
)
{
{
picture_Release
(
p_pic
);
picture_Release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
picture_CopyProperties
(
p_dst
[
0
],
p_pic
);
picture_CopyProperties
(
p_pic_dst
,
p_pic
);
switch
(
p_sys
->
i_mode
)
switch
(
p_sys
->
i_mode
)
{
{
case
DEINTERLACE_DISCARD
:
case
DEINTERLACE_DISCARD
:
RenderDiscard
(
p_filter
,
p_
pic_dst
,
p_pic
,
0
);
RenderDiscard
(
p_filter
,
p_
dst
[
0
]
,
p_pic
,
0
);
break
;
break
;
case
DEINTERLACE_BOB
:
case
DEINTERLACE_BOB
:
...
@@ -1570,19 +1569,19 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
...
@@ -1570,19 +1569,19 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
goto
drop
;
goto
drop
;
case
DEINTERLACE_MEAN
:
case
DEINTERLACE_MEAN
:
RenderMean
(
p_filter
,
p_
pic_dst
,
p_pic
);
RenderMean
(
p_filter
,
p_
dst
[
0
]
,
p_pic
);
break
;
break
;
case
DEINTERLACE_BLEND
:
case
DEINTERLACE_BLEND
:
RenderBlend
(
p_filter
,
p_
pic_dst
,
p_pic
);
RenderBlend
(
p_filter
,
p_
dst
[
0
]
,
p_pic
);
break
;
break
;
case
DEINTERLACE_X
:
case
DEINTERLACE_X
:
RenderX
(
p_
pic_dst
,
p_pic
);
RenderX
(
p_
dst
[
0
]
,
p_pic
);
break
;
break
;
case
DEINTERLACE_YADIF
:
case
DEINTERLACE_YADIF
:
if
(
RenderYadif
(
p_filter
,
p_
pic_dst
,
p_pic
,
0
,
0
)
)
if
(
RenderYadif
(
p_filter
,
p_
dst
[
0
]
,
p_pic
,
0
,
0
)
)
goto
drop
;
goto
drop
;
break
;
break
;
...
@@ -1593,13 +1592,13 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
...
@@ -1593,13 +1592,13 @@ static picture_t *Deinterlace( filter_t *p_filter, picture_t *p_pic )
goto
drop
;
goto
drop
;
}
}
p_
pic_dst
->
b_progressive
=
true
;
p_
dst
[
0
]
->
b_progressive
=
true
;
picture_Release
(
p_pic
);
picture_Release
(
p_pic
);
return
p_
pic_dst
;
return
p_
dst
[
0
]
;
drop:
drop:
picture_Release
(
p_
pic_dst
);
picture_Release
(
p_
dst
[
0
]
);
picture_Release
(
p_pic
);
picture_Release
(
p_pic
);
return
NULL
;
return
NULL
;
}
}
...
...
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