|
FFmpeg
|
Context used by codec threads and stored in their AVCodecInternal thread_ctx. More...
Public Attributes | |
| struct FrameThreadContext * | parent |
| pthread_t | thread |
| int | thread_init |
| pthread_cond_t | input_cond |
| Used to wait for a new packet from the main thread. | |
| pthread_cond_t | progress_cond |
| Used by child threads to wait for progress to change. | |
| pthread_cond_t | output_cond |
| Used by the main thread to wait for frames to finish. | |
| pthread_mutex_t | mutex |
| Mutex used to protect the contents of the PerThreadContext. | |
| pthread_mutex_t | progress_mutex |
| Mutex used to protect frame progress values and progress_cond. | |
| AVCodecContext * | avctx |
| Context used to decode packets passed to this thread. | |
| AVPacket | avpkt |
| Input packet (for decoding) or output (for encoding). | |
| AVFrame * | frame |
| Output frame (for decoding) or input (for encoding). | |
| int | got_frame |
| The output of got_picture_ptr from the last avcodec_decode_video() call. | |
| int | result |
| The result of the last codec decode/encode() call. | |
| atomic_int | state |
| AVFrame * | released_buffers |
| Array of frames passed to ff_thread_release_buffer(). More... | |
| int | num_released_buffers |
| int | released_buffers_allocated |
| AVFrame * | requested_frame |
| AVFrame the codec passed to get_buffer() | |
| int | requested_flags |
| flags passed to get_buffer() for requested_frame | |
| enum AVPixelFormat * | available_formats |
| Format array for get_format() | |
| enum AVPixelFormat | result_format |
| get_format() result | |
| int | die |
| Set when the thread should exit. | |
| int | hwaccel_serializing |
| int | async_serializing |
| atomic_int | debug_threads |
| Set if the FF_DEBUG_THREADS option is set. | |
Context used by codec threads and stored in their AVCodecInternal thread_ctx.
| AVFrame* PerThreadContext::released_buffers |
Array of frames passed to ff_thread_release_buffer().
Frames are released after all threads referencing them are finished.
1.8.12