• 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 VPX_VP9_ENCODER_VP9_JOB_QUEUE_H_
12 #define VPX_VP9_ENCODER_VP9_JOB_QUEUE_H_
13 
14 typedef enum {
15   FIRST_PASS_JOB,
16   ENCODE_JOB,
17   ARNR_JOB,
18   NUM_JOB_TYPES,
19 } JOB_TYPE;
20 
21 // Encode job parameters
22 typedef struct {
23   int vert_unit_row_num;  // Index of the vertical unit row
24   int tile_col_id;        // tile col id within a tile
25   int tile_row_id;        // tile col id within a tile
26 } JobNode;
27 
28 // Job queue element parameters
29 typedef struct {
30   // Pointer to the next link in the job queue
31   void *next;
32 
33   // Job information context of the module
34   JobNode job_info;
35 } JobQueue;
36 
37 // Job queue handle
38 typedef struct {
39   // Pointer to the next link in the job queue
40   void *next;
41 
42   // Counter to store the number of jobs picked up for processing
43   int num_jobs_acquired;
44 } JobQueueHandle;
45 
46 #endif  // VPX_VP9_ENCODER_VP9_JOB_QUEUE_H_
47