Commit d1fad85f authored by Tiffany Lin's avatar Tiffany Lin Committed by Mauro Carvalho Chehab

[media] vcodec: mediatek: Add Mediatek VP8 Video Decoder Driver

Add vp8 decoder driver for MT8173

[mchehab@s-opensource.org: make checkpatch.pl happy]
Signed-off-by: default avatarPC Chen <pc.chen@mediatek.com>
Signed-off-by: default avatarTiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a7b13175
...@@ -4,6 +4,7 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \ ...@@ -4,6 +4,7 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \
mtk-vcodec-common.o mtk-vcodec-common.o
mtk-vcodec-dec-y := vdec/vdec_h264_if.o \ mtk-vcodec-dec-y := vdec/vdec_h264_if.o \
vdec/vdec_vp8_if.o \
mtk_vcodec_dec_drv.o \ mtk_vcodec_dec_drv.o \
vdec_drv_if.o \ vdec_drv_if.o \
vdec_vpu_if.o \ vdec_vpu_if.o \
......
This diff is collapsed.
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "mtk_vpu.h" #include "mtk_vpu.h"
const struct vdec_common_if *get_h264_dec_comm_if(void); const struct vdec_common_if *get_h264_dec_comm_if(void);
const struct vdec_common_if *get_vp8_dec_comm_if(void);
int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc)
{ {
...@@ -34,6 +35,7 @@ int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) ...@@ -34,6 +35,7 @@ int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc)
ctx->dec_if = get_h264_dec_comm_if(); ctx->dec_if = get_h264_dec_comm_if();
break; break;
case V4L2_PIX_FMT_VP8: case V4L2_PIX_FMT_VP8:
ctx->dec_if = get_vp8_dec_comm_if();
break; break;
default: default:
return -EINVAL; return -EINVAL;
......
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