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
236fd430
Commit
236fd430
authored
May 02, 2011
by
Juha Jeronen
Committed by
Jean-Baptiste Kempf
May 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deinterlace: bugfix to CalculateInterlaceScore()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
eb4b233b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/video_filter/deinterlace/helpers.c
modules/video_filter/deinterlace/helpers.c
+6
-5
No files found.
modules/video_filter/deinterlace/helpers.c
View file @
236fd430
...
@@ -469,7 +469,8 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
...
@@ -469,7 +469,8 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
/* Amount of bits must be known for MMX, thus int32_t.
/* Amount of bits must be known for MMX, thus int32_t.
Doesn't hurt the C implementation. */
Doesn't hurt the C implementation. */
int32_t
i_score
=
0
;
int32_t
i_score_mmx
=
0
;
/* this must be divided by 255 when finished */
int32_t
i_score_c
=
0
;
/* this counts as-is (used for non-MMX parts) */
#ifdef CAN_COMPILE_MMXEXT
#ifdef CAN_COMPILE_MMXEXT
unsigned
u_cpu
=
vlc_CPU
();
unsigned
u_cpu
=
vlc_CPU
();
...
@@ -579,7 +580,7 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
...
@@ -579,7 +580,7 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
*/
*/
int_fast32_t
comb
=
(
P
-
C
)
*
(
N
-
C
);
int_fast32_t
comb
=
(
P
-
C
)
*
(
N
-
C
);
if
(
comb
>
T
)
if
(
comb
>
T
)
++
i_score
;
++
i_score
_c
;
++
p_c
;
++
p_c
;
++
p_p
;
++
p_p
;
...
@@ -599,12 +600,12 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
...
@@ -599,12 +600,12 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
#ifdef CAN_COMPILE_MMXEXT
#ifdef CAN_COMPILE_MMXEXT
if
(
u_cpu
&
CPU_CAPABILITY_MMXEXT
)
if
(
u_cpu
&
CPU_CAPABILITY_MMXEXT
)
{
{
movd_r2m
(
mm7
,
i_score
);
movd_r2m
(
mm7
,
i_score
_mmx
);
emms
();
emms
();
i_score
/=
255
;
i_score
_mmx
/=
255
;
}
}
#endif
#endif
return
i_score
;
return
i_score
_mmx
+
i_score_c
;
}
}
#undef T
#undef T
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