From da9b0d3a24ba20f8ad20734569d204cf3ac2bbb7 Mon Sep 17 00:00:00 2001 From: ben Date: Fri, 14 Dec 2007 18:38:08 +0000 Subject: [PATCH] implemented frame selection for savage driver synchronized with vidix.sf.net r325 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25399 b3059339-0415-0410-9bf9-f77b7e298cf2 --- vidix/savage_vid.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/vidix/savage_vid.c b/vidix/savage_vid.c index e09a6e0230..0ee20b55ac 100644 --- a/vidix/savage_vid.c +++ b/vidix/savage_vid.c @@ -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,