mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[mpi_test]: set mpi_test coding to MPP_VIDEO_CodingUnused, and change name of h264d parser api
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@223 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -56,7 +56,7 @@ MPP_RET h264d_control(void *decoder, RK_S32 cmd_type, void *param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
MPP_RET h264d_parser(void *decoder, MppPacket pkt, HalDecTask *task)
|
MPP_RET h264d_parse(void *decoder, MppPacket pkt, HalDecTask *task)
|
||||||
{
|
{
|
||||||
(void)decoder;
|
(void)decoder;
|
||||||
(void)pkt;
|
(void)pkt;
|
||||||
@@ -64,14 +64,14 @@ MPP_RET h264d_parser(void *decoder, MppPacket pkt, HalDecTask *task)
|
|||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
const MppDecParser api_h264d_parser = {
|
const MppDecParser h264d_parser = {
|
||||||
"h264d_parser",
|
"h264d_parser",
|
||||||
MPP_VIDEO_CodingAVC,
|
MPP_VIDEO_CodingAVC,
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
h264d_init,
|
h264d_init,
|
||||||
h264d_deinit,
|
h264d_deinit,
|
||||||
h264d_parser,
|
h264d_parse,
|
||||||
h264d_reset,
|
h264d_reset,
|
||||||
h264d_flush,
|
h264d_flush,
|
||||||
h264d_control,
|
h264d_control,
|
||||||
|
@@ -23,14 +23,14 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern const MppDecParser api_h264d_parser;
|
extern const MppDecParser h264d_parser;
|
||||||
|
|
||||||
MPP_RET h264d_init (void *decoder, MppParserInitCfg *cfg);
|
MPP_RET h264d_init (void *decoder, MppParserInitCfg *cfg);
|
||||||
MPP_RET h264d_deinit (void *decoder);
|
MPP_RET h264d_deinit (void *decoder);
|
||||||
MPP_RET h264d_reset (void *decoder);
|
MPP_RET h264d_reset (void *decoder);
|
||||||
MPP_RET h264d_flush (void *decoder);
|
MPP_RET h264d_flush (void *decoder);
|
||||||
MPP_RET h264d_control(void *decoder, RK_S32 cmd_type, void *param);
|
MPP_RET h264d_control(void *decoder, RK_S32 cmd_type, void *param);
|
||||||
MPP_RET h264d_parser (void *decoder, MppPacket pkt, HalDecTask *task);
|
MPP_RET h264d_parse (void *decoder, MppPacket pkt, HalDecTask *task);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,7 @@
|
|||||||
* all decoder static register here
|
* all decoder static register here
|
||||||
*/
|
*/
|
||||||
static const MppDecParser *parsers[] = {
|
static const MppDecParser *parsers[] = {
|
||||||
&api_h264d_parser,
|
&h264d_parser,
|
||||||
&dummy_dec_parser,
|
&dummy_dec_parser,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -64,7 +64,7 @@ int main()
|
|||||||
mpp_log("mpi_test decoder test start\n");
|
mpp_log("mpi_test decoder test start\n");
|
||||||
|
|
||||||
// decoder demo
|
// decoder demo
|
||||||
ret = mpp_init(&ctx, &mpi, MPP_CTX_DEC, MPP_VIDEO_CodingAVC);
|
ret = mpp_init(&ctx, &mpi, MPP_CTX_DEC, MPP_VIDEO_CodingUnused);
|
||||||
if (MPP_OK != ret) {
|
if (MPP_OK != ret) {
|
||||||
mpp_err("mpp_init failed\n");
|
mpp_err("mpp_init failed\n");
|
||||||
goto MPP_TEST_FAILED;
|
goto MPP_TEST_FAILED;
|
||||||
@@ -151,7 +151,7 @@ int main()
|
|||||||
mpp_log("mpi_test encoder test start\n");
|
mpp_log("mpi_test encoder test start\n");
|
||||||
|
|
||||||
// encoder demo
|
// encoder demo
|
||||||
ret = mpp_init(&ctx, &mpi, MPP_CTX_ENC, MPP_VIDEO_CodingAVC);
|
ret = mpp_init(&ctx, &mpi, MPP_CTX_ENC, MPP_VIDEO_CodingUnused);
|
||||||
if (MPP_OK != ret) {
|
if (MPP_OK != ret) {
|
||||||
mpp_err("mpp_init failed\n");
|
mpp_err("mpp_init failed\n");
|
||||||
goto MPP_TEST_FAILED;
|
goto MPP_TEST_FAILED;
|
||||||
|
Reference in New Issue
Block a user