[MPlayer-cvslog] r22884 - trunk/vidix/unichrome_vid.c

ben subversion at mplayerhq.hu
Sun Apr 1 14:48:32 CEST 2007


Author: ben
Date: Sun Apr  1 14:48:32 2007
New Revision: 22884

Modified:
   trunk/vidix/unichrome_vid.c

Log:
killed warnings in unichrome driver

Modified: trunk/vidix/unichrome_vid.c
==============================================================================
--- trunk/vidix/unichrome_vid.c	(original)
+++ trunk/vidix/unichrome_vid.c	Sun Apr  1 14:48:32 2007
@@ -151,7 +151,7 @@ find_chip (unsigned chip_id)
  *       See ddover.c, DDOVER_HQVCalcZoomHeight()
  */
 static int
-uc_ovl_map_vzoom (int sh, int dh, uint32_t * zoom, uint32_t * mini)
+uc_ovl_map_vzoom (uint32_t sh, uint32_t dh, uint32_t * zoom, uint32_t * mini)
 {
   uint32_t sh1, tmp, d;
   int zoom_ok = 1;
@@ -215,7 +215,7 @@ uc_ovl_map_vzoom (int sh, int dh, uint32
  *       See ddover.c, DDOVER_HQVCalcZoomWidth() and DDOver_GetDisplayCount()
  */
 static int
-uc_ovl_map_hzoom (int sw, int dw, uint32_t * zoom, uint32_t * mini,
+uc_ovl_map_hzoom (uint32_t sw, uint32_t dw, uint32_t * zoom, uint32_t * mini,
 		  int *falign, int *dcount)
 {
   uint32_t tmp, sw1, d;
@@ -757,8 +757,8 @@ unichrome_config_playback (vidix_playbac
 {
   int src_w, drw_w;
   int src_h, drw_h;
-  long base0, pitch;
-  int uv_size, swap_uv;
+  long base0, pitch = 0;
+  int uv_size = 0, swap_uv;
   unsigned int i;
   int extfifo_on;
 
@@ -766,7 +766,6 @@ unichrome_config_playback (vidix_playbac
   uint32_t win_start, win_end;
   uint32_t zoom, mini;
   uint32_t dcount, falign, qwfetch;
-  uint32_t y_start, u_start, v_start;
   uint32_t v_ctrl, fifo_ctrl;
 
   if (!is_supported_fourcc (info->fourcc))
@@ -793,7 +792,7 @@ unichrome_config_playback (vidix_playbac
   zoom = 0;
   mini = 0;
   uc_ovl_map_vzoom (src_h, drw_h, &zoom, &mini);
-  uc_ovl_map_hzoom (src_w, drw_w, &zoom, &mini, &falign, &dcount);
+  uc_ovl_map_hzoom (src_w, drw_w, &zoom, &mini, (int *) &falign, (int *) &dcount);
   qwfetch = uc_ovl_map_qwfetch (info->fourcc, src_w);
 
   /* Calculate buffer sizes */



More information about the MPlayer-cvslog mailing list