|
FFmpeg
|
#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include "libavutil/attributes.h"#include "stdatomic_impl.h"Go to the source code of this file.
Data Structures | |
| struct | atomic_flag |
Typedefs | |
| typedef bool | atomic_bool |
| typedef char | atomic_char |
| typedef signed char | atomic_schar |
| typedef unsigned char | atomic_uchar |
| typedef short | atomic_short |
| typedef unsigned short | atomic_ushort |
| typedef int | atomic_int |
| typedef unsigned int | atomic_uint |
| typedef long | atomic_long |
| typedef unsigned long | atomic_ulong |
| typedef FF_ATOMIC_ALIGN64 long long | atomic_llong |
| typedef FF_ATOMIC_ALIGN64 unsigned long long | atomic_ullong |
| typedef unsigned char | atomic_char8_t |
| typedef uint_least16_t | atomic_char16_t |
| typedef uint_least32_t | atomic_char32_t |
| typedef wchar_t | atomic_wchar_t |
| typedef int_least8_t | atomic_int_least8_t |
| typedef uint_least8_t | atomic_uint_least8_t |
| typedef int_least16_t | atomic_int_least16_t |
| typedef uint_least16_t | atomic_uint_least16_t |
| typedef int_least32_t | atomic_int_least32_t |
| typedef uint_least32_t | atomic_uint_least32_t |
| typedef FF_ATOMIC_ALIGN64 int_least64_t | atomic_int_least64_t |
| typedef FF_ATOMIC_ALIGN64 uint_least64_t | atomic_uint_least64_t |
| typedef int_fast8_t | atomic_int_fast8_t |
| typedef uint_fast8_t | atomic_uint_fast8_t |
| typedef int_fast16_t | atomic_int_fast16_t |
| typedef uint_fast16_t | atomic_uint_fast16_t |
| typedef int_fast32_t | atomic_int_fast32_t |
| typedef uint_fast32_t | atomic_uint_fast32_t |
| typedef FF_ATOMIC_ALIGN64 int_fast64_t | atomic_int_fast64_t |
| typedef FF_ATOMIC_ALIGN64 uint_fast64_t | atomic_uint_fast64_t |
| typedef intptr_t | atomic_intptr_t |
| typedef uintptr_t | atomic_uintptr_t |
| typedef size_t | atomic_size_t |
| typedef ptrdiff_t | atomic_ptrdiff_t |
| typedef FF_ATOMIC_ALIGN64 intmax_t | atomic_intmax_t |
| typedef FF_ATOMIC_ALIGN64 uintmax_t | atomic_uintmax_t |
Enumerations | |
| enum | memory_order { memory_order_relaxed , memory_order_consume , memory_order_acquire , memory_order_release , memory_order_acq_rel , memory_order_seq_cst } |
Functions | |
| static av_always_inline uintptr_t | ff_atomic_load_ptr (const volatile void *object, memory_order order) |
| static av_always_inline void | ff_atomic_store_ptr (volatile void *object, const volatile void *desired, memory_order order) |
| static av_always_inline uintptr_t | ff_atomic_exchange_ptr (volatile void *object, const volatile void *desired, memory_order order) |
| static av_always_inline bool | ff_atomic_cas_ptr (volatile void *object, void *expected, const volatile void *desired, memory_order order) |
| void | ff_atomic_unsupported (void) |
| static av_always_inline memory_order | ff_atomic_cas_order (memory_order success, memory_order failure) |
| #define _Atomic |
Definition at line 117 of file stdatomic.h.
Referenced by main().
Definition at line 119 of file stdatomic.h.
Referenced by alloc_picture(), android_camera_read_header(), apv_decode_init(), av_buffer_pool_init(), av_buffer_pool_init2(), av_refstruct_pool_alloc_ext_c(), buffer_create(), config_input(), ff_er_frame_start(), ff_frame_thread_encoder_init(), ff_mediacodec_dec_init(), ff_thread_get_ext_buffer(), ff_thread_progress_init(), ff_thread_progress_reset(), ff_vk_exec_pool_init(), ffmal_update_format(), fifo_init(), filter_frame(), hevc_decode_init(), init_thread(), main(), mediacodec_dec_flush_codec(), mediacodec_wrap_hw_buffer(), refcount_init(), refstruct_pool_get_ext(), sws_alloc_context(), v4l2_prepare_contexts(), vp78_decode_frame(), vp9_decode_frame(), and waiter_init().
| #define kill_dependency | ( | y | ) |
| #define ATOMIC_BOOL_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 123 of file stdatomic.h.
| #define ATOMIC_CHAR_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 124 of file stdatomic.h.
| #define ATOMIC_CHAR8_T_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 125 of file stdatomic.h.
| #define ATOMIC_CHAR16_T_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 126 of file stdatomic.h.
| #define ATOMIC_CHAR32_T_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 127 of file stdatomic.h.
| #define ATOMIC_WCHAR_T_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 128 of file stdatomic.h.
| #define ATOMIC_SHORT_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 129 of file stdatomic.h.
| #define ATOMIC_INT_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 130 of file stdatomic.h.
| #define ATOMIC_LONG_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 131 of file stdatomic.h.
| #define ATOMIC_LLONG_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 132 of file stdatomic.h.
| #define ATOMIC_POINTER_LOCK_FREE FF_ATOMIC_LOCK_FREE |
Definition at line 133 of file stdatomic.h.
| #define atomic_is_lock_free | ( | obj | ) |
Definition at line 135 of file stdatomic.h.
| #define atomic_thread_fence | ( | order | ) |
Definition at line 137 of file stdatomic.h.
Referenced by main().
| #define atomic_signal_fence | ( | order | ) |
Definition at line 138 of file stdatomic.h.
Referenced by main().
Definition at line 140 of file stdatomic.h.
Referenced by ff_atomic_cas_ptr(), ff_atomic_exchange_ptr(), ff_atomic_load_ptr(), and ff_atomic_store_ptr().
| #define FF_ATOMIC_PTR | ( | op, | |
| object ) |
Definition at line 190 of file stdatomic.h.
| #define FF_ATOMIC_CHAR | ( | x | ) |
Definition at line 202 of file stdatomic.h.
| #define FF_ATOMIC_INT | ( | op, | |
| object ) |
Definition at line 205 of file stdatomic.h.
| #define FF_ATOMIC_FN | ( | op, | |
| object ) |
Definition at line 219 of file stdatomic.h.
| #define FF_ATOMIC_FETCH_FN | ( | op, | |
| object ) |
Definition at line 227 of file stdatomic.h.
| #define ff_atomic_c | ( | object, | |
| x ) |
Definition at line 231 of file stdatomic.h.
| #define atomic_load_explicit | ( | object, | |
| order ) |
Definition at line 247 of file stdatomic.h.
Referenced by apv_decode(), av_cpu_count(), av_demuxer_iterate(), av_fast_realloc(), av_get_cpu_flags(), av_log_default_callback(), av_log_get_flags(), av_log_get_level(), av_malloc(), av_muxer_iterate(), av_realloc(), av_refstruct_exclusive(), av_vlog(), cuvid_decode_packet(), cuvid_handle_picture_decode(), cuvid_handle_picture_display(), cuvid_output_frame(), fast_malloc(), ff_thread_await_progress(), ff_thread_progress_await(), ff_thread_progress_report(), ff_thread_receive_frame(), ff_thread_report_progress(), fifo_consumer_thread(), filter_frame(), filter_frame(), format_line(), get_filesize(), init_slice(), main(), mpeg12_execute_slice_threads(), nvdec_decoder_free(), output_frame(), report_detected_props(), shared_read(), and spacemap_init().
| #define atomic_load | ( | object | ) |
Definition at line 250 of file stdatomic.h.
Referenced by android_camera_read_packet(), av_buffer_get_ref_count(), av_buffer_is_writable(), check_written(), decode_interrupt_cb(), decode_mb_row_no_filter(), ff_er_frame_end(), ff_mediacodec_dec_close(), ff_mediacodec_dec_flush(), ff_thread_can_start_frame(), ff_thread_finish_setup(), ff_thread_receive_frame(), ff_v4l2_m2m_codec_reinit(), ff_vvc_frame_wait(), ffmmal_read_frame(), ffmmal_stop_decoder(), ffmpeg_cleanup(), filter_mb_row(), frame_worker_thread(), hls_decode_entry_wpp(), image_available(), main(), mediacodec_buffer_release(), mediacodec_wrap_hw_buffer(), mmap_read_frame(), mux_final_stats(), of_filesize(), park_frame_worker_threads(), print_report(), qsv_internal_session_check_init(), report_frame_progress(), sch_wait(), schedule_update_locked(), send_to_mux(), set_filesize(), spacemap_init(), submit_packet(), task_get_score(), task_has_target_score(), task_run_stage(), thread_get_buffer_internal(), v4l2_free_buffer(), v4l2_read_close(), wait_for_image_format(), waiter_wait(), and worker().
| #define atomic_store_explicit | ( | object, | |
| desired, | |||
| order ) |
Definition at line 253 of file stdatomic.h.
Referenced by apv_decode(), av_cpu_force_count(), av_force_cpu_flags(), av_get_cpu_flags(), av_log_set_callback(), av_log_set_flags(), av_log_set_level(), av_max_alloc(), avpriv_register_devices(), cuvid_decode_end(), cuvid_handle_picture_decode(), cuvid_output_frame(), detect_range(), exec_pool_phase_seed(), ff_thread_progress_report(), ff_thread_report_progress(), init_slice(), main(), mpeg12_execute_slice_threads(), nvdec_retrieve_data(), shared_read(), and submit_packet().
| #define atomic_store | ( | object, | |
| desired ) |
Definition at line 256 of file stdatomic.h.
Referenced by android_camera_read_close(), camera_dev_disconnected(), camera_dev_error(), ff_er_add_slice(), ff_frame_thread_encoder_free(), ff_thread_finish_setup(), fifo_write_trailer(), frame_worker_thread(), hls_decode_entry_wpp(), hls_slice_data_wpp(), image_available(), main(), mmap_start(), mux_task_start(), qsv_internal_session_check_init(), sch_stop(), schedule_update_locked(), submit_packet(), task_init(), transcode(), update_video_stats(), vp78_decode_mb_row_sliced(), waiter_set(), and write_packet().
| #define atomic_exchange_explicit | ( | object, | |
| desired, | |||
| order ) |
| #define atomic_exchange | ( | object, | |
| desired ) |
Definition at line 262 of file stdatomic.h.
Referenced by main().
| #define atomic_compare_exchange_strong_explicit | ( | object, | |
| expected, | |||
| desired, | |||
| success, | |||
| failure ) |
Definition at line 274 of file stdatomic.h.
Referenced by shared_read().
| #define atomic_compare_exchange_strong | ( | object, | |
| expected, | |||
| desired ) |
Definition at line 281 of file stdatomic.h.
Referenced by main(), and task_run_stage().
| #define atomic_compare_exchange_weak_explicit | ( | object, | |
| expected, | |||
| desired, | |||
| success, | |||
| failure ) |
Definition at line 286 of file stdatomic.h.
| #define atomic_compare_exchange_weak | ( | object, | |
| expected, | |||
| desired ) |
Definition at line 291 of file stdatomic.h.
| #define ff_atomic_fetch | ( | object, | |
| operand, | |||
| op, | |||
| order ) |
Definition at line 294 of file stdatomic.h.
| #define atomic_fetch_add_explicit | ( | object, | |
| operand, | |||
| order ) |
Definition at line 297 of file stdatomic.h.
Referenced by apv_decode_tile_component(), av_buffer_pool_get(), av_buffer_ref(), av_refstruct_ref(), av_refstruct_ref_c(), blackframe_slice(), ffmmal_poolref_unref(), ffmmal_set_ref(), fifo_write_packet(), fifo_write_trailer(), refstruct_pool_get_ext(), and v4l2_buf_increase_ref().
| #define atomic_fetch_sub_explicit | ( | object, | |
| operand, | |||
| order ) |
Definition at line 300 of file stdatomic.h.
Referenced by av_buffer_pool_uninit(), av_refstruct_unref(), buffer_replace(), fifo_thread_write_packet(), pool_release_buffer(), pool_return_entry(), pool_unref(), and v4l2_free_buffer().
| #define atomic_fetch_or_explicit | ( | object, | |
| operand, | |||
| order ) |
Definition at line 303 of file stdatomic.h.
Referenced by decode_nal_units(), and detect_alpha().
| #define atomic_fetch_xor_explicit | ( | object, | |
| operand, | |||
| order ) |
Definition at line 306 of file stdatomic.h.
| #define atomic_fetch_and_explicit | ( | object, | |
| operand, | |||
| order ) |
Definition at line 309 of file stdatomic.h.
| #define atomic_fetch_add | ( | object, | |
| operand ) |
Definition at line 312 of file stdatomic.h.
Referenced by add_progress_listener(), add_task(), enqueue_buffer(), ff_er_add_slice(), ff_mediacodec_dec_ref(), ff_vk_exec_get(), ff_vk_exec_pool_init(), ffmmal_add_packet(), ffmmal_fill_input_port(), ffmmal_stop_decoder(), init_graphprint(), input_callback(), listener_init(), main(), mediacodec_dec_flush_codec(), mediacodec_wrap_hw_buffer(), mmap_read_frame(), mux_check_init(), report_frame_progress(), task_add_score(), v4l2_buf_increase_ref(), video_sync_process(), and write_packet().
| #define atomic_fetch_sub | ( | object, | |
| operand ) |
Definition at line 315 of file stdatomic.h.
Referenced by ff_mediacodec_dec_unref(), main(), mediacodec_buffer_release(), sheduled_done(), and v4l2_free_buffer().
| #define atomic_fetch_or | ( | object, | |
| operand ) |
Definition at line 318 of file stdatomic.h.
| #define atomic_fetch_xor | ( | object, | |
| operand ) |
Definition at line 321 of file stdatomic.h.
| #define atomic_fetch_and | ( | object, | |
| operand ) |
Definition at line 324 of file stdatomic.h.
| #define ATOMIC_FLAG_INIT { 0 } |
Definition at line 331 of file stdatomic.h.
Referenced by main().
| #define atomic_flag_test_and_set_explicit | ( | object, | |
| order ) |
Definition at line 333 of file stdatomic.h.
| #define atomic_flag_test_and_set | ( | object | ) |
Definition at line 336 of file stdatomic.h.
Referenced by main().
| #define atomic_flag_clear_explicit | ( | object, | |
| order ) |
Definition at line 339 of file stdatomic.h.
| #define atomic_flag_clear | ( | object | ) |
Definition at line 342 of file stdatomic.h.
Referenced by main().
| typedef bool atomic_bool |
Definition at line 57 of file stdatomic.h.
| typedef char atomic_char |
Definition at line 58 of file stdatomic.h.
| typedef signed char atomic_schar |
Definition at line 59 of file stdatomic.h.
| typedef unsigned char atomic_uchar |
Definition at line 60 of file stdatomic.h.
| typedef short atomic_short |
Definition at line 61 of file stdatomic.h.
| typedef unsigned short atomic_ushort |
Definition at line 62 of file stdatomic.h.
| typedef int atomic_int |
Definition at line 63 of file stdatomic.h.
| typedef unsigned int atomic_uint |
Definition at line 64 of file stdatomic.h.
| typedef long atomic_long |
Definition at line 65 of file stdatomic.h.
| typedef unsigned long atomic_ulong |
Definition at line 66 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 long long atomic_llong |
Definition at line 67 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 unsigned long long atomic_ullong |
Definition at line 68 of file stdatomic.h.
| typedef unsigned char atomic_char8_t |
Definition at line 69 of file stdatomic.h.
| typedef uint_least16_t atomic_char16_t |
Definition at line 70 of file stdatomic.h.
| typedef uint_least32_t atomic_char32_t |
Definition at line 71 of file stdatomic.h.
| typedef wchar_t atomic_wchar_t |
Definition at line 72 of file stdatomic.h.
| typedef int_least8_t atomic_int_least8_t |
Definition at line 73 of file stdatomic.h.
| typedef uint_least8_t atomic_uint_least8_t |
Definition at line 74 of file stdatomic.h.
| typedef int_least16_t atomic_int_least16_t |
Definition at line 75 of file stdatomic.h.
| typedef uint_least16_t atomic_uint_least16_t |
Definition at line 76 of file stdatomic.h.
| typedef int_least32_t atomic_int_least32_t |
Definition at line 77 of file stdatomic.h.
| typedef uint_least32_t atomic_uint_least32_t |
Definition at line 78 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 int_least64_t atomic_int_least64_t |
Definition at line 79 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 uint_least64_t atomic_uint_least64_t |
Definition at line 80 of file stdatomic.h.
| typedef int_fast8_t atomic_int_fast8_t |
Definition at line 81 of file stdatomic.h.
| typedef uint_fast8_t atomic_uint_fast8_t |
Definition at line 82 of file stdatomic.h.
| typedef int_fast16_t atomic_int_fast16_t |
Definition at line 83 of file stdatomic.h.
| typedef uint_fast16_t atomic_uint_fast16_t |
Definition at line 84 of file stdatomic.h.
| typedef int_fast32_t atomic_int_fast32_t |
Definition at line 85 of file stdatomic.h.
| typedef uint_fast32_t atomic_uint_fast32_t |
Definition at line 86 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 int_fast64_t atomic_int_fast64_t |
Definition at line 87 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 uint_fast64_t atomic_uint_fast64_t |
Definition at line 88 of file stdatomic.h.
| typedef intptr_t atomic_intptr_t |
Definition at line 89 of file stdatomic.h.
| typedef uintptr_t atomic_uintptr_t |
Definition at line 90 of file stdatomic.h.
| typedef size_t atomic_size_t |
Definition at line 91 of file stdatomic.h.
| typedef ptrdiff_t atomic_ptrdiff_t |
Definition at line 92 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 intmax_t atomic_intmax_t |
Definition at line 93 of file stdatomic.h.
| typedef FF_ATOMIC_ALIGN64 uintmax_t atomic_uintmax_t |
Definition at line 94 of file stdatomic.h.
| enum memory_order |
| Enumerator | |
|---|---|
| memory_order_relaxed | |
| memory_order_consume | |
| memory_order_acquire | |
| memory_order_release | |
| memory_order_acq_rel | |
| memory_order_seq_cst | |
Definition at line 28 of file stdatomic.h.
|
static |
Definition at line 148 of file stdatomic.h.
|
static |
Definition at line 153 of file stdatomic.h.
|
static |
Definition at line 171 of file stdatomic.h.
|
static |
Definition at line 178 of file stdatomic.h.
| void ff_atomic_unsupported | ( | void | ) |
|
static |
Definition at line 265 of file stdatomic.h.