Skip to content

Commit

Permalink
avcodec/libopenjpegenc: Add frame-threading capability
Browse files Browse the repository at this point in the history
This gives a >50% speed up when encoding with libopenjpeg.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
  • Loading branch information
dericed authored and michaelni committed Jun 3, 2014
1 parent 88f2586 commit d63d964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/libopenjpegenc.c
Expand Up @@ -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,
Expand Down

0 comments on commit d63d964

Please sign in to comment.