[svn] / trunk / xvidcore / examples / xvid_decraw.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/examples/xvid_decraw.c

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

revision 1547, Sat Sep 4 14:16:24 2004 UTC revision 1627, Mon Aug 1 10:53:46 2005 UTC
# Line 20  Line 20 
20   *  along with this program; if not, write to the Free Software   *  along with this program; if not, write to the Free Software
21   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
22   *   *
23   * $Id: xvid_decraw.c,v 1.19 2004-09-04 14:16:24 edgomez Exp $   * $Id: xvid_decraw.c,v 1.20 2005-08-01 10:53:46 Isibaar Exp $
24   *   *
25   ****************************************************************************/   ****************************************************************************/
26    
# Line 574  Line 574 
574  #else  #else
575          {          {
576                  int i;                  int i;
577                  for (i=0; i<width*height*BPP;i+=BPP) {                  for (i=0; i<XDIM*YDIM*BPP;i+=BPP) {
578                          if (BPP == 1) {                          if (BPP == 1) {
579                                  fputc(image+i, f);                                  fputc(*(image+i), f);
580                          } else if (BPP == 2) {                          } else if (BPP == 2) {
581                                  fputc(image+i+1, f);                                  fputc(*(image+i+1), f);
582                                  fputc(image+i+0, f);                                  fputc(*(image+i+0), f);
583                          } else if (BPP == 3) {                          } else if (BPP == 3) {
584                                  fputc(image+i+2, f);                                  fputc(*(image+i+2), f);
585                                  fputc(image+i+1, f);                                  fputc(*(image+i+1), f);
586                                  fputc(image+i+0, f);                                  fputc(*(image+i+0), f);
587                          } else if (BPP == 4) {                          } else if (BPP == 4) {
588                                  fputc(image+i+3, f);                                  fputc(*(image+i+3), f);
589                                  fputc(image+i+2, f);                                  fputc(*(image+i+2), f);
590                                  fputc(image+i+1, f);                                  fputc(*(image+i+1), f);
591                                  fputc(image+i+0, f);                                  fputc(*(image+i+0), f);
592                          }                          }
593                  }                  }
594          }          }

Legend:
Removed from v.1547  
changed lines
  Added in v.1627

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