[mpi]: add empty function for isp and task queue

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@914 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-06-14 12:29:48 +00:00
parent 6a552fb7e4
commit dad9a72f52

View File

@@ -66,21 +66,6 @@ static MPP_RET mpi_decode(MppCtx ctx, MppPacket packet, MppFrame *frame)
return MPP_OK; return MPP_OK;
} }
static MPP_RET mpi_encode(MppCtx ctx, MppFrame frame, MppPacket *packet)
{
(void)packet;
(void)frame;
MPI_FUNCTION_ENTER();
MpiImpl *p = (MpiImpl *)ctx;
MPP_RET ret = check_mpp_ctx(p);
if (ret)
return ret;
MPI_FUNCTION_LEAVE();
return MPP_OK;
}
static MPP_RET mpi_decode_put_packet(MppCtx ctx, MppPacket packet) static MPP_RET mpi_decode_put_packet(MppCtx ctx, MppPacket packet)
{ {
MPI_FUNCTION_ENTER(); MPI_FUNCTION_ENTER();
@@ -121,6 +106,21 @@ static MPP_RET mpi_decode_get_frame(MppCtx ctx, MppFrame *frame)
return ret; return ret;
} }
static MPP_RET mpi_encode(MppCtx ctx, MppFrame frame, MppPacket *packet)
{
(void)packet;
(void)frame;
MPI_FUNCTION_ENTER();
MpiImpl *p = (MpiImpl *)ctx;
MPP_RET ret = check_mpp_ctx(p);
if (ret)
return ret;
MPI_FUNCTION_LEAVE();
return MPP_OK;
}
static MPP_RET mpi_encode_put_frame(MppCtx ctx, MppFrame frame) static MPP_RET mpi_encode_put_frame(MppCtx ctx, MppFrame frame)
{ {
MPI_FUNCTION_ENTER(); MPI_FUNCTION_ENTER();
@@ -161,6 +161,70 @@ static MPP_RET mpi_encode_get_packet(MppCtx ctx, MppPacket *packet)
return ret; return ret;
} }
static MPP_RET mpi_isp(MppCtx ctx, MppFrame dst, MppFrame src)
{
MPI_FUNCTION_ENTER();
(void)ctx;
(void)dst;
(void)src;
MPI_FUNCTION_LEAVE();
return MPP_OK;
}
static MPP_RET mpi_isp_put_frame(MppCtx ctx, MppFrame frame)
{
MPI_FUNCTION_ENTER();
(void)ctx;
(void)frame;
MPI_FUNCTION_LEAVE();
return MPP_OK;
}
static MPP_RET mpi_isp_get_frame(MppCtx ctx, MppFrame *frame)
{
MPI_FUNCTION_ENTER();
(void)ctx;
(void)frame;
MPI_FUNCTION_LEAVE();
return MPP_OK;
}
static MPP_RET mpi_dequeue(MppCtx ctx, MppPortType type, MppTask *task)
{
MPI_FUNCTION_ENTER();
MpiImpl *p = (MpiImpl *)ctx;
MPP_RET ret = check_mpp_ctx(p);
if (ret)
return ret;
if (type >= MPP_PORT_BUTT || NULL == task) {
mpp_err_f("invalid input type %d task %p\n", type, task);
return MPP_ERR_UNKNOW;
}
MPI_FUNCTION_LEAVE();
return ret;
}
static MPP_RET mpi_enqueue(MppCtx ctx, MppPortType type, MppTask task)
{
MPI_FUNCTION_ENTER();
MpiImpl *p = (MpiImpl *)ctx;
MPP_RET ret = check_mpp_ctx(p);
if (ret)
return ret;
if (type >= MPP_PORT_BUTT || NULL == task) {
mpp_err_f("invalid input type %d task %p\n", type, task);
return MPP_ERR_UNKNOW;
}
MPI_FUNCTION_LEAVE();
return ret;
}
static MPP_RET mpi_reset(MppCtx ctx) static MPP_RET mpi_reset(MppCtx ctx)
{ {
MPI_FUNCTION_ENTER(); MPI_FUNCTION_ENTER();
@@ -200,11 +264,11 @@ static MppApi mpp_api = {
mpi_encode, mpi_encode,
mpi_encode_put_frame, mpi_encode_put_frame,
mpi_encode_get_packet, mpi_encode_get_packet,
NULL, mpi_isp,
NULL, mpi_isp_put_frame,
NULL, mpi_isp_get_frame,
NULL, mpi_dequeue,
NULL, mpi_enqueue,
mpi_reset, mpi_reset,
mpi_control, mpi_control,
mpi_config, mpi_config,