Home
last modified time | relevance | path

Searched refs:lf_sync (Results 1 – 6 of 6) sorted by relevance

/external/libvpx/libvpx/vp9/common/
Dvp9_thread_common.c38 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 …]
Dvp9_thread_common.h52 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,
/external/libaom/libaom/av1/common/
Dthread_common.c55 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 …]
Dthread_common.h101 void av1_loop_filter_dealloc(AV1LfSync *lf_sync);
110 AV1LfSync *lf_sync);
/external/libvpx/libvpx/vp9/decoder/
Dvp9_decoder.h45 VP9LfSync *lf_sync; member
Dvp9_decodeframe.c1834 static void set_rows_after_error(VP9LfSync *lf_sync, int start_row, int mi_rows, in set_rows_after_error() argument
1843 vp9_set_row(lf_sync, total_num_tiles, mi_row >> MI_BLOCK_SIZE_LOG2, in set_rows_after_error()
1866 VP9LfSync *lf_sync = tile_data->lf_sync; in tile_worker_hook() local
1879 set_rows_after_error(lf_sync, mi_row_start, cm->mi_rows, num_tiles_left, in tile_worker_hook()
1917 vp9_set_row(lf_sync, 1 << cm->log2_tile_cols, in tile_worker_hook()
1934 set_rows_after_error(lf_sync, 0, cm->mi_rows, tile_data->buf_end - n, in tile_worker_hook()
1940 vp9_loopfilter_rows(lf_data, lf_sync); in tile_worker_hook()
2001 tile_data->lf_sync = lf_row_sync; in decode_tiles_mt()
2002 tile_data->lf_data = &tile_data->lf_sync->lfdata[n]; in decode_tiles_mt()