• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (c) 2017 The WebM project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 
11 #ifndef VP9_ENCODER_VP9_MULTI_THREAD_H
12 #define VP9_ENCODER_VP9_MULTI_THREAD_H
13 
14 #include "vp9/encoder/vp9_encoder.h"
15 #include "vp9/encoder/vp9_job_queue.h"
16 
17 void *vp9_enc_grp_get_next_job(MultiThreadHandle *multi_thread_ctxt,
18                                int tile_id);
19 
20 void vp9_prepare_job_queue(VP9_COMP *cpi, JOB_TYPE job_type);
21 
22 int vp9_get_job_queue_status(MultiThreadHandle *multi_thread_ctxt,
23                              int cur_tile_id);
24 
25 void vp9_assign_tile_to_thread(MultiThreadHandle *multi_thread_ctxt,
26                                int tile_cols, int num_workers);
27 
28 void vp9_multi_thread_tile_init(VP9_COMP *cpi);
29 
30 void vp9_row_mt_mem_alloc(VP9_COMP *cpi);
31 
32 void vp9_row_mt_mem_dealloc(VP9_COMP *cpi);
33 
34 int vp9_get_tiles_proc_status(MultiThreadHandle *multi_thread_ctxt,
35                               int *tile_completion_status, int *cur_tile_id,
36                               int tile_cols);
37 
38 #endif  // VP9_ENCODER_VP9_MULTI_THREAD_H
39