57 |
#include "image/image.h" |
#include "image/image.h" |
58 |
#include "image/colorspace.h" |
#include "image/colorspace.h" |
59 |
#include "utils/mem_align.h" |
#include "utils/mem_align.h" |
|
#include "image/postprocessing.h" |
|
60 |
|
|
61 |
int |
int |
62 |
decoder_resize(DECODER * dec) |
decoder_resize(DECODER * dec) |
1723 |
{ |
{ |
1724 |
/* note: image is stored to tmp */ |
/* note: image is stored to tmp */ |
1725 |
image_copy(&dec->tmp, img, dec->edged_width, dec->height); |
image_copy(&dec->tmp, img, dec->edged_width, dec->height); |
1726 |
image_deblock(&dec->tmp, dec->edged_width, |
image_deblock_rrv(&dec->tmp, dec->edged_width, |
1727 |
mbs, dec->mb_width, dec->mb_height, dec->mb_width, |
mbs, dec->mb_width, dec->mb_height, dec->mb_width, |
1728 |
frame->general); |
8, frame->general); |
1729 |
img = &dec->tmp; |
img = &dec->tmp; |
1730 |
} |
} |
1731 |
|
|
1752 |
int success = 0; |
int success = 0; |
1753 |
int output = 0; |
int output = 0; |
1754 |
int seen_something = 0; |
int seen_something = 0; |
1755 |
|
idctFuncPtr idct_save = idct; |
1756 |
|
|
1757 |
start_global_timer(); |
start_global_timer(); |
1758 |
|
|
1840 |
|
|
1841 |
dec->p_bmv.x = dec->p_bmv.y = dec->p_fmv.y = dec->p_fmv.y = 0; /* init pred vector to 0 */ |
dec->p_bmv.x = dec->p_bmv.y = dec->p_fmv.y = dec->p_fmv.y = 0; /* init pred vector to 0 */ |
1842 |
|
|
1843 |
|
if((idct == simple_idct_mmx) && (dec->bs_version < 10)) /* rather ugly but should work */ |
1844 |
|
idct = idct_mmx; |
1845 |
|
|
1846 |
/* packed_mode: special-N_VOP treament */ |
/* packed_mode: special-N_VOP treament */ |
1847 |
if (dec->packed_mode && vop_type == N_VOP) |
if (dec->packed_mode && vop_type == N_VOP) |
1964 |
} |
} |
1965 |
} |
} |
1966 |
|
|
1967 |
|
idct = idct_save; |
1968 |
|
|
1969 |
frame->length = BitstreamPos(&bs) / 8; |
frame->length = BitstreamPos(&bs) / 8; |
1970 |
|
|
1971 |
if (stats) |
if (stats) |