/* * Copyright (c) 2014 The WebM project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
typedefstruct EncWorkerData { struct VP9_COMP *cpi; struct ThreadData *td; int start; int thread_id; int tile_completion_status[MAX_NUM_TILE_COLS];
} EncWorkerData;
// Encoder row synchronization typedefstruct VP9RowMTSyncData { #if CONFIG_MULTITHREAD
pthread_mutex_t *mutex;
pthread_cond_t *cond; #endif // Allocate memory to store the sb/mb block index in each row. int *cur_col; int sync_range; int rows;
} VP9RowMTSync;
// Frees EncWorkerData related allocations made by vp9_encode_*_mt(). // row_mt specific data is freed with vp9_row_mt_mem_dealloc() and is not // called by this function. void vp9_encode_free_mt_data(struct VP9_COMP *cpi);
void vp9_row_mt_sync_read(VP9RowMTSync *const row_mt_sync, int r, int c); void vp9_row_mt_sync_write(VP9RowMTSync *const row_mt_sync, int r, int c, constint cols);
void vp9_row_mt_sync_read_dummy(VP9RowMTSync *const row_mt_sync, int r, int c); void vp9_row_mt_sync_write_dummy(VP9RowMTSync *const row_mt_sync, int r, int c, constint cols);
// Allocate memory for row based multi-threading synchronization. void vp9_row_mt_sync_mem_alloc(VP9RowMTSync *row_mt_sync, struct VP9Common *cm, int rows);
// Deallocate row based multi-threading synchronization related mutex and data. void vp9_row_mt_sync_mem_dealloc(VP9RowMTSync *row_mt_sync);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.