Commit 21e4e1c3 authored by gb's avatar gb

Add REGISTER_HWACCEL() for hardware accelerators.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17925 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cbcd1120
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment