/external/libvpx/vp9/encoder/ |
D | vp9_ethread.c | 292 void vp9_row_mt_sync_mem_alloc(VP9RowMTSync *row_mt_sync, VP9_COMMON *cm, in vp9_row_mt_sync_mem_alloc() argument 294 row_mt_sync->rows = rows; in vp9_row_mt_sync_mem_alloc() 299 CHECK_MEM_ERROR(&cm->error, row_mt_sync->mutex, in vp9_row_mt_sync_mem_alloc() 300 vpx_malloc(sizeof(*row_mt_sync->mutex) * rows)); in vp9_row_mt_sync_mem_alloc() 301 if (row_mt_sync->mutex) { in vp9_row_mt_sync_mem_alloc() 303 pthread_mutex_init(&row_mt_sync->mutex[i], NULL); in vp9_row_mt_sync_mem_alloc() 307 CHECK_MEM_ERROR(&cm->error, row_mt_sync->cond, in vp9_row_mt_sync_mem_alloc() 308 vpx_malloc(sizeof(*row_mt_sync->cond) * rows)); in vp9_row_mt_sync_mem_alloc() 309 if (row_mt_sync->cond) { in vp9_row_mt_sync_mem_alloc() 311 pthread_cond_init(&row_mt_sync->cond[i], NULL); in vp9_row_mt_sync_mem_alloc() [all …]
|
D | vp9_ethread.h | 58 void vp9_row_mt_sync_read(VP9RowMTSync *const row_mt_sync, int r, int c); 59 void vp9_row_mt_sync_write(VP9RowMTSync *const row_mt_sync, int r, int c, 62 void vp9_row_mt_sync_read_dummy(VP9RowMTSync *const row_mt_sync, int r, int c); 63 void vp9_row_mt_sync_write_dummy(VP9RowMTSync *const row_mt_sync, int r, int c, 67 void vp9_row_mt_sync_mem_alloc(VP9RowMTSync *row_mt_sync, struct VP9Common *cm, 71 void vp9_row_mt_sync_mem_dealloc(VP9RowMTSync *row_mt_sync);
|
D | vp9_multi_thread.c | 110 vp9_row_mt_sync_mem_alloc(&this_tile->row_mt_sync, cm, jobs_per_tile_col); in vp9_row_mt_mem_alloc() 118 this_tile->row_mt_sync = this_col_tile->row_mt_sync; in vp9_row_mt_mem_alloc() 157 vp9_row_mt_sync_mem_dealloc(&this_tile->row_mt_sync); in vp9_row_mt_mem_dealloc() 192 memset(this_tile->row_mt_sync.cur_col, -1, in vp9_multi_thread_tile_init() 193 sizeof(*this_tile->row_mt_sync.cur_col) * jobs_per_tile_col); in vp9_multi_thread_tile_init()
|
D | vp9_encoder.h | 340 VP9RowMTSync row_mt_sync; member
|
D | vp9_firstpass.c | 968 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, mb_row, c); in vp9_first_pass_encode_tile_mb_row() 1367 (*(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 | 4526 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_rd_sb_row() 4599 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_rd_sb_row() 5557 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_nonrd_sb_row() 5704 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_nonrd_sb_row()
|
/external/libaom/av1/encoder/ |
D | ethread.c | 104 void av1_row_mt_sync_read_dummy(AV1EncRowMultiThreadSync *row_mt_sync, int r, in av1_row_mt_sync_read_dummy() argument 106 (void)row_mt_sync; in av1_row_mt_sync_read_dummy() 111 void av1_row_mt_sync_write_dummy(AV1EncRowMultiThreadSync *row_mt_sync, int r, in av1_row_mt_sync_write_dummy() argument 113 (void)row_mt_sync; in av1_row_mt_sync_write_dummy() 119 void av1_row_mt_sync_read(AV1EncRowMultiThreadSync *row_mt_sync, int r, int c) { in av1_row_mt_sync_read() argument 121 const int nsync = row_mt_sync->sync_range; in av1_row_mt_sync_read() 124 pthread_mutex_t *const mutex = &row_mt_sync->mutex_[r - 1]; in av1_row_mt_sync_read() 127 while (c > row_mt_sync->num_finished_cols[r - 1] - nsync - in av1_row_mt_sync_read() 128 row_mt_sync->intrabc_extra_top_right_sb_delay) { in av1_row_mt_sync_read() 129 pthread_cond_wait(&row_mt_sync->cond_[r - 1], mutex); in av1_row_mt_sync_read() [all …]
|
D | ethread.h | 33 void av1_row_mt_sync_read(AV1EncRowMultiThreadSync *row_mt_sync, int r, int c); 34 void av1_row_mt_sync_write(AV1EncRowMultiThreadSync *row_mt_sync, int r, int c, 37 void av1_row_mt_sync_read_dummy(AV1EncRowMultiThreadSync *row_mt_sync, int r, 39 void av1_row_mt_sync_write_dummy(AV1EncRowMultiThreadSync *row_mt_sync, int r, 56 void av1_row_mt_sync_mem_dealloc(AV1EncRowMultiThreadSync *row_mt_sync);
|
D | firstpass.c | 1140 AV1EncRowMultiThreadSync *const row_mt_sync = &tile_data->row_mt_sync; in av1_first_pass_row() local 1204 enc_row_mt->sync_read_ptr(row_mt_sync, unit_row_in_tile, unit_col_in_tile); in av1_first_pass_row() 1251 enc_row_mt->sync_write_ptr(row_mt_sync, unit_row_in_tile, unit_col_in_tile, in av1_first_pass_row()
|
D | encodeframe.c | 1143 AV1EncRowMultiThreadSync *const row_mt_sync = &tile_data->row_mt_sync; in encode_sb_row() local 1179 row_mt_sync, sb_row, sb_col_in_tile - delay_wait_for_top_right_sb(cpi)); in encode_sb_row() 1275 enc_row_mt->sync_write_ptr(row_mt_sync, sb_row, sb_col_in_tile, in encode_sb_row() 1322 av1_zero(this_tile->row_mt_sync); in av1_alloc_tile_data()
|
D | encoder.h | 1447 AV1EncRowMultiThreadSync row_mt_sync; member
|
D | partition_search.c | 773 AV1EncRowMultiThreadSync *row_mt_sync, in wait_for_top_right_sb() argument 794 enc_row_mt->sync_read_ptr(row_mt_sync, sb_row_in_tile, sb_col_in_tile); in wait_for_top_right_sb() 867 wait_for_top_right_sb(&cpi->mt_info.enc_row_mt, &tile_data->row_mt_sync, in pick_sb_modes() 2270 wait_for_top_right_sb(&cpi->mt_info.enc_row_mt, &tile_data->row_mt_sync, in pick_sb_modes_nonrd()
|