Searched refs:lf_sync (Results 1 – 6 of 6) sorted by relevance
/external/libvpx/libvpx/vp9/common/ |
D | vp9_thread_common.c | 38 static INLINE void sync_read(VP9LfSync *const lf_sync, int r, int c) { in sync_read() argument 40 const int nsync = lf_sync->sync_range; in sync_read() 43 pthread_mutex_t *const mutex = &lf_sync->mutex[r - 1]; in sync_read() 46 while (c > lf_sync->cur_sb_col[r - 1] - nsync) { in sync_read() 47 pthread_cond_wait(&lf_sync->cond[r - 1], mutex); in sync_read() 52 (void)lf_sync; in sync_read() 58 static INLINE void sync_write(VP9LfSync *const lf_sync, int r, int c, in sync_write() argument 61 const int nsync = lf_sync->sync_range; in sync_write() 74 mutex_lock(&lf_sync->mutex[r]); in sync_write() 76 lf_sync->cur_sb_col[r] = cur; in sync_write() [all …]
|
D | vp9_thread_common.h | 52 void vp9_loop_filter_alloc(VP9LfSync *lf_sync, struct VP9Common *cm, int rows, 56 void vp9_loop_filter_dealloc(VP9LfSync *lf_sync); 63 int num_workers, VP9LfSync *lf_sync); 66 void vp9_lpf_mt_init(VP9LfSync *lf_sync, struct VP9Common *cm, 69 void vp9_loopfilter_rows(LFWorkerData *lf_data, VP9LfSync *lf_sync); 71 void vp9_set_row(VP9LfSync *lf_sync, int num_tiles, int row, int is_last_row, 74 void vp9_loopfilter_job(LFWorkerData *lf_data, VP9LfSync *lf_sync);
|
/external/libaom/libaom/av1/common/ |
D | thread_common.c | 55 static void loop_filter_alloc(AV1LfSync *lf_sync, AV1_COMMON *cm, int rows, in loop_filter_alloc() argument 57 lf_sync->rows = rows; in loop_filter_alloc() 63 CHECK_MEM_ERROR(cm, lf_sync->mutex_[j], in loop_filter_alloc() 64 aom_malloc(sizeof(*(lf_sync->mutex_[j])) * rows)); in loop_filter_alloc() 65 if (lf_sync->mutex_[j]) { in loop_filter_alloc() 67 pthread_mutex_init(&lf_sync->mutex_[j][i], NULL); in loop_filter_alloc() 71 CHECK_MEM_ERROR(cm, lf_sync->cond_[j], in loop_filter_alloc() 72 aom_malloc(sizeof(*(lf_sync->cond_[j])) * rows)); in loop_filter_alloc() 73 if (lf_sync->cond_[j]) { in loop_filter_alloc() 75 pthread_cond_init(&lf_sync->cond_[j][i], NULL); in loop_filter_alloc() [all …]
|
D | thread_common.h | 101 void av1_loop_filter_dealloc(AV1LfSync *lf_sync); 110 AV1LfSync *lf_sync);
|
/external/libvpx/libvpx/vp9/decoder/ |
D | vp9_decoder.h | 39 VP9LfSync *lf_sync; member 54 VP9LfSync *lf_sync; member
|
D | vp9_decodeframe.c | 1732 static int lpf_map_write_check(VP9LfSync *lf_sync, int row, int num_tile_cols) { in lpf_map_write_check() argument 1736 pthread_mutex_lock(lf_sync->lf_mutex); in lpf_map_write_check() 1737 corrupted = lf_sync->corrupted; in lpf_map_write_check() 1738 pthread_mutex_unlock(lf_sync->lf_mutex); in lpf_map_write_check() 1740 pthread_mutex_lock(&lf_sync->recon_done_mutex[row]); in lpf_map_write_check() 1741 lf_sync->num_tiles_done[row] += 1; in lpf_map_write_check() 1742 if (num_tile_cols == lf_sync->num_tiles_done[row]) return_val = 1; in lpf_map_write_check() 1743 pthread_mutex_unlock(&lf_sync->recon_done_mutex[row]); in lpf_map_write_check() 1746 (void)lf_sync; in lpf_map_write_check() 1788 int mi_row, int is_last_row, VP9LfSync *lf_sync, in recon_tile_row() argument [all …]
|