[svn] / trunk / xvidcore / src / image / colorspace.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/src/image/colorspace.c

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

revision 1653, Tue Nov 22 10:23:01 2005 UTC revision 1741, Sun Oct 29 08:04:02 2006 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: colorspace.c,v 1.11 2005-11-22 10:23:01 suxen_drol Exp $   * $Id: colorspace.c,v 1.12 2006-10-29 08:04:02 chl Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 487  Line 487 
487                  y_dst += y_dst_stride;                  y_dst += y_dst_stride;
488          }          }
489    
490            if (u_src)
491          for (y = height2; y; y--) {          for (y = height2; y; y--) {
492                  memcpy(u_dst, u_src, width2);                  memcpy(u_dst, u_src, width2);
493                  u_src += uv_src_stride;                  u_src += uv_src_stride;
494                  u_dst += uv_dst_stride;                  u_dst += uv_dst_stride;
495          }          }
496            else
497                    for (y = height2; y; y--) {
498                            memset(u_dst, 0x80, width2);
499                            u_dst += uv_dst_stride;
500                    }
501    
502            if (v_src)
503          for (y = height2; y; y--) {          for (y = height2; y; y--) {
504                  memcpy(v_dst, v_src, width2);                  memcpy(v_dst, v_src, width2);
505                  v_src += uv_src_stride;                  v_src += uv_src_stride;
506                  v_dst += uv_dst_stride;                  v_dst += uv_dst_stride;
507          }          }
508            else
509                    for (y = height2; y; y--) {
510                            memset(v_dst, 0x80, width2);
511                            v_dst += uv_dst_stride;
512                    }
513  }  }
514    
515    

Legend:
Removed from v.1653  
changed lines
  Added in v.1741

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