[vpu_api]: add legacy vpu_api interface and class

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@71 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-08-12 02:33:19 +00:00
parent 3ffb7ad699
commit 51b9c7b5ef
6 changed files with 682 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
/*
* Copyright 2010 Rockchip Electronics S.LSI Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#define LOG_TAG "vpu_api"
#include "mpp_log.h"
#include "vpu_api_legacy.h"
VpuApi::VpuApi()
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
}
VpuApi::~VpuApi()
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
}
RK_S32 VpuApi::init(VpuCodecContext *ctx, RK_U8 *extraData, RK_U32 extra_size)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::send_stream(RK_U8* buf, RK_U32 size, RK_S64 timestamp, RK_S32 usePts)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::get_frame(DecoderOut_t *aDecOut)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::flush(VpuCodecContext *ctx)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::decode(VpuCodecContext *ctx, VideoPacket_t *pkt, DecoderOut_t *aDecOut)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::decode_sendstream(VpuCodecContext *ctx, VideoPacket_t *pkt)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi:: decode_getoutframe(VpuCodecContext *ctx, DecoderOut_t *aDecOut)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::encode(VpuCodecContext *ctx, EncInputStream_t *aEncInStrm, EncoderOut_t *aEncOut)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::encoder_sendframe(VpuCodecContext *ctx, EncInputStream_t *aEncInStrm)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::encoder_getstream(VpuCodecContext *ctx,EncoderOut_t *aEncOut)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::perform(RK_U32 cmd, RK_U32 *data)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}
RK_S32 VpuApi::control(VpuCodecContext *ctx, VPU_API_CMD cmd, void *param)
{
mpp_log("%s in\n", __FUNCTION__);
mpp_log("%s ok\n", __FUNCTION__);
return 0;
}