diff options
author | 2001-05-24 01:19:29 +0000 | |
---|---|---|
committer | 2001-05-24 01:19:29 +0000 | |
commit | 835ad4809cf229234433ff4bf9d97cbb6462162f (patch) | |
tree | faf2a19d722c663bf4f04f2580013d53eeedde5e /mplayer.c | |
parent | f2f55036f84942dc438fa29bb6ac9d609febf0e2 (diff) |
opendivx NEW_DECORE fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@856 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -1221,12 +1221,14 @@ switch(sh_video->codec->driver){ DEC_SET dec_set; #ifdef NEW_DECORE DEC_MEM_REQS dec_mem; - dec_param.x_dim = sh_video->bih->biWidth; - dec_param.y_dim = sh_video->bih->biHeight; dec_param.output_format=DEC_USER; +#else + dec_param.color_depth = 32; #endif + dec_param.x_dim = sh_video->bih->biWidth; + dec_param.y_dim = sh_video->bih->biHeight; #ifdef NEW_DECORE - // 0.50-CVS + // 0.50-CVS new malloc scheme decore(0x123, DEC_OPT_MEMORY_REQS, &dec_param, &dec_mem); dec_param.buffers.mp4_edged_ref_buffers=malloc(dec_mem.mp4_edged_ref_buffers_size); dec_param.buffers.mp4_edged_for_buffers=malloc(dec_mem.mp4_edged_for_buffers_size); @@ -1234,10 +1236,9 @@ switch(sh_video->codec->driver){ dec_param.buffers.mp4_state=malloc(dec_mem.mp4_state_size); dec_param.buffers.mp4_tables=malloc(dec_mem.mp4_tables_size); dec_param.buffers.mp4_stream=malloc(dec_mem.mp4_stream_size); -#else - dec_param.color_depth = 32; #endif decore(0x123, DEC_OPT_INIT, &dec_param, NULL); + dec_set.postproc_level = divx_quality; decore(0x123, DEC_OPT_SETPP, &dec_set, NULL); @@ -1788,7 +1789,10 @@ switch(sh_video->codec->driver){ if(in_size){ sh_video->bih->biSizeImage = in_size; -// ret = ICDecompress(avi_header.hic, ICDECOMPRESS_NOTKEYFRAME|(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL), + + sh_video->bih->biWidth = 1280; + sh_video->o_bih.biWidth = 1280; + // ret = ICDecompress(avi_header.hic, ICDECOMPRESS_NOTKEYFRAME|(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL), ret = ICDecompress(sh_video->hic, ICDECOMPRESS_NOTKEYFRAME | ( (drop_frame==2)?(ICDECOMPRESS_HURRYUP|ICDECOMPRESS_PREROL):0 ) , sh_video->bih, start, |