diff options
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index d06bb33a42..8dd6cdd1af 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -380,6 +380,35 @@ typedef struct H264Context{ const uint8_t *field_scan8x8_cavlc_q0; int x264_build; + + /** + * @defgroup multithreading Members for slice based multithreading + * @{ + */ + struct H264Context *thread_context[MAX_THREADS]; + + /** + * current slice number, used to initalize slice_num of each thread/context + */ + int current_slice; + + /** + * Max number of threads / contexts. + * This is equal to AVCodecContext.thread_count unless + * multithreaded decoding is impossible, in which case it is + * reduced to 1. + */ + int max_contexts; + + /** + * 1 if the single thread fallback warning has already been + * displayed, 0 otherwise. + */ + int single_decode_warning; + + int last_slice_type; + /** @} */ + }H264Context; #endif /* H264_H */ |