and remove FF_CODEC_CAP_INIT_THREADSAFE All our native codecs are already init-threadsafe (only wrappers for external libraries and hwaccels are typically not marked as init-threadsafe yet), so it is only natural for this to also be the default state.
Unified · Split
| @@ -152,5 +152,4 @@ const FFCodec ff_zero12v_decoder = { · 151 unmodified lines | |||
| 152 | .init = zero12v_decode_init, | 152 | .init = zero12v_decode_init, |
| 153 | FF_CODEC_DECODE_CB(zero12v_decode_frame), | 153 | FF_CODEC_DECODE_CB(zero12v_decode_frame), |
| 154 | .p.capabilities = AV_CODEC_CAP_DR1, | 154 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 155 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 156 | }; | 155 | }; |
| @@ -1036,5 +1036,5 @@ const FFCodec ff_fourxm_decoder = { · 1035 unmodified lines | |||
| 1036 | .close = decode_end, | 1036 | .close = decode_end, |
| 1037 | FF_CODEC_DECODE_CB(decode_frame), | 1037 | FF_CODEC_DECODE_CB(decode_frame), |
| 1038 | .p.capabilities = AV_CODEC_CAP_DR1, | 1038 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1039 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1039 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1040 | }; | 1040 | }; |
| @@ -182,5 +182,4 @@ const FFCodec ff_eightbps_decoder = { · 181 unmodified lines | |||
| 182 | .init = decode_init, | 182 | .init = decode_init, |
| 183 | FF_CODEC_DECODE_CB(decode_frame), | 183 | FF_CODEC_DECODE_CB(decode_frame), |
| 184 | .p.capabilities = AV_CODEC_CAP_DR1, | 184 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 185 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 186 | }; | 185 | }; |
| @@ -199,7 +199,6 @@ const FFCodec ff_eightsvx_fib_decoder = { · 198 unmodified lines | |||
| 199 | .p.capabilities = AV_CODEC_CAP_DR1, | 199 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 200 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, | 200 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, |
| 201 | AV_SAMPLE_FMT_NONE }, | 201 | AV_SAMPLE_FMT_NONE }, |
| 202 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 203 | }; | 202 | }; |
| 204 | #endif | 203 | #endif |
| 205 | #if CONFIG_EIGHTSVX_EXP_DECODER | 204 | #if CONFIG_EIGHTSVX_EXP_DECODER |
| @@ -215,6 +214,5 @@ const FFCodec ff_eightsvx_exp_decoder = { · 9 unmodified lines | |||
| 215 | .p.capabilities = AV_CODEC_CAP_DR1, | 214 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 216 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, | 215 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, |
| 217 | AV_SAMPLE_FMT_NONE }, | 216 | AV_SAMPLE_FMT_NONE }, |
| 218 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 219 | }; | 217 | }; |
| 220 | #endif | 218 | #endif |
| @@ -404,7 +404,7 @@ const FFCodec ff_a64multi_encoder = { · 403 unmodified lines | |||
| 404 | FF_CODEC_ENCODE_CB(a64multi_encode_frame), | 404 | FF_CODEC_ENCODE_CB(a64multi_encode_frame), |
| 405 | .close = a64multi_close_encoder, | 405 | .close = a64multi_close_encoder, |
| 406 | .p.pix_fmts = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE}, | 406 | .p.pix_fmts = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE}, |
| 407 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 407 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 408 | }; | 408 | }; |
| 409 | #endif | 409 | #endif |
| 410 | #if CONFIG_A64MULTI5_ENCODER | 410 | #if CONFIG_A64MULTI5_ENCODER |
| @@ -419,6 +419,6 @@ const FFCodec ff_a64multi5_encoder = { · 8 unmodified lines | |||
| 419 | FF_CODEC_ENCODE_CB(a64multi_encode_frame), | 419 | FF_CODEC_ENCODE_CB(a64multi_encode_frame), |
| 420 | .close = a64multi_close_encoder, | 420 | .close = a64multi_close_encoder, |
| 421 | .p.pix_fmts = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE}, | 421 | .p.pix_fmts = (const enum AVPixelFormat[]) {AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE}, |
| 422 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 422 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 423 | }; | 423 | }; |
| 424 | #endif | 424 | #endif |
| @@ -565,7 +565,7 @@ const FFCodec ff_aac_decoder = { · 564 unmodified lines | |||
| 565 | AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE | 565 | AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE |
| 566 | }, | 566 | }, |
| 567 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, | 567 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, |
| 568 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 568 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 569 | #if FF_API_OLD_CHANNEL_LAYOUT | 569 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 570 | .p.channel_layouts = aac_channel_layout, | 570 | .p.channel_layouts = aac_channel_layout, |
| 571 | #endif | 571 | #endif |
| @@ -593,7 +593,7 @@ const FFCodec ff_aac_latm_decoder = { · 21 unmodified lines | |||
| 593 | AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE | 593 | AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE |
| 594 | }, | 594 | }, |
| 595 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, | 595 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, |
| 596 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 596 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 597 | #if FF_API_OLD_CHANNEL_LAYOUT | 597 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 598 | .p.channel_layouts = aac_channel_layout, | 598 | .p.channel_layouts = aac_channel_layout, |
| 599 | #endif | 599 | #endif |
| @@ -463,7 +463,7 @@ const FFCodec ff_aac_fixed_decoder = { · 462 unmodified lines | |||
| 463 | AV_SAMPLE_FMT_S32P, AV_SAMPLE_FMT_NONE | 463 | AV_SAMPLE_FMT_S32P, AV_SAMPLE_FMT_NONE |
| 464 | }, | 464 | }, |
| 465 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, | 465 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | AV_CODEC_CAP_DR1, |
| 466 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 466 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 467 | #if FF_API_OLD_CHANNEL_LAYOUT | 467 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 468 | .p.channel_layouts = aac_channel_layout, | 468 | .p.channel_layouts = aac_channel_layout, |
| 469 | #endif | 469 | #endif |
| @@ -1150,7 +1150,7 @@ const FFCodec ff_aac_encoder = { · 1149 unmodified lines | |||
| 1150 | .close = aac_encode_end, | 1150 | .close = aac_encode_end, |
| 1151 | .defaults = aac_encode_defaults, | 1151 | .defaults = aac_encode_defaults, |
| 1152 | .p.supported_samplerates = ff_mpeg4audio_sample_rates, | 1152 | .p.supported_samplerates = ff_mpeg4audio_sample_rates, |
| 1153 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1153 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1154 | .p.capabilities = AV_CODEC_CAP_SMALL_LAST_FRAME | AV_CODEC_CAP_DELAY, | 1154 | .p.capabilities = AV_CODEC_CAP_SMALL_LAST_FRAME | AV_CODEC_CAP_DELAY, |
| 1155 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, | 1155 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, |
| 1156 | AV_SAMPLE_FMT_NONE }, | 1156 | AV_SAMPLE_FMT_NONE }, |
| @@ -159,5 +159,4 @@ const FFCodec ff_aasc_decoder = { · 158 unmodified lines | |||
| 159 | .close = aasc_decode_end, | 159 | .close = aasc_decode_end, |
| 160 | FF_CODEC_DECODE_CB(aasc_decode_frame), | 160 | FF_CODEC_DECODE_CB(aasc_decode_frame), |
| 161 | .p.capabilities = AV_CODEC_CAP_DR1, | 161 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 162 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 163 | }; | 162 | }; |
| @@ -183,5 +183,5 @@ const FFCodec ff_ac3_fixed_decoder = { · 182 unmodified lines | |||
| 183 | AV_CODEC_CAP_DR1, | 183 | AV_CODEC_CAP_DR1, |
| 184 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 184 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 185 | AV_SAMPLE_FMT_NONE }, | 185 | AV_SAMPLE_FMT_NONE }, |
| 186 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 186 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 187 | }; | 187 | }; |
| @@ -73,7 +73,7 @@ const FFCodec ff_ac3_decoder = { · 72 unmodified lines | |||
| 73 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 73 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 74 | AV_SAMPLE_FMT_NONE }, | 74 | AV_SAMPLE_FMT_NONE }, |
| 75 | .p.priv_class = &ac3_eac3_decoder_class, | 75 | .p.priv_class = &ac3_eac3_decoder_class, |
| 76 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 76 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | #if CONFIG_EAC3_DECODER | 79 | #if CONFIG_EAC3_DECODER |
| @@ -91,6 +91,6 @@ const FFCodec ff_eac3_decoder = { · 11 unmodified lines | |||
| 91 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 91 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 92 | AV_SAMPLE_FMT_NONE }, | 92 | AV_SAMPLE_FMT_NONE }, |
| 93 | .p.priv_class = &ac3_eac3_decoder_class, | 93 | .p.priv_class = &ac3_eac3_decoder_class, |
| 94 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 94 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 95 | }; | 95 | }; |
| 96 | #endif | 96 | #endif |
| @@ -133,7 +133,7 @@ const FFCodec ff_ac3_fixed_encoder = { · 132 unmodified lines | |||
| 133 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P, | 133 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P, |
| 134 | AV_SAMPLE_FMT_NONE }, | 134 | AV_SAMPLE_FMT_NONE }, |
| 135 | .p.priv_class = &ff_ac3enc_class, | 135 | .p.priv_class = &ff_ac3enc_class, |
| 136 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 136 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 137 | .p.supported_samplerates = ff_ac3_sample_rate_tab, | 137 | .p.supported_samplerates = ff_ac3_sample_rate_tab, |
| 138 | #if FF_API_OLD_CHANNEL_LAYOUT | 138 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 139 | .p.channel_layouts = ff_ac3_channel_layouts, | 139 | .p.channel_layouts = ff_ac3_channel_layouts, |
| @@ -143,6 +143,6 @@ const FFCodec ff_ac3_encoder = { · 142 unmodified lines | |||
| 143 | #endif | 143 | #endif |
| 144 | .p.ch_layouts = ff_ac3_ch_layouts, | 144 | .p.ch_layouts = ff_ac3_ch_layouts, |
| 145 | .defaults = ff_ac3_enc_defaults, | 145 | .defaults = ff_ac3_enc_defaults, |
| 146 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 146 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 147 | }; | 147 | }; |
| 148 | FF_ENABLE_DEPRECATION_WARNINGS | 148 | FF_ENABLE_DEPRECATION_WARNINGS |
| @@ -2296,7 +2296,6 @@ const FFCodec ff_ ## name_ ## _decoder = { \ · 2295 unmodified lines | |||
| 2296 | .init = adpcm_decode_init, \ | 2296 | .init = adpcm_decode_init, \ |
| 2297 | FF_CODEC_DECODE_CB(adpcm_decode_frame), \ | 2297 | FF_CODEC_DECODE_CB(adpcm_decode_frame), \ |
| 2298 | .flush = adpcm_flush, \ | 2298 | .flush = adpcm_flush, \ |
| 2299 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ | ||
| 2300 | }; | 2299 | }; |
| 2301 | #define ADPCM_DECODER_2(enabled, codec_id, name, sample_fmts, long_name) \ | 2300 | #define ADPCM_DECODER_2(enabled, codec_id, name, sample_fmts, long_name) \ |
| 2302 | ADPCM_DECODER_ ## enabled(codec_id, name, sample_fmts, long_name) | 2301 | ADPCM_DECODER_ ## enabled(codec_id, name, sample_fmts, long_name) |
| @@ -1009,7 +1009,7 @@ const FFCodec ff_ ## name_ ## _encoder = { \ · 1008 unmodified lines | |||
| 1009 | .init = adpcm_encode_init, \ | 1009 | .init = adpcm_encode_init, \ |
| 1010 | FF_CODEC_ENCODE_CB(adpcm_encode_frame), \ | 1010 | FF_CODEC_ENCODE_CB(adpcm_encode_frame), \ |
| 1011 | .close = adpcm_encode_close, \ | 1011 | .close = adpcm_encode_close, \ |
| 1012 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, \ | 1012 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, \ |
| 1013 | }; | 1013 | }; |
| 1014 | #define ADPCM_ENCODER_2(enabled, codec_id, name, sample_fmts, capabilities, long_name) \ | 1014 | #define ADPCM_ENCODER_2(enabled, codec_id, name, sample_fmts, capabilities, long_name) \ |
| 1015 | ADPCM_ENCODER_ ## enabled(codec_id, name, sample_fmts, capabilities, long_name) | 1015 | ADPCM_ENCODER_ ## enabled(codec_id, name, sample_fmts, capabilities, long_name) |
| @@ -203,5 +203,4 @@ const FFCodec ff_adpcm_adx_decoder = { · 202 unmodified lines | |||
| 203 | AV_CODEC_CAP_DR1, | 203 | AV_CODEC_CAP_DR1, |
| 204 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 204 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 205 | AV_SAMPLE_FMT_NONE }, | 205 | AV_SAMPLE_FMT_NONE }, |
| 206 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 207 | }; | 206 | }; |
| @@ -200,5 +200,4 @@ const FFCodec ff_adpcm_adx_encoder = { · 199 unmodified lines | |||
| 200 | FF_CODEC_ENCODE_CB(adx_encode_frame), | 200 | FF_CODEC_ENCODE_CB(adx_encode_frame), |
| 201 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, | 201 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16, |
| 202 | AV_SAMPLE_FMT_NONE }, | 202 | AV_SAMPLE_FMT_NONE }, |
| 203 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 204 | }; | 203 | }; |
| @@ -1296,7 +1296,6 @@ const FFCodec ff_agm_decoder = { · 1295 unmodified lines | |||
| 1296 | .close = decode_close, | 1296 | .close = decode_close, |
| 1297 | FF_CODEC_DECODE_CB(decode_frame), | 1297 | FF_CODEC_DECODE_CB(decode_frame), |
| 1298 | .flush = decode_flush, | 1298 | .flush = decode_flush, |
| 1299 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 1299 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 1300 | FF_CODEC_CAP_INIT_CLEANUP | | ||
| 1301 | FF_CODEC_CAP_EXPORTS_CROPPING, | 1300 | FF_CODEC_CAP_EXPORTS_CROPPING, |
| 1302 | }; | 1301 | }; |
| @@ -505,5 +505,4 @@ const FFCodec ff_aic_decoder = { · 504 unmodified lines | |||
| 505 | .close = aic_decode_close, | 505 | .close = aic_decode_close, |
| 506 | FF_CODEC_DECODE_CB(aic_decode_frame), | 506 | FF_CODEC_DECODE_CB(aic_decode_frame), |
| 507 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 507 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 508 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 509 | }; | 508 | }; |
| @@ -620,6 +620,6 @@ const FFCodec ff_alac_decoder = { · 619 unmodified lines | |||
| 620 | .close = alac_decode_close, | 620 | .close = alac_decode_close, |
| 621 | FF_CODEC_DECODE_CB(alac_decode_frame), | 621 | FF_CODEC_DECODE_CB(alac_decode_frame), |
| 622 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_CHANNEL_CONF, | 622 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_CHANNEL_CONF, |
| 623 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 623 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 624 | .p.priv_class = &alac_class | 624 | .p.priv_class = &alac_class |
| 625 | }; | 625 | }; |
| @@ -667,6 +667,5 @@ const FFCodec ff_alac_encoder = { · 666 unmodified lines | |||
| 667 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P, | 667 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32P, |
| 668 | AV_SAMPLE_FMT_S16P, | 668 | AV_SAMPLE_FMT_S16P, |
| 669 | AV_SAMPLE_FMT_NONE }, | 669 | AV_SAMPLE_FMT_NONE }, |
| 670 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 671 | }; | 670 | }; |
| 672 | FF_ENABLE_DEPRECATION_WARNINGS | 671 | FF_ENABLE_DEPRECATION_WARNINGS |
| @@ -2189,5 +2189,5 @@ const FFCodec ff_als_decoder = { · 2188 unmodified lines | |||
| 2189 | FF_CODEC_DECODE_CB(decode_frame), | 2189 | FF_CODEC_DECODE_CB(decode_frame), |
| 2190 | .flush = flush, | 2190 | .flush = flush, |
| 2191 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 2191 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 2192 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2192 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2193 | }; | 2193 | }; |
| @@ -1107,5 +1107,4 @@ const FFCodec ff_amrnb_decoder = { · 1106 unmodified lines | |||
| 1107 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1107 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1108 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, | 1108 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, |
| 1109 | AV_SAMPLE_FMT_NONE }, | 1109 | AV_SAMPLE_FMT_NONE }, |
| 1110 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1111 | }; | 1110 | }; |
| @@ -1303,5 +1303,4 @@ const FFCodec ff_amrwb_decoder = { · 1302 unmodified lines | |||
| 1303 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1303 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1304 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, | 1304 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
| 1305 | AV_SAMPLE_FMT_NONE }, | 1305 | AV_SAMPLE_FMT_NONE }, |
| 1306 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1307 | }; | 1306 | }; |
| @@ -199,5 +199,4 @@ const FFCodec ff_anm_decoder = { · 198 unmodified lines | |||
| 199 | .close = decode_end, | 199 | .close = decode_end, |
| 200 | FF_CODEC_DECODE_CB(decode_frame), | 200 | FF_CODEC_DECODE_CB(decode_frame), |
| 201 | .p.capabilities = AV_CODEC_CAP_DR1, | 201 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 202 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 203 | }; | 202 | }; |
| @@ -490,6 +490,5 @@ const FFCodec ff_ansi_decoder = { · 489 unmodified lines | |||
| 490 | .close = decode_close, | 490 | .close = decode_close, |
| 491 | FF_CODEC_DECODE_CB(decode_frame), | 491 | FF_CODEC_DECODE_CB(decode_frame), |
| 492 | .p.capabilities = AV_CODEC_CAP_DR1, | 492 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 493 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 494 | .defaults = ansi_defaults, | 493 | .defaults = ansi_defaults, |
| 495 | }; | 494 | }; |
| @@ -1669,7 +1669,7 @@ const FFCodec ff_ape_decoder = { · 1668 unmodified lines | |||
| 1669 | FF_CODEC_DECODE_CB(ape_decode_frame), | 1669 | FF_CODEC_DECODE_CB(ape_decode_frame), |
| 1670 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DELAY | | 1670 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DELAY | |
| 1671 | AV_CODEC_CAP_DR1, | 1671 | AV_CODEC_CAP_DR1, |
| 1672 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1672 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1673 | .flush = ape_flush, | 1673 | .flush = ape_flush, |
| 1674 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, | 1674 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_U8P, |
| 1675 | AV_SAMPLE_FMT_S16P, | 1675 | AV_SAMPLE_FMT_S16P, |
| @@ -183,7 +183,6 @@ const FFCodec ff_aptx_decoder = { · 182 unmodified lines | |||
| 183 | .init = ff_aptx_init, | 183 | .init = ff_aptx_init, |
| 184 | FF_CODEC_DECODE_CB(aptx_decode_frame), | 184 | FF_CODEC_DECODE_CB(aptx_decode_frame), |
| 185 | .p.capabilities = AV_CODEC_CAP_DR1, | 185 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 186 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 187 | #if FF_API_OLD_CHANNEL_LAYOUT | 186 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 188 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, | 187 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, |
| 189 | #endif | 188 | #endif |
| @@ -203,7 +202,6 @@ const FFCodec ff_aptx_hd_decoder = { · 13 unmodified lines | |||
| 203 | .init = ff_aptx_init, | 202 | .init = ff_aptx_init, |
| 204 | FF_CODEC_DECODE_CB(aptx_decode_frame), | 203 | FF_CODEC_DECODE_CB(aptx_decode_frame), |
| 205 | .p.capabilities = AV_CODEC_CAP_DR1, | 204 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 206 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 207 | #if FF_API_OLD_CHANNEL_LAYOUT | 205 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 208 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, | 206 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, |
| 209 | #endif | 207 | #endif |
| @@ -255,7 +255,6 @@ const FFCodec ff_aptx_encoder = { · 254 unmodified lines | |||
| 255 | .init = ff_aptx_init, | 255 | .init = ff_aptx_init, |
| 256 | FF_CODEC_ENCODE_CB(aptx_encode_frame), | 256 | FF_CODEC_ENCODE_CB(aptx_encode_frame), |
| 257 | .close = aptx_close, | 257 | .close = aptx_close, |
| 258 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 259 | #if FF_API_OLD_CHANNEL_LAYOUT | 258 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 260 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, | 259 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, |
| 261 | #endif | 260 | #endif |
| @@ -277,7 +276,6 @@ const FFCodec ff_aptx_hd_encoder = { · 15 unmodified lines | |||
| 277 | .init = ff_aptx_init, | 276 | .init = ff_aptx_init, |
| 278 | FF_CODEC_ENCODE_CB(aptx_encode_frame), | 277 | FF_CODEC_ENCODE_CB(aptx_encode_frame), |
| 279 | .close = aptx_close, | 278 | .close = aptx_close, |
| 280 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 281 | #if FF_API_OLD_CHANNEL_LAYOUT | 279 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 282 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, | 280 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_STEREO, 0}, |
| 283 | #endif | 281 | #endif |
| @@ -222,5 +222,5 @@ const FFCodec ff_arbc_decoder = { · 221 unmodified lines | |||
| 222 | .flush = decode_flush, | 222 | .flush = decode_flush, |
| 223 | .close = decode_close, | 223 | .close = decode_close, |
| 224 | .p.capabilities = AV_CODEC_CAP_DR1, | 224 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 225 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 225 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 226 | }; | 226 | }; |
| @@ -744,5 +744,5 @@ const FFCodec ff_argo_decoder = { · 743 unmodified lines | |||
| 744 | .flush = decode_flush, | 744 | .flush = decode_flush, |
| 745 | .close = decode_close, | 745 | .close = decode_close, |
| 746 | .p.capabilities = AV_CODEC_CAP_DR1, | 746 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 747 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 747 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 748 | }; | 748 | }; |
| @@ -69,7 +69,6 @@ const FFCodec ff_ssa_decoder = { · 68 unmodified lines | |||
| 69 | .p.id = AV_CODEC_ID_ASS, | 69 | .p.id = AV_CODEC_ID_ASS, |
| 70 | .init = ass_decode_init, | 70 | .init = ass_decode_init, |
| 71 | FF_CODEC_DECODE_SUB_CB(ass_decode_frame), | 71 | FF_CODEC_DECODE_SUB_CB(ass_decode_frame), |
| 72 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 73 | }; | 72 | }; |
| 74 | #endif | 73 | #endif |
| 75 | 74 | ||
| @@ -81,6 +80,5 @@ const FFCodec ff_ass_decoder = { · 5 unmodified lines | |||
| 81 | .p.id = AV_CODEC_ID_ASS, | 80 | .p.id = AV_CODEC_ID_ASS, |
| 82 | .init = ass_decode_init, | 81 | .init = ass_decode_init, |
| 83 | FF_CODEC_DECODE_SUB_CB(ass_decode_frame), | 82 | FF_CODEC_DECODE_SUB_CB(ass_decode_frame), |
| 84 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 85 | }; | 83 | }; |
| 86 | #endif | 84 | #endif |
| @@ -76,7 +76,6 @@ const FFCodec ff_ssa_encoder = { · 75 unmodified lines | |||
| 76 | .p.id = AV_CODEC_ID_ASS, | 76 | .p.id = AV_CODEC_ID_ASS, |
| 77 | .init = ass_encode_init, | 77 | .init = ass_encode_init, |
| 78 | FF_CODEC_ENCODE_SUB_CB(ass_encode_frame), | 78 | FF_CODEC_ENCODE_SUB_CB(ass_encode_frame), |
| 79 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 80 | }; | 79 | }; |
| 81 | #endif | 80 | #endif |
| 82 | 81 | ||
| @@ -88,6 +87,5 @@ const FFCodec ff_ass_encoder = { · 5 unmodified lines | |||
| 88 | .p.id = AV_CODEC_ID_ASS, | 87 | .p.id = AV_CODEC_ID_ASS, |
| 89 | .init = ass_encode_init, | 88 | .init = ass_encode_init, |
| 90 | FF_CODEC_ENCODE_SUB_CB(ass_encode_frame), | 89 | FF_CODEC_ENCODE_SUB_CB(ass_encode_frame), |
| 91 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 92 | }; | 90 | }; |
| 93 | #endif | 91 | #endif |
| @@ -338,7 +338,6 @@ const FFCodec ff_asv1_decoder = { · 337 unmodified lines | |||
| 338 | .close = decode_end, | 338 | .close = decode_end, |
| 339 | FF_CODEC_DECODE_CB(decode_frame), | 339 | FF_CODEC_DECODE_CB(decode_frame), |
| 340 | .p.capabilities = AV_CODEC_CAP_DR1, | 340 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 341 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 342 | }; | 341 | }; |
| 343 | #endif | 342 | #endif |
| 344 | 343 | ||
| @@ -352,6 +351,5 @@ const FFCodec ff_asv2_decoder = { · 7 unmodified lines | |||
| 352 | .init = decode_init, | 351 | .init = decode_init, |
| 353 | FF_CODEC_DECODE_CB(decode_frame), | 352 | FF_CODEC_DECODE_CB(decode_frame), |
| 354 | .p.capabilities = AV_CODEC_CAP_DR1, | 353 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 355 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 356 | }; | 354 | }; |
| 357 | #endif | 355 | #endif |
| @@ -353,7 +353,6 @@ const FFCodec ff_asv1_encoder = { · 352 unmodified lines | |||
| 353 | FF_CODEC_ENCODE_CB(encode_frame), | 353 | FF_CODEC_ENCODE_CB(encode_frame), |
| 354 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 354 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 355 | AV_PIX_FMT_NONE }, | 355 | AV_PIX_FMT_NONE }, |
| 356 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 357 | }; | 356 | }; |
| 358 | #endif | 357 | #endif |
| 359 | 358 | ||
| @@ -368,6 +367,5 @@ const FFCodec ff_asv2_encoder = { · 8 unmodified lines | |||
| 368 | FF_CODEC_ENCODE_CB(encode_frame), | 367 | FF_CODEC_ENCODE_CB(encode_frame), |
| 369 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 368 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 370 | AV_PIX_FMT_NONE }, | 369 | AV_PIX_FMT_NONE }, |
| 371 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 372 | }; | 370 | }; |
| 373 | #endif | 371 | #endif |
| @@ -396,5 +396,5 @@ const FFCodec ff_atrac1_decoder = { · 395 unmodified lines | |||
| 396 | .p.capabilities = AV_CODEC_CAP_DR1, | 396 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 397 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 397 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 398 | AV_SAMPLE_FMT_NONE }, | 398 | AV_SAMPLE_FMT_NONE }, |
| 399 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 399 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 400 | }; | 400 | }; |
| @@ -1027,7 +1027,7 @@ const FFCodec ff_atrac3_decoder = { · 1026 unmodified lines | |||
| 1027 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, | 1027 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, |
| 1028 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1028 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1029 | AV_SAMPLE_FMT_NONE }, | 1029 | AV_SAMPLE_FMT_NONE }, |
| 1030 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1030 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1031 | }; | 1031 | }; |
| 1032 | 1032 | ||
| 1033 | const FFCodec ff_atrac3al_decoder = { | 1033 | const FFCodec ff_atrac3al_decoder = { |
| @@ -1042,5 +1042,5 @@ const FFCodec ff_atrac3al_decoder = { · 8 unmodified lines | |||
| 1042 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, | 1042 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, |
| 1043 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1043 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1044 | AV_SAMPLE_FMT_NONE }, | 1044 | AV_SAMPLE_FMT_NONE }, |
| 1045 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1045 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1046 | }; | 1046 | }; |
| @@ -396,7 +396,7 @@ const FFCodec ff_atrac3p_decoder = { · 395 unmodified lines | |||
| 396 | .p.type = AVMEDIA_TYPE_AUDIO, | 396 | .p.type = AVMEDIA_TYPE_AUDIO, |
| 397 | .p.id = AV_CODEC_ID_ATRAC3P, | 397 | .p.id = AV_CODEC_ID_ATRAC3P, |
| 398 | .p.capabilities = AV_CODEC_CAP_DR1, | 398 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 399 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 399 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 400 | .priv_data_size = sizeof(ATRAC3PContext), | 400 | .priv_data_size = sizeof(ATRAC3PContext), |
| 401 | .init = atrac3p_decode_init, | 401 | .init = atrac3p_decode_init, |
| 402 | .close = atrac3p_decode_close, | 402 | .close = atrac3p_decode_close, |
| @@ -409,7 +409,7 @@ const FFCodec ff_atrac3pal_decoder = { · 6 unmodified lines | |||
| 409 | .p.type = AVMEDIA_TYPE_AUDIO, | 409 | .p.type = AVMEDIA_TYPE_AUDIO, |
| 410 | .p.id = AV_CODEC_ID_ATRAC3PAL, | 410 | .p.id = AV_CODEC_ID_ATRAC3PAL, |
| 411 | .p.capabilities = AV_CODEC_CAP_DR1, | 411 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 412 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 412 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 413 | .priv_data_size = sizeof(ATRAC3PContext), | 413 | .priv_data_size = sizeof(ATRAC3PContext), |
| 414 | .init = atrac3p_decode_init, | 414 | .init = atrac3p_decode_init, |
| 415 | .close = atrac3p_decode_close, | 415 | .close = atrac3p_decode_close, |
| @@ -997,6 +997,6 @@ const FFCodec ff_atrac9_decoder = { · 996 unmodified lines | |||
| 997 | .close = atrac9_decode_close, | 997 | .close = atrac9_decode_close, |
| 998 | FF_CODEC_DECODE_CB(atrac9_decode_frame), | 998 | FF_CODEC_DECODE_CB(atrac9_decode_frame), |
| 999 | .flush = atrac9_decode_flush, | 999 | .flush = atrac9_decode_flush, |
| 1000 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1000 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1001 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1001 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1002 | }; | 1002 | }; |
| @@ -602,7 +602,7 @@ static av_cold int ffat_close_decoder(AVCodecContext *avctx) · 601 unmodified lines | |||
| 602 | .p.priv_class = &ffat_##NAME##_dec_class, \ | 602 | .p.priv_class = &ffat_##NAME##_dec_class, \ |
| 603 | .bsfs = bsf_name, \ | 603 | .bsfs = bsf_name, \ |
| 604 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF, \ | 604 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF, \ |
| 605 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, \ | 605 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, \ |
| 606 | .p.wrapper_name = "at", \ | 606 | .p.wrapper_name = "at", \ |
| 607 | }; | 607 | }; |
| 608 | 608 | ||
| @@ -634,7 +634,6 @@ static const AVOption options[] = { · 633 unmodified lines | |||
| 634 | AV_SAMPLE_FMT_S16, \ | 634 | AV_SAMPLE_FMT_S16, \ |
| 635 | AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NONE \ | 635 | AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NONE \ |
| 636 | }, \ | 636 | }, \ |
| 637 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ | ||
| 638 | .p.profiles = PROFILES, \ | 637 | .p.profiles = PROFILES, \ |
| 639 | .p.wrapper_name = "at", \ | 638 | .p.wrapper_name = "at", \ |
| 640 | }; | 639 | }; |
| @@ -104,5 +104,4 @@ const FFCodec ff_aura2_decoder = { · 103 unmodified lines | |||
| 104 | .init = aura_decode_init, | 104 | .init = aura_decode_init, |
| 105 | FF_CODEC_DECODE_CB(aura_decode_frame), | 105 | FF_CODEC_DECODE_CB(aura_decode_frame), |
| 106 | .p.capabilities = AV_CODEC_CAP_DR1, | 106 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 107 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 108 | }; | 107 | }; |
| @@ -1255,8 +1255,7 @@ const FFCodec ff_av1_decoder = { · 1254 unmodified lines | |||
| 1255 | .close = av1_decode_free, | 1255 | .close = av1_decode_free, |
| 1256 | FF_CODEC_DECODE_CB(av1_decode_frame), | 1256 | FF_CODEC_DECODE_CB(av1_decode_frame), |
| 1257 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING, | 1257 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_AVOID_PROBING, |
| 1258 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 1258 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 1259 | FF_CODEC_CAP_INIT_CLEANUP | | ||
| 1260 | FF_CODEC_CAP_SETS_PKT_DTS, | 1259 | FF_CODEC_CAP_SETS_PKT_DTS, |
| 1261 | .flush = av1_decode_flush, | 1260 | .flush = av1_decode_flush, |
| 1262 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_av1_profiles), | 1261 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_av1_profiles), |
| @@ -72,13 +72,13 @@ static AVMutex codec_mutex = AV_MUTEX_INITIALIZER; · 71 unmodified lines | |||
| 72 | 72 | ||
| 73 | static void lock_avcodec(const FFCodec *codec) | 73 | static void lock_avcodec(const FFCodec *codec) |
| 74 | { | 74 | { |
| 75 | if (!(codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE) && codec->init) | 75 | if (codec->caps_internal & FF_CODEC_CAP_NOT_INIT_THREADSAFE && codec->init) |
| 76 | ff_mutex_lock(&codec_mutex); | 76 | ff_mutex_lock(&codec_mutex); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | static void unlock_avcodec(const FFCodec *codec) | 79 | static void unlock_avcodec(const FFCodec *codec) |
| 80 | { | 80 | { |
| 81 | if (!(codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE) && codec->init) | 81 | if (codec->caps_internal & FF_CODEC_CAP_NOT_INIT_THREADSAFE && codec->init) |
| 82 | ff_mutex_unlock(&codec_mutex); | 82 | ff_mutex_unlock(&codec_mutex); |
| 83 | } | 83 | } |
| 84 | 84 | ||
| @@ -98,5 +98,5 @@ const FFCodec ff_avrn_decoder = { · 97 unmodified lines | |||
| 98 | .init = init, | 98 | .init = init, |
| 99 | FF_CODEC_DECODE_CB(decode_frame), | 99 | FF_CODEC_DECODE_CB(decode_frame), |
| 100 | .p.capabilities = AV_CODEC_CAP_DR1, | 100 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 101 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 101 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 102 | }; | 102 | }; |
| @@ -185,5 +185,4 @@ const FFCodec ff_avs_decoder = { · 184 unmodified lines | |||
| 185 | FF_CODEC_DECODE_CB(avs_decode_frame), | 185 | FF_CODEC_DECODE_CB(avs_decode_frame), |
| 186 | .close = avs_decode_end, | 186 | .close = avs_decode_end, |
| 187 | .p.capabilities = AV_CODEC_CAP_DR1, | 187 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 188 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 189 | }; | 188 | }; |
| @@ -127,5 +127,4 @@ const FFCodec ff_avui_decoder = { · 126 unmodified lines | |||
| 127 | .p.capabilities = AV_CODEC_CAP_DR1, | 127 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 128 | .init = avui_decode_init, | 128 | .init = avui_decode_init, |
| 129 | FF_CODEC_DECODE_CB(avui_decode_frame), | 129 | FF_CODEC_DECODE_CB(avui_decode_frame), |
| 130 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 131 | }; | 130 | }; |
| @@ -100,5 +100,4 @@ const FFCodec ff_avui_encoder = { · 99 unmodified lines | |||
| 100 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_UYVY422, AV_PIX_FMT_NONE }, | 100 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_UYVY422, AV_PIX_FMT_NONE }, |
| 101 | .init = avui_encode_init, | 101 | .init = avui_encode_init, |
| 102 | FF_CODEC_ENCODE_CB(avui_encode_frame), | 102 | FF_CODEC_ENCODE_CB(avui_encode_frame), |
| 103 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 104 | }; | 103 | }; |
| @@ -168,5 +168,4 @@ const FFCodec ff_bethsoftvid_decoder = { · 167 unmodified lines | |||
| 168 | .close = bethsoftvid_decode_end, | 168 | .close = bethsoftvid_decode_end, |
| 169 | FF_CODEC_DECODE_CB(bethsoftvid_decode_frame), | 169 | FF_CODEC_DECODE_CB(bethsoftvid_decode_frame), |
| 170 | .p.capabilities = AV_CODEC_CAP_DR1, | 170 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 171 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 172 | }; | 171 | }; |
| @@ -185,5 +185,4 @@ const FFCodec ff_bfi_decoder = { · 184 unmodified lines | |||
| 185 | .close = bfi_decode_close, | 185 | .close = bfi_decode_close, |
| 186 | FF_CODEC_DECODE_CB(bfi_decode_frame), | 186 | FF_CODEC_DECODE_CB(bfi_decode_frame), |
| 187 | .p.capabilities = AV_CODEC_CAP_DR1, | 187 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 188 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 189 | }; | 188 | }; |
| @@ -1430,5 +1430,5 @@ const FFCodec ff_bink_decoder = { · 1429 unmodified lines | |||
| 1430 | FF_CODEC_DECODE_CB(decode_frame), | 1430 | FF_CODEC_DECODE_CB(decode_frame), |
| 1431 | .flush = flush, | 1431 | .flush = flush, |
| 1432 | .p.capabilities = AV_CODEC_CAP_DR1, | 1432 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1433 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1433 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1434 | }; | 1434 | }; |
| @@ -376,7 +376,7 @@ const FFCodec ff_binkaudio_rdft_decoder = { · 375 unmodified lines | |||
| 376 | .close = decode_end, | 376 | .close = decode_end, |
| 377 | FF_CODEC_RECEIVE_FRAME_CB(binkaudio_receive_frame), | 377 | FF_CODEC_RECEIVE_FRAME_CB(binkaudio_receive_frame), |
| 378 | .p.capabilities = AV_CODEC_CAP_DR1, | 378 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 379 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 379 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 380 | }; | 380 | }; |
| 381 | 381 | ||
| 382 | const FFCodec ff_binkaudio_dct_decoder = { | 382 | const FFCodec ff_binkaudio_dct_decoder = { |
| @@ -390,5 +390,5 @@ const FFCodec ff_binkaudio_dct_decoder = { · 7 unmodified lines | |||
| 390 | .close = decode_end, | 390 | .close = decode_end, |
| 391 | FF_CODEC_RECEIVE_FRAME_CB(binkaudio_receive_frame), | 391 | FF_CODEC_RECEIVE_FRAME_CB(binkaudio_receive_frame), |
| 392 | .p.capabilities = AV_CODEC_CAP_DR1, | 392 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 393 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 393 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 394 | }; | 394 | }; |
| @@ -226,7 +226,6 @@ const FFCodec ff_bintext_decoder = { · 225 unmodified lines | |||
| 226 | .init = decode_init, | 226 | .init = decode_init, |
| 227 | FF_CODEC_DECODE_CB(decode_frame), | 227 | FF_CODEC_DECODE_CB(decode_frame), |
| 228 | .p.capabilities = AV_CODEC_CAP_DR1, | 228 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 229 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 230 | }; | 229 | }; |
| 231 | #endif | 230 | #endif |
| 232 | #if CONFIG_XBIN_DECODER | 231 | #if CONFIG_XBIN_DECODER |
| @@ -239,7 +238,6 @@ const FFCodec ff_xbin_decoder = { · 6 unmodified lines | |||
| 239 | .init = decode_init, | 238 | .init = decode_init, |
| 240 | FF_CODEC_DECODE_CB(decode_frame), | 239 | FF_CODEC_DECODE_CB(decode_frame), |
| 241 | .p.capabilities = AV_CODEC_CAP_DR1, | 240 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 242 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 243 | }; | 241 | }; |
| 244 | #endif | 242 | #endif |
| 245 | #if CONFIG_IDF_DECODER | 243 | #if CONFIG_IDF_DECODER |
| @@ -252,6 +250,5 @@ const FFCodec ff_idf_decoder = { · 6 unmodified lines | |||
| 252 | .init = decode_init, | 250 | .init = decode_init, |
| 253 | FF_CODEC_DECODE_CB(decode_frame), | 251 | FF_CODEC_DECODE_CB(decode_frame), |
| 254 | .p.capabilities = AV_CODEC_CAP_DR1, | 252 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 255 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 256 | }; | 253 | }; |
| 257 | #endif | 254 | #endif |
| @@ -154,5 +154,4 @@ const FFCodec ff_bitpacked_decoder = { · 153 unmodified lines | |||
| 154 | MKTAG('U', 'Y', 'V', 'Y'), | 154 | MKTAG('U', 'Y', 'V', 'Y'), |
| 155 | FF_CODEC_TAGS_END, | 155 | FF_CODEC_TAGS_END, |
| 156 | }, | 156 | }, |
| 157 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 158 | }; | 157 | }; |
| @@ -115,5 +115,4 @@ const FFCodec ff_bitpacked_encoder = { · 114 unmodified lines | |||
| 115 | FF_CODEC_ENCODE_CB(encode_frame), | 115 | FF_CODEC_ENCODE_CB(encode_frame), |
| 116 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV422P10, | 116 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV422P10, |
| 117 | AV_PIX_FMT_NONE }, | 117 | AV_PIX_FMT_NONE }, |
| 118 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 119 | }; | 118 | }; |
| @@ -170,5 +170,4 @@ const FFCodec ff_bmp_encoder = { · 169 unmodified lines | |||
| 170 | AV_PIX_FMT_MONOBLACK, | 170 | AV_PIX_FMT_MONOBLACK, |
| 171 | AV_PIX_FMT_NONE | 171 | AV_PIX_FMT_NONE |
| 172 | }, | 172 | }, |
| 173 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 174 | }; | 173 | }; |
| @@ -86,5 +86,4 @@ const FFCodec ff_bmv_audio_decoder = { · 85 unmodified lines | |||
| 86 | .init = bmv_aud_decode_init, | 86 | .init = bmv_aud_decode_init, |
| 87 | FF_CODEC_DECODE_CB(bmv_aud_decode_frame), | 87 | FF_CODEC_DECODE_CB(bmv_aud_decode_frame), |
| 88 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 88 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 89 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 90 | }; | 89 | }; |
| @@ -294,5 +294,4 @@ const FFCodec ff_bmv_video_decoder = { · 293 unmodified lines | |||
| 294 | .init = decode_init, | 294 | .init = decode_init, |
| 295 | FF_CODEC_DECODE_CB(decode_frame), | 295 | FF_CODEC_DECODE_CB(decode_frame), |
| 296 | .p.capabilities = AV_CODEC_CAP_DR1, | 296 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 297 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 298 | }; | 297 | }; |
| @@ -268,5 +268,5 @@ const FFCodec ff_c93_decoder = { · 267 unmodified lines | |||
| 268 | .close = decode_end, | 268 | .close = decode_end, |
| 269 | FF_CODEC_DECODE_CB(decode_frame), | 269 | FF_CODEC_DECODE_CB(decode_frame), |
| 270 | .p.capabilities = AV_CODEC_CAP_DR1, | 270 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 271 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 271 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 272 | }; | 272 | }; |
| @@ -1326,5 +1326,5 @@ const FFCodec ff_cavs_decoder = { · 1325 unmodified lines | |||
| 1326 | FF_CODEC_DECODE_CB(cavs_decode_frame), | 1326 | FF_CODEC_DECODE_CB(cavs_decode_frame), |
| 1327 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 1327 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 1328 | .flush = cavs_flush, | 1328 | .flush = cavs_flush, |
| 1329 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1329 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1330 | }; | 1330 | }; |
| @@ -956,5 +956,4 @@ const FFCodec ff_ccaption_decoder = { · 955 unmodified lines | |||
| 956 | .close = close_decoder, | 956 | .close = close_decoder, |
| 957 | .flush = flush_decoder, | 957 | .flush = flush_decoder, |
| 958 | FF_CODEC_DECODE_SUB_CB(decode), | 958 | FF_CODEC_DECODE_SUB_CB(decode), |
| 959 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 960 | }; | 959 | }; |
| @@ -398,5 +398,4 @@ const FFCodec ff_cdgraphics_decoder = { · 397 unmodified lines | |||
| 398 | FF_CODEC_DECODE_CB(cdg_decode_frame), | 398 | FF_CODEC_DECODE_CB(cdg_decode_frame), |
| 399 | .flush = cdg_decode_flush, | 399 | .flush = cdg_decode_flush, |
| 400 | .p.capabilities = AV_CODEC_CAP_DR1, | 400 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 401 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 402 | }; | 401 | }; |
| @@ -454,5 +454,4 @@ const FFCodec ff_cdtoons_decoder = { · 453 unmodified lines | |||
| 454 | FF_CODEC_DECODE_CB(cdtoons_decode_frame), | 454 | FF_CODEC_DECODE_CB(cdtoons_decode_frame), |
| 455 | .p.capabilities = AV_CODEC_CAP_DR1, | 455 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 456 | .flush = cdtoons_flush, | 456 | .flush = cdtoons_flush, |
| 457 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 458 | }; | 457 | }; |
| @@ -346,5 +346,4 @@ const FFCodec ff_cdxl_decoder = { · 345 unmodified lines | |||
| 346 | .close = cdxl_decode_end, | 346 | .close = cdxl_decode_end, |
| 347 | FF_CODEC_DECODE_CB(cdxl_decode_frame), | 347 | FF_CODEC_DECODE_CB(cdxl_decode_frame), |
| 348 | .p.capabilities = AV_CODEC_CAP_DR1, | 348 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 349 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 350 | }; | 349 | }; |
| @@ -1466,5 +1466,5 @@ const FFCodec ff_cfhd_decoder = { · 1465 unmodified lines | |||
| 1466 | FF_CODEC_DECODE_CB(cfhd_decode), | 1466 | FF_CODEC_DECODE_CB(cfhd_decode), |
| 1467 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), | 1467 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), |
| 1468 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 1468 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 1469 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1469 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1470 | }; | 1470 | }; |
| @@ -862,5 +862,5 @@ const FFCodec ff_cfhd_encoder = { · 861 unmodified lines | |||
| 862 | AV_PIX_FMT_GBRAP12, | 862 | AV_PIX_FMT_GBRAP12, |
| 863 | AV_PIX_FMT_NONE | 863 | AV_PIX_FMT_NONE |
| 864 | }, | 864 | }, |
| 865 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 865 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 866 | }; | 866 | }; |
| @@ -516,5 +516,4 @@ const FFCodec ff_cinepak_decoder = { · 515 unmodified lines | |||
| 516 | .close = cinepak_decode_end, | 516 | .close = cinepak_decode_end, |
| 517 | FF_CODEC_DECODE_CB(cinepak_decode_frame), | 517 | FF_CODEC_DECODE_CB(cinepak_decode_frame), |
| 518 | .p.capabilities = AV_CODEC_CAP_DR1, | 518 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 519 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 520 | }; | 519 | }; |
| @@ -1225,5 +1225,5 @@ const FFCodec ff_cinepak_encoder = { · 1224 unmodified lines | |||
| 1225 | .close = cinepak_encode_end, | 1225 | .close = cinepak_encode_end, |
| 1226 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB24, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }, | 1226 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB24, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }, |
| 1227 | .p.priv_class = &cinepak_class, | 1227 | .p.priv_class = &cinepak_class, |
| 1228 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1228 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1229 | }; | 1229 | }; |
| @@ -777,5 +777,5 @@ const FFCodec ff_clearvideo_decoder = { · 776 unmodified lines | |||
| 777 | .close = clv_decode_end, | 777 | .close = clv_decode_end, |
| 778 | FF_CODEC_DECODE_CB(clv_decode_frame), | 778 | FF_CODEC_DECODE_CB(clv_decode_frame), |
| 779 | .p.capabilities = AV_CODEC_CAP_DR1, | 779 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 780 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 780 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 781 | }; | 781 | }; |
| @@ -89,6 +89,5 @@ const FFCodec ff_cljr_decoder = { · 88 unmodified lines | |||
| 89 | .init = decode_init, | 89 | .init = decode_init, |
| 90 | FF_CODEC_DECODE_CB(decode_frame), | 90 | FF_CODEC_DECODE_CB(decode_frame), |
| 91 | .p.capabilities = AV_CODEC_CAP_DR1, | 91 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 92 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 93 | }; | 92 | }; |
| 94 | 93 | ||
| @@ -501,5 +501,4 @@ const FFCodec ff_cllc_decoder = { · 500 unmodified lines | |||
| 501 | FF_CODEC_DECODE_CB(cllc_decode_frame), | 501 | FF_CODEC_DECODE_CB(cllc_decode_frame), |
| 502 | .close = cllc_decode_close, | 502 | .close = cllc_decode_close, |
| 503 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 503 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 504 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 505 | }; | 504 | }; |
| @@ -175,6 +175,5 @@ const FFCodec ff_comfortnoise_decoder = { · 174 unmodified lines | |||
| 175 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, | 175 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
| 176 | AV_SAMPLE_FMT_NONE }, | 176 | AV_SAMPLE_FMT_NONE }, |
| 177 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 177 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 178 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 178 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 179 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 180 | }; | 179 | }; |
| @@ -109,5 +109,5 @@ const FFCodec ff_comfortnoise_encoder = { · 108 unmodified lines | |||
| 109 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, | 109 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
| 110 | AV_SAMPLE_FMT_NONE }, | 110 | AV_SAMPLE_FMT_NONE }, |
| 111 | .p.ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, { 0 } }, | 111 | .p.ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, { 0 } }, |
| 112 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 112 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 113 | }; | 113 | }; |
| @@ -24,18 +24,13 @@ · 23 unmodified lines | |||
| 24 | #include "libavutil/attributes.h" | 24 | #include "libavutil/attributes.h" |
| 25 | #include "codec.h" | 25 | #include "codec.h" |
| 26 | 26 | ||
| 27 | /** | ||
| 28 | * The codec does not modify any global variables in the init function, | ||
| 29 | * allowing to call the init function without locking any global mutexes. | ||
| 30 | */ | ||
| 31 | #define FF_CODEC_CAP_INIT_THREADSAFE (1 << 0) | ||
| 32 | /** | 27 | /** |
| 33 | * The codec is not known to be init-threadsafe (i.e. it might be unsafe | 28 | * The codec is not known to be init-threadsafe (i.e. it might be unsafe |
| 34 | * to initialize this codec and another codec concurrently, typically because | 29 | * to initialize this codec and another codec concurrently, typically because |
| 35 | * the codec calls external APIs that are not known to be thread-safe). | 30 | * the codec calls external APIs that are not known to be thread-safe). |
| 36 | * Therefore calling the codec's init function needs to be guarded with a lock. | 31 | * Therefore calling the codec's init function needs to be guarded with a lock. |
| 37 | */ | 32 | */ |
| 38 | #define FF_CODEC_CAP_NOT_INIT_THREADSAFE (1 << 9) | 33 | #define FF_CODEC_CAP_NOT_INIT_THREADSAFE (1 << 0) |
| 39 | /** | 34 | /** |
| 40 | * The codec allows calling the close function for deallocation even if | 35 | * The codec allows calling the close function for deallocation even if |
| 41 | * the init function returned a failure. Without this capability flag, a | 36 | * the init function returned a failure. Without this capability flag, a |
| @@ -1308,5 +1308,5 @@ const FFCodec ff_cook_decoder = { · 1307 unmodified lines | |||
| 1308 | .p.capabilities = AV_CODEC_CAP_DR1, | 1308 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1309 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1309 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1310 | AV_SAMPLE_FMT_NONE }, | 1310 | AV_SAMPLE_FMT_NONE }, |
| 1311 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1311 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1312 | }; | 1312 | }; |
| @@ -232,5 +232,4 @@ const FFCodec ff_cpia_decoder = { · 231 unmodified lines | |||
| 232 | .close = cpia_decode_end, | 232 | .close = cpia_decode_end, |
| 233 | FF_CODEC_DECODE_CB(cpia_decode_frame), | 233 | FF_CODEC_DECODE_CB(cpia_decode_frame), |
| 234 | .p.capabilities = AV_CODEC_CAP_DR1, | 234 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 235 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 236 | }; | 235 | }; |
| @@ -432,6 +432,6 @@ const FFCodec ff_cri_decoder = { · 431 unmodified lines | |||
| 432 | FF_CODEC_DECODE_CB(cri_decode_frame), | 432 | FF_CODEC_DECODE_CB(cri_decode_frame), |
| 433 | .close = cri_decode_close, | 433 | .close = cri_decode_close, |
| 434 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 434 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 435 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 435 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 436 | .p.long_name = NULL_IF_CONFIG_SMALL("Cintel RAW"), | 436 | .p.long_name = NULL_IF_CONFIG_SMALL("Cintel RAW"), |
| 437 | }; | 437 | }; |
| @@ -177,5 +177,5 @@ const FFCodec ff_cscd_decoder = { · 176 unmodified lines | |||
| 177 | .close = decode_end, | 177 | .close = decode_end, |
| 178 | FF_CODEC_DECODE_CB(decode_frame), | 178 | FF_CODEC_DECODE_CB(decode_frame), |
| 179 | .p.capabilities = AV_CODEC_CAP_DR1, | 179 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 180 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 180 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 181 | }; | 181 | }; |
| @@ -186,7 +186,6 @@ const FFCodec ff_aura_decoder = { · 185 unmodified lines | |||
| 186 | .init = cyuv_decode_init, | 186 | .init = cyuv_decode_init, |
| 187 | FF_CODEC_DECODE_CB(cyuv_decode_frame), | 187 | FF_CODEC_DECODE_CB(cyuv_decode_frame), |
| 188 | .p.capabilities = AV_CODEC_CAP_DR1, | 188 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 189 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 190 | }; | 189 | }; |
| 191 | #endif | 190 | #endif |
| 192 | 191 | ||
| @@ -200,6 +199,5 @@ const FFCodec ff_cyuv_decoder = { · 7 unmodified lines | |||
| 200 | .init = cyuv_decode_init, | 199 | .init = cyuv_decode_init, |
| 201 | FF_CODEC_DECODE_CB(cyuv_decode_frame), | 200 | FF_CODEC_DECODE_CB(cyuv_decode_frame), |
| 202 | .p.capabilities = AV_CODEC_CAP_DR1, | 201 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 203 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 204 | }; | 202 | }; |
| 205 | #endif | 203 | #endif |
| @@ -425,5 +425,5 @@ const FFCodec ff_dca_decoder = { · 424 unmodified lines | |||
| 425 | AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, | 425 | AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, |
| 426 | .p.priv_class = &dcadec_class, | 426 | .p.priv_class = &dcadec_class, |
| 427 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_dca_profiles), | 427 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_dca_profiles), |
| 428 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 428 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 429 | }; | 429 | }; |
| @@ -1250,7 +1250,7 @@ const FFCodec ff_dca_encoder = { · 1249 unmodified lines | |||
| 1250 | .init = encode_init, | 1250 | .init = encode_init, |
| 1251 | .close = encode_close, | 1251 | .close = encode_close, |
| 1252 | FF_CODEC_ENCODE_CB(encode_frame), | 1252 | FF_CODEC_ENCODE_CB(encode_frame), |
| 1253 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1253 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1254 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32, | 1254 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S32, |
| 1255 | AV_SAMPLE_FMT_NONE }, | 1255 | AV_SAMPLE_FMT_NONE }, |
| 1256 | .p.supported_samplerates = sample_rates, | 1256 | .p.supported_samplerates = sample_rates, |
| @@ -717,5 +717,4 @@ const FFCodec ff_dds_decoder = { · 716 unmodified lines | |||
| 717 | FF_CODEC_DECODE_CB(dds_decode), | 717 | FF_CODEC_DECODE_CB(dds_decode), |
| 718 | .priv_data_size = sizeof(DDSContext), | 718 | .priv_data_size = sizeof(DDSContext), |
| 719 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, | 719 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, |
| 720 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | ||
| 721 | }; | 720 | }; |
| @@ -431,5 +431,4 @@ const FFCodec ff_dfa_decoder = { · 430 unmodified lines | |||
| 431 | .close = dfa_decode_end, | 431 | .close = dfa_decode_end, |
| 432 | FF_CODEC_DECODE_CB(dfa_decode_frame), | 432 | FF_CODEC_DECODE_CB(dfa_decode_frame), |
| 433 | .p.capabilities = AV_CODEC_CAP_DR1, | 433 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 434 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 435 | }; | 434 | }; |
| @@ -134,5 +134,4 @@ const FFCodec ff_dfpwm_decoder = { · 133 unmodified lines | |||
| 134 | .init = dfpwm_dec_init, | 134 | .init = dfpwm_dec_init, |
| 135 | FF_CODEC_DECODE_CB(dfpwm_dec_frame), | 135 | FF_CODEC_DECODE_CB(dfpwm_dec_frame), |
| 136 | .p.capabilities = AV_CODEC_CAP_DR1, | 136 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 137 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 138 | }; | 137 | }; |
| @@ -117,5 +117,4 @@ const FFCodec ff_dfpwm_encoder = { · 116 unmodified lines | |||
| 117 | FF_CODEC_ENCODE_CB(dfpwm_enc_frame), | 117 | FF_CODEC_ENCODE_CB(dfpwm_enc_frame), |
| 118 | .p.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NONE}, | 118 | .p.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NONE}, |
| 119 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_VARIABLE_FRAME_SIZE, | 119 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_VARIABLE_FRAME_SIZE, |
| 120 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 121 | }; | 120 | }; |
| @@ -2366,6 +2366,5 @@ const FFCodec ff_dirac_decoder = { · 2365 unmodified lines | |||
| 2366 | .close = dirac_decode_end, | 2366 | .close = dirac_decode_end, |
| 2367 | FF_CODEC_DECODE_CB(dirac_decode_frame), | 2367 | FF_CODEC_DECODE_CB(dirac_decode_frame), |
| 2368 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_DR1, | 2368 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_DR1, |
| 2369 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 2370 | .flush = dirac_decode_flush, | 2369 | .flush = dirac_decode_flush, |
| 2371 | }; | 2370 | }; |
| @@ -736,5 +736,4 @@ const FFCodec ff_dnxhd_decoder = { · 735 unmodified lines | |||
| 736 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | | 736 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | |
| 737 | AV_CODEC_CAP_SLICE_THREADS, | 737 | AV_CODEC_CAP_SLICE_THREADS, |
| 738 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_dnxhd_profiles), | 738 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_dnxhd_profiles), |
| 739 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 740 | }; | 739 | }; |
| @@ -1374,5 +1374,5 @@ const FFCodec ff_dnxhd_encoder = { · 1373 unmodified lines | |||
| 1374 | .p.priv_class = &dnxhd_class, | 1374 | .p.priv_class = &dnxhd_class, |
| 1375 | .defaults = dnxhd_defaults, | 1375 | .defaults = dnxhd_defaults, |
| 1376 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_dnxhd_profiles), | 1376 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_dnxhd_profiles), |
| 1377 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1377 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1378 | }; | 1378 | }; |
| @@ -1310,5 +1310,5 @@ const FFCodec ff_dolby_e_decoder = { · 1309 unmodified lines | |||
| 1310 | .flush = dolby_e_flush, | 1310 | .flush = dolby_e_flush, |
| 1311 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1311 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1312 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, | 1312 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, AV_SAMPLE_FMT_NONE }, |
| 1313 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1313 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1314 | }; | 1314 | }; |
| @@ -419,7 +419,6 @@ const FFCodec ff_ ## name_ ## _decoder = { \ · 418 unmodified lines | |||
| 419 | .priv_data_size = sizeof(DPCMContext), \ | 419 | .priv_data_size = sizeof(DPCMContext), \ |
| 420 | .init = dpcm_decode_init, \ | 420 | .init = dpcm_decode_init, \ |
| 421 | FF_CODEC_DECODE_CB(dpcm_decode_frame), \ | 421 | FF_CODEC_DECODE_CB(dpcm_decode_frame), \ |
| 422 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ | ||
| 423 | } | 422 | } |
| 424 | 423 | ||
| 425 | DPCM_DECODER(AV_CODEC_ID_DERF_DPCM, derf_dpcm, "DPCM Xilam DERF"); | 424 | DPCM_DECODER(AV_CODEC_ID_DERF_DPCM, derf_dpcm, "DPCM Xilam DERF"); |
| @@ -292,5 +292,4 @@ const FFCodec ff_dpx_encoder = { · 291 unmodified lines | |||
| 292 | AV_PIX_FMT_GBRP10LE, AV_PIX_FMT_GBRP10BE, | 292 | AV_PIX_FMT_GBRP10LE, AV_PIX_FMT_GBRP10BE, |
| 293 | AV_PIX_FMT_GBRP12LE, AV_PIX_FMT_GBRP12BE, | 293 | AV_PIX_FMT_GBRP12LE, AV_PIX_FMT_GBRP12BE, |
| 294 | AV_PIX_FMT_NONE}, | 294 | AV_PIX_FMT_NONE}, |
| 295 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 296 | }; | 295 | }; |
| @@ -125,7 +125,6 @@ const FFCodec ff_ ## name_ ## _decoder = { \ · 124 unmodified lines | |||
| 125 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, \ | 125 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, \ |
| 126 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, \ | 126 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, \ |
| 127 | AV_SAMPLE_FMT_NONE }, \ | 127 | AV_SAMPLE_FMT_NONE }, \ |
| 128 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ | ||
| 129 | }; | 128 | }; |
| 130 | 129 | ||
| 131 | DSD_DECODER(DSD_LSBF, dsd_lsbf, "DSD (Direct Stream Digital), least significant bit first") | 130 | DSD_DECODER(DSD_LSBF, dsd_lsbf, "DSD (Direct Stream Digital), least significant bit first") |
| @@ -130,5 +130,4 @@ const FFCodec ff_dsicinaudio_decoder = { · 129 unmodified lines | |||
| 130 | .init = cinaudio_decode_init, | 130 | .init = cinaudio_decode_init, |
| 131 | FF_CODEC_DECODE_CB(cinaudio_decode_frame), | 131 | FF_CODEC_DECODE_CB(cinaudio_decode_frame), |
| 132 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 132 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 133 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 134 | }; | 133 | }; |
| @@ -330,6 +330,6 @@ const FFCodec ff_dsicinvideo_decoder = { · 329 unmodified lines | |||
| 330 | .init = cinvideo_decode_init, | 330 | .init = cinvideo_decode_init, |
| 331 | .close = cinvideo_decode_end, | 331 | .close = cinvideo_decode_end, |
| 332 | FF_CODEC_DECODE_CB(cinvideo_decode_frame), | 332 | FF_CODEC_DECODE_CB(cinvideo_decode_frame), |
| 333 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 333 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 334 | .p.capabilities = AV_CODEC_CAP_DR1, | 334 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 335 | }; | 335 | }; |
| @@ -781,5 +781,4 @@ const FFCodec ff_dss_sp_decoder = { · 780 unmodified lines | |||
| 781 | .init = dss_sp_decode_init, | 781 | .init = dss_sp_decode_init, |
| 782 | FF_CODEC_DECODE_CB(dss_sp_decode_frame), | 782 | FF_CODEC_DECODE_CB(dss_sp_decode_frame), |
| 783 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 783 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 784 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 785 | }; | 784 | }; |
| @@ -390,5 +390,4 @@ const FFCodec ff_dst_decoder = { · 389 unmodified lines | |||
| 390 | .p.capabilities = AV_CODEC_CAP_DR1, | 390 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 391 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, | 391 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, |
| 392 | AV_SAMPLE_FMT_NONE }, | 392 | AV_SAMPLE_FMT_NONE }, |
| 393 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 394 | }; | 393 | }; |
| @@ -127,5 +127,4 @@ const FFCodec ff_dvaudio_decoder = { · 126 unmodified lines | |||
| 127 | FF_CODEC_DECODE_CB(decode_frame), | 127 | FF_CODEC_DECODE_CB(decode_frame), |
| 128 | .p.capabilities = AV_CODEC_CAP_DR1, | 128 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 129 | .priv_data_size = sizeof(DVAudioContext), | 129 | .priv_data_size = sizeof(DVAudioContext), |
| 130 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 131 | }; | 130 | }; |
| @@ -1579,5 +1579,4 @@ const FFCodec ff_dvbsub_decoder = { · 1578 unmodified lines | |||
| 1579 | .close = dvbsub_close_decoder, | 1579 | .close = dvbsub_close_decoder, |
| 1580 | FF_CODEC_DECODE_SUB_CB(dvbsub_decode), | 1580 | FF_CODEC_DECODE_SUB_CB(dvbsub_decode), |
| 1581 | .p.priv_class = &dvbsubdec_class, | 1581 | .p.priv_class = &dvbsubdec_class, |
| 1582 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1583 | }; | 1582 | }; |
| @@ -691,5 +691,4 @@ const FFCodec ff_dvvideo_decoder = { · 690 unmodified lines | |||
| 691 | FF_CODEC_DECODE_CB(dvvideo_decode_frame), | 691 | FF_CODEC_DECODE_CB(dvvideo_decode_frame), |
| 692 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, | 692 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, |
| 693 | .p.max_lowres = 3, | 693 | .p.max_lowres = 3, |
| 694 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 695 | }; | 694 | }; |
| @@ -715,5 +715,4 @@ const FFCodec ff_dvdsub_decoder = { · 714 unmodified lines | |||
| 715 | FF_CODEC_DECODE_SUB_CB(dvdsub_decode), | 715 | FF_CODEC_DECODE_SUB_CB(dvdsub_decode), |
| 716 | .flush = dvdsub_flush, | 716 | .flush = dvdsub_flush, |
| 717 | .p.priv_class = &dvdsub_class, | 717 | .p.priv_class = &dvdsub_class, |
| 718 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 719 | }; | 718 | }; |
| @@ -509,5 +509,4 @@ const FFCodec ff_dvdsub_encoder = { · 508 unmodified lines | |||
| 509 | FF_CODEC_ENCODE_SUB_CB(dvdsub_encode), | 509 | FF_CODEC_ENCODE_SUB_CB(dvdsub_encode), |
| 510 | .p.priv_class = &dvdsubenc_class, | 510 | .p.priv_class = &dvdsubenc_class, |
| 511 | .priv_data_size = sizeof(DVDSubtitleContext), | 511 | .priv_data_size = sizeof(DVDSubtitleContext), |
| 512 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 513 | }; | 512 | }; |
| @@ -1221,5 +1221,4 @@ const FFCodec ff_dvvideo_encoder = { · 1220 unmodified lines | |||
| 1221 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE | 1221 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE |
| 1222 | }, | 1222 | }, |
| 1223 | .p.priv_class = &dvvideo_encode_class, | 1223 | .p.priv_class = &dvvideo_encode_class, |
| 1224 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1225 | }; | 1224 | }; |
| @@ -371,5 +371,5 @@ const FFCodec ff_dxa_decoder = { · 370 unmodified lines | |||
| 371 | .close = decode_end, | 371 | .close = decode_end, |
| 372 | FF_CODEC_DECODE_CB(decode_frame), | 372 | FF_CODEC_DECODE_CB(decode_frame), |
| 373 | .p.capabilities = AV_CODEC_CAP_DR1, | 373 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 374 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 374 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 375 | }; | 375 | }; |
| @@ -1272,6 +1272,5 @@ const FFCodec ff_dxv_decoder = { · 1271 unmodified lines | |||
| 1272 | .p.capabilities = AV_CODEC_CAP_DR1 | | 1272 | .p.capabilities = AV_CODEC_CAP_DR1 | |
| 1273 | AV_CODEC_CAP_SLICE_THREADS | | 1273 | AV_CODEC_CAP_SLICE_THREADS | |
| 1274 | AV_CODEC_CAP_FRAME_THREADS, | 1274 | AV_CODEC_CAP_FRAME_THREADS, |
| 1275 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 1275 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1276 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 1277 | }; | 1276 | }; |
| @@ -269,6 +269,6 @@ const FFCodec ff_eac3_encoder = { · 268 unmodified lines | |||
| 269 | #endif | 269 | #endif |
| 270 | .p.ch_layouts = ff_ac3_ch_layouts, | 270 | .p.ch_layouts = ff_ac3_ch_layouts, |
| 271 | .defaults = ff_ac3_enc_defaults, | 271 | .defaults = ff_ac3_enc_defaults, |
| 272 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 272 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 273 | }; | 273 | }; |
| 274 | FF_ENABLE_DEPRECATION_WARNINGS | 274 | FF_ENABLE_DEPRECATION_WARNINGS |
| @@ -239,5 +239,5 @@ const FFCodec ff_eacmv_decoder = { · 238 unmodified lines | |||
| 239 | .close = cmv_decode_end, | 239 | .close = cmv_decode_end, |
| 240 | FF_CODEC_DECODE_CB(cmv_decode_frame), | 240 | FF_CODEC_DECODE_CB(cmv_decode_frame), |
| 241 | .p.capabilities = AV_CODEC_CAP_DR1, | 241 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 242 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 242 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 243 | }; | 243 | }; |
| @@ -350,5 +350,4 @@ const FFCodec ff_eamad_decoder = { · 349 unmodified lines | |||
| 350 | .close = decode_end, | 350 | .close = decode_end, |
| 351 | FF_CODEC_DECODE_CB(decode_frame), | 351 | FF_CODEC_DECODE_CB(decode_frame), |
| 352 | .p.capabilities = AV_CODEC_CAP_DR1, | 352 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 353 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 354 | }; | 353 | }; |
| @@ -255,5 +255,4 @@ const FFCodec ff_eatgq_decoder = { · 254 unmodified lines | |||
| 255 | .init = tgq_decode_init, | 255 | .init = tgq_decode_init, |
| 256 | FF_CODEC_DECODE_CB(tgq_decode_frame), | 256 | FF_CODEC_DECODE_CB(tgq_decode_frame), |
| 257 | .p.capabilities = AV_CODEC_CAP_DR1, | 257 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 258 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 259 | }; | 258 | }; |
| @@ -368,5 +368,4 @@ const FFCodec ff_eatgv_decoder = { · 367 unmodified lines | |||
| 368 | .close = tgv_decode_end, | 368 | .close = tgv_decode_end, |
| 369 | FF_CODEC_DECODE_CB(tgv_decode_frame), | 369 | FF_CODEC_DECODE_CB(tgv_decode_frame), |
| 370 | .p.capabilities = AV_CODEC_CAP_DR1, | 370 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 371 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 372 | }; | 371 | }; |
| @@ -191,5 +191,4 @@ const FFCodec ff_eatqi_decoder = { · 190 unmodified lines | |||
| 191 | .close = tqi_decode_end, | 191 | .close = tqi_decode_end, |
| 192 | FF_CODEC_DECODE_CB(tqi_decode_frame), | 192 | FF_CODEC_DECODE_CB(tqi_decode_frame), |
| 193 | .p.capabilities = AV_CODEC_CAP_DR1, | 193 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 194 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 195 | }; | 194 | }; |
| @@ -385,5 +385,4 @@ const FFCodec ff_escape124_decoder = { · 384 unmodified lines | |||
| 385 | .close = escape124_decode_close, | 385 | .close = escape124_decode_close, |
| 386 | FF_CODEC_DECODE_CB(escape124_decode_frame), | 386 | FF_CODEC_DECODE_CB(escape124_decode_frame), |
| 387 | .p.capabilities = AV_CODEC_CAP_DR1, | 387 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 388 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 389 | }; | 388 | }; |
| @@ -355,5 +355,5 @@ const FFCodec ff_escape130_decoder = { · 354 unmodified lines | |||
| 355 | .close = escape130_decode_close, | 355 | .close = escape130_decode_close, |
| 356 | FF_CODEC_DECODE_CB(escape130_decode_frame), | 356 | FF_CODEC_DECODE_CB(escape130_decode_frame), |
| 357 | .p.capabilities = AV_CODEC_CAP_DR1, | 357 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 358 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 358 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 359 | }; | 359 | }; |
| @@ -939,5 +939,4 @@ const FFCodec ff_evrc_decoder = { · 938 unmodified lines | |||
| 939 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 939 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 940 | .priv_data_size = sizeof(EVRCContext), | 940 | .priv_data_size = sizeof(EVRCContext), |
| 941 | .p.priv_class = &evrcdec_class, | 941 | .p.priv_class = &evrcdec_class, |
| 942 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 943 | }; | 942 | }; |
| @@ -2351,6 +2351,5 @@ const FFCodec ff_exr_decoder = { · 2350 unmodified lines | |||
| 2351 | FF_CODEC_DECODE_CB(decode_frame), | 2351 | FF_CODEC_DECODE_CB(decode_frame), |
| 2352 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | | 2352 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | |
| 2353 | AV_CODEC_CAP_SLICE_THREADS, | 2353 | AV_CODEC_CAP_SLICE_THREADS, |
| 2354 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 2355 | .p.priv_class = &exr_class, | 2354 | .p.priv_class = &exr_class, |
| 2356 | }; | 2355 | }; |
| @@ -557,5 +557,4 @@ const FFCodec ff_exr_encoder = { · 556 unmodified lines | |||
| 557 | AV_PIX_FMT_GBRPF32, | 557 | AV_PIX_FMT_GBRPF32, |
| 558 | AV_PIX_FMT_GBRAPF32, | 558 | AV_PIX_FMT_GBRAPF32, |
| 559 | AV_PIX_FMT_NONE }, | 559 | AV_PIX_FMT_NONE }, |
| 560 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 561 | }; | 560 | }; |
| @@ -199,5 +199,4 @@ const FFCodec ff_fastaudio_decoder = { · 198 unmodified lines | |||
| 199 | .p.capabilities = AV_CODEC_CAP_DR1, | 199 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 200 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 200 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 201 | AV_SAMPLE_FMT_NONE }, | 201 | AV_SAMPLE_FMT_NONE }, |
| 202 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 203 | }; | 202 | }; |
| @@ -1075,6 +1075,6 @@ const FFCodec ff_ffv1_decoder = { · 1074 unmodified lines | |||
| 1075 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), | 1075 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), |
| 1076 | .p.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/ | | 1076 | .p.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/ | |
| 1077 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, | 1077 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, |
| 1078 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 1078 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 1079 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 1079 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 1080 | }; | 1080 | }; |
| @@ -1310,5 +1310,5 @@ const FFCodec ff_ffv1_encoder = { · 1309 unmodified lines | |||
| 1310 | 1310 | ||
| 1311 | }, | 1311 | }, |
| 1312 | .p.priv_class = &ffv1_class, | 1312 | .p.priv_class = &ffv1_class, |
| 1313 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1313 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1314 | }; | 1314 | }; |
| @@ -469,5 +469,5 @@ const FFCodec ff_ffwavesynth_decoder = { · 468 unmodified lines | |||
| 469 | .close = wavesynth_close, | 469 | .close = wavesynth_close, |
| 470 | FF_CODEC_DECODE_CB(wavesynth_decode), | 470 | FF_CODEC_DECODE_CB(wavesynth_decode), |
| 471 | .p.capabilities = AV_CODEC_CAP_DR1, | 471 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 472 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 472 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 473 | }; | 473 | }; |
| @@ -495,5 +495,4 @@ const FFCodec ff_fic_decoder = { · 494 unmodified lines | |||
| 495 | .close = fic_decode_close, | 495 | .close = fic_decode_close, |
| 496 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, | 496 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, |
| 497 | .p.priv_class = &fic_decoder_class, | 497 | .p.priv_class = &fic_decoder_class, |
| 498 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 499 | }; | 498 | }; |
| @@ -675,5 +675,4 @@ const FFCodec ff_flac_decoder = { · 674 unmodified lines | |||
| 675 | AV_SAMPLE_FMT_S32P, | 675 | AV_SAMPLE_FMT_S32P, |
| 676 | AV_SAMPLE_FMT_NONE }, | 676 | AV_SAMPLE_FMT_NONE }, |
| 677 | .p.priv_class = &flac_decoder_class, | 677 | .p.priv_class = &flac_decoder_class, |
| 678 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 679 | }; | 678 | }; |
| @@ -1473,5 +1473,5 @@ const FFCodec ff_flac_encoder = { · 1472 unmodified lines | |||
| 1473 | AV_SAMPLE_FMT_S32, | 1473 | AV_SAMPLE_FMT_S32, |
| 1474 | AV_SAMPLE_FMT_NONE }, | 1474 | AV_SAMPLE_FMT_NONE }, |
| 1475 | .p.priv_class = &flac_encoder_class, | 1475 | .p.priv_class = &flac_encoder_class, |
| 1476 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1476 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1477 | }; | 1477 | }; |
| @@ -511,7 +511,7 @@ const FFCodec ff_flashsv_decoder = { · 510 unmodified lines | |||
| 511 | .close = flashsv_decode_end, | 511 | .close = flashsv_decode_end, |
| 512 | FF_CODEC_DECODE_CB(flashsv_decode_frame), | 512 | FF_CODEC_DECODE_CB(flashsv_decode_frame), |
| 513 | .p.capabilities = AV_CODEC_CAP_DR1, | 513 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 514 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 514 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 515 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, | 515 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, |
| 516 | }; | 516 | }; |
| 517 | #endif /* CONFIG_FLASHSV_DECODER */ | 517 | #endif /* CONFIG_FLASHSV_DECODER */ |
| @@ -579,7 +579,7 @@ const FFCodec ff_flashsv2_decoder = { · 61 unmodified lines | |||
| 579 | .close = flashsv2_decode_end, | 579 | .close = flashsv2_decode_end, |
| 580 | FF_CODEC_DECODE_CB(flashsv_decode_frame), | 580 | FF_CODEC_DECODE_CB(flashsv_decode_frame), |
| 581 | .p.capabilities = AV_CODEC_CAP_DR1, | 581 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 582 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 582 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 583 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, | 583 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, |
| 584 | }; | 584 | }; |
| 585 | #endif /* CONFIG_FLASHSV2_DECODER */ | 585 | #endif /* CONFIG_FLASHSV2_DECODER */ |
| @@ -920,5 +920,5 @@ const FFCodec ff_flashsv2_encoder = { · 919 unmodified lines | |||
| 920 | FF_CODEC_ENCODE_CB(flashsv2_encode_frame), | 920 | FF_CODEC_ENCODE_CB(flashsv2_encode_frame), |
| 921 | .close = flashsv2_encode_end, | 921 | .close = flashsv2_encode_end, |
| 922 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, | 922 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, |
| 923 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 923 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 924 | }; | 924 | }; |
| @@ -267,5 +267,4 @@ const FFCodec ff_flashsv_encoder = { · 266 unmodified lines | |||
| 267 | FF_CODEC_ENCODE_CB(flashsv_encode_frame), | 267 | FF_CODEC_ENCODE_CB(flashsv_encode_frame), |
| 268 | .close = flashsv_encode_end, | 268 | .close = flashsv_encode_end, |
| 269 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, | 269 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, |
| 270 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 271 | }; | 270 | }; |
| @@ -1114,5 +1114,4 @@ const FFCodec ff_flic_decoder = { · 1113 unmodified lines | |||
| 1114 | .close = flic_decode_end, | 1114 | .close = flic_decode_end, |
| 1115 | FF_CODEC_DECODE_CB(flic_decode_frame), | 1115 | FF_CODEC_DECODE_CB(flic_decode_frame), |
| 1116 | .p.capabilities = AV_CODEC_CAP_DR1, | 1116 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1117 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1118 | }; | 1117 | }; |
| @@ -123,8 +123,7 @@ const FFCodec ff_flv_decoder = { · 122 unmodified lines | |||
| 123 | .close = ff_h263_decode_end, | 123 | .close = ff_h263_decode_end, |
| 124 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 124 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 125 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 125 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 126 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 126 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 127 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 128 | .p.max_lowres = 3, | 127 | .p.max_lowres = 3, |
| 129 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 128 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 130 | AV_PIX_FMT_NONE }, | 129 | AV_PIX_FMT_NONE }, |
| @@ -102,7 +102,7 @@ const FFCodec ff_flv_encoder = { · 101 unmodified lines | |||
| 102 | .init = ff_mpv_encode_init, | 102 | .init = ff_mpv_encode_init, |
| 103 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 103 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 104 | .close = ff_mpv_encode_end, | 104 | .close = ff_mpv_encode_end, |
| 105 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 105 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 106 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 106 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 107 | AV_PIX_FMT_NONE}, | 107 | AV_PIX_FMT_NONE}, |
| 108 | }; | 108 | }; |
| @@ -636,6 +636,5 @@ const FFCodec ff_fmvc_decoder = { · 635 unmodified lines | |||
| 636 | .close = decode_close, | 636 | .close = decode_close, |
| 637 | FF_CODEC_DECODE_CB(decode_frame), | 637 | FF_CODEC_DECODE_CB(decode_frame), |
| 638 | .p.capabilities = AV_CODEC_CAP_DR1, | 638 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 639 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 639 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 640 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 641 | }; | 640 | }; |
| @@ -349,5 +349,4 @@ const FFCodec ff_fraps_decoder = { · 348 unmodified lines | |||
| 349 | .close = decode_end, | 349 | .close = decode_end, |
| 350 | FF_CODEC_DECODE_CB(decode_frame), | 350 | FF_CODEC_DECODE_CB(decode_frame), |
| 351 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 351 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 352 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 353 | }; | 352 | }; |
| @@ -125,5 +125,4 @@ const FFCodec ff_frwu_decoder = { · 124 unmodified lines | |||
| 125 | FF_CODEC_DECODE_CB(decode_frame), | 125 | FF_CODEC_DECODE_CB(decode_frame), |
| 126 | .p.capabilities = AV_CODEC_CAP_DR1, | 126 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 127 | .p.priv_class = &frwu_class, | 127 | .p.priv_class = &frwu_class, |
| 128 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 129 | }; | 128 | }; |
| @@ -1632,5 +1632,5 @@ const FFCodec ff_g2m_decoder = { · 1631 unmodified lines | |||
| 1632 | .close = g2m_decode_end, | 1632 | .close = g2m_decode_end, |
| 1633 | FF_CODEC_DECODE_CB(g2m_decode_frame), | 1633 | FF_CODEC_DECODE_CB(g2m_decode_frame), |
| 1634 | .p.capabilities = AV_CODEC_CAP_DR1, | 1634 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1635 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1635 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1636 | }; | 1636 | }; |
| @@ -149,5 +149,4 @@ const FFCodec ff_adpcm_g722_decoder = { · 148 unmodified lines | |||
| 149 | FF_CODEC_DECODE_CB(g722_decode_frame), | 149 | FF_CODEC_DECODE_CB(g722_decode_frame), |
| 150 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 150 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 151 | .p.priv_class = &g722_decoder_class, | 151 | .p.priv_class = &g722_decoder_class, |
| 152 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 153 | }; | 152 | }; |
| @@ -388,5 +388,5 @@ const FFCodec ff_adpcm_g722_encoder = { · 387 unmodified lines | |||
| 388 | .p.ch_layouts = (const AVChannelLayout[]){ | 388 | .p.ch_layouts = (const AVChannelLayout[]){ |
| 389 | AV_CHANNEL_LAYOUT_MONO, { 0 } | 389 | AV_CHANNEL_LAYOUT_MONO, { 0 } |
| 390 | }, | 390 | }, |
| 391 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 391 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 392 | }; | 392 | }; |
| @@ -1121,5 +1121,4 @@ const FFCodec ff_g723_1_decoder = { · 1120 unmodified lines | |||
| 1121 | FF_CODEC_DECODE_CB(g723_1_decode_frame), | 1121 | FF_CODEC_DECODE_CB(g723_1_decode_frame), |
| 1122 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, | 1122 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, |
| 1123 | .p.priv_class = &g723_1dec_class, | 1123 | .p.priv_class = &g723_1dec_class, |
| 1124 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1125 | }; | 1124 | }; |
| @@ -1254,5 +1254,4 @@ const FFCodec ff_g723_1_encoder = { · 1253 unmodified lines | |||
| 1254 | .p.ch_layouts = (const AVChannelLayout[]){ | 1254 | .p.ch_layouts = (const AVChannelLayout[]){ |
| 1255 | AV_CHANNEL_LAYOUT_MONO, { 0 } | 1255 | AV_CHANNEL_LAYOUT_MONO, { 0 } |
| 1256 | }, | 1256 | }, |
| 1257 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1258 | }; | 1257 | }; |
| @@ -413,7 +413,6 @@ const FFCodec ff_adpcm_g726_encoder = { · 412 unmodified lines | |||
| 413 | AV_SAMPLE_FMT_NONE }, | 413 | AV_SAMPLE_FMT_NONE }, |
| 414 | .p.priv_class = &g726_class, | 414 | .p.priv_class = &g726_class, |
| 415 | .defaults = defaults, | 415 | .defaults = defaults, |
| 416 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 417 | }; | 416 | }; |
| 418 | #endif | 417 | #endif |
| 419 | 418 | ||
| @@ -431,7 +430,6 @@ const FFCodec ff_adpcm_g726le_encoder = { · 11 unmodified lines | |||
| 431 | AV_SAMPLE_FMT_NONE }, | 430 | AV_SAMPLE_FMT_NONE }, |
| 432 | .p.priv_class = &g726_class, | 431 | .p.priv_class = &g726_class, |
| 433 | .defaults = defaults, | 432 | .defaults = defaults, |
| 434 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 435 | }; | 433 | }; |
| 436 | #endif | 434 | #endif |
| 437 | 435 | ||
| @@ -512,7 +510,6 @@ const FFCodec ff_adpcm_g726_decoder = { · 74 unmodified lines | |||
| 512 | FF_CODEC_DECODE_CB(g726_decode_frame), | 510 | FF_CODEC_DECODE_CB(g726_decode_frame), |
| 513 | .flush = g726_decode_flush, | 511 | .flush = g726_decode_flush, |
| 514 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 512 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 515 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 516 | }; | 513 | }; |
| 517 | #endif | 514 | #endif |
| 518 | 515 | ||
| @@ -527,6 +524,5 @@ const FFCodec ff_adpcm_g726le_decoder = { · 8 unmodified lines | |||
| 527 | .flush = g726_decode_flush, | 524 | .flush = g726_decode_flush, |
| 528 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 525 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 529 | .p.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM little-endian"), | 526 | .p.long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM little-endian"), |
| 530 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 531 | }; | 527 | }; |
| 532 | #endif | 528 | #endif |
| @@ -762,7 +762,6 @@ const FFCodec ff_g729_decoder = { · 761 unmodified lines | |||
| 762 | FF_CODEC_DECODE_CB(decode_frame), | 762 | FF_CODEC_DECODE_CB(decode_frame), |
| 763 | .close = decode_close, | 763 | .close = decode_close, |
| 764 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, | 764 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, |
| 765 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 766 | }; | 765 | }; |
| 767 | 766 | ||
| 768 | const FFCodec ff_acelp_kelvin_decoder = { | 767 | const FFCodec ff_acelp_kelvin_decoder = { |
| @@ -775,5 +774,4 @@ const FFCodec ff_acelp_kelvin_decoder = { · 6 unmodified lines | |||
| 775 | FF_CODEC_DECODE_CB(decode_frame), | 774 | FF_CODEC_DECODE_CB(decode_frame), |
| 776 | .close = decode_close, | 775 | .close = decode_close, |
| 777 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, | 776 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1, |
| 778 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 779 | }; | 777 | }; |
| @@ -570,5 +570,4 @@ const FFCodec ff_gdv_decoder = { · 569 unmodified lines | |||
| 570 | .close = gdv_decode_close, | 570 | .close = gdv_decode_close, |
| 571 | FF_CODEC_DECODE_CB(gdv_decode_frame), | 571 | FF_CODEC_DECODE_CB(gdv_decode_frame), |
| 572 | .p.capabilities = AV_CODEC_CAP_DR1, | 572 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 573 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 574 | }; | 573 | }; |
| @@ -566,5 +566,5 @@ const FFCodec ff_gif_encoder = { · 565 unmodified lines | |||
| 566 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_PAL8, AV_PIX_FMT_NONE | 566 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_PAL8, AV_PIX_FMT_NONE |
| 567 | }, | 567 | }, |
| 568 | .p.priv_class = &gif_class, | 568 | .p.priv_class = &gif_class, |
| 569 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 569 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 570 | }; | 570 | }; |
| @@ -566,7 +566,6 @@ const FFCodec ff_gif_decoder = { · 565 unmodified lines | |||
| 566 | .close = gif_decode_close, | 566 | .close = gif_decode_close, |
| 567 | FF_CODEC_DECODE_CB(gif_decode_frame), | 567 | FF_CODEC_DECODE_CB(gif_decode_frame), |
| 568 | .p.capabilities = AV_CODEC_CAP_DR1, | 568 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 569 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 569 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 570 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 571 | .p.priv_class = &decoder_class, | 570 | .p.priv_class = &decoder_class, |
| 572 | }; | 571 | }; |
| @@ -123,7 +123,6 @@ const FFCodec ff_gsm_decoder = { · 122 unmodified lines | |||
| 123 | FF_CODEC_DECODE_CB(gsm_decode_frame), | 123 | FF_CODEC_DECODE_CB(gsm_decode_frame), |
| 124 | .flush = gsm_flush, | 124 | .flush = gsm_flush, |
| 125 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 125 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 126 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 127 | }; | 126 | }; |
| 128 | #endif | 127 | #endif |
| 129 | #if CONFIG_GSM_MS_DECODER | 128 | #if CONFIG_GSM_MS_DECODER |
| @@ -137,6 +136,5 @@ const FFCodec ff_gsm_ms_decoder = { · 7 unmodified lines | |||
| 137 | FF_CODEC_DECODE_CB(gsm_decode_frame), | 136 | FF_CODEC_DECODE_CB(gsm_decode_frame), |
| 138 | .flush = gsm_flush, | 137 | .flush = gsm_flush, |
| 139 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 138 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 140 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 141 | }; | 139 | }; |
| 142 | #endif | 140 | #endif |
| @@ -690,6 +690,5 @@ const FFCodec ff_h261_decoder = { · 689 unmodified lines | |||
| 690 | .close = h261_decode_end, | 690 | .close = h261_decode_end, |
| 691 | FF_CODEC_DECODE_CB(h261_decode_frame), | 691 | FF_CODEC_DECODE_CB(h261_decode_frame), |
| 692 | .p.capabilities = AV_CODEC_CAP_DR1, | 692 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 693 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 694 | .p.max_lowres = 3, | 693 | .p.max_lowres = 3, |
| 695 | }; | 694 | }; |
| @@ -410,7 +410,7 @@ const FFCodec ff_h261_encoder = { · 409 unmodified lines | |||
| 410 | .init = ff_mpv_encode_init, | 410 | .init = ff_mpv_encode_init, |
| 411 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 411 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 412 | .close = ff_mpv_encode_end, | 412 | .close = ff_mpv_encode_end, |
| 413 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 413 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 414 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 414 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 415 | AV_PIX_FMT_NONE }, | 415 | AV_PIX_FMT_NONE }, |
| 416 | }; | 416 | }; |
| @@ -768,8 +768,7 @@ const FFCodec ff_h263_decoder = { · 767 unmodified lines | |||
| 768 | AV_CODEC_CAP_TRUNCATED | | 768 | AV_CODEC_CAP_TRUNCATED | |
| 769 | #endif | 769 | #endif |
| 770 | AV_CODEC_CAP_DELAY, | 770 | AV_CODEC_CAP_DELAY, |
| 771 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 771 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 772 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 773 | .flush = ff_mpeg_flush, | 772 | .flush = ff_mpeg_flush, |
| 774 | .p.max_lowres = 3, | 773 | .p.max_lowres = 3, |
| 775 | .p.pix_fmts = ff_h263_hwaccel_pixfmt_list_420, | 774 | .p.pix_fmts = ff_h263_hwaccel_pixfmt_list_420, |
| @@ -790,8 +789,7 @@ const FFCodec ff_h263p_decoder = { · 14 unmodified lines | |||
| 790 | AV_CODEC_CAP_TRUNCATED | | 789 | AV_CODEC_CAP_TRUNCATED | |
| 791 | #endif | 790 | #endif |
| 792 | AV_CODEC_CAP_DELAY, | 791 | AV_CODEC_CAP_DELAY, |
| 793 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 792 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 794 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 795 | .flush = ff_mpeg_flush, | 793 | .flush = ff_mpeg_flush, |
| 796 | .p.max_lowres = 3, | 794 | .p.max_lowres = 3, |
| 797 | .p.pix_fmts = ff_h263_hwaccel_pixfmt_list_420, | 795 | .p.pix_fmts = ff_h263_hwaccel_pixfmt_list_420, |
| @@ -1102,7 +1102,7 @@ const FFCodec ff_h264_decoder = { · 1101 unmodified lines | |||
| 1102 | #endif | 1102 | #endif |
| 1103 | NULL | 1103 | NULL |
| 1104 | }, | 1104 | }, |
| 1105 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING | | 1105 | .caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING | |
| 1106 | FF_CODEC_CAP_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, | 1106 | FF_CODEC_CAP_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, |
| 1107 | .flush = h264_decode_flush, | 1107 | .flush = h264_decode_flush, |
| 1108 | .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_h264_update_thread_context), | 1108 | .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_h264_update_thread_context), |
| @@ -423,8 +423,7 @@ const FFCodec ff_hap_decoder = { · 422 unmodified lines | |||
| 423 | .priv_data_size = sizeof(HapContext), | 423 | .priv_data_size = sizeof(HapContext), |
| 424 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS | | 424 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS | |
| 425 | AV_CODEC_CAP_DR1, | 425 | AV_CODEC_CAP_DR1, |
| 426 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 426 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 427 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 428 | .codec_tags = (const uint32_t []){ | 427 | .codec_tags = (const uint32_t []){ |
| 429 | MKTAG('H','a','p','1'), | 428 | MKTAG('H','a','p','1'), |
| 430 | MKTAG('H','a','p','5'), | 429 | MKTAG('H','a','p','5'), |
| @@ -360,6 +360,5 @@ const FFCodec ff_hap_encoder = { · 359 unmodified lines | |||
| 360 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 360 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 361 | AV_PIX_FMT_RGBA, AV_PIX_FMT_NONE, | 361 | AV_PIX_FMT_RGBA, AV_PIX_FMT_NONE, |
| 362 | }, | 362 | }, |
| 363 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 363 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 364 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 365 | }; | 364 | }; |
| @@ -450,7 +450,7 @@ const FFCodec ff_hca_decoder = { · 449 unmodified lines | |||
| 450 | FF_CODEC_DECODE_CB(decode_frame), | 450 | FF_CODEC_DECODE_CB(decode_frame), |
| 451 | .close = decode_close, | 451 | .close = decode_close, |
| 452 | .p.capabilities = AV_CODEC_CAP_DR1, | 452 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 453 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 453 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 454 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 454 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 455 | AV_SAMPLE_FMT_NONE }, | 455 | AV_SAMPLE_FMT_NONE }, |
| 456 | }; | 456 | }; |
| @@ -144,5 +144,5 @@ const FFCodec ff_hcom_decoder = { · 143 unmodified lines | |||
| 144 | .close = hcom_close, | 144 | .close = hcom_close, |
| 145 | FF_CODEC_DECODE_CB(hcom_decode), | 145 | FF_CODEC_DECODE_CB(hcom_decode), |
| 146 | .p.capabilities = AV_CODEC_CAP_DR1, | 146 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 147 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 147 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 148 | }; | 148 | }; |
| @@ -185,5 +185,5 @@ const FFCodec ff_hdr_encoder = { · 184 unmodified lines | |||
| 185 | AV_PIX_FMT_GBRPF32, | 185 | AV_PIX_FMT_GBRPF32, |
| 186 | AV_PIX_FMT_NONE | 186 | AV_PIX_FMT_NONE |
| 187 | }, | 187 | }, |
| 188 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 188 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 189 | }; | 189 | }; |
| @@ -3881,7 +3881,7 @@ const FFCodec ff_hevc_decoder = { · 3880 unmodified lines | |||
| 3881 | .update_thread_context = ONLY_IF_THREADS_ENABLED(hevc_update_thread_context), | 3881 | .update_thread_context = ONLY_IF_THREADS_ENABLED(hevc_update_thread_context), |
| 3882 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | | 3882 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | |
| 3883 | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS, | 3883 | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS, |
| 3884 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING | | 3884 | .caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING | |
| 3885 | FF_CODEC_CAP_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, | 3885 | FF_CODEC_CAP_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, |
| 3886 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_hevc_profiles), | 3886 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_hevc_profiles), |
| 3887 | .hw_configs = (const AVCodecHWConfigInternal *const []) { | 3887 | .hw_configs = (const AVCodecHWConfigInternal *const []) { |
| @@ -507,5 +507,5 @@ const FFCodec ff_hnm4_video_decoder = { · 506 unmodified lines | |||
| 507 | .close = hnm_decode_end, | 507 | .close = hnm_decode_end, |
| 508 | FF_CODEC_DECODE_CB(hnm_decode_frame), | 508 | FF_CODEC_DECODE_CB(hnm_decode_frame), |
| 509 | .p.capabilities = AV_CODEC_CAP_DR1, | 509 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 510 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 510 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 511 | }; | 511 | }; |
| @@ -391,6 +391,5 @@ const FFCodec ff_hq_hqa_decoder = { · 390 unmodified lines | |||
| 391 | FF_CODEC_DECODE_CB(hq_hqa_decode_frame), | 391 | FF_CODEC_DECODE_CB(hq_hqa_decode_frame), |
| 392 | .close = hq_hqa_decode_close, | 392 | .close = hq_hqa_decode_close, |
| 393 | .p.capabilities = AV_CODEC_CAP_DR1, | 393 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 394 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 394 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 395 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 396 | }; | 395 | }; |
| @@ -545,6 +545,5 @@ const FFCodec ff_hqx_decoder = { · 544 unmodified lines | |||
| 545 | .close = hqx_decode_close, | 545 | .close = hqx_decode_close, |
| 546 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS | | 546 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS | |
| 547 | AV_CODEC_CAP_FRAME_THREADS, | 547 | AV_CODEC_CAP_FRAME_THREADS, |
| 548 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 548 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 549 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 550 | }; | 549 | }; |
| @@ -1273,7 +1273,7 @@ const FFCodec ff_huffyuv_decoder = { · 1272 unmodified lines | |||
| 1273 | FF_CODEC_DECODE_CB(decode_frame), | 1273 | FF_CODEC_DECODE_CB(decode_frame), |
| 1274 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DRAW_HORIZ_BAND | | 1274 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DRAW_HORIZ_BAND | |
| 1275 | AV_CODEC_CAP_FRAME_THREADS, | 1275 | AV_CODEC_CAP_FRAME_THREADS, |
| 1276 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1276 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1277 | }; | 1277 | }; |
| 1278 | 1278 | ||
| 1279 | #if CONFIG_FFVHUFF_DECODER | 1279 | #if CONFIG_FFVHUFF_DECODER |
| @@ -1288,7 +1288,7 @@ const FFCodec ff_ffvhuff_decoder = { · 8 unmodified lines | |||
| 1288 | FF_CODEC_DECODE_CB(decode_frame), | 1288 | FF_CODEC_DECODE_CB(decode_frame), |
| 1289 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DRAW_HORIZ_BAND | | 1289 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DRAW_HORIZ_BAND | |
| 1290 | AV_CODEC_CAP_FRAME_THREADS, | 1290 | AV_CODEC_CAP_FRAME_THREADS, |
| 1291 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1291 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1292 | }; | 1292 | }; |
| 1293 | #endif /* CONFIG_FFVHUFF_DECODER */ | 1293 | #endif /* CONFIG_FFVHUFF_DECODER */ |
| 1294 | 1294 | ||
| @@ -1304,6 +1304,6 @@ const FFCodec ff_hymt_decoder = { · 9 unmodified lines | |||
| 1304 | FF_CODEC_DECODE_CB(decode_frame), | 1304 | FF_CODEC_DECODE_CB(decode_frame), |
| 1305 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DRAW_HORIZ_BAND | | 1305 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DRAW_HORIZ_BAND | |
| 1306 | AV_CODEC_CAP_FRAME_THREADS, | 1306 | AV_CODEC_CAP_FRAME_THREADS, |
| 1307 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1307 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1308 | }; | 1308 | }; |
| 1309 | #endif /* CONFIG_HYMT_DECODER */ | 1309 | #endif /* CONFIG_HYMT_DECODER */ |
| @@ -1064,8 +1064,7 @@ const FFCodec ff_huffyuv_encoder = { · 1063 unmodified lines | |||
| 1064 | AV_PIX_FMT_YUV422P, AV_PIX_FMT_RGB24, | 1064 | AV_PIX_FMT_YUV422P, AV_PIX_FMT_RGB24, |
| 1065 | AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE | 1065 | AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE |
| 1066 | }, | 1066 | }, |
| 1067 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 1067 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1068 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 1069 | }; | 1068 | }; |
| 1070 | 1069 | ||
| 1071 | #if CONFIG_FFVHUFF_ENCODER | 1070 | #if CONFIG_FFVHUFF_ENCODER |
| @@ -1097,7 +1096,6 @@ const FFCodec ff_ffvhuff_encoder = { · 25 unmodified lines | |||
| 1097 | AV_PIX_FMT_RGB24, | 1096 | AV_PIX_FMT_RGB24, |
| 1098 | AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE | 1097 | AV_PIX_FMT_RGB32, AV_PIX_FMT_NONE |
| 1099 | }, | 1098 | }, |
| 1100 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 1099 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1101 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 1102 | }; | 1100 | }; |
| 1103 | #endif | 1101 | #endif |
| @@ -251,5 +251,4 @@ const FFCodec ff_idcin_decoder = { · 250 unmodified lines | |||
| 251 | FF_CODEC_DECODE_CB(idcin_decode_frame), | 251 | FF_CODEC_DECODE_CB(idcin_decode_frame), |
| 252 | .p.capabilities = AV_CODEC_CAP_DR1, | 252 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 253 | .defaults = idcin_defaults, | 253 | .defaults = idcin_defaults, |
| 254 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 255 | }; | 254 | }; |
| @@ -1916,5 +1916,5 @@ const FFCodec ff_iff_ilbm_decoder = { · 1915 unmodified lines | |||
| 1916 | .close = decode_end, | 1916 | .close = decode_end, |
| 1917 | FF_CODEC_DECODE_CB(decode_frame), | 1917 | FF_CODEC_DECODE_CB(decode_frame), |
| 1918 | .p.capabilities = AV_CODEC_CAP_DR1, | 1918 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1919 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1919 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1920 | }; | 1920 | }; |
| @@ -1487,5 +1487,4 @@ const FFCodec ff_ilbc_decoder = { · 1486 unmodified lines | |||
| 1487 | FF_CODEC_DECODE_CB(ilbc_decode_frame), | 1487 | FF_CODEC_DECODE_CB(ilbc_decode_frame), |
| 1488 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1488 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1489 | .priv_data_size = sizeof(ILBCContext), | 1489 | .priv_data_size = sizeof(ILBCContext), |
| 1490 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1491 | }; | 1490 | }; |
| @@ -1095,7 +1095,6 @@ const FFCodec ff_imc_decoder = { · 1094 unmodified lines | |||
| 1095 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1095 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1096 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1096 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1097 | AV_SAMPLE_FMT_NONE }, | 1097 | AV_SAMPLE_FMT_NONE }, |
| 1098 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1099 | }; | 1098 | }; |
| 1100 | #endif | 1099 | #endif |
| 1101 | #if CONFIG_IAC_DECODER | 1100 | #if CONFIG_IAC_DECODER |
| @@ -1112,6 +1111,5 @@ const FFCodec ff_iac_decoder = { · 10 unmodified lines | |||
| 1112 | .p.capabilities = AV_CODEC_CAP_DR1, | 1111 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1113 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1112 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1114 | AV_SAMPLE_FMT_NONE }, | 1113 | AV_SAMPLE_FMT_NONE }, |
| 1115 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1116 | }; | 1114 | }; |
| 1117 | #endif | 1115 | #endif |
| @@ -543,6 +543,5 @@ const FFCodec ff_imm4_decoder = { · 542 unmodified lines | |||
| 543 | FF_CODEC_DECODE_CB(decode_frame), | 543 | FF_CODEC_DECODE_CB(decode_frame), |
| 544 | .flush = decode_flush, | 544 | .flush = decode_flush, |
| 545 | .p.capabilities = AV_CODEC_CAP_DR1, | 545 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 546 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 546 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 547 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 548 | }; | 547 | }; |
| @@ -187,6 +187,5 @@ const FFCodec ff_imm5_decoder = { · 186 unmodified lines | |||
| 187 | .close = imm5_close, | 187 | .close = imm5_close, |
| 188 | .flush = imm5_flush, | 188 | .flush = imm5_flush, |
| 189 | .priv_data_size = sizeof(IMM5Context), | 189 | .priv_data_size = sizeof(IMM5Context), |
| 190 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 190 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 191 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 192 | }; | 191 | }; |
| @@ -191,6 +191,5 @@ const FFCodec ff_simbiosis_imx_decoder = { · 190 unmodified lines | |||
| 191 | .close = imx_decode_close, | 191 | .close = imx_decode_close, |
| 192 | .flush = imx_decode_flush, | 192 | .flush = imx_decode_flush, |
| 193 | .p.capabilities = AV_CODEC_CAP_DR1, | 193 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 194 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 194 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 195 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 196 | }; | 195 | }; |
| @@ -269,5 +269,4 @@ const FFCodec ff_indeo2_decoder = { · 268 unmodified lines | |||
| 269 | .close = ir2_decode_end, | 269 | .close = ir2_decode_end, |
| 270 | FF_CODEC_DECODE_CB(ir2_decode_frame), | 270 | FF_CODEC_DECODE_CB(ir2_decode_frame), |
| 271 | .p.capabilities = AV_CODEC_CAP_DR1, | 271 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 272 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 273 | }; | 272 | }; |
| @@ -1143,5 +1143,5 @@ const FFCodec ff_indeo3_decoder = { · 1142 unmodified lines | |||
| 1143 | .close = decode_close, | 1143 | .close = decode_close, |
| 1144 | FF_CODEC_DECODE_CB(decode_frame), | 1144 | FF_CODEC_DECODE_CB(decode_frame), |
| 1145 | .p.capabilities = AV_CODEC_CAP_DR1, | 1145 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1146 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1146 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1147 | }; | 1147 | }; |
| @@ -713,5 +713,4 @@ const FFCodec ff_indeo4_decoder = { · 712 unmodified lines | |||
| 713 | .close = ff_ivi_decode_close, | 713 | .close = ff_ivi_decode_close, |
| 714 | FF_CODEC_DECODE_CB(ff_ivi_decode_frame), | 714 | FF_CODEC_DECODE_CB(ff_ivi_decode_frame), |
| 715 | .p.capabilities = AV_CODEC_CAP_DR1, | 715 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 716 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 717 | }; | 716 | }; |
| @@ -693,5 +693,5 @@ const FFCodec ff_indeo5_decoder = { · 692 unmodified lines | |||
| 693 | .close = ff_ivi_decode_close, | 693 | .close = ff_ivi_decode_close, |
| 694 | FF_CODEC_DECODE_CB(ff_ivi_decode_frame), | 694 | FF_CODEC_DECODE_CB(ff_ivi_decode_frame), |
| 695 | .p.capabilities = AV_CODEC_CAP_DR1, | 695 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 696 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 696 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 697 | }; | 697 | }; |
| @@ -140,8 +140,7 @@ const FFCodec ff_h263i_decoder = { · 139 unmodified lines | |||
| 140 | .close = ff_h263_decode_end, | 140 | .close = ff_h263_decode_end, |
| 141 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 141 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 142 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 142 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 143 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 143 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 144 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 145 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 144 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 146 | AV_PIX_FMT_YUV420P, | 145 | AV_PIX_FMT_YUV420P, |
| 147 | AV_PIX_FMT_NONE | 146 | AV_PIX_FMT_NONE |
| @@ -641,6 +641,6 @@ const FFCodec ff_interplay_acm_decoder = { · 640 unmodified lines | |||
| 641 | .close = decode_close, | 641 | .close = decode_close, |
| 642 | FF_CODEC_DECODE_CB(decode_frame), | 642 | FF_CODEC_DECODE_CB(decode_frame), |
| 643 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, | 643 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, |
| 644 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 644 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 645 | .priv_data_size = sizeof(InterplayACMContext), | 645 | .priv_data_size = sizeof(InterplayACMContext), |
| 646 | }; | 646 | }; |
| @@ -1366,5 +1366,5 @@ const FFCodec ff_interplay_video_decoder = { · 1365 unmodified lines | |||
| 1366 | .close = ipvideo_decode_end, | 1366 | .close = ipvideo_decode_end, |
| 1367 | FF_CODEC_DECODE_CB(ipvideo_decode_frame), | 1367 | FF_CODEC_DECODE_CB(ipvideo_decode_frame), |
| 1368 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_PARAM_CHANGE, | 1368 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_PARAM_CHANGE, |
| 1369 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1369 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1370 | }; | 1370 | }; |
| @@ -903,7 +903,7 @@ const FFCodec ff_h263_encoder = { · 902 unmodified lines | |||
| 903 | .p.id = AV_CODEC_ID_H263, | 903 | .p.id = AV_CODEC_ID_H263, |
| 904 | .p.pix_fmts = (const enum AVPixelFormat[]){AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE}, | 904 | .p.pix_fmts = (const enum AVPixelFormat[]){AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE}, |
| 905 | .p.priv_class = &h263_class, | 905 | .p.priv_class = &h263_class, |
| 906 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 906 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 907 | .priv_data_size = sizeof(MpegEncContext), | 907 | .priv_data_size = sizeof(MpegEncContext), |
| 908 | .init = ff_mpv_encode_init, | 908 | .init = ff_mpv_encode_init, |
| 909 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 909 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| @@ -934,7 +934,7 @@ const FFCodec ff_h263p_encoder = { · 24 unmodified lines | |||
| 934 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 934 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 935 | .p.priv_class = &h263p_class, | 935 | .p.priv_class = &h263p_class, |
| 936 | .p.capabilities = AV_CODEC_CAP_SLICE_THREADS, | 936 | .p.capabilities = AV_CODEC_CAP_SLICE_THREADS, |
| 937 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 937 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 938 | .priv_data_size = sizeof(MpegEncContext), | 938 | .priv_data_size = sizeof(MpegEncContext), |
| 939 | .init = ff_mpv_encode_init, | 939 | .init = ff_mpv_encode_init, |
| 940 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 940 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| @@ -1848,5 +1848,5 @@ const FFCodec ff_jpeg2000_encoder = { · 1847 unmodified lines | |||
| 1848 | AV_PIX_FMT_NONE | 1848 | AV_PIX_FMT_NONE |
| 1849 | }, | 1849 | }, |
| 1850 | .p.priv_class = &j2k_class, | 1850 | .p.priv_class = &j2k_class, |
| 1851 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1851 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1852 | }; | 1852 | }; |
| @@ -202,5 +202,4 @@ const FFCodec ff_jacosub_decoder = { · 201 unmodified lines | |||
| 202 | FF_CODEC_DECODE_SUB_CB(jacosub_decode_frame), | 202 | FF_CODEC_DECODE_SUB_CB(jacosub_decode_frame), |
| 203 | .flush = ff_ass_decoder_flush, | 203 | .flush = ff_ass_decoder_flush, |
| 204 | .priv_data_size = sizeof(FFASSDecoderContext), | 204 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 205 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 206 | }; | 205 | }; |
| @@ -2582,5 +2582,4 @@ const FFCodec ff_jpeg2000_decoder = { · 2581 unmodified lines | |||
| 2582 | .p.priv_class = &jpeg2000_class, | 2582 | .p.priv_class = &jpeg2000_class, |
| 2583 | .p.max_lowres = 5, | 2583 | .p.max_lowres = 5, |
| 2584 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_jpeg2000_profiles), | 2584 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_jpeg2000_profiles), |
| 2585 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 2586 | }; | 2585 | }; |
| @@ -560,6 +560,6 @@ const FFCodec ff_jpegls_decoder = { · 559 unmodified lines | |||
| 560 | .close = ff_mjpeg_decode_end, | 560 | .close = ff_mjpeg_decode_end, |
| 561 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), | 561 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), |
| 562 | .p.capabilities = AV_CODEC_CAP_DR1, | 562 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 563 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 563 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 564 | FF_CODEC_CAP_SETS_PKT_DTS, | 564 | FF_CODEC_CAP_SETS_PKT_DTS, |
| 565 | }; | 565 | }; |
| @@ -489,6 +489,5 @@ const FFCodec ff_jpegls_encoder = { · 488 unmodified lines | |||
| 489 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16, | 489 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16, |
| 490 | AV_PIX_FMT_NONE | 490 | AV_PIX_FMT_NONE |
| 491 | }, | 491 | }, |
| 492 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 492 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 493 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 494 | }; | 493 | }; |
| @@ -244,5 +244,4 @@ const FFCodec ff_jv_decoder = { · 243 unmodified lines | |||
| 244 | .close = decode_close, | 244 | .close = decode_close, |
| 245 | FF_CODEC_DECODE_CB(decode_frame), | 245 | FF_CODEC_DECODE_CB(decode_frame), |
| 246 | .p.capabilities = AV_CODEC_CAP_DR1, | 246 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 247 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 248 | }; | 247 | }; |
| @@ -187,5 +187,4 @@ const FFCodec ff_kgv1_decoder = { · 186 unmodified lines | |||
| 187 | FF_CODEC_DECODE_CB(decode_frame), | 187 | FF_CODEC_DECODE_CB(decode_frame), |
| 188 | .flush = decode_flush, | 188 | .flush = decode_flush, |
| 189 | .p.capabilities = AV_CODEC_CAP_DR1, | 189 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 190 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 191 | }; | 190 | }; |
| @@ -413,5 +413,4 @@ const FFCodec ff_kmvc_decoder = { · 412 unmodified lines | |||
| 413 | .init = decode_init, | 413 | .init = decode_init, |
| 414 | FF_CODEC_DECODE_CB(decode_frame), | 414 | FF_CODEC_DECODE_CB(decode_frame), |
| 415 | .p.capabilities = AV_CODEC_CAP_DR1, | 415 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 416 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 417 | }; | 416 | }; |
| @@ -737,5 +737,4 @@ const FFCodec ff_lagarith_decoder = { · 736 unmodified lines | |||
| 737 | .init = lag_decode_init, | 737 | .init = lag_decode_init, |
| 738 | FF_CODEC_DECODE_CB(lag_decode_frame), | 738 | FF_CODEC_DECODE_CB(lag_decode_frame), |
| 739 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 739 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 740 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 741 | }; | 740 | }; |
| @@ -640,7 +640,7 @@ const FFCodec ff_mszh_decoder = { · 639 unmodified lines | |||
| 640 | .init = decode_init, | 640 | .init = decode_init, |
| 641 | .close = decode_end, | 641 | .close = decode_end, |
| 642 | FF_CODEC_DECODE_CB(decode_frame), | 642 | FF_CODEC_DECODE_CB(decode_frame), |
| 643 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 643 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 644 | }; | 644 | }; |
| 645 | #endif | 645 | #endif |
| 646 | 646 | ||
| @@ -655,6 +655,6 @@ const FFCodec ff_zlib_decoder = { · 8 unmodified lines | |||
| 655 | .init = decode_init, | 655 | .init = decode_init, |
| 656 | .close = decode_end, | 656 | .close = decode_end, |
| 657 | FF_CODEC_DECODE_CB(decode_frame), | 657 | FF_CODEC_DECODE_CB(decode_frame), |
| 658 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 658 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 659 | }; | 659 | }; |
| 660 | #endif | 660 | #endif |
| @@ -162,6 +162,5 @@ const FFCodec ff_zlib_encoder = { · 161 unmodified lines | |||
| 162 | .close = encode_end, | 162 | .close = encode_end, |
| 163 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS, | 163 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
| 164 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, | 164 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_BGR24, AV_PIX_FMT_NONE }, |
| 165 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 165 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 166 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 167 | }; | 166 | }; |
| @@ -585,7 +585,7 @@ const FFCodec ff_libdav1d_decoder = { · 584 unmodified lines | |||
| 585 | .flush = libdav1d_flush, | 585 | .flush = libdav1d_flush, |
| 586 | FF_CODEC_RECEIVE_FRAME_CB(libdav1d_receive_frame), | 586 | FF_CODEC_RECEIVE_FRAME_CB(libdav1d_receive_frame), |
| 587 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS, | 587 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_OTHER_THREADS, |
| 588 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_SETS_PKT_DTS | | 588 | .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS | |
| 589 | FF_CODEC_CAP_AUTO_THREADS, | 589 | FF_CODEC_CAP_AUTO_THREADS, |
| 590 | .p.priv_class = &libdav1d_class, | 590 | .p.priv_class = &libdav1d_class, |
| 591 | .p.wrapper_name = "libdav1d", | 591 | .p.wrapper_name = "libdav1d", |
| @@ -492,7 +492,6 @@ const FFCodec ff_libfdk_aac_decoder = { · 491 unmodified lines | |||
| 492 | #endif | 492 | #endif |
| 493 | , | 493 | , |
| 494 | .p.priv_class = &fdk_aac_dec_class, | 494 | .p.priv_class = &fdk_aac_dec_class, |
| 495 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 495 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 496 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 497 | .p.wrapper_name = "libfdk", | 496 | .p.wrapper_name = "libfdk", |
| 498 | }; | 497 | }; |
| @@ -335,7 +335,7 @@ const FFCodec ff_libkvazaar_encoder = { · 334 unmodified lines | |||
| 335 | FF_CODEC_ENCODE_CB(libkvazaar_encode), | 335 | FF_CODEC_ENCODE_CB(libkvazaar_encode), |
| 336 | .close = libkvazaar_close, | 336 | .close = libkvazaar_close, |
| 337 | 337 | ||
| 338 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 338 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 339 | FF_CODEC_CAP_AUTO_THREADS, | 339 | FF_CODEC_CAP_AUTO_THREADS, |
| 340 | 340 | ||
| 341 | .p.wrapper_name = "libkvazaar", | 341 | .p.wrapper_name = "libkvazaar", |
| @@ -166,7 +166,7 @@ const FFCodec ff_libopenh264_decoder = { · 165 unmodified lines | |||
| 166 | FF_CODEC_DECODE_CB(svc_decode_frame), | 166 | FF_CODEC_DECODE_CB(svc_decode_frame), |
| 167 | .close = svc_decode_close, | 167 | .close = svc_decode_close, |
| 168 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, | 168 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_DR1, |
| 169 | .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS | FF_CODEC_CAP_INIT_THREADSAFE | | 169 | .caps_internal = FF_CODEC_CAP_SETS_PKT_DTS | |
| 170 | FF_CODEC_CAP_INIT_CLEANUP, | 170 | FF_CODEC_CAP_INIT_CLEANUP, |
| 171 | .bsfs = "h264_mp4toannexb", | 171 | .bsfs = "h264_mp4toannexb", |
| 172 | .p.wrapper_name = "libopenh264", | 172 | .p.wrapper_name = "libopenh264", |
| @@ -461,7 +461,7 @@ const FFCodec ff_libopenh264_encoder = { · 460 unmodified lines | |||
| 461 | .init = svc_encode_init, | 461 | .init = svc_encode_init, |
| 462 | FF_CODEC_ENCODE_CB(svc_encode_frame), | 462 | FF_CODEC_ENCODE_CB(svc_encode_frame), |
| 463 | .close = svc_encode_close, | 463 | .close = svc_encode_close, |
| 464 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 464 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 465 | FF_CODEC_CAP_AUTO_THREADS, | 465 | FF_CODEC_CAP_AUTO_THREADS, |
| 466 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, | 466 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, |
| 467 | AV_PIX_FMT_NONE }, | 467 | AV_PIX_FMT_NONE }, |
| @@ -1237,9 +1237,7 @@ FFCodec ff_libx264_encoder = { · 1236 unmodified lines | |||
| 1237 | .p.pix_fmts = pix_fmts_all, | 1237 | .p.pix_fmts = pix_fmts_all, |
| 1238 | #endif | 1238 | #endif |
| 1239 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_AUTO_THREADS | 1239 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_AUTO_THREADS |
| 1240 | #if X264_BUILD >= 158 | 1240 | #if X264_BUILD < 158 |
| 1241 | | FF_CODEC_CAP_INIT_THREADSAFE | ||
| 1242 | #else | ||
| 1243 | | FF_CODEC_CAP_NOT_INIT_THREADSAFE | 1241 | | FF_CODEC_CAP_NOT_INIT_THREADSAFE |
| 1244 | #endif | 1242 | #endif |
| 1245 | , | 1243 | , |
| @@ -1271,9 +1269,7 @@ const FFCodec ff_libx264rgb_encoder = { · 25 unmodified lines | |||
| 1271 | .close = X264_close, | 1269 | .close = X264_close, |
| 1272 | .defaults = x264_defaults, | 1270 | .defaults = x264_defaults, |
| 1273 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_AUTO_THREADS | 1271 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_AUTO_THREADS |
| 1274 | #if X264_BUILD >= 158 | 1272 | #if X264_BUILD < 158 |
| 1275 | | FF_CODEC_CAP_INIT_THREADSAFE | ||
| 1276 | #else | ||
| 1277 | | FF_CODEC_CAP_NOT_INIT_THREADSAFE | 1273 | | FF_CODEC_CAP_NOT_INIT_THREADSAFE |
| 1278 | #endif | 1274 | #endif |
| 1279 | , | 1275 | , |
| @@ -908,7 +908,6 @@ const FFCodec ff_libxvid_encoder = { · 907 unmodified lines | |||
| 908 | .close = xvid_encode_close, | 908 | .close = xvid_encode_close, |
| 909 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 909 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 910 | .p.priv_class = &xvid_class, | 910 | .p.priv_class = &xvid_class, |
| 911 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 911 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 912 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 913 | .p.wrapper_name = "libxvid", | 912 | .p.wrapper_name = "libxvid", |
| 914 | }; | 913 | }; |
| @@ -339,5 +339,4 @@ const FFCodec ff_ljpeg_encoder = { · 338 unmodified lines | |||
| 339 | AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ422P, | 339 | AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ444P, AV_PIX_FMT_YUVJ422P, |
| 340 | AV_PIX_FMT_YUV420P , AV_PIX_FMT_YUV444P , AV_PIX_FMT_YUV422P, | 340 | AV_PIX_FMT_YUV420P , AV_PIX_FMT_YUV444P , AV_PIX_FMT_YUV422P, |
| 341 | AV_PIX_FMT_NONE}, | 341 | AV_PIX_FMT_NONE}, |
| 342 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 343 | }; | 342 | }; |
| @@ -345,5 +345,4 @@ const FFCodec ff_loco_decoder = { · 344 unmodified lines | |||
| 345 | .init = decode_init, | 345 | .init = decode_init, |
| 346 | FF_CODEC_DECODE_CB(decode_frame), | 346 | FF_CODEC_DECODE_CB(decode_frame), |
| 347 | .p.capabilities = AV_CODEC_CAP_DR1, | 347 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 348 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 349 | }; | 348 | }; |
| @@ -255,5 +255,5 @@ const FFCodec ff_lscr_decoder = { · 254 unmodified lines | |||
| 255 | .close = lscr_decode_close, | 255 | .close = lscr_decode_close, |
| 256 | FF_CODEC_DECODE_CB(decode_frame_lscr), | 256 | FF_CODEC_DECODE_CB(decode_frame_lscr), |
| 257 | .flush = lscr_decode_flush, | 257 | .flush = lscr_decode_flush, |
| 258 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 258 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 259 | }; | 259 | }; |
| @@ -113,5 +113,4 @@ const FFCodec ff_m101_decoder = { · 112 unmodified lines | |||
| 113 | .init = m101_decode_init, | 113 | .init = m101_decode_init, |
| 114 | FF_CODEC_DECODE_CB(m101_decode_frame), | 114 | FF_CODEC_DECODE_CB(m101_decode_frame), |
| 115 | .p.capabilities = AV_CODEC_CAP_DR1, | 115 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 116 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 117 | }; | 116 | }; |
| @@ -295,7 +295,6 @@ const FFCodec ff_mace3_decoder = { · 294 unmodified lines | |||
| 295 | .p.capabilities = AV_CODEC_CAP_DR1, | 295 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 296 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 296 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 297 | AV_SAMPLE_FMT_NONE }, | 297 | AV_SAMPLE_FMT_NONE }, |
| 298 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 299 | }; | 298 | }; |
| 300 | 299 | ||
| 301 | const FFCodec ff_mace6_decoder = { | 300 | const FFCodec ff_mace6_decoder = { |
| @@ -309,5 +308,4 @@ const FFCodec ff_mace6_decoder = { · 7 unmodified lines | |||
| 309 | .p.capabilities = AV_CODEC_CAP_DR1, | 308 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 310 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 309 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 311 | AV_SAMPLE_FMT_NONE }, | 310 | AV_SAMPLE_FMT_NONE }, |
| 312 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 313 | }; | 311 | }; |
| @@ -705,5 +705,4 @@ const FFCodec ff_magicyuv_decoder = { · 704 unmodified lines | |||
| 705 | .p.capabilities = AV_CODEC_CAP_DR1 | | 705 | .p.capabilities = AV_CODEC_CAP_DR1 | |
| 706 | AV_CODEC_CAP_FRAME_THREADS | | 706 | AV_CODEC_CAP_FRAME_THREADS | |
| 707 | AV_CODEC_CAP_SLICE_THREADS, | 707 | AV_CODEC_CAP_SLICE_THREADS, |
| 708 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 709 | }; | 708 | }; |
| @@ -579,5 +579,5 @@ const FFCodec ff_magicyuv_encoder = { · 578 unmodified lines | |||
| 579 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVA444P, AV_PIX_FMT_GRAY8, | 579 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVA444P, AV_PIX_FMT_GRAY8, |
| 580 | AV_PIX_FMT_NONE | 580 | AV_PIX_FMT_NONE |
| 581 | }, | 581 | }, |
| 582 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 582 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 583 | }; | 583 | }; |
| @@ -259,5 +259,4 @@ const FFCodec ff_mdec_decoder = { · 258 unmodified lines | |||
| 259 | .close = decode_end, | 259 | .close = decode_end, |
| 260 | FF_CODEC_DECODE_CB(decode_frame), | 260 | FF_CODEC_DECODE_CB(decode_frame), |
| 261 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 261 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 262 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 263 | }; | 262 | }; |
| @@ -385,5 +385,5 @@ const FFCodec ff_metasound_decoder = { · 384 unmodified lines | |||
| 385 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 385 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 386 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 386 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 387 | AV_SAMPLE_FMT_NONE }, | 387 | AV_SAMPLE_FMT_NONE }, |
| 388 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 388 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 389 | }; | 389 | }; |
| @@ -1239,8 +1239,7 @@ static int mf_init(AVCodecContext *avctx) · 1238 unmodified lines | |||
| 1239 | FF_CODEC_RECEIVE_PACKET_CB(mf_receive_packet), \ | 1239 | FF_CODEC_RECEIVE_PACKET_CB(mf_receive_packet), \ |
| 1240 | FMTS \ | 1240 | FMTS \ |
| 1241 | CAPS \ | 1241 | CAPS \ |
| 1242 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | \ | 1242 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, \ |
| 1243 | FF_CODEC_CAP_INIT_CLEANUP, \ | ||
| 1244 | }; | 1243 | }; |
| 1245 | 1244 | ||
| 1246 | #define AFMTS \ | 1245 | #define AFMTS \ |
| @@ -377,5 +377,4 @@ const FFCodec ff_microdvd_decoder = { · 376 unmodified lines | |||
| 377 | FF_CODEC_DECODE_SUB_CB(microdvd_decode_frame), | 377 | FF_CODEC_DECODE_SUB_CB(microdvd_decode_frame), |
| 378 | .flush = ff_ass_decoder_flush, | 378 | .flush = ff_ass_decoder_flush, |
| 379 | .priv_data_size = sizeof(FFASSDecoderContext), | 379 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 380 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 381 | }; | 380 | }; |
| @@ -289,5 +289,5 @@ const FFCodec ff_mvdv_decoder = { · 288 unmodified lines | |||
| 289 | .flush = decode_flush, | 289 | .flush = decode_flush, |
| 290 | .close = decode_close, | 290 | .close = decode_close, |
| 291 | .p.capabilities = AV_CODEC_CAP_DR1, | 291 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 292 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 292 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 293 | }; | 293 | }; |
| @@ -449,5 +449,5 @@ const FFCodec ff_mimic_decoder = { · 448 unmodified lines | |||
| 449 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 449 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 450 | .update_thread_context = ONLY_IF_THREADS_ENABLED(mimic_decode_update_thread_context), | 450 | .update_thread_context = ONLY_IF_THREADS_ENABLED(mimic_decode_update_thread_context), |
| 451 | .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS | | 451 | .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS | |
| 452 | FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 452 | FF_CODEC_CAP_INIT_CLEANUP, |
| 453 | }; | 453 | }; |
| @@ -167,5 +167,5 @@ const FFCodec ff_mjpegb_decoder = { · 166 unmodified lines | |||
| 167 | FF_CODEC_DECODE_CB(mjpegb_decode_frame), | 167 | FF_CODEC_DECODE_CB(mjpegb_decode_frame), |
| 168 | .p.capabilities = AV_CODEC_CAP_DR1, | 168 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 169 | .p.max_lowres = 3, | 169 | .p.max_lowres = 3, |
| 170 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 170 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 171 | }; | 171 | }; |
| @@ -3026,7 +3026,7 @@ const FFCodec ff_mjpeg_decoder = { · 3025 unmodified lines | |||
| 3026 | .p.max_lowres = 3, | 3026 | .p.max_lowres = 3, |
| 3027 | .p.priv_class = &mjpegdec_class, | 3027 | .p.priv_class = &mjpegdec_class, |
| 3028 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_mjpeg_profiles), | 3028 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_mjpeg_profiles), |
| 3029 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 3029 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 3030 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM | FF_CODEC_CAP_SETS_PKT_DTS, | 3030 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM | FF_CODEC_CAP_SETS_PKT_DTS, |
| 3031 | .hw_configs = (const AVCodecHWConfigInternal *const []) { | 3031 | .hw_configs = (const AVCodecHWConfigInternal *const []) { |
| 3032 | #if CONFIG_MJPEG_NVDEC_HWACCEL | 3032 | #if CONFIG_MJPEG_NVDEC_HWACCEL |
| @@ -3052,7 +3052,7 @@ const FFCodec ff_thp_decoder = { · 19 unmodified lines | |||
| 3052 | .flush = decode_flush, | 3052 | .flush = decode_flush, |
| 3053 | .p.capabilities = AV_CODEC_CAP_DR1, | 3053 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 3054 | .p.max_lowres = 3, | 3054 | .p.max_lowres = 3, |
| 3055 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 3055 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 3056 | FF_CODEC_CAP_SETS_PKT_DTS, | 3056 | FF_CODEC_CAP_SETS_PKT_DTS, |
| 3057 | }; | 3057 | }; |
| 3058 | #endif | 3058 | #endif |
| @@ -3069,7 +3069,7 @@ const FFCodec ff_smvjpeg_decoder = { · 10 unmodified lines | |||
| 3069 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), | 3069 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), |
| 3070 | .flush = decode_flush, | 3070 | .flush = decode_flush, |
| 3071 | .p.capabilities = AV_CODEC_CAP_DR1, | 3071 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 3072 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_EXPORTS_CROPPING | | 3072 | .caps_internal = FF_CODEC_CAP_EXPORTS_CROPPING | |
| 3073 | FF_CODEC_CAP_SETS_PKT_DTS | FF_CODEC_CAP_INIT_CLEANUP, | 3073 | FF_CODEC_CAP_SETS_PKT_DTS | FF_CODEC_CAP_INIT_CLEANUP, |
| 3074 | }; | 3074 | }; |
| 3075 | #endif | 3075 | #endif |
| @@ -652,7 +652,7 @@ const FFCodec ff_mjpeg_encoder = { · 651 unmodified lines | |||
| 652 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 652 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 653 | .close = mjpeg_encode_close, | 653 | .close = mjpeg_encode_close, |
| 654 | .p.capabilities = AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS, | 654 | .p.capabilities = AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS, |
| 655 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 655 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 656 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 656 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 657 | AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, | 657 | AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, AV_PIX_FMT_YUVJ444P, |
| 658 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, | 658 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, |
| @@ -680,7 +680,7 @@ const FFCodec ff_amv_encoder = { · 21 unmodified lines | |||
| 680 | .init = ff_mpv_encode_init, | 680 | .init = ff_mpv_encode_init, |
| 681 | FF_CODEC_ENCODE_CB(amv_encode_picture), | 681 | FF_CODEC_ENCODE_CB(amv_encode_picture), |
| 682 | .close = mjpeg_encode_close, | 682 | .close = mjpeg_encode_close, |
| 683 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 683 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 684 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 684 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 685 | AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_NONE | 685 | AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_NONE |
| 686 | }, | 686 | }, |
| @@ -1427,7 +1427,6 @@ const FFCodec ff_mlp_decoder = { · 1426 unmodified lines | |||
| 1427 | FF_CODEC_DECODE_CB(read_access_unit), | 1427 | FF_CODEC_DECODE_CB(read_access_unit), |
| 1428 | .flush = mlp_decode_flush, | 1428 | .flush = mlp_decode_flush, |
| 1429 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1429 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1430 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1431 | }; | 1430 | }; |
| 1432 | #endif | 1431 | #endif |
| 1433 | #if CONFIG_TRUEHD_DECODER | 1432 | #if CONFIG_TRUEHD_DECODER |
| @@ -1442,6 +1441,5 @@ const FFCodec ff_truehd_decoder = { · 8 unmodified lines | |||
| 1442 | FF_CODEC_DECODE_CB(read_access_unit), | 1441 | FF_CODEC_DECODE_CB(read_access_unit), |
| 1443 | .flush = mlp_decode_flush, | 1442 | .flush = mlp_decode_flush, |
| 1444 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1443 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1445 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1446 | }; | 1444 | }; |
| 1447 | #endif /* CONFIG_TRUEHD_DECODER */ | 1445 | #endif /* CONFIG_TRUEHD_DECODER */ |
| @@ -2224,7 +2224,7 @@ const FFCodec ff_mlp_encoder = { · 2223 unmodified lines | |||
| 2224 | .p.channel_layouts = ff_mlp_channel_layouts, | 2224 | .p.channel_layouts = ff_mlp_channel_layouts, |
| 2225 | #endif | 2225 | #endif |
| 2226 | .p.ch_layouts = ff_mlp_ch_layouts, | 2226 | .p.ch_layouts = ff_mlp_ch_layouts, |
| 2227 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2227 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2228 | }; | 2228 | }; |
| 2229 | #endif | 2229 | #endif |
| 2230 | #if CONFIG_TRUEHD_ENCODER | 2230 | #if CONFIG_TRUEHD_ENCODER |
| @@ -2249,6 +2249,6 @@ const FFCodec ff_truehd_encoder = { · 18 unmodified lines | |||
| 2249 | AV_CHANNEL_LAYOUT_5POINT1_BACK, | 2249 | AV_CHANNEL_LAYOUT_5POINT1_BACK, |
| 2250 | { 0 } | 2250 | { 0 } |
| 2251 | }, | 2251 | }, |
| 2252 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2252 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2253 | }; | 2253 | }; |
| 2254 | #endif | 2254 | #endif |
| @@ -248,5 +248,4 @@ const FFCodec ff_mmvideo_decoder = { · 247 unmodified lines | |||
| 248 | .close = mm_decode_end, | 248 | .close = mm_decode_end, |
| 249 | FF_CODEC_DECODE_CB(mm_decode_frame), | 249 | FF_CODEC_DECODE_CB(mm_decode_frame), |
| 250 | .p.capabilities = AV_CODEC_CAP_DR1, | 250 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 251 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 252 | }; | 251 | }; |
| @@ -1351,5 +1351,5 @@ const FFCodec ff_mobiclip_decoder = { · 1350 unmodified lines | |||
| 1351 | .flush = mobiclip_flush, | 1351 | .flush = mobiclip_flush, |
| 1352 | .close = mobiclip_close, | 1352 | .close = mobiclip_close, |
| 1353 | .p.capabilities = AV_CODEC_CAP_DR1, | 1353 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1354 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1354 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1355 | }; | 1355 | }; |
| @@ -355,5 +355,5 @@ const FFCodec ff_motionpixels_decoder = { · 354 unmodified lines | |||
| 355 | .close = mp_decode_end, | 355 | .close = mp_decode_end, |
| 356 | FF_CODEC_DECODE_CB(mp_decode_frame), | 356 | FF_CODEC_DECODE_CB(mp_decode_frame), |
| 357 | .p.capabilities = AV_CODEC_CAP_DR1, | 357 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 358 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 358 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 359 | }; | 359 | }; |
| @@ -602,5 +602,4 @@ const FFCodec ff_movtext_decoder = { · 601 unmodified lines | |||
| 602 | FF_CODEC_DECODE_SUB_CB(mov_text_decode_frame), | 602 | FF_CODEC_DECODE_SUB_CB(mov_text_decode_frame), |
| 603 | .close = mov_text_decode_close, | 603 | .close = mov_text_decode_close, |
| 604 | .flush = mov_text_flush, | 604 | .flush = mov_text_flush, |
| 605 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 606 | }; | 605 | }; |
| @@ -709,5 +709,5 @@ const FFCodec ff_movtext_encoder = { · 708 unmodified lines | |||
| 709 | .init = mov_text_encode_init, | 709 | .init = mov_text_encode_init, |
| 710 | FF_CODEC_ENCODE_SUB_CB(mov_text_encode_frame), | 710 | FF_CODEC_ENCODE_SUB_CB(mov_text_encode_frame), |
| 711 | .close = mov_text_encode_close, | 711 | .close = mov_text_encode_close, |
| 712 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 712 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 713 | }; | 713 | }; |
| @@ -322,5 +322,4 @@ const FFCodec ff_mpc7_decoder = { · 321 unmodified lines | |||
| 322 | .p.capabilities = AV_CODEC_CAP_DR1, | 322 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 323 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 323 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 324 | AV_SAMPLE_FMT_NONE }, | 324 | AV_SAMPLE_FMT_NONE }, |
| 325 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 326 | }; | 325 | }; |
| @@ -395,5 +395,4 @@ const FFCodec ff_mpc8_decoder = { · 394 unmodified lines | |||
| 395 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 395 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 396 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 396 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 397 | AV_SAMPLE_FMT_NONE }, | 397 | AV_SAMPLE_FMT_NONE }, |
| 398 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 399 | }; | 398 | }; |
| @@ -2876,8 +2876,7 @@ const FFCodec ff_mpeg1video_decoder = { · 2875 unmodified lines | |||
| 2876 | AV_CODEC_CAP_TRUNCATED | | 2876 | AV_CODEC_CAP_TRUNCATED | |
| 2877 | #endif | 2877 | #endif |
| 2878 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, | 2878 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, |
| 2879 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2879 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 2880 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 2881 | .flush = flush, | 2880 | .flush = flush, |
| 2882 | .p.max_lowres = 3, | 2881 | .p.max_lowres = 3, |
| 2883 | .update_thread_context = ONLY_IF_THREADS_ENABLED(mpeg_decode_update_thread_context), | 2882 | .update_thread_context = ONLY_IF_THREADS_ENABLED(mpeg_decode_update_thread_context), |
| @@ -2909,8 +2908,7 @@ const FFCodec ff_mpeg2video_decoder = { · 25 unmodified lines | |||
| 2909 | AV_CODEC_CAP_TRUNCATED | | 2908 | AV_CODEC_CAP_TRUNCATED | |
| 2910 | #endif | 2909 | #endif |
| 2911 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, | 2910 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, |
| 2912 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2911 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 2913 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 2914 | .flush = flush, | 2912 | .flush = flush, |
| 2915 | .p.max_lowres = 3, | 2913 | .p.max_lowres = 3, |
| 2916 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_mpeg2_video_profiles), | 2914 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_mpeg2_video_profiles), |
| @@ -2955,8 +2953,7 @@ const FFCodec ff_mpegvideo_decoder = { · 38 unmodified lines | |||
| 2955 | AV_CODEC_CAP_TRUNCATED | | 2953 | AV_CODEC_CAP_TRUNCATED | |
| 2956 | #endif | 2954 | #endif |
| 2957 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, | 2955 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, |
| 2958 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2956 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 2959 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 2960 | .flush = flush, | 2957 | .flush = flush, |
| 2961 | .p.max_lowres = 3, | 2958 | .p.max_lowres = 3, |
| 2962 | }; | 2959 | }; |
| @@ -3116,5 +3113,5 @@ const FFCodec ff_ipu_decoder = { · 153 unmodified lines | |||
| 3116 | FF_CODEC_DECODE_CB(ipu_decode_frame), | 3113 | FF_CODEC_DECODE_CB(ipu_decode_frame), |
| 3117 | .close = ipu_decode_end, | 3114 | .close = ipu_decode_end, |
| 3118 | .p.capabilities = AV_CODEC_CAP_DR1, | 3115 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 3119 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 3116 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 3120 | }; | 3117 | }; |
| @@ -1231,7 +1231,7 @@ const FFCodec ff_mpeg1video_encoder = { · 1230 unmodified lines | |||
| 1231 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 1231 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 1232 | AV_PIX_FMT_NONE }, | 1232 | AV_PIX_FMT_NONE }, |
| 1233 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, | 1233 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, |
| 1234 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1234 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1235 | .p.priv_class = &mpeg1_class, | 1235 | .p.priv_class = &mpeg1_class, |
| 1236 | }; | 1236 | }; |
| 1237 | 1237 | ||
| @@ -1249,7 +1249,7 @@ const FFCodec ff_mpeg2video_encoder = { · 11 unmodified lines | |||
| 1249 | AV_PIX_FMT_YUV422P, | 1249 | AV_PIX_FMT_YUV422P, |
| 1250 | AV_PIX_FMT_NONE }, | 1250 | AV_PIX_FMT_NONE }, |
| 1251 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, | 1251 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, |
| 1252 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1252 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1253 | .p.priv_class = &mpeg2_class, | 1253 | .p.priv_class = &mpeg2_class, |
| 1254 | }; | 1254 | }; |
| 1255 | #endif /* CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER */ | 1255 | #endif /* CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER */ |
| @@ -3676,8 +3676,7 @@ const FFCodec ff_mpeg4_decoder = { · 3675 unmodified lines | |||
| 3676 | AV_CODEC_CAP_TRUNCATED | | 3676 | AV_CODEC_CAP_TRUNCATED | |
| 3677 | #endif | 3677 | #endif |
| 3678 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_FRAME_THREADS, | 3678 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_FRAME_THREADS, |
| 3679 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 3679 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM | |
| 3680 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM | | ||
| 3681 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 3680 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 3682 | .flush = ff_mpeg_flush, | 3681 | .flush = ff_mpeg_flush, |
| 3683 | .p.max_lowres = 3, | 3682 | .p.max_lowres = 3, |
| @@ -1402,6 +1402,6 @@ const FFCodec ff_mpeg4_encoder = { · 1401 unmodified lines | |||
| 1402 | .close = ff_mpv_encode_end, | 1402 | .close = ff_mpv_encode_end, |
| 1403 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 1403 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 1404 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, | 1404 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_SLICE_THREADS, |
| 1405 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1405 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1406 | .p.priv_class = &mpeg4enc_class, | 1406 | .p.priv_class = &mpeg4enc_class, |
| 1407 | }; | 1407 | }; |
| @@ -75,7 +75,6 @@ const FFCodec ff_mp1_decoder = { · 74 unmodified lines | |||
| 75 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 75 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 76 | AV_SAMPLE_FMT_S16, | 76 | AV_SAMPLE_FMT_S16, |
| 77 | AV_SAMPLE_FMT_NONE }, | 77 | AV_SAMPLE_FMT_NONE }, |
| 78 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 79 | }; | 78 | }; |
| 80 | #endif | 79 | #endif |
| 81 | #if CONFIG_MP2_DECODER | 80 | #if CONFIG_MP2_DECODER |
| @@ -93,7 +92,6 @@ const FFCodec ff_mp2_decoder = { · 11 unmodified lines | |||
| 93 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 92 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 94 | AV_SAMPLE_FMT_S16, | 93 | AV_SAMPLE_FMT_S16, |
| 95 | AV_SAMPLE_FMT_NONE }, | 94 | AV_SAMPLE_FMT_NONE }, |
| 96 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 97 | }; | 95 | }; |
| 98 | #endif | 96 | #endif |
| 99 | #if CONFIG_MP3_DECODER | 97 | #if CONFIG_MP3_DECODER |
| @@ -111,7 +109,6 @@ const FFCodec ff_mp3_decoder = { · 11 unmodified lines | |||
| 111 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 109 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 112 | AV_SAMPLE_FMT_S16, | 110 | AV_SAMPLE_FMT_S16, |
| 113 | AV_SAMPLE_FMT_NONE }, | 111 | AV_SAMPLE_FMT_NONE }, |
| 114 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 115 | }; | 112 | }; |
| 116 | #endif | 113 | #endif |
| 117 | #if CONFIG_MP3ADU_DECODER | 114 | #if CONFIG_MP3ADU_DECODER |
| @@ -129,7 +126,6 @@ const FFCodec ff_mp3adu_decoder = { · 11 unmodified lines | |||
| 129 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 126 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 130 | AV_SAMPLE_FMT_S16, | 127 | AV_SAMPLE_FMT_S16, |
| 131 | AV_SAMPLE_FMT_NONE }, | 128 | AV_SAMPLE_FMT_NONE }, |
| 132 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 133 | }; | 129 | }; |
| 134 | #endif | 130 | #endif |
| 135 | #if CONFIG_MP3ON4_DECODER | 131 | #if CONFIG_MP3ON4_DECODER |
| @@ -147,6 +143,6 @@ const FFCodec ff_mp3on4_decoder = { · 11 unmodified lines | |||
| 147 | .flush = flush_mp3on4, | 143 | .flush = flush_mp3on4, |
| 148 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 144 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 149 | AV_SAMPLE_FMT_NONE }, | 145 | AV_SAMPLE_FMT_NONE }, |
| 150 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 146 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 151 | }; | 147 | }; |
| 152 | #endif | 148 | #endif |
| @@ -88,7 +88,6 @@ const FFCodec ff_mp1float_decoder = { · 87 unmodified lines | |||
| 88 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 88 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 89 | AV_SAMPLE_FMT_FLT, | 89 | AV_SAMPLE_FMT_FLT, |
| 90 | AV_SAMPLE_FMT_NONE }, | 90 | AV_SAMPLE_FMT_NONE }, |
| 91 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 92 | }; | 91 | }; |
| 93 | #endif | 92 | #endif |
| 94 | #if CONFIG_MP2FLOAT_DECODER | 93 | #if CONFIG_MP2FLOAT_DECODER |
| @@ -106,7 +105,6 @@ const FFCodec ff_mp2float_decoder = { · 11 unmodified lines | |||
| 106 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 105 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 107 | AV_SAMPLE_FMT_FLT, | 106 | AV_SAMPLE_FMT_FLT, |
| 108 | AV_SAMPLE_FMT_NONE }, | 107 | AV_SAMPLE_FMT_NONE }, |
| 109 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 110 | }; | 108 | }; |
| 111 | #endif | 109 | #endif |
| 112 | #if CONFIG_MP3FLOAT_DECODER | 110 | #if CONFIG_MP3FLOAT_DECODER |
| @@ -124,7 +122,6 @@ const FFCodec ff_mp3float_decoder = { · 11 unmodified lines | |||
| 124 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 122 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 125 | AV_SAMPLE_FMT_FLT, | 123 | AV_SAMPLE_FMT_FLT, |
| 126 | AV_SAMPLE_FMT_NONE }, | 124 | AV_SAMPLE_FMT_NONE }, |
| 127 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 128 | }; | 125 | }; |
| 129 | #endif | 126 | #endif |
| 130 | #if CONFIG_MP3ADUFLOAT_DECODER | 127 | #if CONFIG_MP3ADUFLOAT_DECODER |
| @@ -142,7 +139,6 @@ const FFCodec ff_mp3adufloat_decoder = { · 11 unmodified lines | |||
| 142 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 139 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 143 | AV_SAMPLE_FMT_FLT, | 140 | AV_SAMPLE_FMT_FLT, |
| 144 | AV_SAMPLE_FMT_NONE }, | 141 | AV_SAMPLE_FMT_NONE }, |
| 145 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 146 | }; | 142 | }; |
| 147 | #endif | 143 | #endif |
| 148 | #if CONFIG_MP3ON4FLOAT_DECODER | 144 | #if CONFIG_MP3ON4FLOAT_DECODER |
| @@ -160,6 +156,6 @@ const FFCodec ff_mp3on4float_decoder = { · 11 unmodified lines | |||
| 160 | .flush = flush_mp3on4, | 156 | .flush = flush_mp3on4, |
| 161 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 157 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 162 | AV_SAMPLE_FMT_NONE }, | 158 | AV_SAMPLE_FMT_NONE }, |
| 163 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 159 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 164 | }; | 160 | }; |
| 165 | #endif | 161 | #endif |
| @@ -45,5 +45,4 @@ const FFCodec ff_mp2fixed_encoder = { · 44 unmodified lines | |||
| 45 | AV_CHANNEL_LAYOUT_STEREO, | 45 | AV_CHANNEL_LAYOUT_STEREO, |
| 46 | { 0 } }, | 46 | { 0 } }, |
| 47 | .defaults = mp2_defaults, | 47 | .defaults = mp2_defaults, |
| 48 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 49 | }; | 48 | }; |
| @@ -46,5 +46,4 @@ const FFCodec ff_mp2_encoder = { · 45 unmodified lines | |||
| 46 | AV_CHANNEL_LAYOUT_STEREO, | 46 | AV_CHANNEL_LAYOUT_STEREO, |
| 47 | { 0 } }, | 47 | { 0 } }, |
| 48 | .defaults = mp2_defaults, | 48 | .defaults = mp2_defaults, |
| 49 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 50 | }; | 49 | }; |
| @@ -90,5 +90,4 @@ const FFCodec ff_mpl2_decoder = { · 89 unmodified lines | |||
| 90 | .init = ff_ass_subtitle_header_default, | 90 | .init = ff_ass_subtitle_header_default, |
| 91 | .flush = ff_ass_decoder_flush, | 91 | .flush = ff_ass_decoder_flush, |
| 92 | .priv_data_size = sizeof(FFASSDecoderContext), | 92 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 93 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 94 | }; | 93 | }; |
| @@ -261,7 +261,7 @@ const FFCodec ff_mscc_decoder = { · 260 unmodified lines | |||
| 261 | .close = decode_close, | 261 | .close = decode_close, |
| 262 | FF_CODEC_DECODE_CB(decode_frame), | 262 | FF_CODEC_DECODE_CB(decode_frame), |
| 263 | .p.capabilities = AV_CODEC_CAP_DR1, | 263 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 264 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 264 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 265 | }; | 265 | }; |
| 266 | 266 | ||
| 267 | const FFCodec ff_srgc_decoder = { | 267 | const FFCodec ff_srgc_decoder = { |
| @@ -274,5 +274,5 @@ const FFCodec ff_srgc_decoder = { · 6 unmodified lines | |||
| 274 | .close = decode_close, | 274 | .close = decode_close, |
| 275 | FF_CODEC_DECODE_CB(decode_frame), | 275 | FF_CODEC_DECODE_CB(decode_frame), |
| 276 | .p.capabilities = AV_CODEC_CAP_DR1, | 276 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 277 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 277 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 278 | }; | 278 | }; |
| @@ -874,8 +874,7 @@ const FFCodec ff_msmpeg4v1_decoder = { · 873 unmodified lines | |||
| 874 | .close = ff_h263_decode_end, | 874 | .close = ff_h263_decode_end, |
| 875 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 875 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 876 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 876 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 877 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 877 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 878 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 879 | .p.max_lowres = 3, | 878 | .p.max_lowres = 3, |
| 880 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 879 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 881 | AV_PIX_FMT_YUV420P, | 880 | AV_PIX_FMT_YUV420P, |
| @@ -893,8 +892,7 @@ const FFCodec ff_msmpeg4v2_decoder = { · 11 unmodified lines | |||
| 893 | .close = ff_h263_decode_end, | 892 | .close = ff_h263_decode_end, |
| 894 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 893 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 895 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 894 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 896 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 895 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 897 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 898 | .p.max_lowres = 3, | 896 | .p.max_lowres = 3, |
| 899 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 897 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 900 | AV_PIX_FMT_YUV420P, | 898 | AV_PIX_FMT_YUV420P, |
| @@ -912,8 +910,7 @@ const FFCodec ff_msmpeg4v3_decoder = { · 11 unmodified lines | |||
| 912 | .close = ff_h263_decode_end, | 910 | .close = ff_h263_decode_end, |
| 913 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 911 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 914 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 912 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 915 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 913 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 916 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 917 | .p.max_lowres = 3, | 914 | .p.max_lowres = 3, |
| 918 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 915 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 919 | AV_PIX_FMT_YUV420P, | 916 | AV_PIX_FMT_YUV420P, |
| @@ -931,8 +928,7 @@ const FFCodec ff_wmv1_decoder = { · 11 unmodified lines | |||
| 931 | .close = ff_h263_decode_end, | 928 | .close = ff_h263_decode_end, |
| 932 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 929 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 933 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 930 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 934 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 931 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, |
| 935 | FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM, | ||
| 936 | .p.max_lowres = 3, | 932 | .p.max_lowres = 3, |
| 937 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 933 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 938 | AV_PIX_FMT_YUV420P, | 934 | AV_PIX_FMT_YUV420P, |
| @@ -683,7 +683,7 @@ const FFCodec ff_msmpeg4v2_encoder = { · 682 unmodified lines | |||
| 683 | .p.id = AV_CODEC_ID_MSMPEG4V2, | 683 | .p.id = AV_CODEC_ID_MSMPEG4V2, |
| 684 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 684 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 685 | .p.priv_class = &ff_mpv_enc_class, | 685 | .p.priv_class = &ff_mpv_enc_class, |
| 686 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 686 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 687 | .priv_data_size = sizeof(MSMPEG4EncContext), | 687 | .priv_data_size = sizeof(MSMPEG4EncContext), |
| 688 | .init = ff_mpv_encode_init, | 688 | .init = ff_mpv_encode_init, |
| 689 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 689 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| @@ -697,7 +697,7 @@ const FFCodec ff_msmpeg4v3_encoder = { · 7 unmodified lines | |||
| 697 | .p.id = AV_CODEC_ID_MSMPEG4V3, | 697 | .p.id = AV_CODEC_ID_MSMPEG4V3, |
| 698 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 698 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 699 | .p.priv_class = &ff_mpv_enc_class, | 699 | .p.priv_class = &ff_mpv_enc_class, |
| 700 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 700 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 701 | .priv_data_size = sizeof(MSMPEG4EncContext), | 701 | .priv_data_size = sizeof(MSMPEG4EncContext), |
| 702 | .init = ff_mpv_encode_init, | 702 | .init = ff_mpv_encode_init, |
| 703 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 703 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| @@ -711,7 +711,7 @@ const FFCodec ff_wmv1_encoder = { · 7 unmodified lines | |||
| 711 | .p.id = AV_CODEC_ID_WMV1, | 711 | .p.id = AV_CODEC_ID_WMV1, |
| 712 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 712 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 713 | .p.priv_class = &ff_mpv_enc_class, | 713 | .p.priv_class = &ff_mpv_enc_class, |
| 714 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 714 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 715 | .priv_data_size = sizeof(MSMPEG4EncContext), | 715 | .priv_data_size = sizeof(MSMPEG4EncContext), |
| 716 | .init = ff_mpv_encode_init, | 716 | .init = ff_mpv_encode_init, |
| 717 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 717 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| @@ -170,5 +170,4 @@ const FFCodec ff_msrle_decoder = { · 169 unmodified lines | |||
| 170 | FF_CODEC_DECODE_CB(msrle_decode_frame), | 170 | FF_CODEC_DECODE_CB(msrle_decode_frame), |
| 171 | .flush = msrle_decode_flush, | 171 | .flush = msrle_decode_flush, |
| 172 | .p.capabilities = AV_CODEC_CAP_DR1, | 172 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 173 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 174 | }; | 173 | }; |
| @@ -229,5 +229,4 @@ const FFCodec ff_mss1_decoder = { · 228 unmodified lines | |||
| 229 | .close = mss1_decode_end, | 229 | .close = mss1_decode_end, |
| 230 | FF_CODEC_DECODE_CB(mss1_decode_frame), | 230 | FF_CODEC_DECODE_CB(mss1_decode_frame), |
| 231 | .p.capabilities = AV_CODEC_CAP_DR1, | 231 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 232 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 233 | }; | 232 | }; |
| @@ -854,5 +854,4 @@ const FFCodec ff_mss2_decoder = { · 853 unmodified lines | |||
| 854 | .close = mss2_decode_end, | 854 | .close = mss2_decode_end, |
| 855 | FF_CODEC_DECODE_CB(mss2_decode_frame), | 855 | FF_CODEC_DECODE_CB(mss2_decode_frame), |
| 856 | .p.capabilities = AV_CODEC_CAP_DR1, | 856 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 857 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 858 | }; | 857 | }; |
| @@ -870,5 +870,5 @@ const FFCodec ff_msa1_decoder = { · 869 unmodified lines | |||
| 870 | .close = mss3_decode_end, | 870 | .close = mss3_decode_end, |
| 871 | FF_CODEC_DECODE_CB(mss3_decode_frame), | 871 | FF_CODEC_DECODE_CB(mss3_decode_frame), |
| 872 | .p.capabilities = AV_CODEC_CAP_DR1, | 872 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 873 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 873 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 874 | }; | 874 | }; |
| @@ -615,5 +615,5 @@ const FFCodec ff_mts2_decoder = { · 614 unmodified lines | |||
| 615 | .close = mss4_decode_end, | 615 | .close = mss4_decode_end, |
| 616 | FF_CODEC_DECODE_CB(mss4_decode_frame), | 616 | FF_CODEC_DECODE_CB(mss4_decode_frame), |
| 617 | .p.capabilities = AV_CODEC_CAP_DR1, | 617 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 618 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 618 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 619 | }; | 619 | }; |
| @@ -351,5 +351,4 @@ const FFCodec ff_msvideo1_decoder = { · 350 unmodified lines | |||
| 351 | .close = msvideo1_decode_end, | 351 | .close = msvideo1_decode_end, |
| 352 | FF_CODEC_DECODE_CB(msvideo1_decode_frame), | 352 | FF_CODEC_DECODE_CB(msvideo1_decode_frame), |
| 353 | .p.capabilities = AV_CODEC_CAP_DR1, | 353 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 354 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 355 | }; | 354 | }; |
| @@ -312,5 +312,4 @@ const FFCodec ff_msvideo1_encoder = { · 311 unmodified lines | |||
| 312 | FF_CODEC_ENCODE_CB(encode_frame), | 312 | FF_CODEC_ENCODE_CB(encode_frame), |
| 313 | .close = encode_end, | 313 | .close = encode_end, |
| 314 | .p.pix_fmts = (const enum AVPixelFormat[]){AV_PIX_FMT_RGB555, AV_PIX_FMT_NONE}, | 314 | .p.pix_fmts = (const enum AVPixelFormat[]){AV_PIX_FMT_RGB555, AV_PIX_FMT_NONE}, |
| 315 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 316 | }; | 315 | }; |
| @@ -713,6 +713,5 @@ const FFCodec ff_mv30_decoder = { · 712 unmodified lines | |||
| 713 | FF_CODEC_DECODE_CB(decode_frame), | 713 | FF_CODEC_DECODE_CB(decode_frame), |
| 714 | .flush = decode_flush, | 714 | .flush = decode_flush, |
| 715 | .p.capabilities = AV_CODEC_CAP_DR1, | 715 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 716 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 716 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 717 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 718 | }; | 717 | }; |
| @@ -264,7 +264,6 @@ const FFCodec ff_mvc1_decoder = { · 263 unmodified lines | |||
| 264 | .init = mvc_decode_init, | 264 | .init = mvc_decode_init, |
| 265 | FF_CODEC_DECODE_CB(mvc_decode_frame), | 265 | FF_CODEC_DECODE_CB(mvc_decode_frame), |
| 266 | .p.capabilities = AV_CODEC_CAP_DR1, | 266 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 267 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 268 | }; | 267 | }; |
| 269 | #endif | 268 | #endif |
| 270 | 269 | ||
| @@ -278,6 +277,5 @@ const FFCodec ff_mvc2_decoder = { · 7 unmodified lines | |||
| 278 | .init = mvc_decode_init, | 277 | .init = mvc_decode_init, |
| 279 | FF_CODEC_DECODE_CB(mvc_decode_frame), | 278 | FF_CODEC_DECODE_CB(mvc_decode_frame), |
| 280 | .p.capabilities = AV_CODEC_CAP_DR1, | 279 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 281 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 282 | }; | 280 | }; |
| 283 | #endif | 281 | #endif |
| @@ -308,6 +308,5 @@ const FFCodec ff_mvha_decoder = { · 307 unmodified lines | |||
| 308 | .close = decode_close, | 308 | .close = decode_close, |
| 309 | FF_CODEC_DECODE_CB(decode_frame), | 309 | FF_CODEC_DECODE_CB(decode_frame), |
| 310 | .p.capabilities = AV_CODEC_CAP_DR1, | 310 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 311 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 311 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 312 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 313 | }; | 312 | }; |
| @@ -178,6 +178,5 @@ const FFCodec ff_mwsc_decoder = { · 177 unmodified lines | |||
| 178 | .close = decode_close, | 178 | .close = decode_close, |
| 179 | FF_CODEC_DECODE_CB(decode_frame), | 179 | FF_CODEC_DECODE_CB(decode_frame), |
| 180 | .p.capabilities = AV_CODEC_CAP_DR1, | 180 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 181 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 181 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 182 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 183 | }; | 182 | }; |
| @@ -353,5 +353,5 @@ const FFCodec ff_mxpeg_decoder = { · 352 unmodified lines | |||
| 353 | FF_CODEC_DECODE_CB(mxpeg_decode_frame), | 353 | FF_CODEC_DECODE_CB(mxpeg_decode_frame), |
| 354 | .p.capabilities = AV_CODEC_CAP_DR1, | 354 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 355 | .p.max_lowres = 3, | 355 | .p.max_lowres = 3, |
| 356 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 356 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 357 | }; | 357 | }; |
| @@ -198,5 +198,4 @@ const FFCodec ff_nellymoser_decoder = { · 197 unmodified lines | |||
| 198 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_PARAM_CHANGE | AV_CODEC_CAP_CHANNEL_CONF, | 198 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_PARAM_CHANGE | AV_CODEC_CAP_CHANNEL_CONF, |
| 199 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, | 199 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLT, |
| 200 | AV_SAMPLE_FMT_NONE }, | 200 | AV_SAMPLE_FMT_NONE }, |
| 201 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 202 | }; | 201 | }; |
| @@ -427,5 +427,5 @@ const FFCodec ff_nellymoser_encoder = { · 426 unmodified lines | |||
| 427 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, | 427 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLT, |
| 428 | AV_SAMPLE_FMT_NONE }, | 428 | AV_SAMPLE_FMT_NONE }, |
| 429 | .p.ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, { 0 } }, | 429 | .p.ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, { 0 } }, |
| 430 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 430 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 431 | }; | 431 | }; |
| @@ -545,5 +545,4 @@ const FFCodec ff_notchlc_decoder = { · 544 unmodified lines | |||
| 545 | .close = decode_end, | 545 | .close = decode_end, |
| 546 | FF_CODEC_DECODE_CB(decode_frame), | 546 | FF_CODEC_DECODE_CB(decode_frame), |
| 547 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 547 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 548 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 549 | }; | 548 | }; |
| @@ -372,5 +372,5 @@ const FFCodec ff_nuv_decoder = { · 371 unmodified lines | |||
| 372 | .close = decode_end, | 372 | .close = decode_end, |
| 373 | FF_CODEC_DECODE_CB(decode_frame), | 373 | FF_CODEC_DECODE_CB(decode_frame), |
| 374 | .p.capabilities = AV_CODEC_CAP_DR1, | 374 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 375 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 375 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 376 | }; | 376 | }; |
| @@ -947,7 +947,7 @@ const FFCodec ff_mpeg4_omx_encoder = { · 946 unmodified lines | |||
| 947 | .close = omx_encode_end, | 947 | .close = omx_encode_end, |
| 948 | .p.pix_fmts = omx_encoder_pix_fmts, | 948 | .p.pix_fmts = omx_encoder_pix_fmts, |
| 949 | .p.capabilities = AV_CODEC_CAP_DELAY, | 949 | .p.capabilities = AV_CODEC_CAP_DELAY, |
| 950 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 950 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 951 | .p.priv_class = &omx_mpeg4enc_class, | 951 | .p.priv_class = &omx_mpeg4enc_class, |
| 952 | }; | 952 | }; |
| 953 | 953 | ||
| @@ -968,6 +968,6 @@ const FFCodec ff_h264_omx_encoder = { · 14 unmodified lines | |||
| 968 | .close = omx_encode_end, | 968 | .close = omx_encode_end, |
| 969 | .p.pix_fmts = omx_encoder_pix_fmts, | 969 | .p.pix_fmts = omx_encoder_pix_fmts, |
| 970 | .p.capabilities = AV_CODEC_CAP_DELAY, | 970 | .p.capabilities = AV_CODEC_CAP_DELAY, |
| 971 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 971 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 972 | .p.priv_class = &omx_h264enc_class, | 972 | .p.priv_class = &omx_h264enc_class, |
| 973 | }; | 973 | }; |
| @@ -1014,7 +1014,7 @@ const FFCodec ff_on2avc_decoder = { · 1013 unmodified lines | |||
| 1014 | FF_CODEC_DECODE_CB(on2avc_decode_frame), | 1014 | FF_CODEC_DECODE_CB(on2avc_decode_frame), |
| 1015 | .close = on2avc_decode_close, | 1015 | .close = on2avc_decode_close, |
| 1016 | .p.capabilities = AV_CODEC_CAP_DR1, | 1016 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1017 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1017 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1018 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1018 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1019 | AV_SAMPLE_FMT_NONE }, | 1019 | AV_SAMPLE_FMT_NONE }, |
| 1020 | }; | 1020 | }; |
| @@ -716,5 +716,5 @@ const FFCodec ff_opus_decoder = { · 715 unmodified lines | |||
| 716 | FF_CODEC_DECODE_CB(opus_decode_packet), | 716 | FF_CODEC_DECODE_CB(opus_decode_packet), |
| 717 | .flush = opus_decode_flush, | 717 | .flush = opus_decode_flush, |
| 718 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF, | 718 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY | AV_CODEC_CAP_CHANNEL_CONF, |
| 719 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 719 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 720 | }; | 720 | }; |
| @@ -736,7 +736,7 @@ const FFCodec ff_opus_encoder = { · 735 unmodified lines | |||
| 736 | .init = opus_encode_init, | 736 | .init = opus_encode_init, |
| 737 | FF_CODEC_ENCODE_CB(opus_encode_frame), | 737 | FF_CODEC_ENCODE_CB(opus_encode_frame), |
| 738 | .close = opus_encode_end, | 738 | .close = opus_encode_end, |
| 739 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 739 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 740 | .p.capabilities = AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_SMALL_LAST_FRAME | AV_CODEC_CAP_DELAY, | 740 | .p.capabilities = AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_SMALL_LAST_FRAME | AV_CODEC_CAP_DELAY, |
| 741 | .p.supported_samplerates = (const int []){ 48000, 0 }, | 741 | .p.supported_samplerates = (const int []){ 48000, 0 }, |
| 742 | #if FF_API_OLD_CHANNEL_LAYOUT | 742 | #if FF_API_OLD_CHANNEL_LAYOUT |
| @@ -81,5 +81,4 @@ const FFCodec ff_paf_audio_decoder = { · 80 unmodified lines | |||
| 81 | .init = paf_audio_init, | 81 | .init = paf_audio_init, |
| 82 | FF_CODEC_DECODE_CB(paf_audio_decode), | 82 | FF_CODEC_DECODE_CB(paf_audio_decode), |
| 83 | .p.capabilities = AV_CODEC_CAP_DR1, | 83 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 84 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 85 | }; | 84 | }; |
| @@ -418,5 +418,5 @@ const FFCodec ff_paf_video_decoder = { · 417 unmodified lines | |||
| 418 | .close = paf_video_close, | 418 | .close = paf_video_close, |
| 419 | FF_CODEC_DECODE_CB(paf_video_decode), | 419 | FF_CODEC_DECODE_CB(paf_video_decode), |
| 420 | .p.capabilities = AV_CODEC_CAP_DR1, | 420 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 421 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 421 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 422 | }; | 422 | }; |
| @@ -141,5 +141,4 @@ const FFCodec ff_pam_encoder = { · 140 unmodified lines | |||
| 141 | AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_YA16BE, | 141 | AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_YA16BE, |
| 142 | AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE | 142 | AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE |
| 143 | }, | 143 | }, |
| 144 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 145 | }; | 144 | }; |
| @@ -310,6 +310,5 @@ const FFCodec ff_pcm_bluray_encoder = { · 309 unmodified lines | |||
| 310 | { 0 } }, | 310 | { 0 } }, |
| 311 | .p.sample_fmts = (const enum AVSampleFormat[]) { | 311 | .p.sample_fmts = (const enum AVSampleFormat[]) { |
| 312 | AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE }, | 312 | AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE }, |
| 313 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 314 | .p.capabilities = AV_CODEC_CAP_DR1, | 313 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 315 | }; | 314 | }; |
| @@ -308,5 +308,4 @@ const FFCodec ff_pcm_dvd_decoder = { · 307 unmodified lines | |||
| 308 | .p.sample_fmts = (const enum AVSampleFormat[]) { | 308 | .p.sample_fmts = (const enum AVSampleFormat[]) { |
| 309 | AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE | 309 | AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_NONE |
| 310 | }, | 310 | }, |
| 311 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 312 | }; | 311 | }; |
| @@ -199,5 +199,4 @@ const FFCodec ff_pcm_dvd_encoder = { · 198 unmodified lines | |||
| 199 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, | 199 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
| 200 | AV_SAMPLE_FMT_S32, | 200 | AV_SAMPLE_FMT_S32, |
| 201 | AV_SAMPLE_FMT_NONE }, | 201 | AV_SAMPLE_FMT_NONE }, |
| 202 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 203 | }; | 202 | }; |
| @@ -564,7 +564,6 @@ const FFCodec ff_ ## name_ ## _encoder = { \ · 563 unmodified lines | |||
| 564 | FF_CODEC_ENCODE_CB(pcm_encode_frame), \ | 564 | FF_CODEC_ENCODE_CB(pcm_encode_frame), \ |
| 565 | .p.sample_fmts = (const enum AVSampleFormat[]){ sample_fmt_, \ | 565 | .p.sample_fmts = (const enum AVSampleFormat[]){ sample_fmt_, \ |
| 566 | AV_SAMPLE_FMT_NONE }, \ | 566 | AV_SAMPLE_FMT_NONE }, \ |
| 567 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ | ||
| 568 | } | 567 | } |
| 569 | 568 | ||
| 570 | #define PCM_ENCODER_2(cf, id, sample_fmt, name, long_name) \ | 569 | #define PCM_ENCODER_2(cf, id, sample_fmt, name, long_name) \ |
| @@ -587,7 +586,6 @@ const FFCodec ff_ ## name_ ## _decoder = { \ · 16 unmodified lines | |||
| 587 | .p.capabilities = AV_CODEC_CAP_DR1, \ | 586 | .p.capabilities = AV_CODEC_CAP_DR1, \ |
| 588 | .p.sample_fmts = (const enum AVSampleFormat[]){ sample_fmt_, \ | 587 | .p.sample_fmts = (const enum AVSampleFormat[]){ sample_fmt_, \ |
| 589 | AV_SAMPLE_FMT_NONE }, \ | 588 | AV_SAMPLE_FMT_NONE }, \ |
| 590 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, \ | ||
| 591 | } | 589 | } |
| 592 | 590 | ||
| 593 | #define PCM_DECODER_2(cf, id, sample_fmt, name, long_name) \ | 591 | #define PCM_DECODER_2(cf, id, sample_fmt, name, long_name) \ |
| @@ -205,5 +205,4 @@ const FFCodec ff_pcx_encoder = { · 204 unmodified lines | |||
| 205 | AV_PIX_FMT_MONOBLACK, | 205 | AV_PIX_FMT_MONOBLACK, |
| 206 | AV_PIX_FMT_NONE | 206 | AV_PIX_FMT_NONE |
| 207 | }, | 207 | }, |
| 208 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 209 | }; | 208 | }; |
| @@ -700,5 +700,4 @@ const FFCodec ff_pgssub_decoder = { · 699 unmodified lines | |||
| 700 | .close = close_decoder, | 700 | .close = close_decoder, |
| 701 | FF_CODEC_DECODE_SUB_CB(decode), | 701 | FF_CODEC_DECODE_SUB_CB(decode), |
| 702 | .p.priv_class = &pgsdec_class, | 702 | .p.priv_class = &pgsdec_class, |
| 703 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 704 | }; | 703 | }; |
| @@ -467,5 +467,4 @@ const FFCodec ff_photocd_decoder = { · 466 unmodified lines | |||
| 467 | FF_CODEC_DECODE_CB(photocd_decode_frame), | 467 | FF_CODEC_DECODE_CB(photocd_decode_frame), |
| 468 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 468 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 469 | .p.long_name = NULL_IF_CONFIG_SMALL("Kodak Photo CD"), | 469 | .p.long_name = NULL_IF_CONFIG_SMALL("Kodak Photo CD"), |
| 470 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 471 | }; | 470 | }; |
| @@ -703,6 +703,5 @@ const FFCodec ff_pixlet_decoder = { · 702 unmodified lines | |||
| 703 | .priv_data_size = sizeof(PixletContext), | 703 | .priv_data_size = sizeof(PixletContext), |
| 704 | .p.capabilities = AV_CODEC_CAP_DR1 | | 704 | .p.capabilities = AV_CODEC_CAP_DR1 | |
| 705 | AV_CODEC_CAP_FRAME_THREADS, | 705 | AV_CODEC_CAP_FRAME_THREADS, |
| 706 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 706 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 707 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 708 | }; | 707 | }; |
| @@ -1726,7 +1726,7 @@ const FFCodec ff_apng_decoder = { · 1725 unmodified lines | |||
| 1726 | FF_CODEC_DECODE_CB(decode_frame_apng), | 1726 | FF_CODEC_DECODE_CB(decode_frame_apng), |
| 1727 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), | 1727 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), |
| 1728 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, | 1728 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, |
| 1729 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 1729 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 1730 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 1730 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 1731 | }; | 1731 | }; |
| 1732 | #endif | 1732 | #endif |
| @@ -1743,7 +1743,7 @@ const FFCodec ff_png_decoder = { · 10 unmodified lines | |||
| 1743 | FF_CODEC_DECODE_CB(decode_frame_png), | 1743 | FF_CODEC_DECODE_CB(decode_frame_png), |
| 1744 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), | 1744 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), |
| 1745 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, | 1745 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, |
| 1746 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM | FF_CODEC_CAP_INIT_THREADSAFE | | 1746 | .caps_internal = FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM | |
| 1747 | FF_CODEC_CAP_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, | 1747 | FF_CODEC_CAP_ALLOCATE_PROGRESS | FF_CODEC_CAP_INIT_CLEANUP, |
| 1748 | }; | 1748 | }; |
| 1749 | #endif | 1749 | #endif |
| @@ -1210,7 +1210,6 @@ const FFCodec ff_png_encoder = { · 1209 unmodified lines | |||
| 1210 | AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE | 1210 | AV_PIX_FMT_MONOBLACK, AV_PIX_FMT_NONE |
| 1211 | }, | 1211 | }, |
| 1212 | .p.priv_class = &pngenc_class, | 1212 | .p.priv_class = &pngenc_class, |
| 1213 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1214 | }; | 1213 | }; |
| 1215 | 1214 | ||
| 1216 | const FFCodec ff_apng_encoder = { | 1215 | const FFCodec ff_apng_encoder = { |
| @@ -1232,5 +1231,4 @@ const FFCodec ff_apng_encoder = { · 15 unmodified lines | |||
| 1232 | AV_PIX_FMT_NONE | 1231 | AV_PIX_FMT_NONE |
| 1233 | }, | 1232 | }, |
| 1234 | .p.priv_class = &pngenc_class, | 1233 | .p.priv_class = &pngenc_class, |
| 1235 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1236 | }; | 1234 | }; |
| @@ -513,6 +513,5 @@ const FFCodec ff_phm_decoder = { · 512 unmodified lines | |||
| 513 | .priv_data_size = sizeof(PNMContext), | 513 | .priv_data_size = sizeof(PNMContext), |
| 514 | .init = phm_dec_init, | 514 | .init = phm_dec_init, |
| 515 | FF_CODEC_DECODE_CB(pnm_decode_frame), | 515 | FF_CODEC_DECODE_CB(pnm_decode_frame), |
| 516 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 517 | }; | 516 | }; |
| 518 | #endif | 517 | #endif |
| @@ -232,7 +232,6 @@ const FFCodec ff_pgm_encoder = { · 231 unmodified lines | |||
| 232 | .p.pix_fmts = (const enum AVPixelFormat[]){ | 232 | .p.pix_fmts = (const enum AVPixelFormat[]){ |
| 233 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_NONE | 233 | AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_NONE |
| 234 | }, | 234 | }, |
| 235 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 236 | }; | 235 | }; |
| 237 | #endif | 236 | #endif |
| 238 | 237 | ||
| @@ -247,7 +246,6 @@ const FFCodec ff_pgmyuv_encoder = { · 8 unmodified lines | |||
| 247 | .p.pix_fmts = (const enum AVPixelFormat[]){ | 246 | .p.pix_fmts = (const enum AVPixelFormat[]){ |
| 248 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV420P16BE, AV_PIX_FMT_NONE | 247 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV420P16BE, AV_PIX_FMT_NONE |
| 249 | }, | 248 | }, |
| 250 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 251 | }; | 249 | }; |
| 252 | #endif | 250 | #endif |
| 253 | 251 | ||
| @@ -262,7 +260,6 @@ const FFCodec ff_ppm_encoder = { · 8 unmodified lines | |||
| 262 | .p.pix_fmts = (const enum AVPixelFormat[]){ | 260 | .p.pix_fmts = (const enum AVPixelFormat[]){ |
| 263 | AV_PIX_FMT_RGB24, AV_PIX_FMT_RGB48BE, AV_PIX_FMT_NONE | 261 | AV_PIX_FMT_RGB24, AV_PIX_FMT_RGB48BE, AV_PIX_FMT_NONE |
| 264 | }, | 262 | }, |
| 265 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 266 | }; | 263 | }; |
| 267 | #endif | 264 | #endif |
| 268 | 265 | ||
| @@ -276,7 +273,6 @@ const FFCodec ff_pbm_encoder = { · 7 unmodified lines | |||
| 276 | FF_CODEC_ENCODE_CB(pnm_encode_frame), | 273 | FF_CODEC_ENCODE_CB(pnm_encode_frame), |
| 277 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_MONOWHITE, | 274 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_MONOWHITE, |
| 278 | AV_PIX_FMT_NONE }, | 275 | AV_PIX_FMT_NONE }, |
| 279 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 280 | }; | 276 | }; |
| 281 | #endif | 277 | #endif |
| 282 | 278 | ||
| @@ -293,7 +289,6 @@ const FFCodec ff_pfm_encoder = { · 10 unmodified lines | |||
| 293 | AV_PIX_FMT_GBRPF32BE, | 289 | AV_PIX_FMT_GBRPF32BE, |
| 294 | AV_PIX_FMT_GRAYF32BE, | 290 | AV_PIX_FMT_GRAYF32BE, |
| 295 | AV_PIX_FMT_NONE }, | 291 | AV_PIX_FMT_NONE }, |
| 296 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 297 | }; | 292 | }; |
| 298 | #endif | 293 | #endif |
| 299 | 294 | ||
| @@ -319,6 +314,5 @@ const FFCodec ff_phm_encoder = { · 19 unmodified lines | |||
| 319 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_GBRPF32, | 314 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_GBRPF32, |
| 320 | AV_PIX_FMT_GRAYF32, | 315 | AV_PIX_FMT_GRAYF32, |
| 321 | AV_PIX_FMT_NONE }, | 316 | AV_PIX_FMT_NONE }, |
| 322 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 323 | }; | 317 | }; |
| 324 | #endif | 318 | #endif |
| @@ -882,7 +882,6 @@ const FFCodec ff_prores_decoder = { · 881 unmodified lines | |||
| 882 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), | 882 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), |
| 883 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS, | 883 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_FRAME_THREADS, |
| 884 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), | 884 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
| 885 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 886 | .hw_configs = (const AVCodecHWConfigInternal *const []) { | 885 | .hw_configs = (const AVCodecHWConfigInternal *const []) { |
| 887 | #if CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL | 886 | #if CONFIG_PRORES_VIDEOTOOLBOX_HWACCEL |
| 888 | HWACCEL_VIDEOTOOLBOX(prores), | 887 | HWACCEL_VIDEOTOOLBOX(prores), |
| @@ -953,7 +953,7 @@ const FFCodec ff_prores_aw_encoder = { · 952 unmodified lines | |||
| 953 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS, | 953 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
| 954 | .p.priv_class = &prores_enc_class, | 954 | .p.priv_class = &prores_enc_class, |
| 955 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), | 955 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
| 956 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 956 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 957 | }; | 957 | }; |
| 958 | 958 | ||
| 959 | const FFCodec ff_prores_encoder = { | 959 | const FFCodec ff_prores_encoder = { |
| @@ -969,5 +969,5 @@ const FFCodec ff_prores_encoder = { · 9 unmodified lines | |||
| 969 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS, | 969 | .p.capabilities = AV_CODEC_CAP_FRAME_THREADS, |
| 970 | .p.priv_class = &prores_enc_class, | 970 | .p.priv_class = &prores_enc_class, |
| 971 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), | 971 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
| 972 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 972 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 973 | }; | 973 | }; |
| @@ -1409,5 +1409,5 @@ const FFCodec ff_prores_ks_encoder = { · 1408 unmodified lines | |||
| 1409 | }, | 1409 | }, |
| 1410 | .p.priv_class = &proresenc_class, | 1410 | .p.priv_class = &proresenc_class, |
| 1411 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), | 1411 | .p.profiles = NULL_IF_CONFIG_SMALL(ff_prores_profiles), |
| 1412 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1412 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1413 | }; | 1413 | }; |
| @@ -375,6 +375,5 @@ const FFCodec ff_prosumer_decoder = { · 374 unmodified lines | |||
| 375 | FF_CODEC_DECODE_CB(decode_frame), | 375 | FF_CODEC_DECODE_CB(decode_frame), |
| 376 | .close = decode_close, | 376 | .close = decode_close, |
| 377 | .p.capabilities = AV_CODEC_CAP_DR1, | 377 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 378 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 378 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 379 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 380 | }; | 379 | }; |
| @@ -799,5 +799,4 @@ const FFCodec ff_qcelp_decoder = { · 798 unmodified lines | |||
| 799 | FF_CODEC_DECODE_CB(qcelp_decode_frame), | 799 | FF_CODEC_DECODE_CB(qcelp_decode_frame), |
| 800 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 800 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 801 | .priv_data_size = sizeof(QCELPContext), | 801 | .priv_data_size = sizeof(QCELPContext), |
| 802 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 803 | }; | 802 | }; |
| @@ -1879,5 +1879,4 @@ const FFCodec ff_qdm2_decoder = { · 1878 unmodified lines | |||
| 1879 | .close = qdm2_decode_close, | 1879 | .close = qdm2_decode_close, |
| 1880 | FF_CODEC_DECODE_CB(qdm2_decode_frame), | 1880 | FF_CODEC_DECODE_CB(qdm2_decode_frame), |
| 1881 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1881 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1882 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1883 | }; | 1882 | }; |
| @@ -739,5 +739,4 @@ const FFCodec ff_qdmc_decoder = { · 738 unmodified lines | |||
| 739 | FF_CODEC_DECODE_CB(qdmc_decode_frame), | 739 | FF_CODEC_DECODE_CB(qdmc_decode_frame), |
| 740 | .flush = qdmc_flush, | 740 | .flush = qdmc_flush, |
| 741 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 741 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 742 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 743 | }; | 742 | }; |
| @@ -136,5 +136,4 @@ const FFCodec ff_qoi_encoder = { · 135 unmodified lines | |||
| 136 | AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB24, | 136 | AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB24, |
| 137 | AV_PIX_FMT_NONE | 137 | AV_PIX_FMT_NONE |
| 138 | }, | 138 | }, |
| 139 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 140 | }; | 139 | }; |
| @@ -362,6 +362,5 @@ const FFCodec ff_qpeg_decoder = { · 361 unmodified lines | |||
| 362 | FF_CODEC_DECODE_CB(decode_frame), | 362 | FF_CODEC_DECODE_CB(decode_frame), |
| 363 | .flush = decode_flush, | 363 | .flush = decode_flush, |
| 364 | .p.capabilities = AV_CODEC_CAP_DR1, | 364 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 365 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 365 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 366 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 367 | }; | 366 | }; |
| @@ -592,5 +592,4 @@ const FFCodec ff_qtrle_decoder = { · 591 unmodified lines | |||
| 592 | FF_CODEC_DECODE_CB(qtrle_decode_frame), | 592 | FF_CODEC_DECODE_CB(qtrle_decode_frame), |
| 593 | .flush = qtrle_decode_flush, | 593 | .flush = qtrle_decode_flush, |
| 594 | .p.capabilities = AV_CODEC_CAP_DR1, | 594 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 595 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 596 | }; | 595 | }; |
| @@ -411,5 +411,5 @@ const FFCodec ff_qtrle_encoder = { · 410 unmodified lines | |||
| 411 | .p.pix_fmts = (const enum AVPixelFormat[]){ | 411 | .p.pix_fmts = (const enum AVPixelFormat[]){ |
| 412 | AV_PIX_FMT_RGB24, AV_PIX_FMT_RGB555BE, AV_PIX_FMT_ARGB, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE | 412 | AV_PIX_FMT_RGB24, AV_PIX_FMT_RGB555BE, AV_PIX_FMT_ARGB, AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE |
| 413 | }, | 413 | }, |
| 414 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 414 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 415 | }; | 415 | }; |
| @@ -111,7 +111,6 @@ const FFCodec ff_r210_decoder = { · 110 unmodified lines | |||
| 111 | .init = decode_init, | 111 | .init = decode_init, |
| 112 | FF_CODEC_DECODE_CB(decode_frame), | 112 | FF_CODEC_DECODE_CB(decode_frame), |
| 113 | .p.capabilities = AV_CODEC_CAP_DR1, | 113 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 114 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 115 | }; | 114 | }; |
| 116 | #endif | 115 | #endif |
| 117 | #if CONFIG_R10K_DECODER | 116 | #if CONFIG_R10K_DECODER |
| @@ -123,7 +122,6 @@ const FFCodec ff_r10k_decoder = { · 5 unmodified lines | |||
| 123 | .init = decode_init, | 122 | .init = decode_init, |
| 124 | FF_CODEC_DECODE_CB(decode_frame), | 123 | FF_CODEC_DECODE_CB(decode_frame), |
| 125 | .p.capabilities = AV_CODEC_CAP_DR1, | 124 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 126 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 127 | }; | 125 | }; |
| 128 | #endif | 126 | #endif |
| 129 | #if CONFIG_AVRP_DECODER | 127 | #if CONFIG_AVRP_DECODER |
| @@ -135,6 +133,5 @@ const FFCodec ff_avrp_decoder = { · 5 unmodified lines | |||
| 135 | .init = decode_init, | 133 | .init = decode_init, |
| 136 | FF_CODEC_DECODE_CB(decode_frame), | 134 | FF_CODEC_DECODE_CB(decode_frame), |
| 137 | .p.capabilities = AV_CODEC_CAP_DR1, | 135 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 138 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 139 | }; | 136 | }; |
| 140 | #endif | 137 | #endif |
| @@ -100,7 +100,6 @@ const FFCodec ff_r210_encoder = { · 99 unmodified lines | |||
| 100 | .init = encode_init, | 100 | .init = encode_init, |
| 101 | FF_CODEC_ENCODE_CB(encode_frame), | 101 | FF_CODEC_ENCODE_CB(encode_frame), |
| 102 | .p.pix_fmts = pix_fmt, | 102 | .p.pix_fmts = pix_fmt, |
| 103 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 104 | }; | 103 | }; |
| 105 | #endif | 104 | #endif |
| 106 | #if CONFIG_R10K_ENCODER | 105 | #if CONFIG_R10K_ENCODER |
| @@ -113,7 +112,6 @@ const FFCodec ff_r10k_encoder = { · 6 unmodified lines | |||
| 113 | .init = encode_init, | 112 | .init = encode_init, |
| 114 | FF_CODEC_ENCODE_CB(encode_frame), | 113 | FF_CODEC_ENCODE_CB(encode_frame), |
| 115 | .p.pix_fmts = pix_fmt, | 114 | .p.pix_fmts = pix_fmt, |
| 116 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 117 | }; | 115 | }; |
| 118 | #endif | 116 | #endif |
| 119 | #if CONFIG_AVRP_ENCODER | 117 | #if CONFIG_AVRP_ENCODER |
| @@ -126,6 +124,5 @@ const FFCodec ff_avrp_encoder = { · 6 unmodified lines | |||
| 126 | .init = encode_init, | 124 | .init = encode_init, |
| 127 | FF_CODEC_ENCODE_CB(encode_frame), | 125 | FF_CODEC_ENCODE_CB(encode_frame), |
| 128 | .p.pix_fmts = pix_fmt, | 126 | .p.pix_fmts = pix_fmt, |
| 129 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 130 | }; | 127 | }; |
| 131 | #endif | 128 | #endif |
| @@ -135,5 +135,4 @@ const FFCodec ff_ra_144_decoder = { · 134 unmodified lines | |||
| 135 | .init = ra144_decode_init, | 135 | .init = ra144_decode_init, |
| 136 | FF_CODEC_DECODE_CB(ra144_decode_frame), | 136 | FF_CODEC_DECODE_CB(ra144_decode_frame), |
| 137 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 137 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 138 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 139 | }; | 138 | }; |
| @@ -553,5 +553,4 @@ const FFCodec ff_ra_144_encoder = { · 552 unmodified lines | |||
| 553 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 }, | 553 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, 0 }, |
| 554 | #endif | 554 | #endif |
| 555 | .p.ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, { 0 } }, | 555 | .p.ch_layouts = (const AVChannelLayout[]){ AV_CHANNEL_LAYOUT_MONO, { 0 } }, |
| 556 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 557 | }; | 556 | }; |
| @@ -246,5 +246,4 @@ const FFCodec ff_ra_288_decoder = { · 245 unmodified lines | |||
| 246 | .init = ra288_decode_init, | 246 | .init = ra288_decode_init, |
| 247 | FF_CODEC_DECODE_CB(ra288_decode_frame), | 247 | FF_CODEC_DECODE_CB(ra288_decode_frame), |
| 248 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 248 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 249 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 250 | }; | 249 | }; |
| @@ -527,5 +527,5 @@ const FFCodec ff_ralf_decoder = { · 526 unmodified lines | |||
| 527 | AV_CODEC_CAP_DR1, | 527 | AV_CODEC_CAP_DR1, |
| 528 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 528 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 529 | AV_SAMPLE_FMT_NONE }, | 529 | AV_SAMPLE_FMT_NONE }, |
| 530 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 530 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 531 | }; | 531 | }; |
| @@ -808,7 +808,6 @@ const FFCodec ff_rasc_decoder = { · 807 unmodified lines | |||
| 808 | FF_CODEC_DECODE_CB(decode_frame), | 808 | FF_CODEC_DECODE_CB(decode_frame), |
| 809 | .flush = decode_flush, | 809 | .flush = decode_flush, |
| 810 | .p.capabilities = AV_CODEC_CAP_DR1, | 810 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 811 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 811 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 812 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 813 | .p.priv_class = &rasc_decoder_class, | 812 | .p.priv_class = &rasc_decoder_class, |
| 814 | }; | 813 | }; |
| @@ -491,5 +491,4 @@ const FFCodec ff_rawvideo_decoder = { · 490 unmodified lines | |||
| 491 | FF_CODEC_DECODE_CB(raw_decode), | 491 | FF_CODEC_DECODE_CB(raw_decode), |
| 492 | .p.priv_class = &rawdec_class, | 492 | .p.priv_class = &rawdec_class, |
| 493 | .p.capabilities = AV_CODEC_CAP_PARAM_CHANGE, | 493 | .p.capabilities = AV_CODEC_CAP_PARAM_CHANGE, |
| 494 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 495 | }; | 494 | }; |
| @@ -89,5 +89,4 @@ const FFCodec ff_rawvideo_encoder = { · 88 unmodified lines | |||
| 89 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 89 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 90 | .init = raw_encode_init, | 90 | .init = raw_encode_init, |
| 91 | FF_CODEC_ENCODE_CB(raw_encode), | 91 | FF_CODEC_ENCODE_CB(raw_encode), |
| 92 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 93 | }; | 92 | }; |
| @@ -83,5 +83,4 @@ const FFCodec ff_realtext_decoder = { · 82 unmodified lines | |||
| 83 | .init = ff_ass_subtitle_header_default, | 83 | .init = ff_ass_subtitle_header_default, |
| 84 | .flush = ff_ass_decoder_flush, | 84 | .flush = ff_ass_decoder_flush, |
| 85 | .priv_data_size = sizeof(FFASSDecoderContext), | 85 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 86 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 87 | }; | 86 | }; |
| @@ -227,5 +227,4 @@ const FFCodec ff_rl2_decoder = { · 226 unmodified lines | |||
| 227 | .close = rl2_decode_end, | 227 | .close = rl2_decode_end, |
| 228 | FF_CODEC_DECODE_CB(rl2_decode_frame), | 228 | FF_CODEC_DECODE_CB(rl2_decode_frame), |
| 229 | .p.capabilities = AV_CODEC_CAP_DR1, | 229 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 230 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 231 | }; | 230 | }; |
| @@ -199,5 +199,4 @@ const FFCodec ff_roq_dpcm_encoder = { · 198 unmodified lines | |||
| 199 | .close = roq_dpcm_encode_close, | 199 | .close = roq_dpcm_encode_close, |
| 200 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, | 200 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, |
| 201 | AV_SAMPLE_FMT_NONE }, | 201 | AV_SAMPLE_FMT_NONE }, |
| 202 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 203 | }; | 202 | }; |
| @@ -243,5 +243,5 @@ const FFCodec ff_roq_decoder = { · 242 unmodified lines | |||
| 243 | .close = roq_decode_end, | 243 | .close = roq_decode_end, |
| 244 | FF_CODEC_DECODE_CB(roq_decode_frame), | 244 | FF_CODEC_DECODE_CB(roq_decode_frame), |
| 245 | .p.capabilities = AV_CODEC_CAP_DR1, | 245 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 246 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 246 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 247 | }; | 247 | }; |
| @@ -1130,5 +1130,5 @@ const FFCodec ff_roq_encoder = { · 1129 unmodified lines | |||
| 1130 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ444P, | 1130 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUVJ444P, |
| 1131 | AV_PIX_FMT_NONE }, | 1131 | AV_PIX_FMT_NONE }, |
| 1132 | .p.priv_class = &roq_class, | 1132 | .p.priv_class = &roq_class, |
| 1133 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1133 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1134 | }; | 1134 | }; |
| @@ -296,5 +296,4 @@ const FFCodec ff_rpza_decoder = { · 295 unmodified lines | |||
| 296 | .close = rpza_decode_end, | 296 | .close = rpza_decode_end, |
| 297 | FF_CODEC_DECODE_CB(rpza_decode_frame), | 297 | FF_CODEC_DECODE_CB(rpza_decode_frame), |
| 298 | .p.capabilities = AV_CODEC_CAP_DR1, | 298 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 299 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 300 | }; | 299 | }; |
| @@ -853,7 +853,6 @@ const FFCodec ff_rpza_encoder = { · 852 unmodified lines | |||
| 853 | .init = rpza_encode_init, | 853 | .init = rpza_encode_init, |
| 854 | FF_CODEC_ENCODE_CB(rpza_encode_frame), | 854 | FF_CODEC_ENCODE_CB(rpza_encode_frame), |
| 855 | .close = rpza_encode_end, | 855 | .close = rpza_encode_end, |
| 856 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 857 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB555, | 856 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_RGB555, |
| 858 | AV_PIX_FMT_NONE}, | 857 | AV_PIX_FMT_NONE}, |
| 859 | }; | 858 | }; |
| @@ -372,6 +372,5 @@ const FFCodec ff_rscc_decoder = { · 371 unmodified lines | |||
| 372 | .close = rscc_close, | 372 | .close = rscc_close, |
| 373 | .priv_data_size = sizeof(RsccContext), | 373 | .priv_data_size = sizeof(RsccContext), |
| 374 | .p.capabilities = AV_CODEC_CAP_DR1, | 374 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 375 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 375 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 376 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 377 | }; | 376 | }; |
| @@ -691,7 +691,6 @@ const FFCodec ff_rv10_decoder = { · 690 unmodified lines | |||
| 691 | .close = rv10_decode_end, | 691 | .close = rv10_decode_end, |
| 692 | FF_CODEC_DECODE_CB(rv10_decode_frame), | 692 | FF_CODEC_DECODE_CB(rv10_decode_frame), |
| 693 | .p.capabilities = AV_CODEC_CAP_DR1, | 693 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 694 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 695 | .p.max_lowres = 3, | 694 | .p.max_lowres = 3, |
| 696 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 695 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 697 | AV_PIX_FMT_YUV420P, | 696 | AV_PIX_FMT_YUV420P, |
| @@ -709,7 +708,6 @@ const FFCodec ff_rv20_decoder = { · 11 unmodified lines | |||
| 709 | .close = rv10_decode_end, | 708 | .close = rv10_decode_end, |
| 710 | FF_CODEC_DECODE_CB(rv10_decode_frame), | 709 | FF_CODEC_DECODE_CB(rv10_decode_frame), |
| 711 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 710 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 712 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 713 | .flush = ff_mpeg_flush, | 711 | .flush = ff_mpeg_flush, |
| 714 | .p.max_lowres = 3, | 712 | .p.max_lowres = 3, |
| 715 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 713 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| @@ -75,6 +75,6 @@ const FFCodec ff_rv10_encoder = { · 74 unmodified lines | |||
| 75 | .init = ff_mpv_encode_init, | 75 | .init = ff_mpv_encode_init, |
| 76 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 76 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 77 | .close = ff_mpv_encode_end, | 77 | .close = ff_mpv_encode_end, |
| 78 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 78 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 79 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 79 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 80 | }; | 80 | }; |
| @@ -72,6 +72,6 @@ const FFCodec ff_rv20_encoder = { · 71 unmodified lines | |||
| 72 | .init = ff_mpv_encode_init, | 72 | .init = ff_mpv_encode_init, |
| 73 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 73 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 74 | .close = ff_mpv_encode_end, | 74 | .close = ff_mpv_encode_end, |
| 75 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 75 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 76 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, | 76 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV420P, AV_PIX_FMT_NONE }, |
| 77 | }; | 77 | }; |
| @@ -308,6 +308,5 @@ const FFCodec ff_rv30_decoder = { · 307 unmodified lines | |||
| 308 | AV_PIX_FMT_NONE | 308 | AV_PIX_FMT_NONE |
| 309 | }, | 309 | }, |
| 310 | .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), | 310 | .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), |
| 311 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 311 | .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 312 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | ||
| 313 | }; | 312 | }; |
| @@ -591,6 +591,5 @@ const FFCodec ff_rv40_decoder = { · 590 unmodified lines | |||
| 591 | AV_PIX_FMT_NONE | 591 | AV_PIX_FMT_NONE |
| 592 | }, | 592 | }, |
| 593 | .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), | 593 | .update_thread_context = ONLY_IF_THREADS_ENABLED(ff_rv34_decode_update_thread_context), |
| 594 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 594 | .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 595 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | ||
| 596 | }; | 595 | }; |
| @@ -189,5 +189,4 @@ const FFCodec ff_s302m_encoder = { · 188 unmodified lines | |||
| 189 | AV_CH_LAYOUT_5POINT1_BACK, | 189 | AV_CH_LAYOUT_5POINT1_BACK, |
| 190 | AV_CH_LAYOUT_5POINT1_BACK | AV_CH_LAYOUT_STEREO_DOWNMIX, | 190 | AV_CH_LAYOUT_5POINT1_BACK | AV_CH_LAYOUT_STEREO_DOWNMIX, |
| 191 | 0 }, */ | 191 | 0 }, */ |
| 192 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 193 | }; | 192 | }; |
| @@ -190,5 +190,4 @@ const FFCodec ff_sami_decoder = { · 189 unmodified lines | |||
| 190 | .close = sami_close, | 190 | .close = sami_close, |
| 191 | FF_CODEC_DECODE_SUB_CB(sami_decode_frame), | 191 | FF_CODEC_DECODE_SUB_CB(sami_decode_frame), |
| 192 | .flush = sami_flush, | 192 | .flush = sami_flush, |
| 193 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 194 | }; | 193 | }; |
| @@ -1526,5 +1526,4 @@ const FFCodec ff_sanm_decoder = { · 1525 unmodified lines | |||
| 1526 | .close = decode_end, | 1526 | .close = decode_end, |
| 1527 | FF_CODEC_DECODE_CB(decode_frame), | 1527 | FF_CODEC_DECODE_CB(decode_frame), |
| 1528 | .p.capabilities = AV_CODEC_CAP_DR1, | 1528 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1529 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1530 | }; | 1529 | }; |
| @@ -374,7 +374,6 @@ const FFCodec ff_sbc_decoder = { · 373 unmodified lines | |||
| 374 | .init = sbc_decode_init, | 374 | .init = sbc_decode_init, |
| 375 | FF_CODEC_DECODE_CB(sbc_decode_frame), | 375 | FF_CODEC_DECODE_CB(sbc_decode_frame), |
| 376 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 376 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 377 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 378 | #if FF_API_OLD_CHANNEL_LAYOUT | 377 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 379 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, | 378 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, |
| 380 | AV_CH_LAYOUT_STEREO, 0}, | 379 | AV_CH_LAYOUT_STEREO, 0}, |
| @@ -352,7 +352,6 @@ const FFCodec ff_sbc_encoder = { · 351 unmodified lines | |||
| 352 | .priv_data_size = sizeof(SBCEncContext), | 352 | .priv_data_size = sizeof(SBCEncContext), |
| 353 | .init = sbc_encode_init, | 353 | .init = sbc_encode_init, |
| 354 | FF_CODEC_ENCODE_CB(sbc_encode_frame), | 354 | FF_CODEC_ENCODE_CB(sbc_encode_frame), |
| 355 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 356 | #if FF_API_OLD_CHANNEL_LAYOUT | 355 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 357 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, | 356 | .p.channel_layouts = (const uint64_t[]) { AV_CH_LAYOUT_MONO, |
| 358 | AV_CH_LAYOUT_STEREO, 0}, | 357 | AV_CH_LAYOUT_STEREO, 0}, |
| @@ -677,6 +677,5 @@ const FFCodec ff_scpr_decoder = { · 676 unmodified lines | |||
| 677 | .close = decode_close, | 677 | .close = decode_close, |
| 678 | FF_CODEC_DECODE_CB(decode_frame), | 678 | FF_CODEC_DECODE_CB(decode_frame), |
| 679 | .p.capabilities = AV_CODEC_CAP_DR1, | 679 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 680 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 680 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 681 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 682 | }; | 681 | }; |
| @@ -193,6 +193,5 @@ const FFCodec ff_screenpresso_decoder = { · 192 unmodified lines | |||
| 193 | .close = screenpresso_close, | 193 | .close = screenpresso_close, |
| 194 | .priv_data_size = sizeof(ScreenpressoContext), | 194 | .priv_data_size = sizeof(ScreenpressoContext), |
| 195 | .p.capabilities = AV_CODEC_CAP_DR1, | 195 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 196 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 196 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 197 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 198 | }; | 197 | }; |
| @@ -529,5 +529,4 @@ const FFCodec ff_sga_decoder = { · 528 unmodified lines | |||
| 529 | FF_CODEC_DECODE_CB(sga_decode_frame), | 529 | FF_CODEC_DECODE_CB(sga_decode_frame), |
| 530 | .close = sga_decode_end, | 530 | .close = sga_decode_end, |
| 531 | .p.capabilities = AV_CODEC_CAP_DR1, | 531 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 532 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 533 | }; | 532 | }; |
| @@ -295,5 +295,4 @@ const FFCodec ff_sgi_decoder = { · 294 unmodified lines | |||
| 295 | FF_CODEC_DECODE_CB(decode_frame), | 295 | FF_CODEC_DECODE_CB(decode_frame), |
| 296 | .init = sgi_decode_init, | 296 | .init = sgi_decode_init, |
| 297 | .p.capabilities = AV_CODEC_CAP_DR1, | 297 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 298 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 299 | }; | 298 | }; |
| @@ -286,5 +286,4 @@ const FFCodec ff_sgi_encoder = { · 285 unmodified lines | |||
| 286 | AV_PIX_FMT_GRAY16LE, AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_GRAY8, | 286 | AV_PIX_FMT_GRAY16LE, AV_PIX_FMT_GRAY16BE, AV_PIX_FMT_GRAY8, |
| 287 | AV_PIX_FMT_NONE | 287 | AV_PIX_FMT_NONE |
| 288 | }, | 288 | }, |
| 289 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 290 | }; | 289 | }; |
| @@ -139,5 +139,4 @@ const FFCodec ff_sgirle_decoder = { · 138 unmodified lines | |||
| 139 | .init = sgirle_decode_init, | 139 | .init = sgirle_decode_init, |
| 140 | FF_CODEC_DECODE_CB(sgirle_decode_frame), | 140 | FF_CODEC_DECODE_CB(sgirle_decode_frame), |
| 141 | .p.capabilities = AV_CODEC_CAP_DR1, | 141 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 142 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 143 | }; | 142 | }; |
| @@ -819,5 +819,4 @@ const FFCodec ff_shorten_decoder = { · 818 unmodified lines | |||
| 819 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 819 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 820 | AV_SAMPLE_FMT_U8P, | 820 | AV_SAMPLE_FMT_U8P, |
| 821 | AV_SAMPLE_FMT_NONE }, | 821 | AV_SAMPLE_FMT_NONE }, |
| 822 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 823 | }; | 822 | }; |
| @@ -571,5 +571,4 @@ const FFCodec ff_sipr_decoder = { · 570 unmodified lines | |||
| 571 | .init = sipr_decoder_init, | 571 | .init = sipr_decoder_init, |
| 572 | FF_CODEC_DECODE_CB(sipr_decode_frame), | 572 | FF_CODEC_DECODE_CB(sipr_decode_frame), |
| 573 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 573 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 574 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 575 | }; | 574 | }; |
| @@ -853,8 +853,7 @@ const FFCodec ff_siren_decoder = { · 852 unmodified lines | |||
| 853 | .flush = siren_flush, | 853 | .flush = siren_flush, |
| 854 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | | 854 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | |
| 855 | AV_CODEC_CAP_DR1, | 855 | AV_CODEC_CAP_DR1, |
| 856 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 856 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 857 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 858 | }; | 857 | }; |
| 859 | 858 | ||
| 860 | const FFCodec ff_msnsiren_decoder = { | 859 | const FFCodec ff_msnsiren_decoder = { |
| @@ -869,6 +868,5 @@ const FFCodec ff_msnsiren_decoder = { · 8 unmodified lines | |||
| 869 | .flush = siren_flush, | 868 | .flush = siren_flush, |
| 870 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | | 869 | .p.capabilities = AV_CODEC_CAP_CHANNEL_CONF | |
| 871 | AV_CODEC_CAP_DR1, | 870 | AV_CODEC_CAP_DR1, |
| 872 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 871 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 873 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 874 | }; | 872 | }; |
| @@ -752,7 +752,7 @@ const FFCodec ff_smacker_decoder = { · 751 unmodified lines | |||
| 752 | .close = decode_end, | 752 | .close = decode_end, |
| 753 | FF_CODEC_DECODE_CB(decode_frame), | 753 | FF_CODEC_DECODE_CB(decode_frame), |
| 754 | .p.capabilities = AV_CODEC_CAP_DR1, | 754 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 755 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 755 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 756 | }; | 756 | }; |
| 757 | 757 | ||
| 758 | const FFCodec ff_smackaud_decoder = { | 758 | const FFCodec ff_smackaud_decoder = { |
| @@ -763,5 +763,4 @@ const FFCodec ff_smackaud_decoder = { · 4 unmodified lines | |||
| 763 | .init = smka_decode_init, | 763 | .init = smka_decode_init, |
| 764 | FF_CODEC_DECODE_CB(smka_decode_frame), | 764 | FF_CODEC_DECODE_CB(smka_decode_frame), |
| 765 | .p.capabilities = AV_CODEC_CAP_DR1, | 765 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 766 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 767 | }; | 766 | }; |
| @@ -478,5 +478,4 @@ const FFCodec ff_smc_decoder = { · 477 unmodified lines | |||
| 478 | .close = smc_decode_end, | 478 | .close = smc_decode_end, |
| 479 | FF_CODEC_DECODE_CB(smc_decode_frame), | 479 | FF_CODEC_DECODE_CB(smc_decode_frame), |
| 480 | .p.capabilities = AV_CODEC_CAP_DR1, | 480 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 481 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 482 | }; | 481 | }; |
| @@ -557,7 +557,6 @@ const FFCodec ff_smc_encoder = { · 556 unmodified lines | |||
| 557 | .init = smc_encode_init, | 557 | .init = smc_encode_init, |
| 558 | FF_CODEC_ENCODE_CB(smc_encode_frame), | 558 | FF_CODEC_ENCODE_CB(smc_encode_frame), |
| 559 | .close = smc_encode_end, | 559 | .close = smc_encode_end, |
| 560 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 561 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_PAL8, | 560 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_PAL8, |
| 562 | AV_PIX_FMT_NONE}, | 561 | AV_PIX_FMT_NONE}, |
| 563 | }; | 562 | }; |
| @@ -663,6 +663,5 @@ const FFCodec ff_snow_decoder = { · 662 unmodified lines | |||
| 663 | .close = decode_end, | 663 | .close = decode_end, |
| 664 | FF_CODEC_DECODE_CB(decode_frame), | 664 | FF_CODEC_DECODE_CB(decode_frame), |
| 665 | .p.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, | 665 | .p.capabilities = AV_CODEC_CAP_DR1 /*| AV_CODEC_CAP_DRAW_HORIZ_BAND*/, |
| 666 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 666 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 667 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 668 | }; | 667 | }; |
| @@ -1927,6 +1927,5 @@ const FFCodec ff_snow_encoder = { · 1926 unmodified lines | |||
| 1927 | AV_PIX_FMT_NONE | 1927 | AV_PIX_FMT_NONE |
| 1928 | }, | 1928 | }, |
| 1929 | .p.priv_class = &snowenc_class, | 1929 | .p.priv_class = &snowenc_class, |
| 1930 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 1930 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1931 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 1932 | }; | 1931 | }; |
| @@ -1086,7 +1086,7 @@ const FFCodec ff_sonic_decoder = { · 1085 unmodified lines | |||
| 1086 | .close = sonic_decode_close, | 1086 | .close = sonic_decode_close, |
| 1087 | FF_CODEC_DECODE_CB(sonic_decode_frame), | 1087 | FF_CODEC_DECODE_CB(sonic_decode_frame), |
| 1088 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_CHANNEL_CONF, | 1088 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_EXPERIMENTAL | AV_CODEC_CAP_CHANNEL_CONF, |
| 1089 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1089 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1090 | }; | 1090 | }; |
| 1091 | #endif /* CONFIG_SONIC_DECODER */ | 1091 | #endif /* CONFIG_SONIC_DECODER */ |
| 1092 | 1092 | ||
| @@ -1101,7 +1101,7 @@ const FFCodec ff_sonic_encoder = { · 8 unmodified lines | |||
| 1101 | FF_CODEC_ENCODE_CB(sonic_encode_frame), | 1101 | FF_CODEC_ENCODE_CB(sonic_encode_frame), |
| 1102 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, | 1102 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, |
| 1103 | .p.capabilities = AV_CODEC_CAP_EXPERIMENTAL, | 1103 | .p.capabilities = AV_CODEC_CAP_EXPERIMENTAL, |
| 1104 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1104 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1105 | .close = sonic_encode_close, | 1105 | .close = sonic_encode_close, |
| 1106 | }; | 1106 | }; |
| 1107 | #endif | 1107 | #endif |
| @@ -1117,7 +1117,7 @@ const FFCodec ff_sonic_ls_encoder = { · 9 unmodified lines | |||
| 1117 | FF_CODEC_ENCODE_CB(sonic_encode_frame), | 1117 | FF_CODEC_ENCODE_CB(sonic_encode_frame), |
| 1118 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, | 1118 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE }, |
| 1119 | .p.capabilities = AV_CODEC_CAP_EXPERIMENTAL, | 1119 | .p.capabilities = AV_CODEC_CAP_EXPERIMENTAL, |
| 1120 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1120 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1121 | .close = sonic_encode_close, | 1121 | .close = sonic_encode_close, |
| 1122 | }; | 1122 | }; |
| 1123 | #endif | 1123 | #endif |
| @@ -103,7 +103,7 @@ const FFCodec ff_sp5x_decoder = { · 102 unmodified lines | |||
| 103 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), | 103 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), |
| 104 | .p.capabilities = AV_CODEC_CAP_DR1, | 104 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 105 | .p.max_lowres = 3, | 105 | .p.max_lowres = 3, |
| 106 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 106 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 107 | FF_CODEC_CAP_SETS_PKT_DTS, | 107 | FF_CODEC_CAP_SETS_PKT_DTS, |
| 108 | }; | 108 | }; |
| 109 | #endif | 109 | #endif |
| @@ -119,7 +119,7 @@ const FFCodec ff_amv_decoder = { · 9 unmodified lines | |||
| 119 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), | 119 | FF_CODEC_RECEIVE_FRAME_CB(ff_mjpeg_receive_frame), |
| 120 | .p.max_lowres = 3, | 120 | .p.max_lowres = 3, |
| 121 | .p.capabilities = AV_CODEC_CAP_DR1, | 121 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 122 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 122 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 123 | FF_CODEC_CAP_SETS_PKT_DTS, | 123 | FF_CODEC_CAP_SETS_PKT_DTS, |
| 124 | }; | 124 | }; |
| 125 | #endif | 125 | #endif |
| @@ -733,6 +733,5 @@ const FFCodec ff_speedhq_decoder = { · 732 unmodified lines | |||
| 733 | .init = speedhq_decode_init, | 733 | .init = speedhq_decode_init, |
| 734 | FF_CODEC_DECODE_CB(speedhq_decode_frame), | 734 | FF_CODEC_DECODE_CB(speedhq_decode_frame), |
| 735 | .p.capabilities = AV_CODEC_CAP_DR1, | 735 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 736 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 737 | }; | 736 | }; |
| 738 | #endif /* CONFIG_SPEEDHQ_DECODER */ | 737 | #endif /* CONFIG_SPEEDHQ_DECODER */ |
| @@ -287,7 +287,7 @@ const FFCodec ff_speedhq_encoder = { · 286 unmodified lines | |||
| 287 | .init = ff_mpv_encode_init, | 287 | .init = ff_mpv_encode_init, |
| 288 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 288 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 289 | .close = ff_mpv_encode_end, | 289 | .close = ff_mpv_encode_end, |
| 290 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 290 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 291 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 291 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 292 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, | 292 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV444P, |
| 293 | AV_PIX_FMT_NONE | 293 | AV_PIX_FMT_NONE |
| @@ -1586,5 +1586,5 @@ const FFCodec ff_speex_decoder = { · 1585 unmodified lines | |||
| 1586 | .close = speex_decode_close, | 1586 | .close = speex_decode_close, |
| 1587 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1587 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1588 | .priv_data_size = sizeof(SpeexContext), | 1588 | .priv_data_size = sizeof(SpeexContext), |
| 1589 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1589 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1590 | }; | 1590 | }; |
| @@ -99,7 +99,6 @@ const FFCodec ff_srt_decoder = { · 98 unmodified lines | |||
| 99 | FF_CODEC_DECODE_SUB_CB(srt_decode_frame), | 99 | FF_CODEC_DECODE_SUB_CB(srt_decode_frame), |
| 100 | .flush = ff_ass_decoder_flush, | 100 | .flush = ff_ass_decoder_flush, |
| 101 | .priv_data_size = sizeof(FFASSDecoderContext), | 101 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 102 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 103 | }; | 102 | }; |
| 104 | #endif | 103 | #endif |
| 105 | 104 | ||
| @@ -113,6 +112,5 @@ const FFCodec ff_subrip_decoder = { · 7 unmodified lines | |||
| 113 | FF_CODEC_DECODE_SUB_CB(srt_decode_frame), | 112 | FF_CODEC_DECODE_SUB_CB(srt_decode_frame), |
| 114 | .flush = ff_ass_decoder_flush, | 113 | .flush = ff_ass_decoder_flush, |
| 115 | .priv_data_size = sizeof(FFASSDecoderContext), | 114 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 116 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 117 | }; | 115 | }; |
| 118 | #endif | 116 | #endif |
| @@ -302,7 +302,6 @@ const FFCodec ff_srt_encoder = { · 301 unmodified lines | |||
| 302 | .init = srt_encode_init, | 302 | .init = srt_encode_init, |
| 303 | FF_CODEC_ENCODE_SUB_CB(srt_encode_frame), | 303 | FF_CODEC_ENCODE_SUB_CB(srt_encode_frame), |
| 304 | .close = srt_encode_close, | 304 | .close = srt_encode_close, |
| 305 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 306 | }; | 305 | }; |
| 307 | #endif | 306 | #endif |
| 308 | 307 | ||
| @@ -316,7 +315,6 @@ const FFCodec ff_subrip_encoder = { · 7 unmodified lines | |||
| 316 | .init = srt_encode_init, | 315 | .init = srt_encode_init, |
| 317 | FF_CODEC_ENCODE_SUB_CB(srt_encode_frame), | 316 | FF_CODEC_ENCODE_SUB_CB(srt_encode_frame), |
| 318 | .close = srt_encode_close, | 317 | .close = srt_encode_close, |
| 319 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 320 | }; | 318 | }; |
| 321 | #endif | 319 | #endif |
| 322 | 320 | ||
| @@ -330,6 +328,5 @@ const FFCodec ff_text_encoder = { · 7 unmodified lines | |||
| 330 | .init = srt_encode_init, | 328 | .init = srt_encode_init, |
| 331 | FF_CODEC_ENCODE_SUB_CB(text_encode_frame), | 329 | FF_CODEC_ENCODE_SUB_CB(text_encode_frame), |
| 332 | .close = srt_encode_close, | 330 | .close = srt_encode_close, |
| 333 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 334 | }; | 331 | }; |
| 335 | #endif | 332 | #endif |
| @@ -74,5 +74,4 @@ const FFCodec ff_subviewer_decoder = { · 73 unmodified lines | |||
| 74 | .init = ff_ass_subtitle_header_default, | 74 | .init = ff_ass_subtitle_header_default, |
| 75 | .flush = ff_ass_decoder_flush, | 75 | .flush = ff_ass_decoder_flush, |
| 76 | .priv_data_size = sizeof(FFASSDecoderContext), | 76 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 77 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 78 | }; | 77 | }; |
| @@ -222,5 +222,4 @@ const FFCodec ff_sunrast_encoder = { · 221 unmodified lines | |||
| 222 | AV_PIX_FMT_GRAY8, | 222 | AV_PIX_FMT_GRAY8, |
| 223 | AV_PIX_FMT_MONOWHITE, | 223 | AV_PIX_FMT_MONOWHITE, |
| 224 | AV_PIX_FMT_NONE }, | 224 | AV_PIX_FMT_NONE }, |
| 225 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 226 | }; | 225 | }; |
| @@ -856,5 +856,4 @@ const FFCodec ff_svq1_decoder = { · 855 unmodified lines | |||
| 856 | .flush = svq1_flush, | 856 | .flush = svq1_flush, |
| 857 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV410P, | 857 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV410P, |
| 858 | AV_PIX_FMT_NONE }, | 858 | AV_PIX_FMT_NONE }, |
| 859 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 860 | }; | 859 | }; |
| @@ -689,5 +689,5 @@ const FFCodec ff_svq1_encoder = { · 688 unmodified lines | |||
| 689 | .close = svq1_encode_end, | 689 | .close = svq1_encode_end, |
| 690 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV410P, | 690 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV410P, |
| 691 | AV_PIX_FMT_NONE }, | 691 | AV_PIX_FMT_NONE }, |
| 692 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 692 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 693 | }; | 693 | }; |
| @@ -1602,5 +1602,5 @@ const FFCodec ff_svq3_decoder = { · 1601 unmodified lines | |||
| 1602 | AV_CODEC_CAP_DELAY, | 1602 | AV_CODEC_CAP_DELAY, |
| 1603 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUVJ420P, | 1603 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUVJ420P, |
| 1604 | AV_PIX_FMT_NONE}, | 1604 | AV_PIX_FMT_NONE}, |
| 1605 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1605 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1606 | }; | 1606 | }; |
| @@ -956,5 +956,4 @@ const FFCodec ff_tak_decoder = { · 955 unmodified lines | |||
| 956 | AV_SAMPLE_FMT_S16P, | 956 | AV_SAMPLE_FMT_S16P, |
| 957 | AV_SAMPLE_FMT_S32P, | 957 | AV_SAMPLE_FMT_S32P, |
| 958 | AV_SAMPLE_FMT_NONE }, | 958 | AV_SAMPLE_FMT_NONE }, |
| 959 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 960 | }; | 959 | }; |
| @@ -81,5 +81,4 @@ const FFCodec ff_targa_y216_decoder = { · 80 unmodified lines | |||
| 81 | .init = y216_decode_init, | 81 | .init = y216_decode_init, |
| 82 | FF_CODEC_DECODE_CB(y216_decode_frame), | 82 | FF_CODEC_DECODE_CB(y216_decode_frame), |
| 83 | .p.capabilities = AV_CODEC_CAP_DR1, | 83 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 84 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 85 | }; | 84 | }; |
| @@ -215,5 +215,4 @@ const FFCodec ff_targa_encoder = { · 214 unmodified lines | |||
| 215 | AV_PIX_FMT_BGR24, AV_PIX_FMT_BGRA, AV_PIX_FMT_RGB555LE, AV_PIX_FMT_GRAY8, AV_PIX_FMT_PAL8, | 215 | AV_PIX_FMT_BGR24, AV_PIX_FMT_BGRA, AV_PIX_FMT_RGB555LE, AV_PIX_FMT_GRAY8, AV_PIX_FMT_PAL8, |
| 216 | AV_PIX_FMT_NONE | 216 | AV_PIX_FMT_NONE |
| 217 | }, | 217 | }, |
| 218 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 219 | }; | 218 | }; |
| @@ -631,6 +631,5 @@ const FFCodec ff_tdsc_decoder = { · 630 unmodified lines | |||
| 631 | .close = tdsc_close, | 631 | .close = tdsc_close, |
| 632 | .priv_data_size = sizeof(TDSCContext), | 632 | .priv_data_size = sizeof(TDSCContext), |
| 633 | .p.capabilities = AV_CODEC_CAP_DR1, | 633 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 634 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 634 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 635 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 636 | }; | 635 | }; |
| @@ -90,7 +90,6 @@ const FFCodec ff_text_decoder = { · 89 unmodified lines | |||
| 90 | .init = ff_ass_subtitle_header_default, | 90 | .init = ff_ass_subtitle_header_default, |
| 91 | .p.priv_class = &textsub_decoder_class, | 91 | .p.priv_class = &textsub_decoder_class, |
| 92 | .flush = text_flush, | 92 | .flush = text_flush, |
| 93 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 94 | }; | 93 | }; |
| 95 | #endif | 94 | #endif |
| 96 | 95 | ||
| @@ -114,7 +113,6 @@ const FFCodec ff_vplayer_decoder = { · 17 unmodified lines | |||
| 114 | .init = linebreak_init, | 113 | .init = linebreak_init, |
| 115 | .p.priv_class = &textsub_decoder_class, | 114 | .p.priv_class = &textsub_decoder_class, |
| 116 | .flush = text_flush, | 115 | .flush = text_flush, |
| 117 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 118 | }; | 116 | }; |
| 119 | #endif | 117 | #endif |
| 120 | 118 | ||
| @@ -129,7 +127,6 @@ const FFCodec ff_stl_decoder = { · 8 unmodified lines | |||
| 129 | .init = linebreak_init, | 127 | .init = linebreak_init, |
| 130 | .p.priv_class = &textsub_decoder_class, | 128 | .p.priv_class = &textsub_decoder_class, |
| 131 | .flush = text_flush, | 129 | .flush = text_flush, |
| 132 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 133 | }; | 130 | }; |
| 134 | #endif | 131 | #endif |
| 135 | 132 | ||
| @@ -144,7 +141,6 @@ const FFCodec ff_pjs_decoder = { · 8 unmodified lines | |||
| 144 | .init = linebreak_init, | 141 | .init = linebreak_init, |
| 145 | .p.priv_class = &textsub_decoder_class, | 142 | .p.priv_class = &textsub_decoder_class, |
| 146 | .flush = text_flush, | 143 | .flush = text_flush, |
| 147 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 148 | }; | 144 | }; |
| 149 | #endif | 145 | #endif |
| 150 | 146 | ||
| @@ -159,7 +155,6 @@ const FFCodec ff_subviewer1_decoder = { · 8 unmodified lines | |||
| 159 | .init = linebreak_init, | 155 | .init = linebreak_init, |
| 160 | .p.priv_class = &textsub_decoder_class, | 156 | .p.priv_class = &textsub_decoder_class, |
| 161 | .flush = text_flush, | 157 | .flush = text_flush, |
| 162 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 163 | }; | 158 | }; |
| 164 | #endif | 159 | #endif |
| 165 | 160 | ||
| @@ -271,5 +271,4 @@ const FFCodec ff_tiertexseqvideo_decoder = { · 270 unmodified lines | |||
| 271 | .close = seqvideo_decode_end, | 271 | .close = seqvideo_decode_end, |
| 272 | FF_CODEC_DECODE_CB(seqvideo_decode_frame), | 272 | FF_CODEC_DECODE_CB(seqvideo_decode_frame), |
| 273 | .p.capabilities = AV_CODEC_CAP_DR1, | 273 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 274 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 275 | }; | 274 | }; |
| @@ -2190,6 +2190,6 @@ const FFCodec ff_tiff_decoder = { · 2189 unmodified lines | |||
| 2190 | .close = tiff_end, | 2190 | .close = tiff_end, |
| 2191 | FF_CODEC_DECODE_CB(decode_frame), | 2191 | FF_CODEC_DECODE_CB(decode_frame), |
| 2192 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 2192 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 2193 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2193 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2194 | .p.priv_class = &tiff_decoder_class, | 2194 | .p.priv_class = &tiff_decoder_class, |
| 2195 | }; | 2195 | }; |
| @@ -589,5 +589,4 @@ const FFCodec ff_tiff_encoder = { · 588 unmodified lines | |||
| 589 | AV_PIX_FMT_NONE | 589 | AV_PIX_FMT_NONE |
| 590 | }, | 590 | }, |
| 591 | .p.priv_class = &tiffenc_class, | 591 | .p.priv_class = &tiffenc_class, |
| 592 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 593 | }; | 592 | }; |
| @@ -94,5 +94,4 @@ const FFCodec ff_tmv_decoder = { · 93 unmodified lines | |||
| 94 | .init = tmv_decode_init, | 94 | .init = tmv_decode_init, |
| 95 | FF_CODEC_DECODE_CB(tmv_decode_frame), | 95 | FF_CODEC_DECODE_CB(tmv_decode_frame), |
| 96 | .p.capabilities = AV_CODEC_CAP_DR1, | 96 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 97 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 98 | }; | 97 | }; |
| @@ -920,5 +920,5 @@ const FFCodec ff_truemotion1_decoder = { · 919 unmodified lines | |||
| 920 | .close = truemotion1_decode_end, | 920 | .close = truemotion1_decode_end, |
| 921 | FF_CODEC_DECODE_CB(truemotion1_decode_frame), | 921 | FF_CODEC_DECODE_CB(truemotion1_decode_frame), |
| 922 | .p.capabilities = AV_CODEC_CAP_DR1, | 922 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 923 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 923 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 924 | }; | 924 | }; |
| @@ -1018,5 +1018,5 @@ const FFCodec ff_truemotion2_decoder = { · 1017 unmodified lines | |||
| 1018 | .close = decode_end, | 1018 | .close = decode_end, |
| 1019 | FF_CODEC_DECODE_CB(decode_frame), | 1019 | FF_CODEC_DECODE_CB(decode_frame), |
| 1020 | .p.capabilities = AV_CODEC_CAP_DR1, | 1020 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1021 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 1021 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1022 | }; | 1022 | }; |
| @@ -228,5 +228,4 @@ const FFCodec ff_truemotion2rt_decoder = { · 227 unmodified lines | |||
| 228 | .init = truemotion2rt_decode_init, | 228 | .init = truemotion2rt_decode_init, |
| 229 | FF_CODEC_DECODE_CB(truemotion2rt_decode_frame), | 229 | FF_CODEC_DECODE_CB(truemotion2rt_decode_frame), |
| 230 | .p.capabilities = AV_CODEC_CAP_DR1, | 230 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 231 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 232 | }; | 231 | }; |
| @@ -365,5 +365,4 @@ const FFCodec ff_truespeech_decoder = { · 364 unmodified lines | |||
| 365 | .init = truespeech_decode_init, | 365 | .init = truespeech_decode_init, |
| 366 | FF_CODEC_DECODE_CB(truespeech_decode_frame), | 366 | FF_CODEC_DECODE_CB(truespeech_decode_frame), |
| 367 | .p.capabilities = AV_CODEC_CAP_DR1, | 367 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 368 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 369 | }; | 368 | }; |
| @@ -180,5 +180,5 @@ const FFCodec ff_tscc_decoder = { · 179 unmodified lines | |||
| 180 | .close = decode_end, | 180 | .close = decode_end, |
| 181 | FF_CODEC_DECODE_CB(decode_frame), | 181 | FF_CODEC_DECODE_CB(decode_frame), |
| 182 | .p.capabilities = AV_CODEC_CAP_DR1, | 182 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 183 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 183 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 184 | }; | 184 | }; |
| @@ -366,5 +366,5 @@ const FFCodec ff_tscc2_decoder = { · 365 unmodified lines | |||
| 366 | .close = tscc2_decode_end, | 366 | .close = tscc2_decode_end, |
| 367 | FF_CODEC_DECODE_CB(tscc2_decode_frame), | 367 | FF_CODEC_DECODE_CB(tscc2_decode_frame), |
| 368 | .p.capabilities = AV_CODEC_CAP_DR1, | 368 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 369 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 369 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 370 | }; | 370 | }; |
| @@ -431,5 +431,5 @@ const FFCodec ff_tta_decoder = { · 430 unmodified lines | |||
| 431 | FF_CODEC_DECODE_CB(tta_decode_frame), | 431 | FF_CODEC_DECODE_CB(tta_decode_frame), |
| 432 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_CHANNEL_CONF, | 432 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_CHANNEL_CONF, |
| 433 | .p.priv_class = &tta_decoder_class, | 433 | .p.priv_class = &tta_decoder_class, |
| 434 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 434 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 435 | }; | 435 | }; |
| @@ -216,5 +216,4 @@ const FFCodec ff_tta_encoder = { · 215 unmodified lines | |||
| 216 | AV_SAMPLE_FMT_S16, | 216 | AV_SAMPLE_FMT_S16, |
| 217 | AV_SAMPLE_FMT_S32, | 217 | AV_SAMPLE_FMT_S32, |
| 218 | AV_SAMPLE_FMT_NONE }, | 218 | AV_SAMPLE_FMT_NONE }, |
| 219 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 220 | }; | 219 | }; |
| @@ -392,5 +392,5 @@ const FFCodec ff_ttml_encoder = { · 391 unmodified lines | |||
| 392 | .init = ttml_encode_init, | 392 | .init = ttml_encode_init, |
| 393 | FF_CODEC_ENCODE_SUB_CB(ttml_encode_frame), | 393 | FF_CODEC_ENCODE_SUB_CB(ttml_encode_frame), |
| 394 | .close = ttml_encode_close, | 394 | .close = ttml_encode_close, |
| 395 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 395 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 396 | }; | 396 | }; |
| @@ -426,5 +426,5 @@ const FFCodec ff_twinvq_decoder = { · 425 unmodified lines | |||
| 426 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 426 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 427 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 427 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 428 | AV_SAMPLE_FMT_NONE }, | 428 | AV_SAMPLE_FMT_NONE }, |
| 429 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 429 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 430 | }; | 430 | }; |
| @@ -428,5 +428,4 @@ const FFCodec ff_ulti_decoder = { · 427 unmodified lines | |||
| 428 | .close = ulti_decode_end, | 428 | .close = ulti_decode_end, |
| 429 | FF_CODEC_DECODE_CB(ulti_decode_frame), | 429 | FF_CODEC_DECODE_CB(ulti_decode_frame), |
| 430 | .p.capabilities = AV_CODEC_CAP_DR1, | 430 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 431 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 432 | }; | 431 | }; |
| @@ -1060,5 +1060,4 @@ const FFCodec ff_utvideo_decoder = { · 1059 unmodified lines | |||
| 1060 | .close = decode_end, | 1060 | .close = decode_end, |
| 1061 | FF_CODEC_DECODE_CB(decode_frame), | 1061 | FF_CODEC_DECODE_CB(decode_frame), |
| 1062 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 1062 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 1063 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1064 | }; | 1063 | }; |
| @@ -658,5 +658,5 @@ const FFCodec ff_utvideo_encoder = { · 657 unmodified lines | |||
| 658 | AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_YUV422P, | 658 | AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP, AV_PIX_FMT_YUV422P, |
| 659 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE | 659 | AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE |
| 660 | }, | 660 | }, |
| 661 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 661 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 662 | }; | 662 | }; |
| @@ -243,5 +243,4 @@ const FFCodec ff_v210_decoder = { · 242 unmodified lines | |||
| 243 | AV_CODEC_CAP_SLICE_THREADS | | 243 | AV_CODEC_CAP_SLICE_THREADS | |
| 244 | AV_CODEC_CAP_FRAME_THREADS, | 244 | AV_CODEC_CAP_FRAME_THREADS, |
| 245 | .p.priv_class = &v210dec_class, | 245 | .p.priv_class = &v210dec_class, |
| 246 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 247 | }; | 246 | }; |
| @@ -117,5 +117,4 @@ const FFCodec ff_v210_encoder = { · 116 unmodified lines | |||
| 117 | .init = encode_init, | 117 | .init = encode_init, |
| 118 | FF_CODEC_ENCODE_CB(encode_frame), | 118 | FF_CODEC_ENCODE_CB(encode_frame), |
| 119 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV422P, AV_PIX_FMT_NONE }, | 119 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV422P10, AV_PIX_FMT_YUV422P, AV_PIX_FMT_NONE }, |
| 120 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 121 | }; | 120 | }; |
| @@ -127,5 +127,4 @@ const FFCodec ff_v210x_decoder = { · 126 unmodified lines | |||
| 127 | .init = decode_init, | 127 | .init = decode_init, |
| 128 | FF_CODEC_DECODE_CB(decode_frame), | 128 | FF_CODEC_DECODE_CB(decode_frame), |
| 129 | .p.capabilities = AV_CODEC_CAP_DR1, | 129 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 130 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 131 | }; | 130 | }; |
| @@ -80,5 +80,4 @@ const FFCodec ff_v308_decoder = { · 79 unmodified lines | |||
| 80 | .init = v308_decode_init, | 80 | .init = v308_decode_init, |
| 81 | FF_CODEC_DECODE_CB(v308_decode_frame), | 81 | FF_CODEC_DECODE_CB(v308_decode_frame), |
| 82 | .p.capabilities = AV_CODEC_CAP_DR1, | 82 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 83 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 84 | }; | 83 | }; |
| @@ -79,5 +79,4 @@ const FFCodec ff_v308_encoder = { · 78 unmodified lines | |||
| 79 | .init = v308_encode_init, | 79 | .init = v308_encode_init, |
| 80 | FF_CODEC_ENCODE_CB(v308_encode_frame), | 80 | FF_CODEC_ENCODE_CB(v308_encode_frame), |
| 81 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE }, | 81 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P, AV_PIX_FMT_NONE }, |
| 82 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 83 | }; | 82 | }; |
| @@ -90,7 +90,6 @@ const FFCodec ff_ayuv_decoder = { · 89 unmodified lines | |||
| 90 | .init = v408_decode_init, | 90 | .init = v408_decode_init, |
| 91 | FF_CODEC_DECODE_CB(v408_decode_frame), | 91 | FF_CODEC_DECODE_CB(v408_decode_frame), |
| 92 | .p.capabilities = AV_CODEC_CAP_DR1, | 92 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 93 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 94 | }; | 93 | }; |
| 95 | #endif | 94 | #endif |
| 96 | #if CONFIG_V408_DECODER | 95 | #if CONFIG_V408_DECODER |
| @@ -102,6 +101,5 @@ const FFCodec ff_v408_decoder = { · 5 unmodified lines | |||
| 102 | .init = v408_decode_init, | 101 | .init = v408_decode_init, |
| 103 | FF_CODEC_DECODE_CB(v408_decode_frame), | 102 | FF_CODEC_DECODE_CB(v408_decode_frame), |
| 104 | .p.capabilities = AV_CODEC_CAP_DR1, | 103 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 105 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 106 | }; | 104 | }; |
| 107 | #endif | 105 | #endif |
| @@ -89,7 +89,6 @@ const FFCodec ff_ayuv_encoder = { · 88 unmodified lines | |||
| 89 | .init = v408_encode_init, | 89 | .init = v408_encode_init, |
| 90 | FF_CODEC_ENCODE_CB(v408_encode_frame), | 90 | FF_CODEC_ENCODE_CB(v408_encode_frame), |
| 91 | .p.pix_fmts = pix_fmt, | 91 | .p.pix_fmts = pix_fmt, |
| 92 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 93 | }; | 92 | }; |
| 94 | #endif | 93 | #endif |
| 95 | #if CONFIG_V408_ENCODER | 94 | #if CONFIG_V408_ENCODER |
| @@ -102,6 +101,5 @@ const FFCodec ff_v408_encoder = { · 6 unmodified lines | |||
| 102 | .init = v408_encode_init, | 101 | .init = v408_encode_init, |
| 103 | FF_CODEC_ENCODE_CB(v408_encode_frame), | 102 | FF_CODEC_ENCODE_CB(v408_encode_frame), |
| 104 | .p.pix_fmts = pix_fmt, | 103 | .p.pix_fmts = pix_fmt, |
| 105 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 106 | }; | 104 | }; |
| 107 | #endif | 105 | #endif |
| @@ -123,5 +123,4 @@ const FFCodec ff_v410_decoder = { · 122 unmodified lines | |||
| 123 | FF_CODEC_DECODE_CB(v410_decode_frame), | 123 | FF_CODEC_DECODE_CB(v410_decode_frame), |
| 124 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS | | 124 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS | |
| 125 | AV_CODEC_CAP_FRAME_THREADS, | 125 | AV_CODEC_CAP_FRAME_THREADS, |
| 126 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 127 | }; | 126 | }; |
| @@ -83,5 +83,4 @@ const FFCodec ff_v410_encoder = { · 82 unmodified lines | |||
| 83 | .init = v410_encode_init, | 83 | .init = v410_encode_init, |
| 84 | FF_CODEC_ENCODE_CB(v410_encode_frame), | 84 | FF_CODEC_ENCODE_CB(v410_encode_frame), |
| 85 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P10, AV_PIX_FMT_NONE }, | 85 | .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_YUV444P10, AV_PIX_FMT_NONE }, |
| 86 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 87 | }; | 86 | }; |
| @@ -288,5 +288,5 @@ const FFCodec ff_vb_decoder = { · 287 unmodified lines | |||
| 288 | .close = decode_end, | 288 | .close = decode_end, |
| 289 | FF_CODEC_DECODE_CB(decode_frame), | 289 | FF_CODEC_DECODE_CB(decode_frame), |
| 290 | .p.capabilities = AV_CODEC_CAP_DR1, | 290 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 291 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 291 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 292 | }; | 292 | }; |
| @@ -211,5 +211,4 @@ const FFCodec ff_vble_decoder = { · 210 unmodified lines | |||
| 211 | .close = vble_decode_close, | 211 | .close = vble_decode_close, |
| 212 | FF_CODEC_DECODE_CB(vble_decode_frame), | 212 | FF_CODEC_DECODE_CB(vble_decode_frame), |
| 213 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 213 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 214 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 215 | }; | 214 | }; |
| @@ -182,5 +182,4 @@ const FFCodec ff_vbn_decoder = { · 181 unmodified lines | |||
| 182 | FF_CODEC_DECODE_CB(vbn_decode_frame), | 182 | FF_CODEC_DECODE_CB(vbn_decode_frame), |
| 183 | .priv_data_size = sizeof(VBNContext), | 183 | .priv_data_size = sizeof(VBNContext), |
| 184 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, | 184 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, |
| 185 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | ||
| 186 | }; | 185 | }; |
| @@ -161,6 +161,5 @@ const FFCodec ff_vbn_encoder = { · 160 unmodified lines | |||
| 161 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 161 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 162 | AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE, | 162 | AV_PIX_FMT_RGBA, AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE, |
| 163 | }, | 163 | }, |
| 164 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 164 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 165 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 166 | }; | 165 | }; |
| @@ -1212,7 +1212,6 @@ const FFCodec ff_vc1_decoder = { · 1211 unmodified lines | |||
| 1212 | FF_CODEC_DECODE_CB(vc1_decode_frame), | 1212 | FF_CODEC_DECODE_CB(vc1_decode_frame), |
| 1213 | .flush = ff_mpeg_flush, | 1213 | .flush = ff_mpeg_flush, |
| 1214 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 1214 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 1215 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1216 | .p.pix_fmts = vc1_hwaccel_pixfmt_list_420, | 1215 | .p.pix_fmts = vc1_hwaccel_pixfmt_list_420, |
| 1217 | .hw_configs = (const AVCodecHWConfigInternal *const []) { | 1216 | .hw_configs = (const AVCodecHWConfigInternal *const []) { |
| 1218 | #if CONFIG_VC1_DXVA2_HWACCEL | 1217 | #if CONFIG_VC1_DXVA2_HWACCEL |
| @@ -1250,7 +1249,6 @@ const FFCodec ff_wmv3_decoder = { · 31 unmodified lines | |||
| 1250 | FF_CODEC_DECODE_CB(vc1_decode_frame), | 1249 | FF_CODEC_DECODE_CB(vc1_decode_frame), |
| 1251 | .flush = ff_mpeg_flush, | 1250 | .flush = ff_mpeg_flush, |
| 1252 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 1251 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 1253 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1254 | .p.pix_fmts = vc1_hwaccel_pixfmt_list_420, | 1252 | .p.pix_fmts = vc1_hwaccel_pixfmt_list_420, |
| 1255 | .hw_configs = (const AVCodecHWConfigInternal *const []) { | 1253 | .hw_configs = (const AVCodecHWConfigInternal *const []) { |
| 1256 | #if CONFIG_WMV3_DXVA2_HWACCEL | 1254 | #if CONFIG_WMV3_DXVA2_HWACCEL |
| @@ -1288,7 +1286,6 @@ const FFCodec ff_wmv3image_decoder = { · 31 unmodified lines | |||
| 1288 | .close = ff_vc1_decode_end, | 1286 | .close = ff_vc1_decode_end, |
| 1289 | FF_CODEC_DECODE_CB(vc1_decode_frame), | 1287 | FF_CODEC_DECODE_CB(vc1_decode_frame), |
| 1290 | .p.capabilities = AV_CODEC_CAP_DR1, | 1288 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1291 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1292 | .flush = vc1_sprite_flush, | 1289 | .flush = vc1_sprite_flush, |
| 1293 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 1290 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 1294 | AV_PIX_FMT_YUV420P, | 1291 | AV_PIX_FMT_YUV420P, |
| @@ -1308,7 +1305,6 @@ const FFCodec ff_vc1image_decoder = { · 13 unmodified lines | |||
| 1308 | .close = ff_vc1_decode_end, | 1305 | .close = ff_vc1_decode_end, |
| 1309 | FF_CODEC_DECODE_CB(vc1_decode_frame), | 1306 | FF_CODEC_DECODE_CB(vc1_decode_frame), |
| 1310 | .p.capabilities = AV_CODEC_CAP_DR1, | 1307 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 1311 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1312 | .flush = vc1_sprite_flush, | 1308 | .flush = vc1_sprite_flush, |
| 1313 | .p.pix_fmts = (const enum AVPixelFormat[]) { | 1309 | .p.pix_fmts = (const enum AVPixelFormat[]) { |
| 1314 | AV_PIX_FMT_YUV420P, | 1310 | AV_PIX_FMT_YUV420P, |
| @@ -1230,7 +1230,7 @@ const FFCodec ff_vc2_encoder = { · 1229 unmodified lines | |||
| 1230 | .p.type = AVMEDIA_TYPE_VIDEO, | 1230 | .p.type = AVMEDIA_TYPE_VIDEO, |
| 1231 | .p.id = AV_CODEC_ID_DIRAC, | 1231 | .p.id = AV_CODEC_ID_DIRAC, |
| 1232 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, | 1232 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, |
| 1233 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1233 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1234 | .priv_data_size = sizeof(VC2EncContext), | 1234 | .priv_data_size = sizeof(VC2EncContext), |
| 1235 | .init = vc2_encode_init, | 1235 | .init = vc2_encode_init, |
| 1236 | .close = vc2_encode_end, | 1236 | .close = vc2_encode_end, |
| @@ -130,5 +130,4 @@ const FFCodec ff_vcr1_decoder = { · 129 unmodified lines | |||
| 130 | .init = vcr1_decode_init, | 130 | .init = vcr1_decode_init, |
| 131 | FF_CODEC_DECODE_CB(vcr1_decode_frame), | 131 | FF_CODEC_DECODE_CB(vcr1_decode_frame), |
| 132 | .p.capabilities = AV_CODEC_CAP_DR1, | 132 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 133 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 134 | }; | 133 | }; |
| @@ -2750,8 +2750,7 @@ const FFCodec ff_h264_videotoolbox_encoder = { · 2749 unmodified lines | |||
| 2750 | FF_CODEC_ENCODE_CB(vtenc_frame), | 2750 | FF_CODEC_ENCODE_CB(vtenc_frame), |
| 2751 | .close = vtenc_close, | 2751 | .close = vtenc_close, |
| 2752 | .p.priv_class = &h264_videotoolbox_class, | 2752 | .p.priv_class = &h264_videotoolbox_class, |
| 2753 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2753 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2754 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 2755 | }; | 2754 | }; |
| 2756 | 2755 | ||
| 2757 | static const AVOption hevc_options[] = { | 2756 | static const AVOption hevc_options[] = { |
| @@ -2785,8 +2784,7 @@ const FFCodec ff_hevc_videotoolbox_encoder = { · 27 unmodified lines | |||
| 2785 | FF_CODEC_ENCODE_CB(vtenc_frame), | 2784 | FF_CODEC_ENCODE_CB(vtenc_frame), |
| 2786 | .close = vtenc_close, | 2785 | .close = vtenc_close, |
| 2787 | .p.priv_class = &hevc_videotoolbox_class, | 2786 | .p.priv_class = &hevc_videotoolbox_class, |
| 2788 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2787 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2789 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 2790 | .p.wrapper_name = "videotoolbox", | 2788 | .p.wrapper_name = "videotoolbox", |
| 2791 | }; | 2789 | }; |
| 2792 | 2790 | ||
| @@ -2824,7 +2822,6 @@ const FFCodec ff_prores_videotoolbox_encoder = { · 31 unmodified lines | |||
| 2824 | FF_CODEC_ENCODE_CB(vtenc_frame), | 2822 | FF_CODEC_ENCODE_CB(vtenc_frame), |
| 2825 | .close = vtenc_close, | 2823 | .close = vtenc_close, |
| 2826 | .p.priv_class = &prores_videotoolbox_class, | 2824 | .p.priv_class = &prores_videotoolbox_class, |
| 2827 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2825 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2828 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 2829 | .p.wrapper_name = "videotoolbox", | 2826 | .p.wrapper_name = "videotoolbox", |
| 2830 | }; | 2827 | }; |
| @@ -215,5 +215,4 @@ const FFCodec ff_adpcm_vima_decoder = { · 214 unmodified lines | |||
| 215 | .init = decode_init, | 215 | .init = decode_init, |
| 216 | FF_CODEC_DECODE_CB(decode_frame), | 216 | FF_CODEC_DECODE_CB(decode_frame), |
| 217 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 217 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 218 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 219 | }; | 218 | }; |
| @@ -237,5 +237,4 @@ const FFCodec ff_vmdaudio_decoder = { · 236 unmodified lines | |||
| 237 | .init = vmdaudio_decode_init, | 237 | .init = vmdaudio_decode_init, |
| 238 | FF_CODEC_DECODE_CB(vmdaudio_decode_frame), | 238 | FF_CODEC_DECODE_CB(vmdaudio_decode_frame), |
| 239 | .p.capabilities = AV_CODEC_CAP_DR1, | 239 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 240 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 241 | }; | 240 | }; |
| @@ -474,5 +474,5 @@ const FFCodec ff_vmdvideo_decoder = { · 473 unmodified lines | |||
| 474 | .close = vmdvideo_decode_end, | 474 | .close = vmdvideo_decode_end, |
| 475 | FF_CODEC_DECODE_CB(vmdvideo_decode_frame), | 475 | FF_CODEC_DECODE_CB(vmdvideo_decode_frame), |
| 476 | .p.capabilities = AV_CODEC_CAP_DR1, | 476 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 477 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 477 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 478 | }; | 478 | }; |
| @@ -583,5 +583,4 @@ const FFCodec ff_vmnc_decoder = { · 582 unmodified lines | |||
| 583 | .close = decode_end, | 583 | .close = decode_end, |
| 584 | FF_CODEC_DECODE_CB(decode_frame), | 584 | FF_CODEC_DECODE_CB(decode_frame), |
| 585 | .p.capabilities = AV_CODEC_CAP_DR1, | 585 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 586 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 587 | }; | 586 | }; |
| @@ -1895,7 +1895,7 @@ const FFCodec ff_vorbis_decoder = { · 1894 unmodified lines | |||
| 1895 | FF_CODEC_DECODE_CB(vorbis_decode_frame), | 1895 | FF_CODEC_DECODE_CB(vorbis_decode_frame), |
| 1896 | .flush = vorbis_decode_flush, | 1896 | .flush = vorbis_decode_flush, |
| 1897 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 1897 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 1898 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1898 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1899 | #if FF_API_OLD_CHANNEL_LAYOUT | 1899 | #if FF_API_OLD_CHANNEL_LAYOUT |
| 1900 | .p.channel_layouts = ff_vorbis_channel_layouts, | 1900 | .p.channel_layouts = ff_vorbis_channel_layouts, |
| 1901 | #endif | 1901 | #endif |
| @@ -1307,5 +1307,5 @@ const FFCodec ff_vorbis_encoder = { · 1306 unmodified lines | |||
| 1307 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_EXPERIMENTAL, | 1307 | .p.capabilities = AV_CODEC_CAP_DELAY | AV_CODEC_CAP_EXPERIMENTAL, |
| 1308 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, | 1308 | .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_FLTP, |
| 1309 | AV_SAMPLE_FMT_NONE }, | 1309 | AV_SAMPLE_FMT_NONE }, |
| 1310 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1310 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1311 | }; | 1311 | }; |
| @@ -3181,7 +3181,7 @@ const FFCodec ff_theora_decoder = { · 3180 unmodified lines | |||
| 3181 | AV_CODEC_CAP_FRAME_THREADS, | 3181 | AV_CODEC_CAP_FRAME_THREADS, |
| 3182 | .flush = vp3_decode_flush, | 3182 | .flush = vp3_decode_flush, |
| 3183 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), | 3183 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
| 3184 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 3184 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 3185 | FF_CODEC_CAP_EXPORTS_CROPPING | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 3185 | FF_CODEC_CAP_EXPORTS_CROPPING | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 3186 | }; | 3186 | }; |
| 3187 | #endif | 3187 | #endif |
| @@ -3199,7 +3199,7 @@ const FFCodec ff_vp3_decoder = { · 11 unmodified lines | |||
| 3199 | AV_CODEC_CAP_FRAME_THREADS, | 3199 | AV_CODEC_CAP_FRAME_THREADS, |
| 3200 | .flush = vp3_decode_flush, | 3200 | .flush = vp3_decode_flush, |
| 3201 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), | 3201 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
| 3202 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 3202 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 3203 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 3203 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 3204 | }; | 3204 | }; |
| 3205 | 3205 | ||
| @@ -3217,7 +3217,7 @@ const FFCodec ff_vp4_decoder = { · 11 unmodified lines | |||
| 3217 | AV_CODEC_CAP_FRAME_THREADS, | 3217 | AV_CODEC_CAP_FRAME_THREADS, |
| 3218 | .flush = vp3_decode_flush, | 3218 | .flush = vp3_decode_flush, |
| 3219 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), | 3219 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp3_update_thread_context), |
| 3220 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 3220 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 3221 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 3221 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 3222 | }; | 3222 | }; |
| 3223 | #endif | 3223 | #endif |
| @@ -313,5 +313,5 @@ const FFCodec ff_vp5_decoder = { · 312 unmodified lines | |||
| 313 | .close = vp56_free, | 313 | .close = vp56_free, |
| 314 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), | 314 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), |
| 315 | .p.capabilities = AV_CODEC_CAP_DR1, | 315 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 316 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 316 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 317 | }; | 317 | }; |
| @@ -722,7 +722,7 @@ const FFCodec ff_vp6_decoder = { · 721 unmodified lines | |||
| 722 | .close = vp6_decode_free, | 722 | .close = vp6_decode_free, |
| 723 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), | 723 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), |
| 724 | .p.capabilities = AV_CODEC_CAP_DR1, | 724 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 725 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 725 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 726 | }; | 726 | }; |
| 727 | 727 | ||
| 728 | /* flash version, not flipped upside-down */ | 728 | /* flash version, not flipped upside-down */ |
| @@ -736,7 +736,7 @@ const FFCodec ff_vp6f_decoder = { · 7 unmodified lines | |||
| 736 | .close = vp6_decode_free, | 736 | .close = vp6_decode_free, |
| 737 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), | 737 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), |
| 738 | .p.capabilities = AV_CODEC_CAP_DR1, | 738 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 739 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 739 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 740 | }; | 740 | }; |
| 741 | 741 | ||
| 742 | /* flash version, not flipped upside-down, with alpha channel */ | 742 | /* flash version, not flipped upside-down, with alpha channel */ |
| @@ -750,5 +750,5 @@ const FFCodec ff_vp6a_decoder = { · 7 unmodified lines | |||
| 750 | .close = vp6_decode_free, | 750 | .close = vp6_decode_free, |
| 751 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), | 751 | FF_CODEC_DECODE_CB(ff_vp56_decode_frame), |
| 752 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, | 752 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS, |
| 753 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 753 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 754 | }; | 754 | }; |
| @@ -2949,7 +2949,6 @@ const FFCodec ff_vp7_decoder = { · 2948 unmodified lines | |||
| 2949 | .close = ff_vp8_decode_free, | 2949 | .close = ff_vp8_decode_free, |
| 2950 | FF_CODEC_DECODE_CB(vp7_decode_frame), | 2950 | FF_CODEC_DECODE_CB(vp7_decode_frame), |
| 2951 | .p.capabilities = AV_CODEC_CAP_DR1, | 2951 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 2952 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 2953 | .flush = vp8_decode_flush, | 2952 | .flush = vp8_decode_flush, |
| 2954 | }; | 2953 | }; |
| 2955 | #endif /* CONFIG_VP7_DECODER */ | 2954 | #endif /* CONFIG_VP7_DECODER */ |
| @@ -2966,8 +2965,7 @@ const FFCodec ff_vp8_decoder = { · 10 unmodified lines | |||
| 2966 | FF_CODEC_DECODE_CB(ff_vp8_decode_frame), | 2965 | FF_CODEC_DECODE_CB(ff_vp8_decode_frame), |
| 2967 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | | 2966 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | |
| 2968 | AV_CODEC_CAP_SLICE_THREADS, | 2967 | AV_CODEC_CAP_SLICE_THREADS, |
| 2969 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 2968 | .caps_internal = FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 2970 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | ||
| 2971 | .flush = vp8_decode_flush, | 2969 | .flush = vp8_decode_flush, |
| 2972 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp8_decode_update_thread_context), | 2970 | .update_thread_context = ONLY_IF_THREADS_ENABLED(vp8_decode_update_thread_context), |
| 2973 | .hw_configs = (const AVCodecHWConfigInternal *const []) { | 2971 | .hw_configs = (const AVCodecHWConfigInternal *const []) { |
| @@ -1876,7 +1876,7 @@ const FFCodec ff_vp9_decoder = { · 1875 unmodified lines | |||
| 1876 | .close = vp9_decode_free, | 1876 | .close = vp9_decode_free, |
| 1877 | FF_CODEC_DECODE_CB(vp9_decode_frame), | 1877 | FF_CODEC_DECODE_CB(vp9_decode_frame), |
| 1878 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, | 1878 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | AV_CODEC_CAP_SLICE_THREADS, |
| 1879 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 1879 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 1880 | FF_CODEC_CAP_SLICE_THREAD_HAS_MF | | 1880 | FF_CODEC_CAP_SLICE_THREAD_HAS_MF | |
| 1881 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 1881 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 1882 | .flush = vp9_decode_flush, | 1882 | .flush = vp9_decode_flush, |
| @@ -857,5 +857,5 @@ const FFCodec ff_vqa_decoder = { · 856 unmodified lines | |||
| 857 | FF_CODEC_DECODE_CB(vqa_decode_frame), | 857 | FF_CODEC_DECODE_CB(vqa_decode_frame), |
| 858 | .p.capabilities = AV_CODEC_CAP_DR1, | 858 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 859 | .defaults = vqa_defaults, | 859 | .defaults = vqa_defaults, |
| 860 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 860 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 861 | }; | 861 | }; |
| @@ -1714,6 +1714,6 @@ const FFCodec ff_wavpack_decoder = { · 1713 unmodified lines | |||
| 1714 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), | 1714 | .update_thread_context = ONLY_IF_THREADS_ENABLED(update_thread_context), |
| 1715 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | | 1715 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS | |
| 1716 | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_CHANNEL_CONF, | 1716 | AV_CODEC_CAP_SLICE_THREADS | AV_CODEC_CAP_CHANNEL_CONF, |
| 1717 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP | | 1717 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | |
| 1718 | FF_CODEC_CAP_ALLOCATE_PROGRESS, | 1718 | FF_CODEC_CAP_ALLOCATE_PROGRESS, |
| 1719 | }; | 1719 | }; |
| @@ -2977,5 +2977,4 @@ const FFCodec ff_wavpack_encoder = { · 2976 unmodified lines | |||
| 2977 | AV_SAMPLE_FMT_S32P, | 2977 | AV_SAMPLE_FMT_S32P, |
| 2978 | AV_SAMPLE_FMT_FLTP, | 2978 | AV_SAMPLE_FMT_FLTP, |
| 2979 | AV_SAMPLE_FMT_NONE }, | 2979 | AV_SAMPLE_FMT_NONE }, |
| 2980 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 2981 | }; | 2980 | }; |
| @@ -250,6 +250,5 @@ const FFCodec ff_wcmv_decoder = { · 249 unmodified lines | |||
| 250 | .close = decode_close, | 250 | .close = decode_close, |
| 251 | FF_CODEC_DECODE_CB(decode_frame), | 251 | FF_CODEC_DECODE_CB(decode_frame), |
| 252 | .p.capabilities = AV_CODEC_CAP_DR1, | 252 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 253 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 253 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 254 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 255 | }; | 254 | }; |
| @@ -1565,5 +1565,4 @@ const FFCodec ff_webp_decoder = { · 1564 unmodified lines | |||
| 1565 | FF_CODEC_DECODE_CB(webp_decode_frame), | 1565 | FF_CODEC_DECODE_CB(webp_decode_frame), |
| 1566 | .close = webp_decode_close, | 1566 | .close = webp_decode_close, |
| 1567 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 1567 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 1568 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 1569 | }; | 1568 | }; |
| @@ -107,5 +107,4 @@ const FFCodec ff_webvtt_decoder = { · 106 unmodified lines | |||
| 107 | .init = ff_ass_subtitle_header_default, | 107 | .init = ff_ass_subtitle_header_default, |
| 108 | .flush = ff_ass_decoder_flush, | 108 | .flush = ff_ass_decoder_flush, |
| 109 | .priv_data_size = sizeof(FFASSDecoderContext), | 109 | .priv_data_size = sizeof(FFASSDecoderContext), |
| 110 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 111 | }; | 110 | }; |
| @@ -220,5 +220,4 @@ const FFCodec ff_webvtt_encoder = { · 219 unmodified lines | |||
| 220 | .init = webvtt_encode_init, | 220 | .init = webvtt_encode_init, |
| 221 | FF_CODEC_ENCODE_SUB_CB(webvtt_encode_frame), | 221 | FF_CODEC_ENCODE_SUB_CB(webvtt_encode_frame), |
| 222 | .close = webvtt_encode_close, | 222 | .close = webvtt_encode_close, |
| 223 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 224 | }; | 223 | }; |
| @@ -1012,7 +1012,7 @@ const FFCodec ff_wmav1_decoder = { · 1011 unmodified lines | |||
| 1012 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 1012 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 1013 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1013 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1014 | AV_SAMPLE_FMT_NONE }, | 1014 | AV_SAMPLE_FMT_NONE }, |
| 1015 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1015 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1016 | }; | 1016 | }; |
| 1017 | #endif | 1017 | #endif |
| 1018 | #if CONFIG_WMAV2_DECODER | 1018 | #if CONFIG_WMAV2_DECODER |
| @@ -1029,6 +1029,6 @@ const FFCodec ff_wmav2_decoder = { · 10 unmodified lines | |||
| 1029 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 1029 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 1030 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 1030 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 1031 | AV_SAMPLE_FMT_NONE }, | 1031 | AV_SAMPLE_FMT_NONE }, |
| 1032 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1032 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1033 | }; | 1033 | }; |
| 1034 | #endif | 1034 | #endif |
| @@ -444,7 +444,7 @@ const FFCodec ff_wmav1_encoder = { · 443 unmodified lines | |||
| 444 | .close = ff_wma_end, | 444 | .close = ff_wma_end, |
| 445 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 445 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 446 | AV_SAMPLE_FMT_NONE }, | 446 | AV_SAMPLE_FMT_NONE }, |
| 447 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 447 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 448 | }; | 448 | }; |
| 449 | #endif | 449 | #endif |
| 450 | #if CONFIG_WMAV2_ENCODER | 450 | #if CONFIG_WMAV2_ENCODER |
| @@ -459,6 +459,6 @@ const FFCodec ff_wmav2_encoder = { · 8 unmodified lines | |||
| 459 | .close = ff_wma_end, | 459 | .close = ff_wma_end, |
| 460 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 460 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 461 | AV_SAMPLE_FMT_NONE }, | 461 | AV_SAMPLE_FMT_NONE }, |
| 462 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 462 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 463 | }; | 463 | }; |
| 464 | #endif | 464 | #endif |
| @@ -1338,7 +1338,7 @@ const FFCodec ff_wmalossless_decoder = { · 1337 unmodified lines | |||
| 1338 | FF_CODEC_DECODE_CB(decode_packet), | 1338 | FF_CODEC_DECODE_CB(decode_packet), |
| 1339 | .flush = flush, | 1339 | .flush = flush, |
| 1340 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 1340 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 1341 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 1341 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 1342 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, | 1342 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_S16P, |
| 1343 | AV_SAMPLE_FMT_S32P, | 1343 | AV_SAMPLE_FMT_S32P, |
| 1344 | AV_SAMPLE_FMT_NONE }, | 1344 | AV_SAMPLE_FMT_NONE }, |
| @@ -2093,7 +2093,7 @@ const FFCodec ff_wmapro_decoder = { · 2092 unmodified lines | |||
| 2093 | .flush = wmapro_flush, | 2093 | .flush = wmapro_flush, |
| 2094 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 2094 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 2095 | AV_SAMPLE_FMT_NONE }, | 2095 | AV_SAMPLE_FMT_NONE }, |
| 2096 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2096 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2097 | }; | 2097 | }; |
| 2098 | 2098 | ||
| 2099 | const FFCodec ff_xma1_decoder = { | 2099 | const FFCodec ff_xma1_decoder = { |
| @@ -2108,7 +2108,7 @@ const FFCodec ff_xma1_decoder = { · 8 unmodified lines | |||
| 2108 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 2108 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 2109 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 2109 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 2110 | AV_SAMPLE_FMT_NONE }, | 2110 | AV_SAMPLE_FMT_NONE }, |
| 2111 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2111 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2112 | }; | 2112 | }; |
| 2113 | 2113 | ||
| 2114 | const FFCodec ff_xma2_decoder = { | 2114 | const FFCodec ff_xma2_decoder = { |
| @@ -2124,5 +2124,5 @@ const FFCodec ff_xma2_decoder = { · 9 unmodified lines | |||
| 2124 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 2124 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 2125 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, | 2125 | .p.sample_fmts = (const enum AVSampleFormat[]) { AV_SAMPLE_FMT_FLTP, |
| 2126 | AV_SAMPLE_FMT_NONE }, | 2126 | AV_SAMPLE_FMT_NONE }, |
| 2127 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2127 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2128 | }; | 2128 | }; |
| @@ -2008,6 +2008,6 @@ const FFCodec ff_wmavoice_decoder = { · 2007 unmodified lines | |||
| 2008 | .close = wmavoice_decode_end, | 2008 | .close = wmavoice_decode_end, |
| 2009 | FF_CODEC_DECODE_CB(wmavoice_decode_packet), | 2009 | FF_CODEC_DECODE_CB(wmavoice_decode_packet), |
| 2010 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, | 2010 | .p.capabilities = AV_CODEC_CAP_SUBFRAMES | AV_CODEC_CAP_DR1 | AV_CODEC_CAP_DELAY, |
| 2011 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 2011 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 2012 | .flush = wmavoice_flush, | 2012 | .flush = wmavoice_flush, |
| 2013 | }; | 2013 | }; |
| @@ -601,7 +601,7 @@ const FFCodec ff_wmv2_decoder = { · 600 unmodified lines | |||
| 601 | .close = wmv2_decode_end, | 601 | .close = wmv2_decode_end, |
| 602 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), | 602 | FF_CODEC_DECODE_CB(ff_h263_decode_frame), |
| 603 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, | 603 | .p.capabilities = AV_CODEC_CAP_DRAW_HORIZ_BAND | AV_CODEC_CAP_DR1, |
| 604 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 604 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 605 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 605 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 606 | AV_PIX_FMT_NONE }, | 606 | AV_PIX_FMT_NONE }, |
| 607 | }; | 607 | }; |
| @@ -243,7 +243,7 @@ const FFCodec ff_wmv2_encoder = { · 242 unmodified lines | |||
| 243 | .init = wmv2_encode_init, | 243 | .init = wmv2_encode_init, |
| 244 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), | 244 | FF_CODEC_ENCODE_CB(ff_mpv_encode_picture), |
| 245 | .close = ff_mpv_encode_end, | 245 | .close = ff_mpv_encode_end, |
| 246 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 246 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 247 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, | 247 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV420P, |
| 248 | AV_PIX_FMT_NONE }, | 248 | AV_PIX_FMT_NONE }, |
| 249 | }; | 249 | }; |
| @@ -143,5 +143,4 @@ const FFCodec ff_wnv1_decoder = { · 142 unmodified lines | |||
| 143 | .init = decode_init, | 143 | .init = decode_init, |
| 144 | FF_CODEC_DECODE_CB(decode_frame), | 144 | FF_CODEC_DECODE_CB(decode_frame), |
| 145 | .p.capabilities = AV_CODEC_CAP_DR1, | 145 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 146 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 147 | }; | 146 | }; |
| @@ -108,7 +108,6 @@ const FFCodec ff_wrapped_avframe_encoder = { · 107 unmodified lines | |||
| 108 | .p.type = AVMEDIA_TYPE_VIDEO, | 108 | .p.type = AVMEDIA_TYPE_VIDEO, |
| 109 | .p.id = AV_CODEC_ID_WRAPPED_AVFRAME, | 109 | .p.id = AV_CODEC_ID_WRAPPED_AVFRAME, |
| 110 | FF_CODEC_ENCODE_CB(wrapped_avframe_encode), | 110 | FF_CODEC_ENCODE_CB(wrapped_avframe_encode), |
| 111 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 112 | }; | 111 | }; |
| 113 | 112 | ||
| 114 | const FFCodec ff_wrapped_avframe_decoder = { | 113 | const FFCodec ff_wrapped_avframe_decoder = { |
| @@ -117,5 +116,4 @@ const FFCodec ff_wrapped_avframe_decoder = { · 2 unmodified lines | |||
| 117 | .p.type = AVMEDIA_TYPE_VIDEO, | 116 | .p.type = AVMEDIA_TYPE_VIDEO, |
| 118 | .p.id = AV_CODEC_ID_WRAPPED_AVFRAME, | 117 | .p.id = AV_CODEC_ID_WRAPPED_AVFRAME, |
| 119 | FF_CODEC_DECODE_CB(wrapped_avframe_decode), | 118 | FF_CODEC_DECODE_CB(wrapped_avframe_decode), |
| 120 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 121 | }; | 119 | }; |
| @@ -178,5 +178,4 @@ const FFCodec ff_ws_snd1_decoder = { · 177 unmodified lines | |||
| 178 | .init = ws_snd_decode_init, | 178 | .init = ws_snd_decode_init, |
| 179 | FF_CODEC_DECODE_CB(ws_snd_decode_frame), | 179 | FF_CODEC_DECODE_CB(ws_snd_decode_frame), |
| 180 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, | 180 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_CHANNEL_CONF, |
| 181 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 182 | }; | 181 | }; |
| @@ -644,5 +644,5 @@ const FFCodec ff_xan_wc3_decoder = { · 643 unmodified lines | |||
| 644 | .close = xan_decode_end, | 644 | .close = xan_decode_end, |
| 645 | FF_CODEC_DECODE_CB(xan_decode_frame), | 645 | FF_CODEC_DECODE_CB(xan_decode_frame), |
| 646 | .p.capabilities = AV_CODEC_CAP_DR1, | 646 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 647 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 647 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 648 | }; | 648 | }; |
| @@ -185,5 +185,4 @@ const FFCodec ff_xface_decoder = { · 184 unmodified lines | |||
| 185 | .init = xface_decode_init, | 185 | .init = xface_decode_init, |
| 186 | FF_CODEC_DECODE_CB(xface_decode_frame), | 186 | FF_CODEC_DECODE_CB(xface_decode_frame), |
| 187 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE }, | 187 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_MONOWHITE, AV_PIX_FMT_NONE }, |
| 188 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 189 | }; | 188 | }; |
| @@ -134,5 +134,4 @@ const FFCodec ff_xl_decoder = { · 133 unmodified lines | |||
| 134 | .init = decode_init, | 134 | .init = decode_init, |
| 135 | FF_CODEC_DECODE_CB(decode_frame), | 135 | FF_CODEC_DECODE_CB(decode_frame), |
| 136 | .p.capabilities = AV_CODEC_CAP_DR1, | 136 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 137 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 138 | }; | 137 | }; |
| @@ -161,5 +161,4 @@ const FFCodec ff_xsub_decoder = { · 160 unmodified lines | |||
| 161 | .p.id = AV_CODEC_ID_XSUB, | 161 | .p.id = AV_CODEC_ID_XSUB, |
| 162 | .init = decode_init, | 162 | .init = decode_init, |
| 163 | FF_CODEC_DECODE_SUB_CB(decode_frame), | 163 | FF_CODEC_DECODE_SUB_CB(decode_frame), |
| 164 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 165 | }; | 164 | }; |
| @@ -218,5 +218,4 @@ const FFCodec ff_xsub_encoder = { · 217 unmodified lines | |||
| 218 | .p.id = AV_CODEC_ID_XSUB, | 218 | .p.id = AV_CODEC_ID_XSUB, |
| 219 | .init = xsub_encoder_init, | 219 | .init = xsub_encoder_init, |
| 220 | FF_CODEC_ENCODE_SUB_CB(xsub_encode), | 220 | FF_CODEC_ENCODE_SUB_CB(xsub_encode), |
| 221 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 222 | }; | 221 | }; |
| @@ -443,5 +443,5 @@ const FFCodec ff_xan_wc4_decoder = { · 442 unmodified lines | |||
| 443 | .close = xan_decode_end, | 443 | .close = xan_decode_end, |
| 444 | FF_CODEC_DECODE_CB(xan_decode_frame), | 444 | FF_CODEC_DECODE_CB(xan_decode_frame), |
| 445 | .p.capabilities = AV_CODEC_CAP_DR1, | 445 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 446 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP | FF_CODEC_CAP_INIT_THREADSAFE, | 446 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 447 | }; | 447 | }; |
| @@ -89,5 +89,4 @@ const FFCodec ff_y41p_decoder = { · 88 unmodified lines | |||
| 89 | .init = y41p_decode_init, | 89 | .init = y41p_decode_init, |
| 90 | FF_CODEC_DECODE_CB(y41p_decode_frame), | 90 | FF_CODEC_DECODE_CB(y41p_decode_frame), |
| 91 | .p.capabilities = AV_CODEC_CAP_DR1, | 91 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 92 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 93 | }; | 92 | }; |
| @@ -87,5 +87,4 @@ const FFCodec ff_y41p_encoder = { · 86 unmodified lines | |||
| 87 | FF_CODEC_ENCODE_CB(y41p_encode_frame), | 87 | FF_CODEC_ENCODE_CB(y41p_encode_frame), |
| 88 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P, | 88 | .p.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_YUV411P, |
| 89 | AV_PIX_FMT_NONE }, | 89 | AV_PIX_FMT_NONE }, |
| 90 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 91 | }; | 90 | }; |
| @@ -459,5 +459,4 @@ const FFCodec ff_ylc_decoder = { · 458 unmodified lines | |||
| 459 | .close = decode_end, | 459 | .close = decode_end, |
| 460 | FF_CODEC_DECODE_CB(decode_frame), | 460 | FF_CODEC_DECODE_CB(decode_frame), |
| 461 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, | 461 | .p.capabilities = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_FRAME_THREADS, |
| 462 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 463 | }; | 462 | }; |
| @@ -275,5 +275,4 @@ const FFCodec ff_yop_decoder = { · 274 unmodified lines | |||
| 275 | .init = yop_decode_init, | 275 | .init = yop_decode_init, |
| 276 | .close = yop_decode_close, | 276 | .close = yop_decode_close, |
| 277 | FF_CODEC_DECODE_CB(yop_decode_frame), | 277 | FF_CODEC_DECODE_CB(yop_decode_frame), |
| 278 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 279 | }; | 278 | }; |
| @@ -81,5 +81,4 @@ const FFCodec ff_yuv4_decoder = { · 80 unmodified lines | |||
| 81 | .init = yuv4_decode_init, | 81 | .init = yuv4_decode_init, |
| 82 | FF_CODEC_DECODE_CB(yuv4_decode_frame), | 82 | FF_CODEC_DECODE_CB(yuv4_decode_frame), |
| 83 | .p.capabilities = AV_CODEC_CAP_DR1, | 83 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 84 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE, | ||
| 85 | }; | 84 | }; |
| @@ -144,6 +144,5 @@ const FFCodec ff_zerocodec_decoder = { · 143 unmodified lines | |||
| 144 | .flush = zerocodec_decode_flush, | 144 | .flush = zerocodec_decode_flush, |
| 145 | .close = zerocodec_decode_close, | 145 | .close = zerocodec_decode_close, |
| 146 | .p.capabilities = AV_CODEC_CAP_DR1, | 146 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 147 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | | 147 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 148 | FF_CODEC_CAP_INIT_CLEANUP, | ||
| 149 | }; | 148 | }; |
| @@ -655,5 +655,5 @@ const FFCodec ff_zmbv_decoder = { · 654 unmodified lines | |||
| 655 | .close = decode_end, | 655 | .close = decode_end, |
| 656 | FF_CODEC_DECODE_CB(decode_frame), | 656 | FF_CODEC_DECODE_CB(decode_frame), |
| 657 | .p.capabilities = AV_CODEC_CAP_DR1, | 657 | .p.capabilities = AV_CODEC_CAP_DR1, |
| 658 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 658 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 659 | }; | 659 | }; |
| @@ -428,5 +428,5 @@ const FFCodec ff_zmbv_encoder = { · 427 unmodified lines | |||
| 428 | #endif //ZMBV_ENABLE_24BPP | 428 | #endif //ZMBV_ENABLE_24BPP |
| 429 | AV_PIX_FMT_BGR0, | 429 | AV_PIX_FMT_BGR0, |
| 430 | AV_PIX_FMT_NONE }, | 430 | AV_PIX_FMT_NONE }, |
| 431 | .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE | FF_CODEC_CAP_INIT_CLEANUP, | 431 | .caps_internal = FF_CODEC_CAP_INIT_CLEANUP, |
| 432 | }; | 432 | }; |