提交 9f7cc87b 编写于 作者: M Mark Thompson

rkmpp: Add hardware config information

This is not strictly required here because the rkmpp decoder does not
call ff_get_format(), but it may be helpful metadata for users.
上级 312b00de
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "avcodec.h" #include "avcodec.h"
#include "decode.h" #include "decode.h"
#include "hwaccel.h"
#include "internal.h" #include "internal.h"
#include "libavutil/buffer.h" #include "libavutil/buffer.h"
#include "libavutil/common.h" #include "libavutil/common.h"
...@@ -563,6 +564,10 @@ static void rkmpp_flush(AVCodecContext *avctx) ...@@ -563,6 +564,10 @@ static void rkmpp_flush(AVCodecContext *avctx)
av_log(avctx, AV_LOG_ERROR, "Failed to reset MPI (code = %d)\n", ret); av_log(avctx, AV_LOG_ERROR, "Failed to reset MPI (code = %d)\n", ret);
} }
static const AVCodecHWConfigInternal *rkmpp_hw_configs[] = {
HW_CONFIG_INTERNAL(DRM_PRIME),
NULL
};
#define RKMPP_DEC_CLASS(NAME) \ #define RKMPP_DEC_CLASS(NAME) \
static const AVClass rkmpp_##NAME##_dec_class = { \ static const AVClass rkmpp_##NAME##_dec_class = { \
...@@ -587,6 +592,7 @@ static void rkmpp_flush(AVCodecContext *avctx) ...@@ -587,6 +592,7 @@ static void rkmpp_flush(AVCodecContext *avctx)
.caps_internal = AV_CODEC_CAP_AVOID_PROBING, \ .caps_internal = AV_CODEC_CAP_AVOID_PROBING, \
.pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_DRM_PRIME, \ .pix_fmts = (const enum AVPixelFormat[]) { AV_PIX_FMT_DRM_PRIME, \
AV_PIX_FMT_NONE}, \ AV_PIX_FMT_NONE}, \
.hw_configs = rkmpp_hw_configs, \
.bsfs = BSFS, \ .bsfs = BSFS, \
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册