Commit d63d964f authored by Dave Rice's avatar Dave Rice Committed by Michael Niedermayer

avcodec/libopenjpegenc: Add frame-threading capability

This gives a >50% speed up when encoding with libopenjpeg.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 88f2586a
...@@ -645,7 +645,7 @@ AVCodec ff_libopenjpeg_encoder = { ...@@ -645,7 +645,7 @@ AVCodec ff_libopenjpeg_encoder = {
.init = libopenjpeg_encode_init, .init = libopenjpeg_encode_init,
.encode2 = libopenjpeg_encode_frame, .encode2 = libopenjpeg_encode_frame,
.close = libopenjpeg_encode_close, .close = libopenjpeg_encode_close,
.capabilities = 0, .capabilities = CODEC_CAP_FRAME_THREADS | CODEC_CAP_INTRA_ONLY,
.pix_fmts = (const enum AVPixelFormat[]) { .pix_fmts = (const enum AVPixelFormat[]) {
AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB48, AV_PIX_FMT_RGB24, AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB48,
AV_PIX_FMT_RGBA64, AV_PIX_FMT_GBR24P, AV_PIX_FMT_RGBA64, AV_PIX_FMT_GBR24P,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment