aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-03-21 15:30:10 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-21 15:36:57 +0100
commit739edc1a7e83cdca27c3defbc3f057e98a3de472 (patch)
tree6d7c29f22fd58077d5d20682bc73433179c55a0d /libavcodec/h264.h
parent35a788d953838c1b7f34038ef54fddc3d11994fe (diff)
parentbf03a878a76dea29b36f368759e9f66102b39a5f (diff)
downloadffmpeg-739edc1a7e83cdca27c3defbc3f057e98a3de472.tar.gz
Merge commit 'bf03a878a76dea29b36f368759e9f66102b39a5f'
* commit 'bf03a878a76dea29b36f368759e9f66102b39a5f': h264: move mb[_{padding,luma_dc}] into the per-slice context Conflicts: libavcodec/h264.h libavcodec/h264_cavlc.c libavcodec/h264_mb.c libavcodec/h264_slice.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.h')
-rw-r--r--libavcodec/h264.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h
index 8518fc8eb2..f3c86efa10 100644
--- a/libavcodec/h264.h
+++ b/libavcodec/h264.h
@@ -426,6 +426,13 @@ typedef struct H264SliceContext {
DECLARE_ALIGNED(8, int8_t, ref_cache)[2][5 * 8];
DECLARE_ALIGNED(8, uint16_t, sub_mb_type)[4];
+
+ ///< as a dct coefficient is int32_t in high depth, we need to reserve twice the space.
+ DECLARE_ALIGNED(16, int16_t, mb)[16 * 48 * 2];
+ DECLARE_ALIGNED(16, int16_t, mb_luma_dc)[3][16 * 2];
+ ///< 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];
} H264SliceContext;
/**
@@ -512,10 +519,6 @@ typedef struct H264Context {
GetBitContext *intra_gb_ptr;
GetBitContext *inter_gb_ptr;
- DECLARE_ALIGNED(16, int16_t, mb)[16 * 48 * 2]; ///< as a dct coefficient is int32_t in high depth, we need to reserve twice the space.
- DECLARE_ALIGNED(16, int16_t, mb_luma_dc)[3][16 * 2];
- int16_t mb_padding[256 * 2]; ///< 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
-
/**
* Cabac
*/