68 |
{ |
{ |
69 |
DECODER * dec; |
DECODER * dec; |
70 |
|
|
71 |
dec = xvid_malloc(sizeof(DECODER), 16); |
dec = xvid_malloc(sizeof(DECODER), CACHE_LINE); |
72 |
if (dec == NULL) |
if (dec == NULL) |
73 |
{ |
{ |
74 |
return XVID_ERR_MEMORY; |
return XVID_ERR_MEMORY; |
97 |
return XVID_ERR_MEMORY; |
return XVID_ERR_MEMORY; |
98 |
} |
} |
99 |
|
|
100 |
dec->mbs = xvid_malloc(sizeof(MACROBLOCK) * dec->mb_width * dec->mb_height, 16); |
dec->mbs = xvid_malloc(sizeof(MACROBLOCK) * dec->mb_width * dec->mb_height, CACHE_LINE); |
101 |
if (dec->mbs == NULL) |
if (dec->mbs == NULL) |
102 |
{ |
{ |
103 |
image_destroy(&dec->cur, dec->edged_width, dec->edged_height); |
image_destroy(&dec->cur, dec->edged_width, dec->edged_height); |
142 |
for (k = 0; k < 6; k++) |
for (k = 0; k < 6; k++) |
143 |
{ |
{ |
144 |
uint32_t dcscalar; |
uint32_t dcscalar; |
145 |
int16_t block[64]; |
CACHE_ALIGN int16_t block[64]; |
146 |
int16_t data[64]; |
CACHE_ALIGN int16_t data[64]; |
147 |
int16_t predictors[8]; |
int16_t predictors[8]; |
148 |
int start_coeff; |
int start_coeff; |
149 |
|
|
272 |
|
|
273 |
for (k = 0; k < 6; k++) |
for (k = 0; k < 6; k++) |
274 |
{ |
{ |
275 |
int16_t block[64]; |
CACHE_ALIGN int16_t block[64]; |
276 |
int16_t data[64]; |
CACHE_ALIGN int16_t data[64]; |
277 |
|
|
278 |
if (cbp & (1 << (5-k))) // coded |
if (cbp & (1 << (5-k))) // coded |
279 |
{ |
{ |