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

[media] vcodec: mediatek: Add Mediatek H264 Video Decoder Drive

Add h264 decoder driver for MT8173
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 487a4c51
...@@ -3,7 +3,8 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \ ...@@ -3,7 +3,8 @@ obj-$(CONFIG_VIDEO_MEDIATEK_VCODEC) += mtk-vcodec-dec.o \
mtk-vcodec-enc.o \ mtk-vcodec-enc.o \
mtk-vcodec-common.o mtk-vcodec-common.o
mtk-vcodec-dec-y := mtk_vcodec_dec_drv.o \ mtk-vcodec-dec-y := vdec/vdec_h264_if.o \
mtk_vcodec_dec_drv.o \
vdec_drv_if.o \ vdec_drv_if.o \
vdec_vpu_if.o \ vdec_vpu_if.o \
mtk_vcodec_dec.o \ mtk_vcodec_dec.o \
......
This diff is collapsed.
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include "mtk_vcodec_dec_pm.h" #include "mtk_vcodec_dec_pm.h"
#include "mtk_vpu.h" #include "mtk_vpu.h"
const struct vdec_common_if *get_h264_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)
{ {
...@@ -30,6 +31,8 @@ int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc) ...@@ -30,6 +31,8 @@ int vdec_if_init(struct mtk_vcodec_ctx *ctx, unsigned int fourcc)
switch (fourcc) { switch (fourcc) {
case V4L2_PIX_FMT_H264: case V4L2_PIX_FMT_H264:
ctx->dec_if = get_h264_dec_comm_if();
break;
case V4L2_PIX_FMT_VP8: case V4L2_PIX_FMT_VP8:
break; break;
default: default:
......
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