Mercurial > mplayer.hg
comparison libmpeg2/decode.c @ 2187:c568f4fffb0a
postprocess fixes
author | arpi |
---|---|
date | Sat, 13 Oct 2001 15:40:35 +0000 |
parents | f91ad6d23ce9 |
children | 0cc88042ff21 |
comparison
equal
deleted
inserted
replaced
2186:491d4fc9b6f2 | 2187:c568f4fffb0a |
---|---|
54 | 54 |
55 //static int drop_flag = 0; | 55 //static int drop_flag = 0; |
56 static int drop_frame = 0; | 56 static int drop_frame = 0; |
57 | 57 |
58 #ifdef MPEG12_POSTPROC | 58 #ifdef MPEG12_POSTPROC |
59 #include "../postproc/postprocess.h" | |
59 int quant_store[MBR+1][MBC+1]; // [Review] | 60 int quant_store[MBR+1][MBC+1]; // [Review] |
60 #endif | 61 #endif |
61 | 62 |
62 static table_init_state=0; | 63 static table_init_state=0; |
63 | 64 |
184 | 185 |
185 if(picture->picture_structure == FRAME_PICTURE) | 186 if(picture->picture_structure == FRAME_PICTURE) |
186 { | 187 { |
187 #ifdef MPEG12_POSTPROC | 188 #ifdef MPEG12_POSTPROC |
188 if( (picture->pp_options) && (!framedrop) ){ | 189 if( (picture->pp_options) && (!framedrop) ){ |
189 // apply OpenDivX postprocess filter | 190 // apply postprocess filter |
190 int stride[3]; | 191 int stride[3]; |
191 stride[0]=picture->coded_picture_width; | 192 stride[0]=picture->coded_picture_width; |
192 stride[1]=stride[2]=stride[0]/2; | 193 stride[1]=stride[2]=stride[0]/2; |
193 postprocess((picture->picture_coding_type == B_TYPE) ? | 194 postprocess((picture->picture_coding_type == B_TYPE) ? |
194 picture->current_frame->base : | 195 picture->current_frame->base : |