[MPlayer-cvslog] r25399 - trunk/vidix/savage_vid.c

ben subversion at mplayerhq.hu
Fri Dec 14 19:38:08 CET 2007


Author: ben
Date: Fri Dec 14 19:38:08 2007
New Revision: 25399

Log:
implemented frame selection for savage driver
synchronized with vidix.sf.net r325



Modified:
   trunk/vidix/savage_vid.c

Modified: trunk/vidix/savage_vid.c
==============================================================================
--- trunk/vidix/savage_vid.c	(original)
+++ trunk/vidix/savage_vid.c	Fri Dec 14 19:38:08 2007
@@ -1248,6 +1248,25 @@ savage_playback_off (void)
   return 0;
 }
 
+/**
+ * @brief Driver should prepare and activate corresponded frame.
+ *
+ * @param frame the frame index.
+ *
+ * @return 0.
+ *
+ * @note This function is used only for double and triple buffering
+ *       and never used for single buffering playback.
+ */
+int
+savage_frame_select (unsigned int frame)
+{
+  OUTREG(SSTREAM_FBADDR0_REG, info->picture_offset
+         + (info->frame_size * frame));
+ 
+  return 0;
+}
+
 static void debugout(unsigned int addr, unsigned int val){
 	return ;
     switch ( addr ){
@@ -1345,6 +1364,7 @@ VDXDriver savage_drv = {
   .config_playback = savage_config_playback,
   .playback_on = savage_playback_on,
   .playback_off = savage_playback_off,
+  .frame_sel = savage_frame_select,
   .get_eq = savage_get_eq,
   .set_eq = savage_set_eq,
   .set_gkey = savage_set_gkeys,



More information about the MPlayer-cvslog mailing list