Commit 77c23704 authored by Derek Buitenhuis's avatar Derek Buitenhuis Committed by Luca Barbato

avcodec: Mark some codecs with threadsafe init as such

Signed-off-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: 's avatarLuca Barbato <lu_zero@gentoo.org>
parent 0c0b87f1
...@@ -119,4 +119,5 @@ AVCodec ff_aasc_decoder = { ...@@ -119,4 +119,5 @@ AVCodec ff_aasc_decoder = {
.close = aasc_decode_end, .close = aasc_decode_end,
.decode = aasc_decode_frame, .decode = aasc_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -488,4 +488,5 @@ AVCodec ff_aic_decoder = { ...@@ -488,4 +488,5 @@ AVCodec ff_aic_decoder = {
.decode = aic_decode_frame, .decode = aic_decode_frame,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
.init_thread_copy = ONLY_IF_THREADS_ENABLED(aic_decode_init), .init_thread_copy = ONLY_IF_THREADS_ENABLED(aic_decode_init),
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -199,4 +199,5 @@ AVCodec ff_anm_decoder = { ...@@ -199,4 +199,5 @@ AVCodec ff_anm_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -451,4 +451,5 @@ AVCodec ff_ansi_decoder = { ...@@ -451,4 +451,5 @@ AVCodec ff_ansi_decoder = {
.close = decode_close, .close = decode_close,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -107,4 +107,5 @@ AVCodec ff_aura2_decoder = { ...@@ -107,4 +107,5 @@ AVCodec ff_aura2_decoder = {
.init = aura_decode_init, .init = aura_decode_init,
.decode = aura_decode_frame, .decode = aura_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -186,4 +186,5 @@ AVCodec ff_avs_decoder = { ...@@ -186,4 +186,5 @@ AVCodec ff_avs_decoder = {
.decode = avs_decode_frame, .decode = avs_decode_frame,
.close = avs_decode_end, .close = avs_decode_end,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -164,4 +164,5 @@ AVCodec ff_bethsoftvid_decoder = { ...@@ -164,4 +164,5 @@ AVCodec ff_bethsoftvid_decoder = {
.close = bethsoftvid_decode_end, .close = bethsoftvid_decode_end,
.decode = bethsoftvid_decode_frame, .decode = bethsoftvid_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -181,4 +181,5 @@ AVCodec ff_bfi_decoder = { ...@@ -181,4 +181,5 @@ AVCodec ff_bfi_decoder = {
.close = bfi_decode_close, .close = bfi_decode_close,
.decode = bfi_decode_frame, .decode = bfi_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -289,4 +289,5 @@ AVCodec ff_bmv_video_decoder = { ...@@ -289,4 +289,5 @@ AVCodec ff_bmv_video_decoder = {
.init = decode_init, .init = decode_init,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -261,4 +261,5 @@ AVCodec ff_c93_decoder = { ...@@ -261,4 +261,5 @@ AVCodec ff_c93_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -488,4 +488,5 @@ AVCodec ff_cllc_decoder = { ...@@ -488,4 +488,5 @@ AVCodec ff_cllc_decoder = {
.decode = cllc_decode_frame, .decode = cllc_decode_frame,
.close = cllc_decode_close, .close = cllc_decode_close,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -173,6 +173,7 @@ AVCodec ff_aura_decoder = { ...@@ -173,6 +173,7 @@ AVCodec ff_aura_decoder = {
.init = cyuv_decode_init, .init = cyuv_decode_init,
.decode = cyuv_decode_frame, .decode = cyuv_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
#endif #endif
...@@ -186,5 +187,6 @@ AVCodec ff_cyuv_decoder = { ...@@ -186,5 +187,6 @@ AVCodec ff_cyuv_decoder = {
.init = cyuv_decode_init, .init = cyuv_decode_init,
.decode = cyuv_decode_frame, .decode = cyuv_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
#endif #endif
...@@ -383,4 +383,5 @@ AVCodec ff_fraps_decoder = { ...@@ -383,4 +383,5 @@ AVCodec ff_fraps_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -617,6 +617,7 @@ AVCodec ff_mszh_decoder = { ...@@ -617,6 +617,7 @@ AVCodec ff_mszh_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
#endif #endif
...@@ -631,5 +632,6 @@ AVCodec ff_zlib_decoder = { ...@@ -631,5 +632,6 @@ AVCodec ff_zlib_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
#endif #endif
...@@ -708,4 +708,5 @@ AVCodec ff_png_decoder = { ...@@ -708,4 +708,5 @@ AVCodec ff_png_decoder = {
.close = png_dec_end, .close = png_dec_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, .capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -90,6 +90,7 @@ AVCodec ff_r210_decoder = { ...@@ -90,6 +90,7 @@ AVCodec ff_r210_decoder = {
.init = decode_init, .init = decode_init,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
#endif #endif
#if CONFIG_R10K_DECODER #if CONFIG_R10K_DECODER
...@@ -101,5 +102,6 @@ AVCodec ff_r10k_decoder = { ...@@ -101,5 +102,6 @@ AVCodec ff_r10k_decoder = {
.init = decode_init, .init = decode_init,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
#endif #endif
...@@ -564,4 +564,5 @@ AVCodec ff_utvideo_decoder = { ...@@ -564,4 +564,5 @@ AVCodec ff_utvideo_decoder = {
.close = decode_end, .close = decode_end,
.decode = decode_frame, .decode = decode_frame,
.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, .capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -208,4 +208,5 @@ AVCodec ff_vble_decoder = { ...@@ -208,4 +208,5 @@ AVCodec ff_vble_decoder = {
.close = vble_decode_close, .close = vble_decode_close,
.decode = vble_decode_frame, .decode = vble_decode_frame,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
...@@ -151,4 +151,5 @@ AVCodec ff_zerocodec_decoder = { ...@@ -151,4 +151,5 @@ AVCodec ff_zerocodec_decoder = {
.decode = zerocodec_decode_frame, .decode = zerocodec_decode_frame,
.close = zerocodec_decode_close, .close = zerocodec_decode_close,
.capabilities = AV_CODEC_CAP_DR1, .capabilities = AV_CODEC_CAP_DR1,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}; };
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