From 143e6ca14ef8d043cc01e922ac6ed03e20b71606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= Date: Fri, 6 May 2005 07:42:20 +0000 Subject: **BUGFIX** improve xxmc cpu-usage for IDCT / MOCOMP acceleration through better locking [bug #1195282] CVS patchset: 7524 CVS date: 2005/05/06 07:42:20 --- src/xine-engine/accel_xvmc.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/xine-engine') diff --git a/src/xine-engine/accel_xvmc.h b/src/xine-engine/accel_xvmc.h index bccbf9475..46cbfba22 100644 --- a/src/xine-engine/accel_xvmc.h +++ b/src/xine-engine/accel_xvmc.h @@ -18,7 +18,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: accel_xvmc.h,v 1.2 2004/10/12 07:40:23 totte67 Exp $ + * $Id: accel_xvmc.h,v 1.3 2005/05/06 07:42:21 totte67 Exp $ * * * Common acceleration definitions for XvMC. @@ -100,6 +100,14 @@ typedef struct xine_xxmc_s { void (*proc_xxmc_begin) (vo_frame_t *vo_img); void (*proc_xxmc_slice) (vo_frame_t *vo_img); void (*proc_xxmc_flush) (vo_frame_t *vo_img); + + /* + * For thread-safety only. + */ + + int (*proc_xxmc_lock_valid) (vo_frame_t *cur_frame, vo_frame_t *fw_frame, + vo_frame_t *bw_frame,unsigned pc_type); + void (*proc_xxmc_unlock) (vo_driver_t *this_gen); } xine_xxmc_t; /* @@ -144,8 +152,6 @@ typedef struct xine_xxmc_s { #define XINE_MACROBLOCK_QUANT 16 #define XINE_MACROBLOCK_DCT_TYPE_INTERLACED 32 - - #ifdef __cplusplus } #endif -- cgit v1.2.3