[Mplayer-cvslog] CVS: main/drivers mga_vid.c,1.19,1.20 mga_vid.h,1.5,1.6
GEREOFFY
arpi_esp at users.sourceforge.net
Mon Apr 16 05:32:28 CEST 2001
Update of /cvsroot/mplayer/main/drivers
In directory usw-pr-cvs1:/tmp/cvs-serv23128
Modified Files:
mga_vid.c mga_vid.h
Log Message:
I420/IYUV support
Index: mga_vid.c
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/mga_vid.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** mga_vid.c 2001/04/16 01:26:08 1.19
--- mga_vid.c 2001/04/16 03:32:26 1.20
***************
*** 396,399 ****
--- 396,401 ----
switch(config->format){
case MGA_VID_FORMAT_YV12:
+ case MGA_VID_FORMAT_I420:
+ case MGA_VID_FORMAT_IYUV:
regs.besctl = 1 // BES enabled
+ (0<<6) // even start polarity
***************
*** 485,489 ****
regs.besb2org = (uint32_t) mga_src_base + baseadrofs + 3*frame_size;
! if(config->format==MGA_VID_FORMAT_YV12){
// planar YUV frames:
if (is_g400)
--- 487,494 ----
regs.besb2org = (uint32_t) mga_src_base + baseadrofs + 3*frame_size;
! if(config->format==MGA_VID_FORMAT_YV12
! ||config->format==MGA_VID_FORMAT_IYUV
! ||config->format==MGA_VID_FORMAT_I420
! ){
// planar YUV frames:
if (is_g400)
***************
*** 492,495 ****
--- 497,501 ----
baseadrofs = (((ofstop*regs.besviscal)/2)>>16)*regs.bespitch;
+ if(config->format==MGA_VID_FORMAT_YV12){
regs.besa1corg = (uint32_t) mga_src_base + baseadrofs + regs.bespitch * sh ;
regs.besa2corg = (uint32_t) mga_src_base + baseadrofs + 1*frame_size + regs.bespitch * sh;
***************
*** 500,503 ****
--- 506,520 ----
regs.besb1c3org = regs.besb1corg + ((regs.bespitch * sh) / 4);
regs.besb2c3org = regs.besb2corg + ((regs.bespitch * sh) / 4);
+ } else {
+ regs.besa1c3org = (uint32_t) mga_src_base + baseadrofs + regs.bespitch * sh ;
+ regs.besa2c3org = (uint32_t) mga_src_base + baseadrofs + 1*frame_size + regs.bespitch * sh;
+ regs.besb1c3org = (uint32_t) mga_src_base + baseadrofs + 2*frame_size + regs.bespitch * sh;
+ regs.besb2c3org = (uint32_t) mga_src_base + baseadrofs + 3*frame_size + regs.bespitch * sh;
+ regs.besa1corg = regs.besa1c3org + ((regs.bespitch * sh) / 4);
+ regs.besa2corg = regs.besa2c3org + ((regs.bespitch * sh) / 4);
+ regs.besb1corg = regs.besb1c3org + ((regs.bespitch * sh) / 4);
+ regs.besb2corg = regs.besb2c3org + ((regs.bespitch * sh) / 4);
+ }
+
}
Index: mga_vid.h
===================================================================
RCS file: /cvsroot/mplayer/main/drivers/mga_vid.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** mga_vid.h 2001/04/15 20:31:57 1.5
--- mga_vid.h 2001/04/16 03:32:26 1.6
***************
*** 39,42 ****
--- 39,44 ----
#define MGA_VID_FORMAT_YV12 0x32315659
+ #define MGA_VID_FORMAT_IYUV (('I'<<24)|('Y'<<16)|('U'<<8)|'V')
+ #define MGA_VID_FORMAT_I420 (('I'<<24)|('4'<<16)|('2'<<8)|'0')
#define MGA_VID_FORMAT_YUY2 (('Y'<<24)|('U'<<16)|('Y'<<8)|'2')
#define MGA_VID_FORMAT_UYVY (('U'<<24)|('Y'<<16)|('V'<<8)|'Y')
_______________________________________________
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