[cvs] / xvidcore / src / decoder.c Repository:
ViewVC logotype

Diff of /xvidcore/src/decoder.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.37.2.1, Thu Sep 26 01:54:54 2002 UTC revision 1.38, Sat Sep 21 03:07:56 2002 UTC
# Line 53  Line 53 
53   *  26.03.2002  interlacing support - moved transfers outside decode loop   *  26.03.2002  interlacing support - moved transfers outside decode loop
54   *  26.12.2001  decoder_mbinter: dequant/idct moved within if(coded) block   *  26.12.2001  decoder_mbinter: dequant/idct moved within if(coded) block
55   *  22.12.2001  lock based interpolation   *  22.12.2001  lock based interpolation
56   *  01.12.2001  inital version; (c)2001 peter ross <pross@cs.rmit.edu.au>   *  01.12.2001  inital version; (c)2001 peter ross <pross@xvid.org>
57   *   *
58   *  $Id$   *  $Id$
59   *   *
# Line 268  Line 268 
268                  start_timer();                  start_timer();
269                  if (cbp & (1 << (5 - i)))       // coded                  if (cbp & (1 << (5 - i)))       // coded
270                  {                  {
271                          int direction = dec->alternate_vertical_scan ?                          get_intra_block(bs, &block[i * 64], pMB->acpred_directions[i],
272                                  2 : pMB->acpred_directions[i];                                                          start_coeff);
   
                         get_intra_block(bs, &block[i * 64], direction, start_coeff);  
273                  }                  }
274                  stop_coding_timer();                  stop_coding_timer();
275    
# Line 409  Line 407 
407          stop_comp_timer();          stop_comp_timer();
408    
409          for (i = 0; i < 6; i++) {          for (i = 0; i < 6; i++) {
                 int direction = dec->alternate_vertical_scan ? 2 : 0;  
   
410                  if (cbp & (1 << (5 - i)))       // coded                  if (cbp & (1 << (5 - i)))       // coded
411                  {                  {
412                          memset(&block[i * 64], 0, 64 * sizeof(int16_t));        // clear                          memset(&block[i * 64], 0, 64 * sizeof(int16_t));        // clear
413    
414                          start_timer();                          start_timer();
415                          get_inter_block(bs, &block[i * 64], direction);                          get_inter_block(bs, &block[i * 64]);
416                          stop_coding_timer();                          stop_coding_timer();
417    
418                          start_timer();                          start_timer();
# Line 589  Line 585 
585    
586          start_timer();          start_timer();
587          image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height,          image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height,
588                                     dec->width, dec->height);                                     dec->width, dec->height, dec->interlacing);
589          stop_edges_timer();          stop_edges_timer();
590    
591          bound = 0;          bound = 0;
# Line 880  Line 876 
876          stop_comp_timer();          stop_comp_timer();
877    
878          for (i = 0; i < 6; i++) {          for (i = 0; i < 6; i++) {
                 int direction = dec->alternate_vertical_scan ? 2 : 0;  
   
879                  if (cbp & (1 << (5 - i)))       // coded                  if (cbp & (1 << (5 - i)))       // coded
880                  {                  {
881                          memset(&block[i * 64], 0, 64 * sizeof(int16_t));        // clear                          memset(&block[i * 64], 0, 64 * sizeof(int16_t));        // clear
882    
883                          start_timer();                          start_timer();
884                          get_inter_block(bs, &block[i * 64], direction);                          get_inter_block(bs, &block[i * 64]);
885                          stop_coding_timer();                          stop_coding_timer();
886    
887                          start_timer();                          start_timer();
# Line 1048  Line 1042 
1042          stop_comp_timer();          stop_comp_timer();
1043    
1044          for (i = 0; i < 6; i++) {          for (i = 0; i < 6; i++) {
                 int direction = dec->alternate_vertical_scan ? 2 : 0;  
   
1045                  if (cbp & (1 << (5 - i)))       // coded                  if (cbp & (1 << (5 - i)))       // coded
1046                  {                  {
1047                          memset(&block[i * 64], 0, 64 * sizeof(int16_t));        // clear                          memset(&block[i * 64], 0, 64 * sizeof(int16_t));        // clear
1048    
1049                          start_timer();                          start_timer();
1050                          get_inter_block(bs, &block[i * 64], direction);                          get_inter_block(bs, &block[i * 64]);
1051                          stop_coding_timer();                          stop_coding_timer();
1052    
1053                          start_timer();                          start_timer();
# Line 1150  Line 1142 
1142    
1143          start_timer();          start_timer();
1144          image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height,          image_setedges(&dec->refn[0], dec->edged_width, dec->edged_height,
1145                                     dec->width, dec->height);                                     dec->width, dec->height, dec->interlacing);
1146          image_setedges(&dec->refn[1], dec->edged_width, dec->edged_height,          image_setedges(&dec->refn[1], dec->edged_width, dec->edged_height,
1147                                     dec->width, dec->height);                                     dec->width, dec->height, dec->interlacing);
1148          stop_edges_timer();          stop_edges_timer();
1149    
1150  #ifdef BFRAMES_DEC_DEBUG  #ifdef BFRAMES_DEC_DEBUG

Legend:
Removed from v.1.37.2.1  
changed lines
  Added in v.1.38

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4