diff options
author | Dave Rice <dave@dericed.com> | 2014-06-03 14:47:17 -0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-06-03 21:17:04 +0200 |
commit | d63d964fb3c92631eaa21d58e2cbc7efdd173246 (patch) | |
tree | 16ac255a8462556182a1e0093c02119d4e0b3f1a /libavcodec | |
parent | 88f2586adbcdcb350b2923a82bcb07c5a519bd1d (diff) | |
download | ffmpeg-d63d964fb3c92631eaa21d58e2cbc7efdd173246.tar.gz |
avcodec/libopenjpegenc: Add frame-threading capability
This gives a >50% speed up when encoding with libopenjpeg.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/libopenjpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/libopenjpegenc.c b/libavcodec/libopenjpegenc.c index ac77c7d196..0fcc48ffdd 100644 --- a/libavcodec/libopenjpegenc.c +++ b/libavcodec/libopenjpegenc.c @@ -645,7 +645,7 @@ AVCodec ff_libopenjpeg_encoder = { .init = libopenjpeg_encode_init, .encode2 = libopenjpeg_encode_frame, .close = libopenjpeg_encode_close, - .capabilities = 0, + .capabilities = CODEC_CAP_FRAME_THREADS | CODEC_CAP_INTRA_ONLY, .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB48, AV_PIX_FMT_RGBA64, AV_PIX_FMT_GBR24P, |