Main Page
Related Pages
Modules
Data Structures
Files
Examples
File List
Globals
libavcodec
thread.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008 Alexander Strange <astrange@ithinksw.com>
3
*
4
* This file is part of Libav.
5
*
6
* Libav is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* Libav is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with Libav; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
27
#ifndef AVCODEC_THREAD_H
28
#define AVCODEC_THREAD_H
29
30
#include "
config.h
"
31
#include "
avcodec.h
"
32
39
void
ff_thread_flush
(
AVCodecContext
*avctx);
40
51
int
ff_thread_decode_frame
(
AVCodecContext
*avctx,
AVFrame
*
picture
,
52
int
*got_picture_ptr,
AVPacket
*avpkt);
53
62
void
ff_thread_finish_setup
(
AVCodecContext
*avctx);
63
74
void
ff_thread_report_progress
(
AVFrame
*
f
,
int
progress,
int
field);
75
88
void
ff_thread_await_progress
(
AVFrame
*
f
,
int
progress,
int
field);
89
98
int
ff_thread_get_buffer
(
AVCodecContext
*avctx,
AVFrame
*
f
);
99
111
void
ff_thread_release_buffer
(
AVCodecContext
*avctx,
AVFrame
*
f
);
112
113
int
ff_thread_init
(
AVCodecContext
*s);
114
void
ff_thread_free
(
AVCodecContext
*s);
115
116
#endif
/* AVCODEC_THREAD_H */