Originally committed as revision 17925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Gwenole Beauchesne authored on 2009/03/10 23:35:55... | ... |
@@ -26,6 +26,10 @@ |
26 | 26 |
|
27 | 27 |
#include "avcodec.h" |
28 | 28 |
|
29 |
+#define REGISTER_HWACCEL(X,x) { \ |
|
30 |
+ extern AVHWAccel x##_hwaccel; \ |
|
31 |
+ if(CONFIG_##X##_HWACCEL) av_register_hwaccel(&x##_hwaccel); } |
|
32 |
+ |
|
29 | 33 |
#define REGISTER_ENCODER(X,x) { \ |
30 | 34 |
extern AVCodec x##_encoder; \ |
31 | 35 |
if(CONFIG_##X##_ENCODER) avcodec_register(&x##_encoder); } |
... | ... |
@@ -49,6 +53,8 @@ void avcodec_register_all(void) |
49 | 49 |
return; |
50 | 50 |
initialized = 1; |
51 | 51 |
|
52 |
+ /* hardware accelerators */ |
|
53 |
+ |
|
52 | 54 |
/* video codecs */ |
53 | 55 |
REGISTER_DECODER (AASC, aasc); |
54 | 56 |
REGISTER_DECODER (AMV, amv); |