diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2009-03-10 14:35:55 +0000 |
---|---|---|
committer | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2009-03-10 14:35:55 +0000 |
commit | eb2c24232f19160cc91392b78d2482faa0006bcf (patch) | |
tree | 177347e837834ce9227f2e6df7a0f55027f2d4fd /libavcodec/allcodecs.c | |
parent | b5b9ff2a1f1c3747f739f296c05f3c14373dd325 (diff) | |
download | ffmpeg-eb2c24232f19160cc91392b78d2482faa0006bcf.tar.gz |
Add REGISTER_HWACCEL() for hardware accelerators.
Originally committed as revision 17925 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/allcodecs.c')
-rw-r--r-- | libavcodec/allcodecs.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c index 0cb0e6d239..b024e01dd6 100644 --- a/libavcodec/allcodecs.c +++ b/libavcodec/allcodecs.c @@ -26,6 +26,10 @@ #include "avcodec.h" +#define REGISTER_HWACCEL(X,x) { \ + extern AVHWAccel x##_hwaccel; \ + if(CONFIG_##X##_HWACCEL) av_register_hwaccel(&x##_hwaccel); } + #define REGISTER_ENCODER(X,x) { \ extern AVCodec x##_encoder; \ if(CONFIG_##X##_ENCODER) avcodec_register(&x##_encoder); } @@ -49,6 +53,8 @@ void avcodec_register_all(void) return; initialized = 1; + /* hardware accelerators */ + /* video codecs */ REGISTER_DECODER (AASC, aasc); REGISTER_DECODER (AMV, amv); |