summaryrefslogtreecommitdiff
path: root/chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c')
-rw-r--r--chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c b/chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c
index f5d8e430c8a..da06fb151d8 100644
--- a/chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c
+++ b/chromium/third_party/libvpx/source/libvpx/vp9/encoder/vp9_multi_thread.c
@@ -110,24 +110,6 @@ void vp9_row_mt_mem_alloc(VP9_COMP *cpi) {
multi_thread_ctxt->num_tile_vert_sbs[tile_row] =
get_num_vert_units(*tile_info, MI_BLOCK_SIZE_LOG2);
}
-
-#if CONFIG_MULTITHREAD
- for (tile_row = 0; tile_row < tile_rows; tile_row++) {
- for (tile_col = 0; tile_col < tile_cols; tile_col++) {
- TileDataEnc *this_tile = &cpi->tile_data[tile_row * tile_cols + tile_col];
-
- CHECK_MEM_ERROR(cm, this_tile->search_count_mutex,
- vpx_malloc(sizeof(*this_tile->search_count_mutex)));
-
- pthread_mutex_init(this_tile->search_count_mutex, NULL);
-
- CHECK_MEM_ERROR(cm, this_tile->enc_row_mt_mutex,
- vpx_malloc(sizeof(*this_tile->enc_row_mt_mutex)));
-
- pthread_mutex_init(this_tile->enc_row_mt_mutex, NULL);
- }
- }
-#endif
}
void vp9_row_mt_mem_dealloc(VP9_COMP *cpi) {
@@ -170,12 +152,6 @@ void vp9_row_mt_mem_dealloc(VP9_COMP *cpi) {
this_tile->row_base_thresh_freq_fact = NULL;
}
}
- pthread_mutex_destroy(this_tile->search_count_mutex);
- vpx_free(this_tile->search_count_mutex);
- this_tile->search_count_mutex = NULL;
- pthread_mutex_destroy(this_tile->enc_row_mt_mutex);
- vpx_free(this_tile->enc_row_mt_mutex);
- this_tile->enc_row_mt_mutex = NULL;
}
}
#endif