Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
aom-rav1e
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiph.Org
aom-rav1e
Commits
c63ecdce
Commit
c63ecdce
authored
14 years ago
by
John Koleszar
Browse files
Options
Downloads
Plain Diff
Merge remote branch 'internal/upstream' into HEAD
parents
b7918d52
0e78efad
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
vp8/common/threading.h
+2
-1
2 additions, 1 deletion
vp8/common/threading.h
vp8/decoder/threading.c
+5
-9
5 additions, 9 deletions
vp8/decoder/threading.c
with
7 additions
and
10 deletions
vp8/common/threading.h
+
2
−
1
View file @
c63ecdce
...
...
@@ -75,7 +75,8 @@
#define thread_sleep(nms) // { struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;nanosleep(&ts, NULL);}
#else
#include
<unistd.h>
#define thread_sleep(nms) usleep(nms*1000);// {struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;nanosleep(&ts, NULL);}
#include
<sched.h>
#define thread_sleep(nms) sched_yield();// {struct timespec ts;ts.tv_sec=0; ts.tv_nsec = 1000*nms;nanosleep(&ts, NULL);}
#endif
/* Not Windows. Assume pthreads */
...
...
This diff is collapsed.
Click to expand it.
vp8/decoder/threading.c
+
5
−
9
View file @
c63ecdce
...
...
@@ -611,15 +611,12 @@ void vp8_mtdecode_mb_rows(VP8D_COMP *pbi,
for
(
mb_col
=
0
;
mb_col
<
pc
->
mb_cols
;
mb_col
++
)
{
if
(
mb_row
>
0
&&
(
mb_col
&
7
)
==
0
){
//if ( mb_row > 0 ){
while
(
mb_col
>
(
*
last_row_current_mb_col
-
8
)
&&
*
last_row_current_mb_col
!=
pc
->
mb_cols
-
1
)
{
x86_pause_hint
();
thread_sleep
(
0
);
}
while
(
mb_col
>
(
*
last_row_current_mb_col
-
8
)
&&
*
last_row_current_mb_col
!=
pc
->
mb_cols
-
1
)
{
x86_pause_hint
();
thread_sleep
(
0
);
}
}
if
(
xd
->
mode_info_context
->
mbmi
.
mode
==
SPLITMV
||
xd
->
mode_info_context
->
mbmi
.
mode
==
B_PRED
)
...
...
@@ -763,7 +760,6 @@ void vp8_mt_loop_filter_frame( VP8D_COMP *pbi)
{
int
Segment
=
(
alt_flt_enabled
)
?
mbd
->
mode_info_context
->
mbmi
.
segment_id
:
0
;
if
(
mb_row
>
0
&&
(
mb_col
&
7
)
==
0
){
// if ( mb_row > 0 ){
while
(
mb_col
>
(
*
last_row_current_mb_col
-
8
)
&&
*
last_row_current_mb_col
!=
cm
->
mb_cols
-
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment