summaryrefslogtreecommitdiffstats
path: root/libhb/hbffmpeg.h
blob: f1ea4a70445dede8e7436a3a84db5c374b0c7027 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* This file is part of the HandBrake source code.
   Homepage: <http://handbrake.fr/>.
   It may be used under the terms of the GNU General Public License. */

#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libavutil/opt.h"
#include "libswscale/swscale.h"

#define HB_FFMPEG_THREADS_AUTO (-1) // let hb_avcodec_open decide thread_count

void hb_avcodec_init(void);
int hb_avcodec_open( AVCodecContext *, struct AVCodec *, int thread_count );
int hb_avcodec_close( AVCodecContext * );
int hb_ff_layout_xlat(int64_t ff_layout, int channels);
struct SwsContext*
hb_sws_get_context(int srcW, int srcH, enum PixelFormat srcFormat,
                   int dstW, int dstH, enum PixelFormat dstFormat,
                   int flags);
void hb_ff_set_sample_fmt(AVCodecContext *context, AVCodec *codec);
int hb_ff_dts_request_5point1( AVCodecContext *c );
int hb_av_set_string( AVCodecContext *c, AVCodec *codec, const char *name, const char *val );