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
cbad172f
Commit
cbad172f
authored
May 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
deinterlace: u_cpu is used only if MMXEXT can be compiled
This restores commit
45b7ce9e
.
parent
c7d289ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
modules/video_filter/deinterlace/algo_phosphor.c
modules/video_filter/deinterlace/algo_phosphor.c
+1
-2
modules/video_filter/deinterlace/algo_x.c
modules/video_filter/deinterlace/algo_x.c
+2
-0
modules/video_filter/deinterlace/helpers.c
modules/video_filter/deinterlace/helpers.c
+2
-2
No files found.
modules/video_filter/deinterlace/algo_phosphor.c
View file @
cbad172f
...
@@ -75,11 +75,10 @@ static void DarkenField( picture_t *p_dst, const int i_field,
...
@@ -75,11 +75,10 @@ static void DarkenField( picture_t *p_dst, const int i_field,
assert
(
i_field
==
0
||
i_field
==
1
);
assert
(
i_field
==
0
||
i_field
==
1
);
assert
(
i_strength
>=
1
&&
i_strength
<=
3
);
assert
(
i_strength
>=
1
&&
i_strength
<=
3
);
unsigned
u_cpu
=
vlc_CPU
();
/* Bitwise ANDing with this clears the i_strength highest bits
/* Bitwise ANDing with this clears the i_strength highest bits
of each byte */
of each byte */
#ifdef CAN_COMPILE_MMXEXT
#ifdef CAN_COMPILE_MMXEXT
unsigned
u_cpu
=
vlc_CPU
();
uint64_t
i_strength_u64
=
i_strength
;
/* for MMX version (needs to know
uint64_t
i_strength_u64
=
i_strength
;
/* for MMX version (needs to know
number of bits) */
number of bits) */
#endif
#endif
...
...
modules/video_filter/deinterlace/algo_x.c
View file @
cbad172f
...
@@ -535,7 +535,9 @@ static inline void XDeintBand8x8MMXEXT( uint8_t *dst, int i_dst,
...
@@ -535,7 +535,9 @@ static inline void XDeintBand8x8MMXEXT( uint8_t *dst, int i_dst,
void
RenderX
(
picture_t
*
p_outpic
,
picture_t
*
p_pic
)
void
RenderX
(
picture_t
*
p_outpic
,
picture_t
*
p_pic
)
{
{
int
i_plane
;
int
i_plane
;
#ifdef CAN_COMPILE_MMXEXT
unsigned
u_cpu
=
vlc_CPU
();
unsigned
u_cpu
=
vlc_CPU
();
#endif
/* Copy image and skip lines */
/* Copy image and skip lines */
for
(
i_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
for
(
i_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
...
...
modules/video_filter/deinterlace/helpers.c
View file @
cbad172f
...
@@ -467,13 +467,13 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
...
@@ -467,13 +467,13 @@ int CalculateInterlaceScore( const picture_t* p_pic_top,
if
(
p_pic_top
->
i_planes
!=
p_pic_bot
->
i_planes
)
if
(
p_pic_top
->
i_planes
!=
p_pic_bot
->
i_planes
)
return
-
1
;
return
-
1
;
unsigned
u_cpu
=
vlc_CPU
();
/* 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
=
0
;
#ifdef CAN_COMPILE_MMXEXT
#ifdef CAN_COMPILE_MMXEXT
unsigned
u_cpu
=
vlc_CPU
();
if
(
u_cpu
&
CPU_CAPABILITY_MMXEXT
)
if
(
u_cpu
&
CPU_CAPABILITY_MMXEXT
)
pxor_r2r
(
mm7
,
mm7
);
/* we will keep score in mm7 */
pxor_r2r
(
mm7
,
mm7
);
/* we will keep score in mm7 */
#endif
#endif
...
...
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