Mercurial > mplayer.hg
annotate tremor/registry.h @ 30811:50e0f6942e43
Implement Win32 mutexes.
Implement Win32 mutexes; they used to just be mapped on top of events, which
is not the same thing at all.
The implementation is pretty much the obvious one, similar to the
current critical section implementation and the semaphore implementation;
a single lock count protected by a pthread mutex, and an event lockers can
sleep on to know when the mutex is available.
Also make CreateMutexA and ReleaseMutex available even if QuickTime codecs
support is not configured.
author | sesse |
---|---|
date | Sat, 06 Mar 2010 10:13:37 +0000 |
parents | cd6b211be811 |
children |
rev | line source |
---|---|
14280 | 1 /******************************************************************** |
2 * * | |
3 * THIS FILE IS PART OF THE OggVorbis 'TREMOR' CODEC SOURCE CODE. * | |
4 * * | |
19251
cd6b211be811
Replace tremor files that had old headers saying "ALL REDISTRIBUTION
uau
parents:
14280
diff
changeset
|
5 * USE, DISTRIBUTION AND REPRODUCTION OF THIS LIBRARY SOURCE IS * |
cd6b211be811
Replace tremor files that had old headers saying "ALL REDISTRIBUTION
uau
parents:
14280
diff
changeset
|
6 * GOVERNED BY A BSD-STYLE SOURCE LICENSE INCLUDED WITH THIS SOURCE * |
cd6b211be811
Replace tremor files that had old headers saying "ALL REDISTRIBUTION
uau
parents:
14280
diff
changeset
|
7 * IN 'COPYING'. PLEASE READ THESE TERMS BEFORE DISTRIBUTING. * |
cd6b211be811
Replace tremor files that had old headers saying "ALL REDISTRIBUTION
uau
parents:
14280
diff
changeset
|
8 * * |
14280 | 9 * THE OggVorbis 'TREMOR' SOURCE CODE IS (C) COPYRIGHT 1994-2002 * |
10 * BY THE Xiph.Org FOUNDATION http://www.xiph.org/ * | |
11 * * | |
12 ******************************************************************** | |
13 | |
14 function: registry for time, floor, res backends and channel mappings | |
15 | |
16 ********************************************************************/ | |
17 | |
18 #ifndef _V_REG_H_ | |
19 #define _V_REG_H_ | |
20 | |
21 #define VI_TRANSFORMB 1 | |
22 #define VI_WINDOWB 1 | |
23 #define VI_TIMEB 1 | |
24 #define VI_FLOORB 2 | |
25 #define VI_RESB 3 | |
26 #define VI_MAPB 1 | |
27 | |
28 #include "backends.h" | |
29 | |
30 #if defined(_WIN32) && defined(VORBISDLL_IMPORT) | |
31 # define EXTERN __declspec(dllimport) extern | |
32 #else | |
33 # define EXTERN extern | |
34 #endif | |
35 | |
36 EXTERN vorbis_func_floor *_floor_P[]; | |
37 EXTERN vorbis_func_residue *_residue_P[]; | |
38 EXTERN vorbis_func_mapping *_mapping_P[]; | |
39 | |
40 #endif |