/external/libaom/libaom/av1/encoder/ |
D | ethread.c | 69 void av1_row_mt_sync_read_dummy(struct AV1RowMTSyncData *const row_mt_sync, in av1_row_mt_sync_read_dummy() argument 71 (void)row_mt_sync; in av1_row_mt_sync_read_dummy() 77 void av1_row_mt_sync_write_dummy(struct AV1RowMTSyncData *const row_mt_sync, in av1_row_mt_sync_write_dummy() argument 79 (void)row_mt_sync; in av1_row_mt_sync_write_dummy() 86 void av1_row_mt_sync_read(AV1RowMTSync *const row_mt_sync, int r, int c) { in av1_row_mt_sync_read() argument 88 const int nsync = row_mt_sync->sync_range; in av1_row_mt_sync_read() 91 pthread_mutex_t *const mutex = &row_mt_sync->mutex_[r - 1]; in av1_row_mt_sync_read() 94 while (c > row_mt_sync->cur_col[r - 1] - nsync) { in av1_row_mt_sync_read() 95 pthread_cond_wait(&row_mt_sync->cond_[r - 1], mutex); in av1_row_mt_sync_read() 100 (void)row_mt_sync; in av1_row_mt_sync_read() [all …]
|
D | ethread.h | 30 void av1_row_mt_sync_read(AV1RowMTSync *const row_mt_sync, int r, int c); 31 void av1_row_mt_sync_write(AV1RowMTSync *const row_mt_sync, int r, int c, 34 void av1_row_mt_sync_read_dummy(struct AV1RowMTSyncData *const row_mt_sync, 36 void av1_row_mt_sync_write_dummy(struct AV1RowMTSyncData *const row_mt_sync, 39 void av1_row_mt_sync_mem_dealloc(AV1RowMTSync *row_mt_sync); 41 void av1_row_mt_sync_mem_alloc(AV1RowMTSync *row_mt_sync, struct AV1Common *cm,
|
D | av1_multi_thread.c | 37 av1_row_mt_sync_mem_alloc(&this_tile->row_mt_sync, cm, max_sb_rows); in av1_row_mt_mem_alloc() 63 av1_row_mt_sync_mem_dealloc(&this_tile->row_mt_sync); in av1_row_mt_mem_dealloc()
|
D | encoder.h | 560 AV1RowMTSync row_mt_sync; member
|
D | encodeframe.c | 4684 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_sb_row() 4890 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_sb_row()
|
/external/libvpx/libvpx/vp9/encoder/ |
D | vp9_ethread.c | 266 void vp9_row_mt_sync_mem_alloc(VP9RowMTSync *row_mt_sync, VP9_COMMON *cm, in vp9_row_mt_sync_mem_alloc() argument 268 row_mt_sync->rows = rows; in vp9_row_mt_sync_mem_alloc() 273 CHECK_MEM_ERROR(cm, row_mt_sync->mutex, in vp9_row_mt_sync_mem_alloc() 274 vpx_malloc(sizeof(*row_mt_sync->mutex) * rows)); in vp9_row_mt_sync_mem_alloc() 275 if (row_mt_sync->mutex) { in vp9_row_mt_sync_mem_alloc() 277 pthread_mutex_init(&row_mt_sync->mutex[i], NULL); in vp9_row_mt_sync_mem_alloc() 281 CHECK_MEM_ERROR(cm, row_mt_sync->cond, in vp9_row_mt_sync_mem_alloc() 282 vpx_malloc(sizeof(*row_mt_sync->cond) * rows)); in vp9_row_mt_sync_mem_alloc() 283 if (row_mt_sync->cond) { in vp9_row_mt_sync_mem_alloc() 285 pthread_cond_init(&row_mt_sync->cond[i], NULL); in vp9_row_mt_sync_mem_alloc() [all …]
|
D | vp9_ethread.h | 51 void vp9_row_mt_sync_read(VP9RowMTSync *const row_mt_sync, int r, int c); 52 void vp9_row_mt_sync_write(VP9RowMTSync *const row_mt_sync, int r, int c, 55 void vp9_row_mt_sync_read_dummy(VP9RowMTSync *const row_mt_sync, int r, int c); 56 void vp9_row_mt_sync_write_dummy(VP9RowMTSync *const row_mt_sync, int r, int c, 60 void vp9_row_mt_sync_mem_alloc(VP9RowMTSync *row_mt_sync, struct VP9Common *cm, 64 void vp9_row_mt_sync_mem_dealloc(VP9RowMTSync *row_mt_sync);
|
D | vp9_multi_thread.c | 101 vp9_row_mt_sync_mem_alloc(&this_tile->row_mt_sync, cm, jobs_per_tile_col); in vp9_row_mt_mem_alloc() 116 this_tile->row_mt_sync = this_col_tile->row_mt_sync; in vp9_row_mt_mem_alloc() 152 vp9_row_mt_sync_mem_dealloc(&this_tile->row_mt_sync); in vp9_row_mt_mem_dealloc() 183 memset(this_tile->row_mt_sync.cur_col, -1, in vp9_multi_thread_tile_init() 184 sizeof(*this_tile->row_mt_sync.cur_col) * jobs_per_tile_col); in vp9_multi_thread_tile_init()
|
D | vp9_encoder.h | 381 VP9RowMTSync row_mt_sync; member
|
D | vp9_firstpass.c | 889 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, mb_row, c); in vp9_first_pass_encode_tile_mb_row() 1315 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, mb_row, c, in vp9_first_pass_encode_tile_mb_row()
|
D | vp9_encodeframe.c | 4235 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_rd_sb_row() 4301 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_rd_sb_row() 5271 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_nonrd_sb_row() 5398 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_nonrd_sb_row()
|