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

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

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

revision 1.10, Mon Apr 12 14:05:08 2004 UTC revision 1.12, Sun Oct 29 08:04:02 2006 UTC
# Line 38  Line 38 
38  packedFuncPtr abgr_to_yv12;  packedFuncPtr abgr_to_yv12;
39  packedFuncPtr rgba_to_yv12;  packedFuncPtr rgba_to_yv12;
40  packedFuncPtr argb_to_yv12;  packedFuncPtr argb_to_yv12;
 packedFuncPtr yuv_to_yv12;  
41  packedFuncPtr yuyv_to_yv12;  packedFuncPtr yuyv_to_yv12;
42  packedFuncPtr uyvy_to_yv12;  packedFuncPtr uyvy_to_yv12;
43    
# Line 60  Line 59 
59  packedFuncPtr yv12_to_abgr;  packedFuncPtr yv12_to_abgr;
60  packedFuncPtr yv12_to_rgba;  packedFuncPtr yv12_to_rgba;
61  packedFuncPtr yv12_to_argb;  packedFuncPtr yv12_to_argb;
 packedFuncPtr yv12_to_yuv;  
62  packedFuncPtr yv12_to_yuyv;  packedFuncPtr yv12_to_yuyv;
63  packedFuncPtr yv12_to_uyvy;  packedFuncPtr yv12_to_uyvy;
64    
# Line 77  Line 75 
75  planarFuncPtr yv12_to_yv12;  planarFuncPtr yv12_to_yv12;
76    
77    
78  int32_t RGB_Y_tab[256];  static int32_t RGB_Y_tab[256];
79  int32_t B_U_tab[256];  static int32_t B_U_tab[256];
80  int32_t G_U_tab[256];  static int32_t G_U_tab[256];
81  int32_t G_V_tab[256];  static int32_t G_V_tab[256];
82  int32_t R_V_tab[256];  static int32_t R_V_tab[256];
83    
84    
85    
# Line 489  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.1.10  
changed lines
  Added in v.1.12

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