Home
last modified time | relevance | path

Searched refs:row_mt_sync (Results 1 – 11 of 11) sorted by relevance

/external/libvpx/libvpx/vp9/encoder/
Dvp9_ethread.c266 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 …]
Dvp9_ethread.h51 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);
Dvp9_multi_thread.c101 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()
Dvp9_encoder.h338 VP9RowMTSync row_mt_sync; member
Dvp9_firstpass.c891 (*(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()
Dvp9_encodeframe.c4428 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_rd_sb_row()
4501 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_rd_sb_row()
5456 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_nonrd_sb_row()
5581 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_nonrd_sb_row()
/external/libaom/libaom/av1/encoder/
Dethread.c84 void av1_row_mt_sync_read_dummy(struct AV1RowMTSyncData *const row_mt_sync, in av1_row_mt_sync_read_dummy() argument
86 (void)row_mt_sync; in av1_row_mt_sync_read_dummy()
92 void av1_row_mt_sync_write_dummy(struct AV1RowMTSyncData *const row_mt_sync, in av1_row_mt_sync_write_dummy() argument
94 (void)row_mt_sync; in av1_row_mt_sync_write_dummy()
101 void av1_row_mt_sync_read(AV1RowMTSync *const row_mt_sync, int r, int c) { in av1_row_mt_sync_read() argument
103 const int nsync = row_mt_sync->sync_range; in av1_row_mt_sync_read()
106 pthread_mutex_t *const mutex = &row_mt_sync->mutex_[r - 1]; in av1_row_mt_sync_read()
109 while (c > row_mt_sync->cur_col[r - 1] - nsync) { in av1_row_mt_sync_read()
110 pthread_cond_wait(&row_mt_sync->cond_[r - 1], mutex); in av1_row_mt_sync_read()
115 (void)row_mt_sync; in av1_row_mt_sync_read()
[all …]
Dethread.h30 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,
Dav1_multi_thread.c37 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()
Dencoder.h695 AV1RowMTSync row_mt_sync; member
Dencodeframe.c4913 (*(cpi->row_mt_sync_read_ptr))(&tile_data->row_mt_sync, sb_row, in encode_sb_row()
4972 (*(cpi->row_mt_sync_write_ptr))(&tile_data->row_mt_sync, sb_row, in encode_sb_row()