mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
Add REGISTER_HWACCEL() for hardware accelerators.
Originally committed as revision 17925 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
b5b9ff2a1f
commit
eb2c24232f
@ -26,6 +26,10 @@
|
|||||||
|
|
||||||
#include "avcodec.h"
|
#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) { \
|
#define REGISTER_ENCODER(X,x) { \
|
||||||
extern AVCodec x##_encoder; \
|
extern AVCodec x##_encoder; \
|
||||||
if(CONFIG_##X##_ENCODER) avcodec_register(&x##_encoder); }
|
if(CONFIG_##X##_ENCODER) avcodec_register(&x##_encoder); }
|
||||||
@ -49,6 +53,8 @@ void avcodec_register_all(void)
|
|||||||
return;
|
return;
|
||||||
initialized = 1;
|
initialized = 1;
|
||||||
|
|
||||||
|
/* hardware accelerators */
|
||||||
|
|
||||||
/* video codecs */
|
/* video codecs */
|
||||||
REGISTER_DECODER (AASC, aasc);
|
REGISTER_DECODER (AASC, aasc);
|
||||||
REGISTER_DECODER (AMV, amv);
|
REGISTER_DECODER (AMV, amv);
|
||||||
|
Loading…
Reference in New Issue
Block a user