diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-01-17 22:28:46 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-03-21 11:27:13 +0100 |
commit | 30da98adbda6de1f55188f9058a3a5c715049633 (patch) | |
tree | 170e185eefe1c17b94a8194f9208d47820fec7ff /libavcodec/h264.h | |
parent | bf03a878a76dea29b36f368759e9f66102b39a5f (diff) | |
download | ffmpeg-30da98adbda6de1f55188f9058a3a5c715049633.tar.gz |
h264: move cabac[_state] into the per-slice context
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r-- | libavcodec/h264.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index e9ce68a869..e998eb6cc3 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -396,6 +396,12 @@ typedef struct H264SliceContext { ///< as mb is addressed by scantable[i] and scantable is uint8_t we can either ///< check that i is not too large or ensure that there is some unused stuff after mb int16_t mb_padding[256 * 2]; + + /** + * Cabac + */ + CABACContext cabac; + uint8_t cabac_state[1024]; } H264SliceContext; /** @@ -476,12 +482,6 @@ typedef struct H264Context { GetBitContext *intra_gb_ptr; GetBitContext *inter_gb_ptr; - /** - * Cabac - */ - CABACContext cabac; - uint8_t cabac_state[1024]; - /* 0x100 -> non null luma_dc, 0x80/0x40 -> non null chroma_dc (cb/cr), 0x?0 -> chroma_cbp(0, 1, 2), 0x0? luma_cbp */ uint16_t *cbp_table; int cbp; |