chromium/third_party/libvpx/source/libvpx/vp9/decoder/vp9_job_queue.h

/*
 *  Copyright (c) 2018 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.
 */

#ifndef VPX_VP9_DECODER_VP9_JOB_QUEUE_H_
#define VPX_VP9_DECODER_VP9_JOB_QUEUE_H_

#include "vpx_util/vpx_pthread.h"

JobQueueRowMt;

void vp9_jobq_init(JobQueueRowMt *jobq, uint8_t *buf, size_t buf_size);
void vp9_jobq_reset(JobQueueRowMt *jobq);
void vp9_jobq_deinit(JobQueueRowMt *jobq);
void vp9_jobq_terminate(JobQueueRowMt *jobq);
int vp9_jobq_queue(JobQueueRowMt *jobq, void *job, size_t job_size);
int vp9_jobq_dequeue(JobQueueRowMt *jobq, void *job, size_t job_size,
                     int blocking);

#endif  // VPX_VP9_DECODER_VP9_JOB_QUEUE_H_