mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 01:26:49 +08:00
[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:
104
mpp/mpi.cpp
104
mpp/mpi.cpp
@@ -66,21 +66,6 @@ static MPP_RET mpi_decode(MppCtx ctx, MppPacket packet, MppFrame *frame)
|
||||
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)
|
||||
{
|
||||
MPI_FUNCTION_ENTER();
|
||||
@@ -121,6 +106,21 @@ static MPP_RET mpi_decode_get_frame(MppCtx ctx, MppFrame *frame)
|
||||
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)
|
||||
{
|
||||
MPI_FUNCTION_ENTER();
|
||||
@@ -161,6 +161,70 @@ static MPP_RET mpi_encode_get_packet(MppCtx ctx, MppPacket *packet)
|
||||
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)
|
||||
{
|
||||
MPI_FUNCTION_ENTER();
|
||||
@@ -200,11 +264,11 @@ static MppApi mpp_api = {
|
||||
mpi_encode,
|
||||
mpi_encode_put_frame,
|
||||
mpi_encode_get_packet,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
mpi_isp,
|
||||
mpi_isp_put_frame,
|
||||
mpi_isp_get_frame,
|
||||
mpi_dequeue,
|
||||
mpi_enqueue,
|
||||
mpi_reset,
|
||||
mpi_control,
|
||||
mpi_config,
|
||||
|
Reference in New Issue
Block a user