diff options
author | jstebbins <[email protected]> | 2011-06-08 21:20:08 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-06-08 21:20:08 +0000 |
commit | c3c5052550c010732b5ca31acf563ea1e3349d88 (patch) | |
tree | 5bc011e81849ed9eb94e189de0a6312e99c3386d /libhb/hbffmpeg.h | |
parent | 925b90ee9ee13afdc8efbf1bb3e46d564a67bb7e (diff) |
libhb: Enable multi-threaded decode in ffmpeg
Enable both slice and frame based mutli-threaded decode in ffmpeg.
Uses cpu_count/2 + 1 threads.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4034 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hbffmpeg.h')
-rw-r--r-- | libhb/hbffmpeg.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/hbffmpeg.h b/libhb/hbffmpeg.h index 568eb5340..21108211e 100644 --- a/libhb/hbffmpeg.h +++ b/libhb/hbffmpeg.h @@ -7,8 +7,10 @@ #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 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* |