ref: 2d06b08cbaa1f69ff601e1f5b3e79411ffce0811
parent: 0548046ae310a9b73febe54c494aa8a2693de94a
author: James Zern <[email protected]>
date: Wed Aug 19 15:46:19 EDT 2015
vp9/decode_tiles_mt: move some inits from inner loop worker copies of pbi/xd/counts only need to be initialized once Change-Id: I0081a85b9c82d39573c22d2fd2c670ec2f7b8715
--- a/vp9/decoder/vp9_decodeframe.c
+++ b/vp9/decoder/vp9_decodeframe.c
@@ -1643,9 +1643,14 @@
// Reset tile decoding hook
for (n = 0; n < num_workers; ++n) {
VPxWorker *const worker = &pbi->tile_workers[n];
+ TileWorkerData *const tile_data = &pbi->tile_worker_data[n];
winterface->sync(worker);
+ tile_data->pbi = pbi;
+ tile_data->xd = pbi->mb;
+ tile_data->xd.counts =
+ cm->frame_parallel_decoding_mode ? NULL : &tile_data->counts;
worker->hook = (VPxWorkerHook)tile_worker_hook;
- worker->data1 = &pbi->tile_worker_data[n];
+ worker->data1 = tile_data;
worker->data2 = &pbi->tile_worker_info[n];
}
@@ -1699,11 +1704,7 @@
TileInfo *const tile = (TileInfo*)worker->data2;
TileBuffer *const buf = &tile_buffers[0][n];
- tile_data->pbi = pbi;
- tile_data->xd = pbi->mb;
tile_data->xd.corrupted = 0;
- tile_data->xd.counts = cm->frame_parallel_decoding_mode ?
- 0 : &tile_data->counts;
vp9_zero(tile_data->dqcoeff);
vp9_tile_init(tile, cm, 0, buf->col);
vp9_tile_init(&tile_data->xd.tile, cm, 0, buf->col);