avcodec: Mark some codecs with threadsafe init as such

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
pull/273/head
Derek Buitenhuis 8 years ago committed by Luca Barbato
parent 0c0b87f12d
commit 77c23704c7
  1. 1
      libavcodec/aasc.c
  2. 1
      libavcodec/aic.c
  3. 1
      libavcodec/anm.c
  4. 1
      libavcodec/ansi.c
  5. 1
      libavcodec/aura.c
  6. 1
      libavcodec/avs.c
  7. 1
      libavcodec/bethsoftvideo.c
  8. 1
      libavcodec/bfi.c
  9. 1
      libavcodec/bmvvideo.c
  10. 1
      libavcodec/c93.c
  11. 1
      libavcodec/cllc.c
  12. 2
      libavcodec/cyuv.c
  13. 1
      libavcodec/fraps.c
  14. 2
      libavcodec/lcldec.c
  15. 1
      libavcodec/pngdec.c
  16. 2
      libavcodec/r210dec.c
  17. 1
      libavcodec/utvideodec.c
  18. 1
      libavcodec/vble.c
  19. 1
      libavcodec/zerocodec.c

@ -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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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 = {
.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,
}; };

Loading…
Cancel
Save