diff options
author | Thomas Hellström <totte67@users.sourceforge.net> | 2005-05-06 07:42:20 +0000 |
---|---|---|
committer | Thomas Hellström <totte67@users.sourceforge.net> | 2005-05-06 07:42:20 +0000 |
commit | 143e6ca14ef8d043cc01e922ac6ed03e20b71606 (patch) | |
tree | 855efbe1c21374b95cda01984dd53db058f78607 /src/xine-engine | |
parent | e3e426cc9029ba7072bf48a4789ec04c179b63f1 (diff) | |
download | xine-lib-143e6ca14ef8d043cc01e922ac6ed03e20b71606.tar.gz xine-lib-143e6ca14ef8d043cc01e922ac6ed03e20b71606.tar.bz2 |
**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
Diffstat (limited to 'src/xine-engine')
-rw-r--r-- | src/xine-engine/accel_xvmc.h | 12 |
1 files changed, 9 insertions, 3 deletions
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 |