/third_party/ffmpeg/libavcodec/ |
H A D | pthread.c | 58 } else if (frame_threading_supported && (avctx->thread_type & FF_THREAD_FRAME)) { in validate_thread_parameters() 59 avctx->active_thread_type = FF_THREAD_FRAME; in validate_thread_parameters() 80 else if (avctx->active_thread_type&FF_THREAD_FRAME) in ff_thread_init() 88 if (avctx->active_thread_type&FF_THREAD_FRAME) in ff_thread_free()
|
H A D | frame_thread_encoder.c | 141 if( !(avctx->thread_type & FF_THREAD_FRAME) in ff_frame_thread_encoder_init() 233 thread_avctx->active_thread_type &= ~FF_THREAD_FRAME; in ff_frame_thread_encoder_init() 245 avctx->active_thread_type = FF_THREAD_FRAME; in ff_frame_thread_encoder_init()
|
H A D | pthread_frame.c | 657 if (!(avctx->active_thread_type&FF_THREAD_FRAME)) return; in ff_thread_finish_setup() 961 if ((avctx->active_thread_type&FF_THREAD_FRAME) && atomic_load(&p->state) != STATE_SETTING_UP && in ff_thread_can_start_frame() 978 if (!(avctx->active_thread_type & FF_THREAD_FRAME)) in thread_get_buffer_internal() 1032 if (!(avctx->active_thread_type & FF_THREAD_FRAME) || avctx->thread_safe_callbacks || in ff_thread_get_format() 1076 if (!(avctx->active_thread_type & FF_THREAD_FRAME)) in ff_thread_get_ext_buffer() 1105 int can_direct_free = !(avctx->active_thread_type & FF_THREAD_FRAME) || in ff_thread_release_buffer()
|
H A D | avcodec.c | 295 && !(avci->frame_thread_encoder && (avctx->active_thread_type&FF_THREAD_FRAME))) { in avcodec_open2() 307 if (!(avctx->active_thread_type & FF_THREAD_FRAME) || in avcodec_open2() 412 if (HAVE_THREADS && avctx->active_thread_type & FF_THREAD_FRAME) in avcodec_flush_buffers()
|
H A D | h264_mc_template.c | 79 if (HAVE_THREADS && (h->avctx->active_thread_type & FF_THREAD_FRAME)) in hl_motion()
|
H A D | encode.c | 195 (avci->frame_thread_encoder && avctx->active_thread_type & FF_THREAD_FRAME))) in encode_simple_internal() 207 avci->frame_thread_encoder && (avctx->active_thread_type & FF_THREAD_FRAME)) in encode_simple_internal()
|
H A D | decode.c | 299 avctx->active_thread_type & FF_THREAD_FRAME)) in decode_simple_internal() 304 if (HAVE_THREADS && avctx->active_thread_type & FF_THREAD_FRAME) { in decode_simple_internal() 470 int nb_errors_max = 20 + (HAVE_THREADS && avctx->active_thread_type & FF_THREAD_FRAME ? in decode_simple_internal() 1040 if (avctx->active_thread_type & FF_THREAD_FRAME) in avcodec_get_hw_frames_parameters() 1540 if ((avctx->thread_type & FF_THREAD_FRAME) && in ff_decode_preinit()
|
H A D | rv34.c | 703 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) { in rv34_mc() 885 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) in rv34_decode_mv() 1469 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) in rv34_decode_slice() 1569 if (HAVE_THREADS && (s->avctx->active_thread_type & FF_THREAD_FRAME)) in finish_frame() 1744 (s->avctx->active_thread_type & FF_THREAD_FRAME)) { in ff_rv34_decode_frame() 1792 (s->avctx->active_thread_type & FF_THREAD_FRAME)) { in ff_rv34_decode_frame()
|
H A D | h264_picture.c | 226 if (in_setup || !(avctx->active_thread_type & FF_THREAD_FRAME)) { in ff_h264_field_end()
|
H A D | hevc_mvs.c | 250 if (s->threads_type == FF_THREAD_FRAME) in temporal_luma_motion_vector() 264 if (s->threads_type == FF_THREAD_FRAME) in temporal_luma_motion_vector()
|
H A D | avcodec.h | 1467 * Use of FF_THREAD_FRAME will increase decoding delay by one frame per thread, 1474 #define FF_THREAD_FRAME 1 ///< Decode more than one frame at once macro
|
H A D | mimic.c | 423 if (!(avctx->active_thread_type & FF_THREAD_FRAME)) in mimic_decode_frame()
|
H A D | h264dec.c | 606 if (avctx->active_thread_type & FF_THREAD_FRAME) in decode_nal_units() 647 if (avctx->active_thread_type & FF_THREAD_FRAME && in decode_nal_units()
|
H A D | hevc_filter.c | 875 if (s->threads_type & FF_THREAD_FRAME ) in ff_hevc_hls_filter() 880 if (s->threads_type & FF_THREAD_FRAME ) in ff_hevc_hls_filter() 883 } else if (s->threads_type & FF_THREAD_FRAME && x_end) in ff_hevc_hls_filter()
|
H A D | vp3.c | 1913 if (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_FRAME) { in vp3_draw_horiz_band() 2106 (s->avctx->active_thread_type & FF_THREAD_FRAME); in render_slice() 2608 if (s->avctx->active_thread_type&FF_THREAD_FRAME) { in vp3_decode_frame() 2831 if (!HAVE_THREADS || !(s->avctx->active_thread_type & FF_THREAD_FRAME)) { in vp3_decode_frame() 2842 if (!HAVE_THREADS || !(s->avctx->active_thread_type & FF_THREAD_FRAME)) in vp3_decode_frame()
|
H A D | hevc_refs.c | 422 if (s->threads_type == FF_THREAD_FRAME) in generate_missing_ref()
|
H A D | h264_direct.c | 187 if (!HAVE_THREADS || !(h->avctx->active_thread_type & FF_THREAD_FRAME)) in await_reference_mb_row()
|
H A D | pngdec.c | 1574 if (!(avctx->active_thread_type & FF_THREAD_FRAME)) { in decode_frame_png() 1626 if (!(avctx->active_thread_type & FF_THREAD_FRAME)) { in decode_frame_apng()
|
H A D | options_table.h | 357 {"thread_type", "select multithreading type", OFFSET(thread_type), AV_OPT_TYPE_FLAGS, {.i64 = FF_THREAD_SLICE|FF_THREAD_FRAME }, 0, INT_MAX, V|A|E|D, "thread_type"}, 359 {"frame", NULL, 0, AV_OPT_TYPE_CONST, {.i64 = FF_THREAD_FRAME }, INT_MIN, INT_MAX, V|E|D, "thread_type"},
|
H A D | vp8.c | 2608 if (avctx->active_thread_type == FF_THREAD_FRAME) in vp78_decode_mb_row_sliced() 2771 if (avctx->active_thread_type == FF_THREAD_FRAME) in vp78_decode_frame()
|
H A D | hevcdec.c | 1813 if (s->threads_type == FF_THREAD_FRAME ) { in hevc_await_progress() 3378 if (s->ref && s->threads_type == FF_THREAD_FRAME) in decode_nal_units() 3821 if((avctx->active_thread_type & FF_THREAD_FRAME) && avctx->thread_count > 1) in hevc_decode_init() 3822 s->threads_type = FF_THREAD_FRAME; in hevc_decode_init()
|
H A D | mpegvideo.c | 1481 if(HAVE_THREADS && s->avctx->active_thread_type&FF_THREAD_FRAME) { in mpv_reconstruct_mb_internal()
|
H A D | mpeg12dec.c | 1644 if (HAVE_THREADS && (avctx->active_thread_type & FF_THREAD_FRAME)) in mpeg_field_start()
|
H A D | vp9.c | 1653 avctx->active_thread_type == FF_THREAD_FRAME && s->s.h.refreshctx && !s->s.h.parallelmode; in vp9_decode_frame()
|