chromium/third_party/ffmpeg/libavcodec/pthread_slice.c

/*
 * This file is part of FFmpeg.
 *
 * FFmpeg is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * FFmpeg is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with FFmpeg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

/**
 * @file
 * Slice multithreading support functions
 * @see doc/multithreading.txt
 */

#include "config.h"

#include "avcodec.h"
#include "codec_internal.h"
#include "internal.h"
#include "pthread_internal.h"
#include "thread.h"

#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/cpu.h"
#include "libavutil/mem.h"
#include "libavutil/thread.h"
#include "libavutil/slicethread.h"

action_func;
action_func2;
main_func;

Progress;

SliceThreadContext;

static void main_function(void *priv) {}

static void worker_func(void *priv, int jobnr, int threadnr, int nb_jobs, int nb_threads)
{}

void ff_slice_thread_free(AVCodecContext *avctx)
{}

static int thread_execute(AVCodecContext *avctx, action_func* func, void *arg, int *ret, int job_count, int job_size)
{}

static int thread_execute2(AVCodecContext *avctx, action_func2* func2, void *arg, int *ret, int job_count)
{}

int ff_slice_thread_execute_with_mainfunc(AVCodecContext *avctx, action_func2* func2, main_func *mainfunc, void *arg, int *ret, int job_count)
{}

int ff_slice_thread_init(AVCodecContext *avctx)
{}

int av_cold ff_slice_thread_init_progress(AVCodecContext *avctx)
{}

void ff_thread_report_progress2(AVCodecContext *avctx, int field, int thread, int n)
{}

void ff_thread_await_progress2(AVCodecContext *avctx, int field, int thread, int shift)
{}

int ff_slice_thread_allocz_entries(AVCodecContext *avctx, int count)
{}