mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-04-07 09:48:29 +00:00
Increase alignment for DCT block arrays from 8 to 16
Patch by Alexander Strange ( astrange ithinksw com ) Originally committed as revision 12767 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6363827e13
commit
8e5f465f4c
@ -47,7 +47,7 @@ typedef struct ASV1Context{
|
|||||||
int mb_height;
|
int mb_height;
|
||||||
int mb_width2;
|
int mb_width2;
|
||||||
int mb_height2;
|
int mb_height2;
|
||||||
DECLARE_ALIGNED_8(DCTELEM, block[6][64]);
|
DECLARE_ALIGNED_16(DCTELEM, block[6][64]);
|
||||||
DECLARE_ALIGNED_8(uint16_t, intra_matrix[64]);
|
DECLARE_ALIGNED_8(uint16_t, intra_matrix[64]);
|
||||||
DECLARE_ALIGNED_8(int, q_intra_matrix[64]);
|
DECLARE_ALIGNED_8(int, q_intra_matrix[64]);
|
||||||
uint8_t *bitstream_buffer;
|
uint8_t *bitstream_buffer;
|
||||||
|
@ -376,7 +376,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s,
|
|||||||
PutBitContext pb, vs_pb;
|
PutBitContext pb, vs_pb;
|
||||||
GetBitContext gb;
|
GetBitContext gb;
|
||||||
BlockInfo mb_data[5 * 6], *mb, *mb1;
|
BlockInfo mb_data[5 * 6], *mb, *mb1;
|
||||||
DECLARE_ALIGNED_8(DCTELEM, sblock[5*6][64]);
|
DECLARE_ALIGNED_16(DCTELEM, sblock[5*6][64]);
|
||||||
DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */
|
DECLARE_ALIGNED_8(uint8_t, mb_bit_buffer[80 + 4]); /* allow some slack */
|
||||||
DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */
|
DECLARE_ALIGNED_8(uint8_t, vs_bit_buffer[5 * 80 + 4]); /* allow some slack */
|
||||||
const int log2_blocksize= 3-s->avctx->lowres;
|
const int log2_blocksize= 3-s->avctx->lowres;
|
||||||
|
@ -47,7 +47,7 @@ typedef struct MDECContext{
|
|||||||
int mb_width;
|
int mb_width;
|
||||||
int mb_height;
|
int mb_height;
|
||||||
int mb_x, mb_y;
|
int mb_x, mb_y;
|
||||||
DECLARE_ALIGNED_8(DCTELEM, block[6][64]);
|
DECLARE_ALIGNED_16(DCTELEM, block[6][64]);
|
||||||
DECLARE_ALIGNED_8(uint16_t, intra_matrix[64]);
|
DECLARE_ALIGNED_8(uint16_t, intra_matrix[64]);
|
||||||
DECLARE_ALIGNED_8(int, q_intra_matrix[64]);
|
DECLARE_ALIGNED_8(int, q_intra_matrix[64]);
|
||||||
uint8_t *bitstream_buffer;
|
uint8_t *bitstream_buffer;
|
||||||
|
@ -82,7 +82,7 @@ typedef struct MJpegDecodeContext {
|
|||||||
AVFrame picture; /* picture structure */
|
AVFrame picture; /* picture structure */
|
||||||
int linesize[MAX_COMPONENTS]; ///< linesize << interlaced
|
int linesize[MAX_COMPONENTS]; ///< linesize << interlaced
|
||||||
int8_t *qscale_table;
|
int8_t *qscale_table;
|
||||||
DECLARE_ALIGNED_8(DCTELEM, block[64]);
|
DECLARE_ALIGNED_16(DCTELEM, block[64]);
|
||||||
ScanTable scantable;
|
ScanTable scantable;
|
||||||
DSPContext dsp;
|
DSPContext dsp;
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ typedef struct Wmv2Context{
|
|||||||
int hshift;
|
int hshift;
|
||||||
|
|
||||||
ScanTable abt_scantable[2];
|
ScanTable abt_scantable[2];
|
||||||
DECLARE_ALIGNED_8(DCTELEM, abt_block2[6][64]);
|
DECLARE_ALIGNED_16(DCTELEM, abt_block2[6][64]);
|
||||||
}Wmv2Context;
|
}Wmv2Context;
|
||||||
|
|
||||||
void ff_wmv2_common_init(Wmv2Context * w);
|
void ff_wmv2_common_init(Wmv2Context * w);
|
||||||
|
Loading…
Reference in New Issue
Block a user