[Mplayer-cvslog] CVS: main/libvo vo_dga.c,1.20,1.21

Andreas Ackermann acki2 at users.sourceforge.net
Fri May 4 00:39:40 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv14643/main/libvo

Modified Files:
	vo_dga.c 
Log Message:
- finally: 15to16 conversion included!!!


Index: vo_dga.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dga.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** vo_dga.c	2001/05/02 23:21:27	1.20
--- vo_dga.c	2001/05/03 22:39:38	1.21
***************
*** 24,27 ****
--- 24,30 ----
   *
   * $Log$
+  * Revision 1.21  2001/05/03 22:39:38  acki2
+  * - finally: 15to16 conversion included!!!
+  *
   * Revision 1.20  2001/05/02 23:21:27  acki2
   * - now we use fastmemcpy() for copying. Saves about 25% of copying time on K6-2+
***************
*** 118,122 ****
  
  #include "fastmemcpy.h"
! 	
  static vo_info_t vo_info =
  {
--- 121,127 ----
  
  #include "fastmemcpy.h"
! 
! extern void rgb15to16_mmx(char* s0,char* d0,int count);
! 
  static vo_info_t vo_info =
  {
***************
*** 403,409 ****
      break;
    case VDM_CONV_15TO16:
!     printf("vo_dga: 15 to 16 not implemented yet!!!\n");
!     break;
    case VDM_CONV_24TO32:
      {
        int i,k,l,m;
--- 408,433 ----
      break;
    case VDM_CONV_15TO16:
!         {
! 	  int i;
! 	  char *e;
! 	  for(i=0; i< vo_dga_lines; i++){
! #ifdef HAVE_MMX		  
!             rgb15to16_mmx( s, d, vo_dga_bytes_per_line);
! 	    d+=vo_dga_bytes_per_line;
! 	    s+=vo_dga_bytes_per_line;
! #else
!             e = s+vo_dga_bytes_per_line;
! 	    while( s< e ){
!                register uint16_t x =  *(((uint16_t *)s)++);
! 	        *(((uint16_t *)d)++)=( x&0x001F )|( ( x&0x7FE0 )<<1 );
! 	    }
! 
! #endif  
!             d+= vo_dga_vp_skip;
! 	  }
! 	}
! 	break;
    case VDM_CONV_24TO32:
+ 
      {
        int i,k,l,m;


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list