Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
aom-rav1e
Commits
71d5a59c
Commit
71d5a59c
authored
Mar 05, 2015
by
Alex Converse
Browse files
Don't copy thread data for the main thread.
Change-Id: I6adee6704cacfeae0ed0b217a91095457d1be74a
parent
56cc37c6
Changes
1
Show whitespace changes
Inline
Side-by-side
vp9/encoder/vp9_ethread.c
View file @
71d5a59c
...
...
@@ -119,10 +119,14 @@ void vp9_encode_tiles_mt(VP9_COMP *cpi) {
thread_data
=
(
EncWorkerData
*
)
worker
->
data1
;
// Before encoding a frame, copy the thread data from cpi.
if
(
thread_data
->
td
!=
&
cpi
->
td
)
{
thread_data
->
td
->
mb
=
cpi
->
td
.
mb
;
thread_data
->
td
->
rd_counts
=
cpi
->
td
.
rd_counts
;
}
if
(
thread_data
->
td
->
counts
!=
&
cpi
->
common
.
counts
)
{
vpx_memcpy
(
thread_data
->
td
->
counts
,
&
cpi
->
common
.
counts
,
sizeof
(
cpi
->
common
.
counts
));
}
// Handle use_nonrd_pick_mode case.
if
(
cpi
->
sf
.
use_nonrd_pick_mode
)
{
...
...
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